cd /news/developer-tools/what-a-seller-side-http-402-mcp-payw… · home topics developer-tools article
[ARTICLE · art-117602] src=dev.to ↗ pub= topic=developer-tools verified=true sentiment=· neutral

What a seller-side HTTP 402 + MCP paywall looks like

A developer has released x402-micro-tollgate, an open-source Express process that acts as both an HTTP 402 reverse proxy and an MCP server, enabling agents to pay per API call without API keys. The tool returns a 402 Payment Required status for unpaid requests and proxies them after settlement, with MCP tools for server info, quotes, and proxied requests.

read1 min views1 publishedSep 1, 2026

I needed agents to pay per call against an existing HTTP API without handing out API keys. x402-micro-tollgate is a thin Express process that is both an HTTP 402 reverse proxy and an MCP server.

Unpaid gated routes (default /v1

) return protocol 402. After settlement, the request is proxied to UPSTREAM_URL. /health

stays free. Same process exposes MCP tools: server_info

(free), get_quote

/ proxy_request

(paid).

Demo (no CDP keys):

curl -i https://x402-micro-tollgate.onrender.com/v1/quote

Self-host:

npx x402-micro-tollgate

Repo: https://github.com/kevin2003050666-coder/x402-micro-tollgate

npm: https://www.npmjs.com/package/x402-micro-tollgate

MCP Registry: io.github.kevin2003050666-coder/x402-micro-tollgate

── more in #developer-tools 4 stories · sorted by recency
── more on @x402-micro-tollgate 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/what-a-seller-side-h…] indexed:0 read:1min 2026-09-01 ·