MCP Billing Gateway SDK
MCP Billing Gateway
Fügen Sie Stripe-Abonnements, Credits pro Aufruf und x402-Krypto-Zahlungen zu jedem MCP-Server hinzu — ohne Abrechnungscode schreiben zu müssen.
Live-Dienst: https://mcp-billing-gateway-production.up.railway.app
Was es bewirkt
MCP Billing Gateway ist ein Proxy, der vor Ihrem MCP-Server sitzt und die gesamte Abrechnung automatisch abwickelt:
Abrechnung pro Aufruf — berechnen Sie Anrufern jeden Tool-Aufruf (Fiat oder Krypto)
Abonnements — monatliche/jährliche Stripe-Pläne mit Aufruflimits
Gestaffelte Preise — kostenloser Tarif + kostenpflichtige Tarife basierend auf der Nutzung
x402-Mikrozahlungen — akzeptieren Sie USDC auf Base von KI-Agenten ohne API-Schlüssel
Betreiber-Dashboard — verfolgen Sie Einnahmen, Nutzung und Anrufer in Echtzeit
Funktionsweise
AI Agent → MCP Billing Gateway → Your MCP Server
(billing enforced here)Registrieren Sie sich als Betreiber
Registrieren Sie Ihre MCP-Server-URL + Preisplan
Verweisen Sie Anrufer auf Ihren Proxy-Slug:
https://mcp-billing-gateway.../proxy/{your-slug}/...Anrufer zahlen über Stripe-API-Schlüssel oder x402 USDC — die Abrechnung erfolgt transparent
Schnellstart
Als Betreiber registrieren
curl -X POST https://mcp-billing-gateway-production.up.railway.app/api/v1/operator/register \
-H "Content-Type: application/json" \
-d '{"email": "you@example.com", "name": "Your Name"}'Ihren MCP-Server registrieren
curl -X POST https://mcp-billing-gateway-production.up.railway.app/api/v1/servers \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "My MCP Server",
"upstream_url": "https://your-mcp-server.com/mcp",
"proxy_slug": "my-server"
}'Einen Preisplan erstellen
curl -X POST https://mcp-billing-gateway-production.up.railway.app/api/v1/servers/{server_id}/plans \
-H "Authorization: Bearer YOUR_API_KEY" \
-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
}'Anrufer verbinden sich mit Ihrem Proxy-Server
{
"mcpServers": {
"my-server": {
"url": "https://mcp-billing-gateway-production.up.railway.app/proxy/my-server/mcp",
"headers": {
"Authorization": "Bearer CALLER_API_KEY"
}
}
}
}Zahlungsmethoden
Methode | Am besten für | Wie |
Stripe-Abonnement | Menschliche Entwickler | Monatlicher/jährlicher Plan |
Stripe pro Aufruf | Menschliche Entwickler | Credits werden pro Aufruf verbraucht |
x402-Mikrozahlungen | KI-Agenten | USDC auf Base, keine API-Schlüssel |
Betreiber-Dashboard
Greifen Sie auf Ihr Dashboard zu unter:
https://mcp-billing-gateway-production.up.railway.app/dashboardVerfolgen Sie Einnahmen, Nutzung, aktive Anrufer und konfigurieren Sie Ihre Server.
API-Referenz
Vollständige API-Dokumentation unter: https://mcp-billing-gateway-production.up.railway.app/health
Betreiber-Endpunkte
POST /api/v1/operator/register— Betreiberkonto erstellenGET /api/v1/operator/profile— Profil und API-Schlüssel anzeigenGET /api/v1/operator/stats— Einnahmen- und Nutzungsstatistiken
Serververwaltung
POST /api/v1/servers— einen MCP-Server registrierenGET /api/v1/servers— Ihre Server auflistenPOST /api/v1/servers/{id}/plans— Preisplan erstellen
Proxy
* /proxy/{slug}/*— Proxy-Aufrufe mit Abrechnungsdurchsetzung
Selbst gehostet
Das Gateway steht zur Nutzung bereit. Wenn Sie eine selbst gehostete Bereitstellung benötigen, kontaktieren Sie uns.
Lizenz
MIT
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sapph1re/mcp-billing-gateway-sdk'
If you have feedback or need assistance with the MCP directory API, please join our Discord server