get_billing_info
Get information about the MCP Billing Gateway service and integration options.
Put a hosted billing proxy in front of an MCP server you run — Stripe subscriptions, per-call credits or USDC over x402 — without writing billing code.
LABSCO SUMMARY
get_billing_info is the whole local surface — it reports what the gateway supports and where to read further. The work starts when you register a server and point callers at /proxy/{slug}/mcp, after which payment verification, usage tracking and tier enforcement sit between the caller and your upstream with no billing code of your own. The x402 rail is what makes this usable by autonomous callers: USDC on Base with no key to issue, next to the Stripe options that suit human developers. If routing your traffic through someone else's proxy is the sticking point, the gateway ships as a Docker image you can run yourself.
A hosted billing proxy that sits between callers and an MCP server you operate. Register as an operator, register your server's upstream URL under a proxy slug, attach a pricing plan, and hand callers the proxied URL; the gateway verifies payment, tracks usage and enforces tiers before forwarding each call. The installable package is the discovery side of that — one tool reporting what the service supports and where the integration docs are.
The local package installs with pip install mcp-billing-gateway or runs as uvx mcp-billing-gateway over stdio, and takes no environment variables. The hosted gateway lives at https://mcp-billing-gateway-production.up.railway.app and also answers as a streamable-HTTP MCP server at /mcp/. Operators authenticate to the management API with Authorization: Bearer bg_live_…; callers authenticate to a proxied server with their own key. Self-hosting is a Docker build of the gateway. MIT.
One command — uvx mcp-billing-gateway
USE CASES
Register as an operator, point the gateway at your upstream URL under a slug, and set a per-call price with a free monthly allowance. Callers switch to the proxied URL and nothing in your server changes.
Accept USDC on Base over x402 alongside the Stripe rails, so an autonomous caller can pay without an API key, a card or a signup step.
Revenue, usage and active callers in the operator dashboard, with the same numbers available from the stats endpoint for anything you want to automate.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
get_billing_infoGet information about the MCP Billing Gateway service and integration options.
BEFORE YOU INSTALL
1 tool when we connected. get_billing_info only returns gateway capabilities and docs; billing, subscriptions and payments run through the hosted REST API, not MCP tools.
uvx on PATH
Of the 3 documented clients, 2 run the server on your machine and 1 connects to a hosted endpoint.
CONTEXT COST
Rated by the size of the one tool definition that rides along on every turn
INSTALLATION
uvx mcp-billing-gateway{
"mcpServers": {
"mcp-billing-gateway": {
"command": "uvx",
"args": [
"mcp-billing-gateway"
]
}
}
}For the callers of a server you have registered on the gateway, not for this package. <YOUR_PROXY_SLUG>, in the name and in /proxy/<YOUR_PROXY_SLUG>/, is the proxy_slug you registered, and <YOUR_CALLER_API_KEY> the caller's own key:
{
"mcpServers": {
"my-server": {
"url": "https://mcp-billing-gateway-production.up.railway.app/proxy/<YOUR_PROXY_SLUG>/mcp",
"headers": {
"Authorization": "Bearer <YOUR_CALLER_API_KEY>"
}
}
}
}