register_operator
Register a new operator account with Stripe Connect onboarding
name必填email必填
io.github.sapph1re由 GitHub 账号 sapph1re 发布v0.1.3更新于 Oct 27, 2026
Billing proxy for MCP servers. Adds Stripe and x402 crypto payments without writing billing code.
托管式计费代理,让助手注册 MCP 服务器、设置定价方案,并查看 Stripe 或 x402 加密支付的用量与收入。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/io.github.sapph1re%2Fmcp-billing-gateway/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。把它添加到你客户端的 mcpServers 配置中。
{
"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:
来源:README.md,提交 7e6e2e3
Register a new operator account with Stripe Connect onboarding
name必填email必填Get current operator profile and status
api_key必填List all MCP servers registered by the operator
api_key必填Register a new MCP server for billing
name必填api_key必填auth_modeis_publictransportproxy_slug必填descriptionupstream_url必填Get server details including pricing plans
api_key必填server_id必填Update server settings (name, description, upstream_url, is_public, status)
namestatusapi_key必填is_publicserver_id必填descriptionupstream_urlSoft-delete a server (can be restored)
api_key必填server_id必填Create a pricing plan for a server
name必填api_key必填server_id必填is_defaultbilling_model必填free_calls_per_monthsubscription_intervalsubscription_call_limitprice_per_call_usd_microsubscription_price_usd_centsList pricing plans for a server
api_key必填server_id必填Update a pricing plan
nameapi_key必填plan_id必填is_activeis_defaultfree_calls_per_monthprice_per_call_usd_microGet usage analytics for a server (calls, revenue, top callers)
tofromapi_key必填server_id必填Get revenue summary and payout history
api_key必填已满足适用检查项的 100%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
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