x402 Protocol
The open HTTP 402 standard for stablecoin payments, created by Coinbase
production: Protocol v2; the @x402/* reference packages were at 2.28.0 in September 2026.
- Rank
- 2 of 14
- Composite score
- 8.6 / 10
- Schemes
- x402
- Role
- Pays 402 challenges; Charges with 402
- Kind
- protocol
- Maturity
- production
- Protocol / rail
- EVM / Base / Solana (USDC)
- Assets
- USDC, ERC-20, SPL
- Networks
- base, evm, solana
- Custody model
- Self-Custodial (EVM / Solana keypair)
- Node management
- Not required
- MCP native
- No
- License
- Apache-2.0
- Last verified
- 2026-10-15
Overview
x402 turns HTTP 402 into a payment challenge for on-chain stablecoins. In v2 the server answers with a base64-encoded PAYMENT-REQUIRED header listing accepted options — scheme, CAIP-2 network, amount in atomic units, asset and pay-to address; the client signs a payload and retries with PAYMENT-SIGNATURE, and the server reports settlement in PAYMENT-RESPONSE. v1 carried the requirements in the response body and used X-PAYMENT. Coinbase Developer Platform created the standard and publishes it as an open Apache-2.0 protocol under the x402-foundation organisation, with reference implementations in TypeScript, Python and Go; Base and Solana are supported on mainnet and testnet. It has the broadest ecosystem of any 402 scheme. The structural trade-off is settlement: payments clear at block speed with on-chain costs, so genuine sub-cent micropayments are less natural than on Lightning.
Key advantages
- Open protocol (Apache-2.0) with TypeScript, Python and Go reference implementations
- Stable USD unit of account — a natural fit for dollar-denominated budgets
- Any ERC-20 on Base and any SPL or Token-2022 token on Solana
- Many facilitators charge no facilitator fee
- The broadest ecosystem of any 402 scheme
Trade-offs
- Settlement is block-bound, so sub-cent payments are less natural than on Lightning
- v1 and v2 use different headers (X-PAYMENT vs PAYMENT-SIGNATURE); clients must read x402Version to pick the right one
- The protocol ships no MCP server itself — MCP support comes from ecosystem packages
Evaluation matrix
- Custody & Sovereignty9.0
Self-custodial with exit guarantees vs. centralized/custodial risk. A 10 means the holder keeps their own keys and can unilaterally exit to the base chain; a custodial platform scores around 4.
- Operational Friction8.5
Infrastructure burden. Zero nodes, channels or liquidity to manage scores a 10; running and maintaining your own Lightning node scores around 4–5.
- Agent Native Support8.0
Out-of-the-box MCP server integration, typed tool calls and LLM-friendly setup. A first-party MCP server scores 9–10; a library or CLI an agent can drive scores 6–8.
- Payment Rails & Assets9.0
Breadth of settlement rails and assets: Lightning for true micropayments, stablecoins for a stable unit of account, cards for mainstream reach. A single asset on a single network scores around 7.
- Settlement Speed & Fees8.0
Instant sub-second settlement with near-zero overhead scores a 10. Block-bound settlement scores around 8; card-network settlement and fees score lower.
- Developer DX9.0
SDK quality, documentation, maintenance and copy-paste integration speed. Alpha-stage API churn, stale releases or inconsistent docs lower the score.
Why these scores. Custody 9: the payer signs with their own keys. Friction 8.5: no node, but a facilitator and funded wallet are needed. Agent 8: no MCP server in the protocol itself; strong ecosystem MCP support. Rails 9: any ERC-20 on Base and SPL tokens on Solana. Settlement 8: block-bound but fast on Base and Solana. DX 9: mature multi-language SDKs.
Integration
npm install @x402/fetchnpm install @x402/express{
"x402Version": 2,
"accepts": [
{
"scheme": "exact",
"network": "eip155:8453",
"amount": "10000",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"payTo": "0xYourReceivingAddress",
"maxTimeoutSeconds": 60
}
]
}Best for
Services and agents that want dollar-denominated payments with a stable unit of account and the widest ecosystem support.
Sources
Every claim on this page was checked against these sources on 2026-10-15. Maturity “production” means: the vendor describes it as used or supported in production.
Machine-readable
curl "https://402mcp.org/api/v1/solutions?id=x402-protocol&view=full"curl -H 'Accept: text/markdown' https://402mcp.org/solutions/x402-protocolOther indexed solutions
- Lightning Labs WavelengthL402 / Lightning / Ark · rank 1 · 9.4
- Alby MCP ServerBitcoin / Lightning (NWC, L402) · rank 3 · 8.3
- Cloudflare Agents SDK (x402)x402 (USDC on Base) · rank 4 · 8.3
- Coinbase Payments MCPx402 (USDC on Base) · rank 5 · 8.3
- Machine Payments Protocol (MPP)Multi-method: Tempo, Stripe, Lightning, EVM, Solana and more · rank 6 · 8.3
- thirdweb x402x402 on 170+ EVM chains · rank 7 · 8.1
- PayAI Networkx402 on Solana and EVM networks · rank 8 · 8.0
- x402-mcp (Vercel)x402 (USDC on Base) for MCP servers · rank 9 · 7.8
- Crossmint Agent WalletsEVM (USDC on Base) · rank 10 · 7.8
- Stripe Machine PaymentsMPP (cards, stablecoins) and x402 (USDC) · rank 11 · 7.7
- lngetBitcoin / Lightning (L402) · rank 12 · 7.5
- ApertureBitcoin / Lightning (L402, MPP) · rank 13 · 7.1
- FewsatsBitcoin / Lightning (L402) · rank 14 · 7.1
Compare all 14 on the leaderboard, or read the scoring methodology.