Skip to main content
Glama
sapph1re

MCP Billing Gateway SDK

MCP Billing Gateway

Stripeサブスクリプションコールごとのクレジット課金、およびx402暗号資産決済を、課金コードを書くことなくあらゆるMCPサーバーに追加できます。

ライブサービス: https://mcp-billing-gateway-production.up.railway.app


機能

MCP Billing Gatewayは、MCPサーバーの前面に配置されるプロキシであり、すべての課金を自動的に処理します:

  • コールごとの課金 — ツール呼び出しごとに課金(法定通貨または暗号資産)

  • サブスクリプション — コール制限付きの月額/年額Stripeプラン

  • 段階的価格設定 — 無料ティア + 使用量に応じた有料ティア

  • x402マイクロペイメント — APIキーなしでAIエージェントからBase上のUSDCを受け入れ可能

  • オペレーターダッシュボード — 収益、使用量、呼び出し元をリアルタイムで追跡

仕組み

AI Agent → MCP Billing Gateway → Your MCP Server
            (billing enforced here)
  1. オペレーターとして登録

  2. MCPサーバーのURLと料金プランを登録

  3. 呼び出し元をプロキシのスラッグに向けます: https://mcp-billing-gateway.../proxy/{your-slug}/...

  4. 呼び出し元はStripe APIキーまたはx402 USDCで支払います — 課金は透過的に処理されます

クイックスタート

オペレーターとして登録

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"}'

MCPサーバーを登録

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"
  }'

料金プランを作成

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
  }'

呼び出し元がプロキシサーバーに接続

{
  "mcpServers": {
    "my-server": {
      "url": "https://mcp-billing-gateway-production.up.railway.app/proxy/my-server/mcp",
      "headers": {
        "Authorization": "Bearer CALLER_API_KEY"
      }
    }
  }
}

支払い方法

方法

最適な用途

方法

Stripeサブスクリプション

人間の開発者

月額/年額プラン

Stripeコールごと課金

人間の開発者

コールごとにクレジットを消費

x402マイクロペイメント

AIエージェント

Base上のUSDC、APIキー不要

オペレーターダッシュボード

ダッシュボードへのアクセス:

https://mcp-billing-gateway-production.up.railway.app/dashboard

収益、使用量、アクティブな呼び出し元を追跡し、サーバーを設定します。

APIリファレンス

完全なAPIドキュメント: https://mcp-billing-gateway-production.up.railway.app/health

オペレーターエンドポイント

  • POST /api/v1/operator/register — オペレーターアカウントの作成

  • GET /api/v1/operator/profile — プロフィールとAPIキーの表示

  • GET /api/v1/operator/stats — 収益と使用統計

サーバー管理

  • POST /api/v1/servers — MCPサーバーの登録

  • GET /api/v1/servers — サーバーの一覧表示

  • POST /api/v1/servers/{id}/plans — 料金プランの作成

プロキシ

  • * /proxy/{slug}/* — 課金が適用されるプロキシ呼び出し

セルフホスト

ゲートウェイはオープンに利用可能です。セルフホスト環境が必要な場合はお問い合わせください。

ライセンス

MIT

Install Server
A
security – no known vulnerabilities
F
license - not found
B
quality - B tier

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