Building AI Integrations with WHITELABEL's LLMs and MCP

WHITELABEL offers tools to help you build AI-aware and merchant-friendly payment experiences. WHITELABEL’s machine-ready documentation makes it easier for large language models (LLMs) to understand WHITELABEL’s APIs and documentation, while WHITELABEL’s Model Context Protocol (MCP) lets you integrate WHITELABEL’s capabilities directly into your product.

This guide introduces how to work with both components: how the LLM layer helps AI tools deliver more accurate and contextual integration support, and how the MCP embeds key payment and merchant functionality directly into your environment.

Looking for the one-click Claude/ChatGPT connector instead of building your own MCP client? See Use WHITELABEL with Claude and ChatGPT.

Machine-ready content in plain text

To help large language models understand and support WHITELABEL integrations, WHITELABEL provides a dedicated set of Markdown (.md) files designed specifically for machine readability. These files describe WHITELABEL’s APIs, product behavior, and implementation details in a format that’s easy for LLMs to parse and analyze.

The .md files are part of WHITELABEL Docs. You can access them by adding .md to the end of any WHITELABEL Docs URL (this works for both Guides and API Reference pages). The content is served in plain text, making it easier for machines to extract and process the underlying knowledge without requiring human interpretation.

This setup enables AI assistants, developer tools, and chat-based agents to answer questions, explain features, and guide integrations automatically.

Looking for a managed, network-accessible MCP endpoint with IP binding, rate limits, and session TTLs? See the remote WHITELABEL MCP server.

WHITELABEL’s Model Context Protocol (MCP)

This package provides an MCP server that exposes the WHITELABEL payment platform API as Model Context Protocol tools. It enables programmatic access for AI agents, automation systems, and other advanced workflows that rely on structured, machine-readable context.

Features

  • Exposes WHITELABEL API endpoints as MCP tools: Each endpoint is modeled as a tool that agents can call programmatically, with clear input and output structures

  • Enables AI and automation workflows with WHITELABEL: Integrate WHITELABEL into local agents or custom workflows without complex, handcrafted logic

  • Easy integration with Cursor and other MCP-compatible agents: Works out of the box with tools like Cursor, Claude Desktop, and other environments that support the Model Context Protocol

Available tools

The WHITELABEL MCP server makes the following tools available to AI agents and automation:

Tool nameDescription
customer.createCreate a new customer
customer.retrieveRetrieve a customer by ID
customer.retrieveByExternalIdRetrieve a customer by external id (merchant_customer_id)
customer.updateUpdate an existing customer by ID
paymentMethod.enrollEnroll or create payment method for a customer
paymentMethod.retrieveRetrieve payment method
paymentMethod.retrieveEnrolledRetrieve all enrolled payment methods for a customer
paymentMethod.unenrollUnenroll payment method
checkoutSession.createCreate a checkout session
checkoutSession.retrievePaymentMethodsRetrieve payment methods for checkout
payments.createCreate a payment with various workflows
payments.retrieveRetrieve payment information
payments.retrieveByMerchantOrderIdRetrieve payment(s) by merchant_order_id
payments.refundRefund a payment (full or partial) by payment and transaction ID
payments.cancelOrRefundCancel or refund a payment by payment ID (auto-detects action)
payments.cancelOrRefundWithTransactionCancel or refund a payment by payment and transaction ID (auto-detects action)
payments.cancelCancel a pending payment by payment and transaction ID
payments.authorizeAuthorize a payment (capture: false)
payments.captureAuthorizationCapture a previously authorized payment
paymentLinks.createCreate a new payment link
paymentLinks.retrieveRetrieve a payment link by ID
paymentLinks.cancelCancel a payment link by ID
subscriptions.createCreate a new subscription
subscriptions.retrieveRetrieve a subscription by ID
subscriptions.pausePause a subscription by ID
subscriptions.resumeResume a subscription by ID
subscriptions.updateUpdate a subscription by ID
subscriptions.cancelCancel a subscription by ID
recipients.createCreate a new recipient
recipients.retrieveRetrieve a recipient by ID
recipients.updateUpdate a recipient by ID
recipients.deleteDelete a recipient by ID
recipients.createOnboardingCreate onboarding for a recipient
installmentPlans.createCreate a new installment plan
installmentPlans.retrieveRetrieve an installment plan by ID
installmentPlans.retrieveAllRetrieve all installment plans for an account
installmentPlans.updateUpdate an installment plan by ID
installmentPlans.deleteDelete an installment plan by ID
documentation.readAccess WHITELABEL API documentation and guides

Using the MCP with Cursor or Claude Desktop

You can use this MCP server with Cursor or Claude Desktop to enable AI-driven payment flows, customer creation, and more.

1. Set up your WHITELABEL API credentials

Set your WHITELABEL API credentials using environment variables (see config examples below).

2. Add the MCP server to Cursor

  • Open Cursor Settings (Cmd+Shift+P → “Cursor Settings”)
  • Go to the MCP section and click Add new global MCP server
  • Add the following config (replace the path with your actual build output):
{
  "mcpServers": {
    "whitelabel-mcp": {
      "type": "command",
      "command": "npx @yuno-payments/yuno-mcp@latest",
      "env": {
        "YUNO_ACCOUNT_CODE": "your_account_code",
        "YUNO_PUBLIC_API_KEY": "your_public_api_key",
        "YUNO_PRIVATE_SECRET_KEY": "your_private_secret_key",
        "YUNO_COUNTRY_CODE": "your_country_code",
        "YUNO_CURRENCY": "your_currency"
      }
    }
  }
}

3. Add the MCP server to Claude Desktop

  • Open Claude Desktop settings → “Developer” tab → Edit Config.
  • Add the following config:
{
  "mcpServers": {
    "whitelabel-mcp": {
      "command": "npx",
      "args": ["@yuno-payments/yuno-mcp@latest"],
      "env": {
        "YUNO_ACCOUNT_CODE": "your_account_code",
        "YUNO_PUBLIC_API_KEY": "your_public_api_key",
        "YUNO_PRIVATE_SECRET_KEY": "your_private_secret_key",
        "YUNO_COUNTRY_CODE": "your_country_code",
        "YUNO_CURRENCY": "your_currency"
      }
    }
  }
}

4. Test the integration

  • In Cursor or Claude, select a Markdown file or chat and ask the agent to create a payment, customer, or checkout session using the whitelabel-mcp tool
  • Make sure your environment variables are set correctly

Environment variables

  • YUNO_ACCOUNT_CODE*
  • YUNO_PUBLIC_API_KEY*
  • YUNO_PRIVATE_SECRET_KEY*
  • YUNO_COUNTRY_CODE (optional)
  • YUNO_CURRENCY (optional)

Asterisk (*) marks required.

Support