Paid MCP tools for AI agents
One MCP server gives an agent the whole Agent402 catalog: search it, read a tool's price and input schema, and call it. Pure-CPU tools are free through proof-of-work; the rest are paid per call.
Add it
The hosted connector, in Claude Code:
claude mcp add --transport http agent402 https://agent402.tools/mcpIn Cursor's mcp.json:
{ "mcpServers": { "agent402": { "url": "https://agent402.tools/mcp" } } }The local server pays from a wallet you give it. Use a new wallet holding a few dollars of USDC, never your main wallet:
claude mcp add agent402 -s user -e AGENT_KEY=0xYOUR_FUNDED_KEY -- npx -y agent402-mcp@0.17.0No wallet yet? Fund a first one with USDC on Base, no ETH needed, or run npx -y agent402-mcp@0.17.0 wallet new to make one on this computer: it stores the key and prints the address and the config, never the key.
What the agent sees
catalog.search, catalog.find and catalog.call reach every tool by task or slug, and payment.info says how to pay. Common tools also have their own names: web.search, web.answer, web.news, browser.render, audio.transcribe, memory.read, memory.write, decide.plan, decide.execute.
How a paid tool is paid
A wallet-only tool is payable in the call on the hosted connector, over x402 (the first ask is a tool result whose first text block is the x402 PaymentRequired as JSON; an x402 MCP client signs one of its accepts and calls again with the payment in _meta["x402/payment"], and the settle receipt returns in _meta["x402/payment-response"]), or over MPP (the challenges ride in _meta["org.paymentauth/payment-required"]; an mppx MCP client pays and calls again with the credential in _meta["org.paymentauth/credential"]), at the price the HTTP route quotes. A free tool at its rate limit answers with its x402 offer too, so a call that pays is served past the limit. A long-running tool (a report product, or any run that can outlast the connector's blocking wait) is the exception over x402: pay it in the call over MPP, where the run is handed back as an MCP task, or call its HTTP route with Prefer: respond-async.