MCP Billing Gateway is a hosted billing proxy deployed between AI agents and your MCP server. It automatically handles payment verification, usage tracking, and plan enforcement. You only need to register your server, set up pricing plans, and point callers to the proxy URL, without writing any billing code.
Key capabilities include:
- Pay-per-call: Charge callers per tool call, supporting fiat or cryptocurrency.
- Subscriptions: Support Stripe monthly/yearly plans with call limits.
- Tiered pricing: Set up a free tier and usage-based paid tiers.
- x402 micropayments: Accept Base chain USDC payments from AI agents without API keys.
- Operator dashboard: Track revenue, usage, and callers in real time.
- MCP transport: Provide a full Streamable HTTP MCP transport at the /mcp/ endpoint.
How to use:
- Register as an operator and get an API key.
- Register your MCP server URL and pricing plan.
- Point callers to your proxy identifier:https://mcp-billing-gateway-production.up.railway.app/proxy/{your-slug}/mcp
- Callers pay via Stripe API key or x402 USDC, and the billing process is handled transparently.
Configuration example (Claude Desktop): Add the configuration to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows).
Configuration example (Cursor): Add the configuration to .cursor/mcp.json in your project. After adding the configuration, restart the editor to activate the MCP server. The local MCP server provides service discovery, while the full billing functionality runs on the hosted gateway—register as an operator and proxy your MCP server through the gateway.
Operator dashboard URL: https://mcp-billing-gateway-production.up.railway.app/dashboard You can track revenue, usage, and active callers in real time and configure servers in the dashboard.
The gateway is a transparent proxy. Callers interact with your MCP server normally—the gateway intercepts requests, verifies payment, tracks usage, and forwards them to your upstream server.
Self-hosted deployment: You can clone the server repository and deploy it via Docker.
Use cases:
- Operators who want to monetize an existing MCP server.
- Developers who need to provide pay-per-call or subscription-based access for AI agents.
Limitations and information not provided:
- Specific charges, prices, and platform support details are not provided in the materials.
- The project is a client SDK and documentation; the full billing functionality runs on the hosted gateway.