a2a-x402-mcp-services
a2a-x402-mcp-services
面向生产的 x402 v2 收费 MCP 工具,用于真实的代理到代理(A2A)商业交易。
真实的链上结算(无模拟,无模拟支付)
完全符合当前 x402 v2 规范(CAIP-2 网络、
PAYMENT-REQUIRED/PAYMENT-SIGNATURE/PAYMENT-RESPONSE请求头、x402Version: 2、精确支付方案)官方
@x402/mcp+@x402/core+@x402/evm包Bazaar 就绪(工具可通过实现了 Bazaar 扩展的协调服务商被发现)
针对现有的生态缺口构建:代理实际会反复购买的操作型工具
当前付费工具
工具 | 价格 | 用途 |
| $0.02 | 对 EVM 钱包进行 A2A 对手方风险评分(0-100 + 建议) |
| $0.01 | 将杂乱的代理工作流 JSON 转换为严格的确定性 schema |
| $0.005 | 返回支持所请求 CAIP-2 网络 + Bazaar 的生产级协调服务商 |
所有工具都使用精确的支付方案,并通过真实的协调服务商完成结算。
Related MCP server: fabler-x402-tools
x402 v2 合规清单
x402Version: 2CAIP-2 网络标识符(默认
eip155:84532Base Sepolia,主网eip155:8453)官方请求头(
PAYMENT-REQUIRED、PAYMENT-SIGNATURE、PAYMENT-RESPONSE)通过
@x402/evm/exact实现精确的支付方案基于协调服务商的验证和结算(绝不在进程内自行结算)
为 MCP 工具发现提供 Bazaar 扩展元数据
由环境变量驱动的
payTo地址(不硬编码生产钱包)
快速开始(测试网)
git clone https://github.com/Disseveru/a2a-x402-mcp-services.git
cd a2a-x402-mcp-services
npm install
# Required: receiving wallet (Base Sepolia)
export X402_PAY_TO_EVM=0xYourTestnetAddress
# Optional overrides
# export X402_NETWORK=eip155:84532
# export X402_FACILITATOR_URL=https://x402.org/facilitator
# export PORT=4022
npm run dev健康检查(免费):
curl http://localhost:4022/health工具目录(免费):
curl http://localhost:4022/toolsMCP 端点(付费):
POST http://localhost:4022/mcp使用任意支持 x402 v2 的 MCP 客户端(@x402/mcp 客户端辅助函数、CDP 管理的钱包等)。首次调用付费工具时会收到合法的 402 响应;客户端会签名并通过 PAYMENT-SIGNATURE 重试;协调服务商完成结算;然后返回工具结果。
迁移到主网
设置一个主网收款地址:
export X402_PAY_TO_EVM=0xYourMainnetAddress切换网络:
export X402_NETWORK=eip155:8453使用生产协调服务商(示例 – CDP):
export X402_FACILITATOR_URL=https://api.cdp.coinbase.com/platform/v2/x402(如果所选协调服务商需要 CDP 凭据,请提供。)
启动服务器。真实 USDC 将开始流动。
绝不要使用持有多余自身可承受损失资金的热部署运行主网。
架构
src/
config.ts – env-driven CAIP-2 + facilitator + payTo
server.ts – McpServer + official createPaymentWrapper (@x402/mcp)
tools/
definitions.ts – paid tool implementations (real logic)
index.ts – Express host + Streamable HTTP MCP transport设计原则
无模拟 – 每条付费路径最终都会调用真实的协调服务商进行结算。
仅 v2 – 不兼容旧的
X-PAYMENT头部或 v1 网络字符串。操作必要性 – 工具可解决代理反复购买操作过程中遇到的真实问题(风险、规范化、协调服务商选择)。
可发现性 – 带有 Bazaar 元数据,因此代理无需硬编码 URL 就能发现这些工具。
运营商安全 – 收款地址和网络完全通过环境变量指定。
许可证
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityAmaintenanceMCP server exposing x402 Bazaar's paid Base APIs (token risk/honeypot, prices, gas, wallet intel, tx decode + AI utilities) as agent tools. Your agent pays per call in USDC over x402 — no API keys, no signup.17218MIT

fabler-x402-toolsofficial
AlicenseNot gradedqualityBmaintenanceEnables MCP clients to use paid tools for secret scanning, agent-config auditing, and OG image rendering, with payments handled over the x402 protocol on Base.MIT- AlicenseNot gradedqualityBmaintenanceProduction-grade suite of monetized tools for autonomous AI agent-to-agent commerce, enabling payments and task execution via x402 protocol and MCP.223MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to discover, query, and pay for HTTP endpoints and MCP tools using Stellar USDC/SEP-41 stablecoins through a federated P2P bazaar catalog and x402 payment facilitator.Apache 2.0
Related MCP Connectors
Metered MCP tools: free discovery over MCP; per-call execution settled in USDC via x402 v2.
Monetize any MCP server: x402 paywall, pay-per-call billing in USDC on Base, agent marketplace.
Agent x402 Paywall MCP — Coinbase HTTP 402 protocol + on-chain settlement. Agents pay per-call
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Disseveru/a2a-x402-mcp-services'
If you have feedback or need assistance with the MCP directory API, please join our Discord server