x402 vs MCP: the difference and how they work together
A clear architecture guide to what MCP standardizes, what x402 adds, and where payment belongs in a tool call.
DIRECT ANSWER
MCP and x402 solve different layers of an agent workflow. MCP standardizes how an AI application discovers and invokes tools, resources and prompts. x402 standardizes how an HTTP client receives payment requirements, authorizes a payment and retries a protected request. Used together, MCP describes the capability while x402 handles payment for the underlying HTTP resource or tool call.
Key takeaways
- MCP is a context and tool protocol; it does not define a currency, wallet or settlement rail.
- x402 is an HTTP payment protocol; it does not define how a model discovers tools or chooses one.
- A working paid-tool design must identify which component owns MCP transport, payment policy and the wallet signer.
What is the simplest difference between x402 and MCP?
MCP gives an AI application a standard way to connect to servers and work with named tools, resources and prompts. The host creates a client connection, lists capabilities and sends structured calls. The protocol explains the shape of that interaction, including tool names, input schemas and results, but it does not tell the parties how to charge for a call.
x402 starts at a different boundary: an HTTP client asks for a protected resource and the server responds with payment requirements. The client selects an allowed option, signs a payment payload and retries. x402 can protect an ordinary API, file, model endpoint or MCP tool. It does not require a language model and does not replace MCP's discovery and invocation model.
| Question | MCP | x402 |
|---|---|---|
| What is available? | Tools, resources and prompts | Paid HTTP resources and accepted requirements |
| How is it invoked? | JSON-RPC over an MCP transport | HTTP request, 402 challenge and paid retry |
| What is authorized? | Connection and tool access | A specific payment under buyer policy |
| What is returned? | MCP content or structured result | Protected resource plus settlement response |
Where does the payment boundary sit?
Payment belongs at an HTTP boundary that can return a real 402 response before expensive work executes. In a remote MCP deployment, that may be the Streamable HTTP route serving a paid tool. In another design, a local MCP bridge exposes a normal tool to the host and then calls a separate x402-protected API. Both can work, but they put the signer and failure modes in different places.
Write the boundary down before choosing packages. Identify the MCP host, MCP client, MCP server, x402 client, resource server, facilitator and signer. Several of those roles may run in one process, but naming them prevents a common mistake: assuming that a standard MCP client automatically knows how to interpret a payment challenge or that an x402 wrapper automatically exposes a valid MCP tool schema.
Two valid architectures for paid MCP tools
The bridge architecture keeps payment behind a local or controlled MCP server. The AI host calls a familiar MCP tool; bridge code uses an x402-aware HTTP wrapper and a wallet signer to purchase a remote API result. This is close to the official MCP-with-x402 example and works when the paid product is already an HTTP API or when the host cannot directly pay a remote MCP route.
The paid-server architecture protects a remote MCP tool or route directly. The seller wraps execution with x402 payment requirements and publishes enough metadata for buyers to understand the tool. This reduces the extra bridge layer, but only clients or gateways that implement both the MCP transport and x402 payment behavior can complete the call. A plain MCP connection may see a failure without knowing how to pay.
- Use a bridge when payment support belongs in the buyer's controlled environment.
- Use a paid remote route when compatible buyers can handle the 402 exchange directly.
- Keep tool discovery free enough that an agent can evaluate a capability before spending.
What does a standard MCP client know about payment?
A conforming MCP client understands lifecycle negotiation, server capabilities and protocol messages such as tools/list and tools/call. Remote transport can use normal HTTP authentication, and the MCP authorization specification defines OAuth-based access for protected servers. None of that creates an x402 wallet, registers payment schemes or establishes a spend budget.
Payment support therefore has to be implemented by the host, a client extension, a local bridge or a gateway. The component should parse the server's requirements outside the model, compare them with deterministic policy and invoke a signer kept outside prompts and tool arguments. Calling the result an 'MCP wallet' hides this separation and makes security reviews harder.
How do MCP discovery and x402 discovery differ?
MCP discovery usually begins after a client connects to a known server. The client asks that server to list tools and receives names, descriptions and JSON Schemas. x402 Bazaar discovery works across paid resources: sellers publish payment and capability metadata so buyers can find resources without already knowing every endpoint. The official x402 extension can describe MCP tools as a discoverable resource type.
The two layers complement each other. Bazaar can help an agent or directory identify a paid capability and its payment contract; MCP can then provide the live tool interface and execution result. Sellers should keep the two descriptions aligned. A stale Bazaar record pointing to a renamed MCP tool is not a harmless marketing error—it breaks automated selection and may send buyers to the wrong route.
When should a product use both protocols?
Use both when a capability benefits from model-friendly discovery and invocation while each call also needs accountless, programmatic payment. Examples include live data retrieval, expensive inference, document processing and specialist research that agents may purchase from providers they have not onboarded with in advance. MCP makes the capability legible; x402 makes the purchase executable.
Do not add both layers by default. A known application calling one fixed endpoint may only need x402. A private enterprise tool funded through an existing contract may only need MCP plus OAuth. Each protocol adds configuration, compatibility and observability requirements. The combination earns its keep when dynamic tool use and runtime payment are both real product needs.
Common x402 and MCP terminology mistakes
The phrase 'MCP accepts currency' is convenient but imprecise. An MCP server exposes capabilities; an HTTP resource or payment wrapper accepts a token under an x402 scheme. Likewise, paying for an MCP call does not authenticate a named employee, grant a business role or prove that the returned data is correct. Payment, identity, authorization and product quality are separate claims.
Another mistake is treating every product with MCP in its description as a remote paid MCP server. Some are buyer-side bridges, SDKs, gateways, templates or discovery servers. A directory should classify what actually runs, where the wallet lives and which exact route produces a 402. Clear labels matter because connection instructions and risk controls differ by architecture.
- Say 'x402-protected MCP tool' when the tool call itself is payment-gated.
- Say 'MCP bridge for x402 APIs' when a local server buys remote HTTP resources.
- Reserve 'verified' for evidence that matches the claimed transport and payment path.
An implementation decision checklist
Start with the user journey: how the agent discovers the capability, sees its price, decides to call it and receives a useful result. Then assign each protocol role to a component. Confirm transport support, define payment policy outside the model and choose whether authentication is also required. Publish a safe read-only example that can be tested without guessing hidden fields.
Before launch, observe the layers separately. Log MCP connection and tool errors, the unpaid 402 requirement, policy decisions, settlement outcomes and output validation. Run one controlled paid call from the documented buyer path. A successful MCP handshake does not prove payment works, and a settled payment does not prove the MCP result is useful.
Related directory entries
Sources and methodology
TOLL·402 distinguishes public claims, registry discovery, unpaid quote checks and settled paid-call verification. Sources below support the visible claims; presence in a registry is not treated as verification.
- MCP architecture overview — Official host, client, server, transport and primitive boundaries.
- x402 client and server roles — Official payment requirement, signing, retry and settlement responsibilities.
- Official MCP server with x402 guide — Current bridge example and Bazaar metadata path for MCP tools.