a2a-x402-mcp-services
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., "@a2a-x402-mcp-servicesWhat's the risk score of wallet 0x1234567890abcdef?"
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.
a2a-x402-mcp-services
Production-oriented x402 v2 monetized MCP tools for real agent-to-agent (A2A) commerce.
Authentic on-chain settlement (no mocks, no simulated payments)
Fully compliant with the current x402 v2 specification (CAIP-2 networks,
PAYMENT-REQUIRED/PAYMENT-SIGNATURE/PAYMENT-RESPONSEheaders,x402Version: 2, exact scheme)Official
@x402/mcp+@x402/core+@x402/evmpackagesBazaar-ready (tools are discoverable via facilitators that implement the Bazaar extension)
Built against the live ecosystem gaps: operational utilities agents actually re-purchase
Current Paid Tools
Tool | Price | Purpose |
| $0.02 | Score an EVM wallet for A2A counterparty risk (0-100 + recommendation) |
| $0.01 | Turn messy agent workflow JSON into a strict deterministic schema |
| $0.005 | Return production facilitators that support requested CAIP-2 networks + Bazaar |
All tools use the exact payment scheme and settle through a real facilitator.
Related MCP server: Agent Commerce Suite
x402 v2 Compliance Checklist
x402Version: 2CAIP-2 network identifiers (
eip155:84532Base Sepolia default,eip155:8453for mainnet)Official headers (
PAYMENT-REQUIRED,PAYMENT-SIGNATURE,PAYMENT-RESPONSE)Exact scheme via
@x402/evm/exactFacilitator-based verify + settle (never self-settled in process)
Bazaar extension metadata for MCP tool discovery
Environment-driven
payToaddress (no hard-coded production wallets)
Quick Start (Testnet)
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 devHealth check (free):
curl http://localhost:4022/healthTool catalog (free):
curl http://localhost:4022/toolsMCP endpoint (paid):
POST http://localhost:4022/mcpUse any x402 v2-aware MCP client (@x402/mcp client helpers, CDP-managed wallets, etc.). The first call to a paid tool will receive a proper 402; the client signs and retries with PAYMENT-SIGNATURE; the facilitator settles; the tool result is returned.
Moving to Mainnet
Set a mainnet receiving address:
export X402_PAY_TO_EVM=0xYourMainnetAddressSwitch network:
export X402_NETWORK=eip155:8453Use a production facilitator (example – CDP):
export X402_FACILITATOR_URL=https://api.cdp.coinbase.com/platform/v2/x402(Supply CDP credentials if the chosen facilitator requires them.)
Start the server. Real USDC will move.
Never run mainnet with a hot key that holds more than you are willing to lose.
Architecture
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 transportDesign Principles
No mocks – every paid path ends in a real facilitator settle call.
v2 only – no legacy
X-PAYMENTheaders or v1 network strings.Operational utility – tools solve repeat-purchase agent problems (risk, normalization, facilitator selection).
Discoverable – Bazaar metadata is present so agents can find the tools without hard-coding URLs.
Operator safety – receiving address and network come exclusively from environment variables.
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Policy-gated MCP treasury for AI agents — x402 subscribe, 50+ tools, multi-chain.
Metered MCP tools: free discovery over MCP; per-call execution settled in USDC via x402 v2.
x402 MCP for agents: crypto prices, funding, DeFi yields, Polymarket, Base RPC + MCP security.
Paid token risk and security intelligence for AI agents over MCP with x402 payments.
Related MCP Servers
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.82MIT
- AlicenseNot gradedqualityCmaintenanceEnables 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
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to discover and pay for MCP tools on a sub-cent, pay-per-call basis using x402 and Algorand USDC settlements.4MIT