true402
guide · x402 + MCP

Paid tools,
no API key.

MCP gives an AI agent tools. x402 lets a tool charge per call. Together, an assistant like Claude can find a paid tool, pay a fraction of a cent in USDC and get the answer — with no account, no key and no human in the loop.

§01 · two ways

Where the payment happens.

  • In the MCP protocol. The x402 spec defines an MCP transport: the tool itself asks for payment, and the MCP client pays. Works with a remote MCP server.
  • In a local MCP server. The server runs next to the agent, holds a wallet key, and calls paid HTTP APIs over plain x402 on the agent's behalf. Works with any MCP client today, with nothing special on the client side. true402's MCP server works this way.
§02 · the transport

Pay, then call again.

Under the spec's MCP transport, a paid tool answers an unpaid call with its payment terms, and the client repeats the identical call with a signed payment attached:

x402 over MCP (shape)
// 1. unpaid call
→ tools/call  { "name": "token_safety", "arguments": { "token": "0x…" } }
← result      { "isError": true, "structuredContent": { "x402Version": 2, "accepts": [ … ] } }

// 2. same call, with a signed payment
→ tools/call  { "name": "token_safety", "arguments": { "token": "0x…" },
                "_meta": { "x402/payment": { … signed authorization … } } }
← result      { "content": [ … the answer … ],
                "_meta": { "x402/payment-response": { "success": true, "transaction": "0x…" } } }

If settlement fails after the tool has run, the server must withhold the output — the same "no answer without payment" rule as on HTTP.

§03 · who supports it

The integrations.

  • Coinbase documents MCP client wrappers that pay x402 tools automatically, in TypeScript and Python, and a public MCP endpoint to search its Bazaar catalog of paid APIs. Its Payments MCP gives assistants an embedded wallet with spending limits; it signs in with an email address.
  • Vercel shipped x402-mcp in September 2025: paid tools in an AI SDK MCP server.
  • Cloudflare's Agents SDK can charge for MCP tools with x402.

How agents find paid tools in the first place is the x402 Bazaar.

§04 · use it now

Paid tools in one line.

The true402 MCP server reads our live catalog and turns every paid endpoint into a tool: token rug and honeypot checks on four chains, wallet risk, transaction preflight, web extraction, screenshots, market data and more. It works in Claude Code, Claude Desktop, Cursor and Windsurf.

Claude Code
# Claude Code — every true402 tool, discovered from the live catalog
claude mcp add true402 -- npx -y @true402.dev/mcp-server

# To pay per call: a dedicated Base wallet holding a little USDC (no ETH needed)
WALLET_PRIVATE_KEY=0x…   MAX_PAYMENT_USDC=0.25

Without a wallet it uses the free daily calls and shows each tool's price. With WALLET_PRIVATE_KEY set to a dedicated wallet, it pays per call and refuses any price above MAX_PAYMENT_USDC. Setup and prices: buy.

§05 · questions

Answered for machines.

What is an x402 MCP server?

An MCP server whose tools cost money per call, paid over x402. Either the tool itself answers with x402 payment terms and the MCP client pays (the spec's MCP transport), or a local MCP server wraps paid HTTP APIs and signs the x402 payments for the agent. Both let an AI agent such as Claude call a paid tool with no account or API key.

How does an MCP client pay for a tool with x402?

Under the x402 MCP transport, an unpaid tools/call returns a result marked as an error whose structured content is the payment requirements. The client signs a payment and repeats the same tools/call with the payment in _meta["x402/payment"]; the result comes back with a receipt in _meta["x402/payment-response"]. If settlement fails after the tool ran, the server withholds the output.

Does Coinbase have an x402 MCP integration?

Yes. Coinbase documents MCP client wrappers that pay x402 tools automatically (TypeScript and Python), a public MCP endpoint for searching its Bazaar catalog of paid APIs, and a Payments MCP that gives assistants like Claude an embedded wallet. Vercel (x402-mcp) and Cloudflare (the Agents SDK) also offer ways to charge for MCP tools.

How do I add true402 tools to Claude or Cursor?

Run the true402 MCP server: in Claude Code, claude mcp add true402 -- npx -y @true402.dev/mcp-server. It reads the live catalog and exposes every paid tool — token safety, wallet risk, web extraction, market data and more. Without a wallet it uses the free daily calls and shows each price; with WALLET_PRIVATE_KEY set to a dedicated Base wallet holding USDC, it pays per call, capped by MAX_PAYMENT_USDC ($0.25 by default).