How to monetize an MCP server: per-call payments with x402

The way to monetize an MCP server without subscriptions, API keys, or accounts is per-call x402 billing: your server answers each unpaid tool call with a 402 Payment Required challenge carrying price, asset, network, and payTo address; the agent's wallet signs the payment authorization, retries the same call, and a facilitator settles it on-chain. ScriptMasterLabs runs this model live on Base today — the receipts below are a working machine-readable payment manifest and a live MCP server handshake you can inspect yourself, not screenshots.

Live receipt #1 — the x402 payment manifest. curl https://squeezeos-api.onrender.com/.well-known/x402 returns a live machine-readable contract: operator SCRIPTMASTERLABS, network eip155:8453 (Base), asset USDC (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913), payTo 0xc29185fa176357612f3194735753e520e91adc46, facilitator https://api.cdp.coinbase.com/platform/v2/x402, challenge header PAYMENT-REQUIRED, MCP endpoint https://squeezeos-api.onrender.com/mcp, identity registered on the ERC-8004 agent registry (agent id 74033, status registered). (Verified live September 22, 2026.)
Live receipt #2 — a live MCP server handshake. A JSON-RPC initialize POST to https://mcp-x402.onrender.com/mcp answers with serverInfo: {"name": "mcp-x402", "version": "2.1.11"} and tool capabilities live — the server SML bills x402 on is up and talking MCP right now. (Verified live September 22, 2026.)

Honesty note. SML's marketplace paid reads are currently quarantined (status PARTIAL_REOPEN_PROVIDER_LISTING_ONLY, verified live September 22, 2026) — the live billable line is the one-time 0.01 USDC provider listing fee on Base. SML publishes no revenue figures, and this page claims none. What we can prove is the infrastructure: the manifest, the headers, the handshake.

What the current top answers get wrong

Top answerWhat it lacks
dev.to — "How to Monetize MCP Servers in 2026" (AgenticMarket, reviewed March 2026)Vendor pitch: proprietary x-agenticmarket-secret header plus marketplace listing, 10–20% platform cut. No live payment proof, no on-chain receipt, no auditable code, no per-call price examples. March 2026 — six months old.
dev.to — "Payment Links, Guardrails, and Scoped Tokens" (self-reported "61 servers")Stripe payment links with $19/mo and $99/mo subscriptions. No live demo, no verified revenue, billing shaped for human checkout — not agent-native. Agents don't type card numbers.
xpay.sh/monetize-mcp-serverProxy landing page with an ARR calculator. "95% revenue share" marketing, no auditable code, no live endpoint receipt, no dates on any claim. The calculator multiplies assumptions, not transactions.

Put the meter on your server (seller DIY)

  1. Know what a 402 challenge must carry. Price, asset, network, payTo, expiry, and resource binding — terms the buyer can verify before signing. Receiving a challenge always costs the caller nothing.
  2. Challenge inside your tool handler. On tools/call without a payment credential, return the payment terms: as JSON-RPC error data on the MCP transport, or as 402 with a PAYMENT-REQUIRED header/body on HTTP. Verify the buyer's signature through a facilitator (live example from our manifest: https://api.cdp.coinbase.com/platform/v2/x402), settle on-chain, run the tool, return the result with a PAYMENT-RESPONSE receipt.
  3. Zero-code alternative: a proxy wrapper. Services like xpay.sh or ag402 paste in front of your server: you set per-tool prices, agents get a monetized proxy URL, you change zero code. The tradeoff is real: the proxy holds your upstream credentials, takes a cut, and you cannot audit what you cannot see. For production tools, own the challenge handler.
  4. Price from the live market. SML's provider listing is a one-time 0.01 USDC on Base (verified live tonight). ProBlocks runs a live x402 demo endpoint at 0.001 USDC per call on Base (September 2026). Price per call by cost (compute), usage (tokens, bytes, seconds), or outcome — the protocol sets no price, each seller does.
  5. Get discovered where agents look. Coinbase's Bazaar catalogue; the SML Provider Marketplace (one-time 0.01 USDC x402 listing; discovery is free).

Pay for tools as an agent or script (buyer DIY)

  1. Inspect terms free. curl https://squeezeos-api.onrender.com/.well-known/x402 — the manifest costs nothing to read, and neither does receiving a 402 challenge.
  2. Verify before you sign. Price, asset, network, recipient, expiry, resource binding. Cap amounts; restrict destinations.
  3. Keep the PAYMENT-RESPONSE receipt. Settlement proves value moved on-chain — it does not prove the tool returned correct, complete data. Verify delivery separately.

Where ScriptMasterLabs fits

Sources

Frequently Asked Questions

Q: How do MCP servers charge per call?

A: With x402 per-call billing: the server answers each unpaid tool call with a 402 Payment Required challenge carrying price, asset, network, payTo address, and expiry. The agent's wallet signs the authorization and retries the same call; a facilitator settles on-chain and the server returns the tool result with a receipt.

Q: Do I need Stripe or user accounts to monetize an MCP server?

A: No. x402 billing is account-free — no API keys, no subscriptions, no checkout pages. Stripe-based approaches (payment links, $19/mo tiers) work for humans but force agents through human-shaped checkout; per-call x402 pricing is built for machine buyers.

Q: What does a 402 payment challenge contain?

A: Price, asset, network, payTo address, expiry, and resource binding. On HTTP transports it travels in a PAYMENT-REQUIRED header or the 402 body; the buyer answers with a PAYMENT-SIGNATURE header and keeps the PAYMENT-RESPONSE receipt.

Q: How do AI agents pay without holding gas tokens?

A: A facilitator verifies the signed payment authorization, broadcasts the transaction, and pays the network fee — the agent only signs. SML's live manifest points at the Coinbase CDP facilitator; Circle's Facilitator Service (September 2026) does the same for USDC across Arc, Base, and Polygon PoS.

SCRIPTMASTERLABS · Truth First. Proof Always. Pay Only for Accepted Delivery.