register_operator
Register a new operator account with Stripe Connect onboarding
namerequiredemailrequired
io.github.sapph1rePublished by GitHub account sapph1rev0.1.3Updated Oct 27, 2026
Billing proxy for MCP servers. Adds Stripe and x402 crypto payments without writing billing code.
Hosted billing proxy that lets an assistant register MCP servers, set pricing plans, and track usage and revenue for Stripe or x402 crypto payments.
Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.
Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.
Read https://sourceweft.com/mcp/io.github.sapph1re%2Fmcp-billing-gateway/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.Add this to your client's mcpServers config.
{
"mcpServers": {
"billing-gateway": {
"type": "http",
"url": "https://mcp-billing-gateway-production.up.railway.app/mcp/"
}
}
}[Glama MCP Server] [MCP.Directory]
Add Stripe subscriptions, per-call credits, and x402 crypto payments to any MCP server — without writing billing code.
MCP Billing Gateway is a hosted billing proxy that sits between AI agents and your MCP server. It handles payment verification, usage tracking, and tier enforcement automatically. You register your server, set a pricing plan, and point callers to the proxied URL. No billing code required.
Live service: https://mcp-billing-gateway-production.up.railway.app
Tutorial: Monetize any MCP server in 10 minutes — step-by-step demo with working code
Or with uvx:
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
Add to .cursor/mcp.json in your project:
Restart your editor after adding the configuration to activate the MCP server.
The local MCP server provides service discovery. The full billing functionality runs on the hosted gateway — register as an operator and proxy your MCP servers through it.
https://mcp-billing-gateway-production.up.railway.app/proxy/{your-slug}/mcp/mcp/ endpointResponse:
Access your dashboard at:
Track revenue, usage, active callers, and configure your servers in real time.
The gateway is a transparent proxy. Callers interact with your MCP server normally — the gateway intercepts requests, verifies payment, tracks usage, and forwards to your upstream server.
The gateway is open for use at the hosted URL above. For self-hosted deployments, clone the server repository and deploy via Docker:
Source: README.md at commit 7e6e2e3
Register a new operator account with Stripe Connect onboarding
namerequiredemailrequiredGet current operator profile and status
api_keyrequiredList all MCP servers registered by the operator
api_keyrequiredRegister a new MCP server for billing
namerequiredapi_keyrequiredauth_modeis_publictransportproxy_slugrequireddescriptionupstream_urlrequiredGet server details including pricing plans
api_keyrequiredserver_idrequiredUpdate server settings (name, description, upstream_url, is_public, status)
namestatusapi_keyrequiredis_publicserver_idrequireddescriptionupstream_urlSoft-delete a server (can be restored)
api_keyrequiredserver_idrequiredCreate a pricing plan for a server
namerequiredapi_keyrequiredserver_idrequiredis_defaultbilling_modelrequiredfree_calls_per_monthsubscription_intervalsubscription_call_limitprice_per_call_usd_microsubscription_price_usd_centsList pricing plans for a server
api_keyrequiredserver_idrequiredUpdate a pricing plan
nameapi_keyrequiredplan_idrequiredis_activeis_defaultfree_calls_per_monthprice_per_call_usd_microGet usage analytics for a server (calls, revenue, top callers)
tofromapi_keyrequiredserver_idrequiredGet revenue summary and payout history
api_keyrequired100% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
pip install mcp-billing-gatewayuvx mcp-billing-gateway{ "mcpServers": { "mcp-billing-gateway": { "command": "uvx", "args": ["mcp-billing-gateway"] } }}{ "mcpServers": { "mcp-billing-gateway": { "command": "uvx", "args": ["mcp-billing-gateway"] } }}AI Agent → MCP Billing Gateway → Your MCP Server (billing enforced here)curl -X POST https://mcp-billing-gateway-production.up.railway.app/api/v1/operator/register \ -H "Content-Type: application/json" \ -d '{"email": "[email protected]", "name": "Your Name"}'{ "operator_id": "op_abc123", "api_key": "bg_live_xxxxxxxxxxxx", "message": "Operator registered successfully"}curl -X POST https://mcp-billing-gateway-production.up.railway.app/api/v1/servers \ -H "Authorization: Bearer bg_live_xxxxxxxxxxxx" \ -H "Content-Type: application/json" \ -d '{ "name": "My MCP Server", "upstream_url": "https://your-mcp-server.com/mcp", "proxy_slug": "my-server" }'curl -X POST https://mcp-billing-gateway-production.up.railway.app/api/v1/servers/{server_id}/plans \ -H "Authorization: Bearer bg_live_xxxxxxxxxxxx" \ -H "Content-Type: application/json" \ -d '{ "name": "Pay as you go", "billing_model": "per_call", "price_per_call_usd_micro": 10000, "free_calls_per_month": 100 }'{ "mcpServers": { "my-server": { "url": "https://mcp-billing-gateway-production.up.railway.app/proxy/my-server/mcp", "headers": { "Authorization": "Bearer CALLER_API_KEY" } } }}# Using the MCP clientresult = await session.call_tool("get_billing_info")print(result)# {# "service": "MCP Billing Gateway",# "version": "0.1.0",# "payment_methods": ["stripe_subscription", "stripe_metered", "x402_crypto"],# "features": ["Per-call usage tracking", "Tiered pricing", ...],# "live_service": "https://mcp-billing-gateway-production.up.railway.app"# }# 1. RegisterAPI_KEY=$(curl -s -X POST .../api/v1/operator/register \ -H "Content-Type: application/json" \ -d '{"email": "[email protected]", "name": "Dev"}' | jq -r .api_key)
# 2. Add your serverSERVER_ID=$(curl -s -X POST .../api/v1/servers \ -H "Authorization: Bearer $API_KEY" \ -H "Content-Type: application/json" \ -d '{"name": "my-tool", "upstream_url": "https://my-tool.com/mcp", "proxy_slug": "my-tool"}' \ | jq -r .server_id)
# 3. Set pricing: $0.01 per call, 100 free calls/monthcurl -X POST .../api/v1/servers/$SERVER_ID/plans \ -H "Authorization: Bearer $API_KEY" \ -H "Content-Type: application/json" \ -d '{"name": "Starter", "billing_model": "per_call", "price_per_call_usd_micro": 10000, "free_calls_per_month": 100}'
# Callers now connect via: .../proxy/my-tool/mcphttps://mcp-billing-gateway-production.up.railway.app/dashboard┌─────────────┐ ┌──────────────────────┐ ┌──────────────────┐│ AI Agent / │────▶│ MCP Billing Gateway │────▶│ Your MCP Server ││ MCP Client │◀────│ (hosted on Railway) │◀────│ (upstream) │└─────────────┘ └──────────────────────┘ └──────────────────┘ │ ├── Payment verification (Stripe / x402) ├── Usage tracking & rate limiting ├── Tier enforcement └── Operator dashboarddocker build -t mcp-billing-gateway .docker run -p 3000:3000 mcp-billing-gateway