
Coinbase商务
STDIO通过Coinbase Commerce API生成加密货币支付链接的服务
通过Coinbase Commerce API生成加密货币支付链接的服务
This is a Model Context Protocol (MCP) server that connects to the Coinbase Commerce API, allowing AI assistants like Claude to generate cryptocurrency payment links.
Clone this repository:
git clone https://github.com/zhangzhongnan928/mcp-coinbase-commerce.git cd mcp-coinbase-commerce
Install dependencies:
npm install
Copy .env.example
to .env
and add your Coinbase Commerce API key:
cp .env.example .env # Edit .env file with your API key
Build the project:
npm run build
Start the server:
npm start
Once the server is running, you can connect it to Claude for Desktop:
claude_desktop_config.json
{ "mcpServers": { "coinbase-commerce": { "command": "node", "args": ["/path/to/mcp-coinbase-commerce/dist/index.js"], "env": { "COINBASE_COMMERCE_API_KEY": "your_api_key_here" } } } }
Once connected, you can ask Claude to generate payment links:
Claude will use the appropriate tools to fulfill these requests, generating payment links you can share with customers.
create-charge
Generates a new payment link with the following parameters:
name
: Name of the payment/productdescription
: Description of what the payment is foramount
: Payment amount (e.g., "10.00")currency
: Currency code (e.g., "USD", "EUR", "BTC")redirectUrl
(optional): URL to redirect after payment completesget-charge
Retrieves information about an existing charge using:
chargeId
: ID of the charge to retrieveTo run the server in development mode:
npm run dev
You can test the server using the MCP Inspector:
npx @modelcontextprotocol/inspector node dist/index.js
MIT