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