Documentation Index
Fetch the complete documentation index at: https://docs.gate.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Model Context Protocol (MCP) is an open protocol for passing context between clients and external tools. Merchant MCP implements this protocol and acts as a bridge between your client and GatePay APIs. When a user issues a natural-language instruction, Merchant MCP maps it to the appropriate GatePay API request and returns the structured result.Merchant MCP can be connected through standard MCP clients and used to translate natural-language requests into GatePay API calls.
How it works
- The user sends a request such as “Check my USDT balance.”
- The client identifies the intent and calls a Merchant MCP tool such as
balances_get. - Merchant MCP signs and forwards the request to GatePay by using the merchant’s restricted API key.
- GatePay returns the result, and Merchant MCP passes structured data back to the client.
- The client presents the result in a user-friendly way.
Installation and configuration
Prerequisites
- Complete GatePay merchant onboarding.
- Create an app and obtain the payment secret, ClientId, and restricted API key.
Client configuration
Add the following JSON block to your MCP client settings. Replace the placeholders with real credentials, then restart or reload the client.Source code and additional notes
Restricted API key
For production use, create a restricted API key for Merchant MCP and grant only the permissions required by the tools you plan to expose.- Sign in to the GatePay merchant console.
- Open the developer center and create the payment secret and application.
- Create a restricted API key and select only the permissions needed for your enabled tools.
- Save the payment secret, ClientId, and restricted API key for later configuration.
Supported tools
Merchant MCP currently provides the following tools.| Capability | Tool |
|---|---|
| Query payout order status | withdrawQuery |
| Query refund details by refund ID | v2PayRefundDetails |
| Query exchange rates between fiat and crypto | rateQuery |
| Query merchant available balance | v1Balance |
| Query order details by order ID | v2QueryOrder |
| Create a standard refund | v2StandardOrderRefund |
| Query supported chains for a given receive currency | v1PayAddressChains |
| Query supported currencies for Gate address payment | v1PayAddressCurrencies |
| Create a fixed receiving address | fixedAddressCreate |
| Create a payment link | payCode |
FAQ
Which clients are supported?
Any client that supports MCP can connect by adding themcpServers configuration shown above.
Does Merchant MCP cache API responses?
No. Each tool call is forwarded to GatePay in real time so the client receives the latest available data.How should API keys be protected?
- Use a restricted API key with the minimum required permissions.
- Pass credentials through environment variables instead of hardcoding them.
- Prefer the hosted deployment model in production environments.
How should failed tool calls be investigated?
- Verify that the API key and secret are configured correctly.
- Confirm that the restricted key includes the required permissions.
- Confirm that network connectivity is available.
- Check the Merchant MCP logs and the returned error code.

