@chainpayto/mcp-server
OfficialProvides AI agents on Coze with tools to interact with ChainPay cryptocurrency payment system, including creating payment orders, querying order status, checking balances, and managing withdrawals.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@chainpayto/mcp-server Create a 50 USDT TRON payment order"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@chainpayto/mcp-server
ChainPay MCP Server — 让 AI Agent 直接操作 ChainPay 加密货币收款系统。
支持 Claude Desktop、Cursor、Dify、Coze 等任何兼容 Model Context Protocol 的 AI 平台。
功能
工具 | 说明 |
| 查询支持的链和代币(含费率、最低金额) |
| 创建支付订单,获取收款地址和支付链接 |
| 查询指定订单详情和状态 |
| 分页查询订单列表 |
| 查询商户账户余额 |
| 发起提现申请 |
Related MCP server: cryptunnel-mcp
快速配置
获取 API 凭证
进入 API Keys 页面,创建一个 API Key
复制
API Key和API Secret明文(Secret 只显示一次,请妥善保存)直接把明文填入下面的
CHAINPAY_API_SECRET,不要再做 SHA256 哈希
⚠️ 升级提示:早期版本要求提前
sha256sum处理 Secret,现已废弃。当前后端用明文 HMAC-SHA256 签名,Secret 明文保存在后台数据库。如果你之前用哈希版配好了,需要到后台 重置 API Key,用新 Secret 明文重新填入环境变量。
Claude Desktop
编辑 ~/.config/claude/claude_desktop_config.json(macOS/Linux)
或 %APPDATA%\Claude\claude_desktop_config.json(Windows):
{
"mcpServers": {
"chainpay": {
"command": "npx",
"args": ["-y", "@chainpayto/mcp-server"],
"env": {
"CHAINPAY_API_URL": "https://api.chainpay.to",
"CHAINPAY_API_KEY": "your_api_key",
"CHAINPAY_API_SECRET": "your_api_secret_plaintext"
}
}
}
}Cursor
编辑 ~/.cursor/mcp.json:
{
"mcpServers": {
"chainpay": {
"command": "npx",
"args": ["-y", "@chainpayto/mcp-server"],
"env": {
"CHAINPAY_API_KEY": "your_api_key",
"CHAINPAY_API_SECRET": "your_api_secret_plaintext"
}
}
}
}全局安装(可选)
如果不想每次都用 npx,可以全局安装:
npm install -g @chainpayto/mcp-server安装后配置中将 "command": "npx", "args": ["-y", "@chainpayto/mcp-server"] 改为:
{
"command": "chainpay-mcp",
"args": []
}环境变量
变量名 | 必填 | 说明 | 默认值 |
| ✅ | 商户 API Key | — |
| ✅ | API Secret 明文(不是哈希) | — |
| 可选 | API 地址(私有部署时修改) |
|
使用示例
配置完成后,在 AI 对话中直接说:
"帮我创建一个 50 USDT 的 TRON 链支付订单,订单号 ORDER-001"
"查询一下 CP20260418163248523136 订单的状态"
"我的账户余额是多少?"
"帮我把 100 USDT (BSC) 提现到绑定的地址"
技术要求
Node.js >= 18
无其他系统依赖,
npx自动处理
链接
License
MIT
Available Tools
6 toolschainpay_create_orderA
Create a new cryptocurrency payment order. Returns a payment URL and wallet address for the payer. Supported chains: TRON / BSC / POLYGON. Call chainpay_get_supported_chains first to check minimum amounts.
Inputs: merchant_order_no (required), chain (required), token (required), amount (required), +2 more.
chainpay_create_withdrawalA
Submit a withdrawal request to transfer funds to the merchant's bound withdrawal address. Requires a withdrawal address to be configured in the merchant dashboard. May require admin approval.
Inputs: amount (required), chainId (required), tokenSymbol (required).
chainpay_get_balanceA
Get the merchant account balance including total balance, frozen amount, and available balance.
Inputs: no named parameters.
chainpay_get_orderA
Get details and current status of a specific payment order.
Inputs: order_no (required).
chainpay_get_supported_chainsA
Get all blockchain networks and tokens supported by ChainPay, including fee rates and minimum amounts. Call this before creating orders to get valid chain/token values.
Inputs: no named parameters.
chainpay_list_ordersA
List payment orders with pagination and optional status filter.
Inputs: page, pageSize, status.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
All tools have unique purposes with no overlap. Creating orders, creating withdrawals, checking balance, retrieving orders, listing orders, and fetching supported chains are all distinct operations.
All tools follow a consistent 'chainpay_verb_noun' pattern (e.g., create_order, get_balance, list_orders), with uniform snake_case naming.
Six tools is well-scoped for a cryptocurrency payment server, covering order management, withdrawal, balance, and chain info without being excessive.
Covers core order lifecycle (create, get, list) and balance/chain info, but lacks a tool to get withdrawal status or list withdrawals, which is a minor gap.
Maintenance
Related MCP Connectors
Crypto payments for AI agents: self-serve account, invoices, receiving, payouts, exchange.
Let AI agents add Yolfi crypto checkout, paylinks, webhooks, and status checks.
Non-custodial crypto payments for AI assistants: balances, payments, and create payment links.
Crypto pay links and API for people and AI agents. BTC, Lightning, USDC, USDT, EURC, SOL, ETH.
Related MCP Servers
AlicenseAqualityCmaintenanceEnables AI assistants to securely interact with Payre's Web3 payment gateway for generating crypto checkout invoices, monitoring settlements, managing payout destinations, and inspecting analytics.18MIT
cryptunnel-mcpofficial
AlicenseAqualityCmaintenanceEnables coding agents to create and look up crypto payments over stdio, returning checkout links, payment statuses, paged payment lists, and receivable currencies, with real payments gated behind an explicit opt-in environment flag.4MIT- FlicenseNot gradedqualityAmaintenanceEnables AI coding agents to set up crypto checkout integration by registering workspaces, creating paylinks and public payment invoices, configuring webhook endpoints, verifying webhook signatures, and checking stablecoin payment status.-
- FlicenseNot gradedqualityAmaintenanceLets AI coding agents integrate crypto checkout, payment links, payment status checks, and webhook-based entitlements into applications.-