Skip to main content
Glama
sapph1re

MCP Billing Gateway SDK

MCP 결제 게이트웨이

결제 코드를 작성할 필요 없이 모든 MCP 서버에 Stripe 구독, 호출당 크레딧, x402 암호화폐 결제 기능을 추가하세요.

라이브 서비스: https://mcp-billing-gateway-production.up.railway.app


주요 기능

MCP 결제 게이트웨이는 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