What a seller-side HTTP 402 + MCP paywall looks like
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 /…
We haven't written up this one. Dev.to has the full story — the link below goes straight to it.