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 name | Description |
|---|---|
customer.create | Create a new customer |
customer.retrieve | Retrieve a customer by ID |
customer.retrieveByExternalId | Retrieve a customer by external id (merchant_customer_id) |
customer.update | Update an existing customer by ID |
paymentMethod.enroll | Enroll or create payment method for a customer |
paymentMethod.retrieve | Retrieve payment method |
paymentMethod.retrieveEnrolled | Retrieve all enrolled payment methods for a customer |
paymentMethod.unenroll | Unenroll payment method |
checkoutSession.create | Create a checkout session |
checkoutSession.retrievePaymentMethods | Retrieve payment methods for checkout |
payments.create | Create a payment with various workflows |
payments.retrieve | Retrieve payment information |
payments.retrieveByMerchantOrderId | Retrieve payment(s) by merchant_order_id |
payments.refund | Refund a payment (full or partial) by payment and transaction ID |
payments.cancelOrRefund | Cancel or refund a payment by payment ID (auto-detects action) |
payments.cancelOrRefundWithTransaction | Cancel or refund a payment by payment and transaction ID (auto-detects action) |
payments.cancel | Cancel a pending payment by payment and transaction ID |
payments.authorize | Authorize a payment (capture: false) |
payments.captureAuthorization | Capture a previously authorized payment |
paymentLinks.create | Create a new payment link |
paymentLinks.retrieve | Retrieve a payment link by ID |
paymentLinks.cancel | Cancel a payment link by ID |
subscriptions.create | Create a new subscription |
subscriptions.retrieve | Retrieve a subscription by ID |
subscriptions.pause | Pause a subscription by ID |
subscriptions.resume | Resume a subscription by ID |
subscriptions.update | Update a subscription by ID |
subscriptions.cancel | Cancel a subscription by ID |
recipients.create | Create a new recipient |
recipients.retrieve | Retrieve a recipient by ID |
recipients.update | Update a recipient by ID |
recipients.delete | Delete a recipient by ID |
recipients.createOnboarding | Create onboarding for a recipient |
installmentPlans.create | Create a new installment plan |
installmentPlans.retrieve | Retrieve an installment plan by ID |
installmentPlans.retrieveAll | Retrieve all installment plans for an account |
installmentPlans.update | Update an installment plan by ID |
installmentPlans.delete | Delete an installment plan by ID |
documentation.read | Access 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
- For official WHITELABEL support, please visit WHITELABEL’s official documentation