MCP Coinbase Commerce Server

Integrations

  • Manages environment variables for the MCP server, particularly for securely storing the Coinbase Commerce API key.

  • Connects to the Coinbase Commerce API, allowing the generation of cryptocurrency payment links with customizable amount, currency, and description, as well as retrieval of information about existing charges.

  • Provides access to the repository hosting the MCP server code, allowing users to clone and set up the server from the GitHub repository.

MCP Coinbase商务服务器

这是一个连接到 Coinbase Commerce API 的模型上下文协议 (MCP) 服务器,允许像 Claude 这样的 AI 助手生成加密货币支付链接。

特征

  • 生成具有可自定义金额、货币和描述的 Coinbase Commerce 支付链接
  • 检索有关现有费用的信息
  • 安全 API 密钥管理
  • 轻松与 Claude 和其他兼容 MCP 的 AI 助手集成

先决条件

  • Node.js 16.0+
  • Coinbase Commerce 账户
  • Coinbase Commerce API 密钥(在此获取

设置

  1. 克隆此存储库:
    git clone https://github.com/zhangzhongnan928/mcp-coinbase-commerce.git cd mcp-coinbase-commerce
  2. 安装依赖项:
    npm install
  3. .env.example复制到.env并添加您的 Coinbase Commerce API 密钥:
    cp .env.example .env # Edit .env file with your API key
  4. 构建项目:
    npm run build
  5. 启动服务器:
    npm start

与 Claude 桌面版一起使用

服务器运行后,您可以将其连接到 Claude for Desktop:

  1. 打开桌面版 Claude
  2. 点击 Claude 菜单 → 设置 → 开发者
  3. 点击“编辑配置”打开claude_desktop_config.json
  4. 添加 MCP 服务器配置:
{ "mcpServers": { "coinbase-commerce": { "command": "node", "args": ["/path/to/mcp-coinbase-commerce/dist/index.js"], "env": { "COINBASE_COMMERCE_API_KEY": "your_api_key_here" } } } }
  1. 保存文件并重新启动 Claude for Desktop
  2. 您现在应该在聊天界面看到一个锤子图标,表示可用的工具

克劳德的示例提示

连接后,您可以要求 Claude 生成支付链接:

  • “您能为我的项目创建一个 10 美元捐款的支付链接吗?”
  • “为我的咖啡店生成一个 Coinbase Commerce 支付链接,价格为 5.50 美元”
  • “查找费用 ID 93e23c3e-8220-4e6c-9bc3-ea3548339621 的付款状态”

Claude 将使用适当的工具来满足这些请求,生成您可以与客户分享的付款链接。

API 工具

create-charge

使用以下参数生成新的支付链接:

  • name :付款/产品的名称
  • description :付款用途的描述
  • amount :付款金额(例如“10.00”)
  • currency :货币代码(例如“USD”、“EUR”、“BTC”)
  • redirectUrl (可选):付款完成后重定向的 URL

get-charge

使用以下方法检索有关现有费用的信息:

  • chargeId :要检索的费用的 ID

发展

要在开发模式下运行服务器:

npm run dev

使用 MCP Inspector 进行测试

您可以使用MCP 检查器测试服务器:

npx @modelcontextprotocol/inspector node dist/index.js

执照

麻省理工学院

-
security - not tested
F
license - not found
-
quality - not tested

连接到 Coinbase Commerce API,允许像 Claude 这样的 AI 助手生成加密货币支付链接。

  1. Features
    1. Prerequisites
      1. Setup
        1. Usage with Claude for Desktop
          1. Example Prompts for Claude
            1. API Tools
              1. create-charge
              2. get-charge
            2. Development
              1. Testing with MCP Inspector
                1. License
                  ID: p7ysbwvbea