{
  "id": 15541966,
  "title": "I put an MCP server behind HTTP 402. Here's the exact setup.",
  "url": "https://urgent.news/2026/10/19/i-put-an-mcp-server-behind-http-402-heres-the-exact-setup",
  "topic": "finance",
  "section": "Finance & Markets",
  "published": "2026-10-19T02:24:08.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/johnnyko/i-put-an-mcp-server-behind-http-402-heres-the-exact-setup-2094"
  },
  "original_language": "en",
  "account": "An AI researcher built a simple, pay-per-query knowledge base on the Base blockchain, using the Coinbase MCP package. Each paid tool costs $0.005 per call, paid in USDC on Base. The server was built using the @x402/mcp package, the standard MCP server with StreamableHTTP transport via Express. A facilitator on PayAI's public Base mainnet handles the payment flow, verifying signatures and submitting USDC transfers on-chain. The end-to-end settlement was measured on the Sepolia testnet and confirmed on the Base mainnet. The server runs on a Google Cloud e2-micro free-tier VM and costs nearly nothing to operate. The researcher believes that real demand for micro-payments will come from businesses whose APIs are currently being scraped for free.",
  "summary": "AI agents are hitting APIs thousands of times a day and paying nothing. I wanted to know if the \"pay per call\" story is real or slideware, so I built the smallest possible version: my own knowledge base, sold per query, settled on-chain. It works. Here's everything, including the transaction. What it is Five MCP tools wrapping things I actually know — ComfyUI API-prompt fixes, node wiring…",
  "key_points": [
    "AI researcher builds pay-per-query knowledge base on Base blockchain",
    "@x402/mcp package with StreamableHTTP transport via Express used",
    "Server runs on Google Cloud e2-micro free-tier VM"
  ],
  "editors_take": "Integrating blockchain payments directly into model context protocol servers offers a low-cost defense against free scraping by forcing users to pay per query via on-chain micro-transactions.",
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}