
X402 Mcp
io.github.x402node由 GitHub 账号 x402node 发布v1.0.4更新于 Oct 24, 2026
Hundreds of x402-paid APIs as MCP tools, auto-discovered from Coinbase Bazaar. USDC on Base+Solana.
概览
本地 MCP 服务器,将从 Coinbase Bazaar 自动发现的数百个 x402 付费 API 转为工具,并按次以 Base 或 Solana 上的 USDC 付款。
- 可以做什么
- 从 CDP Bazaar 自动发现 x402 付费 API 端点,读取描述、schema 和价格等元数据,并定期刷新,无需重启(首次运行约 117 个工具)。将这些端点作为工具调用,由服务器处理 HTTP 402 支付流程,并在 Base 或 Solana 上结算 USDC。按单次调用价格上限拦截超限调用。
- 适用场景
- 当你希望助手无需逐个配置即可访问大量按次付费 API,并且愿意用专用钱包为每次工具调用支付少量 USDC 时使用。
- 运行要求
- 通过 stdio 在本地运行,通常用 npx 和 Node.js 启动。需要环境变量 X402_PRIVATE_KEY:以 0x 开头的 Base EOA 私钥,且该地址在 Base 主网持有 USDC(也支持 Solana 上的 SPL USDC)。需要访问 Bazaar 和支付结算方的网络。可选 MAX_PRICE_USD 限制单次调用价格。
安装
在 SourceWeft 中
- 打开 控制台中的 X402 Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
x402-mcp
MCP server bringing hundreds of x402-paid APIs to AI agents (Claude, Cursor, MCP-aware clients). Auto-discovers tools from CDP Bazaar; handles USDC micropayments on Base + Solana.
Features
- Auto-discovers x402 endpoints from CDP Bazaar (no hard-coded list)
- Reads metadata directly from Bazaar (description, schema, pricing)
- Refreshes every 5 min — new endpoints appear without restart
- Handles HTTP 402 + USDC payment automatically
- Multi-chain: Base + Solana mainnet live (USDC on both); Polygon/BNB/EVM expandable
Install (Claude Desktop)
Add to claude_desktop_config.json:
Set X402_PRIVATE_KEY to a Base EOA private key (hex, 0x-prefixed) with USDC on Base mainnet (Solana payment via SPL USDC also supported). Restart Claude Desktop. The server auto-discovers ~117 tools on first run.
Cost Safety
- Each tool call costs $0.0001-$0.10 USDC depending on endpoint
- Hard cap:
MAX_PRICE_USDenv var (default $0.10/call); calls above are blocked - Use a fresh burner wallet, not your main wallet
How it works
Agent calls tool -> HTTP 402 -> x402-fetch signs EIP-3009 -> CDP Facilitator settles on Base or Solana -> response returned. Buyer pays no gas.
Development
Links
- x402 protocol: https://x402.org
- CDP Bazaar: https://docs.cdp.coinbase.com/x402/bazaar
- MCP: https://modelcontextprotocol.io
- npm: https://www.npmjs.com/package/x402node-mcp
- Glama: https://glama.ai/mcp/servers/x402node/x402-mcp
License
MIT
来源:README.md,提交 e5cd11c
工具
0版本历史
1- v1.0.4最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分