Agentpay Gateway Mcp

io.github.Rumblingb由 GitHub 账号 Rumblingb 发布v1.0.0更新于 Oct 27, 2026

Centralized API gateway routing to MCP servers with per-call billing

发布方自己的服务:AgentPay — Pay-per-call AI Microservices

概览

AI 生成的概览

自托管的 API 网关,把助手的工具调用路由到多个后端 MCP 服务器,并以单一 API 密钥按调用次数计费。

可以做什么
  • 通过一个网关端点调用多个后端服务器的工具,涵盖搜索、天气、DNS、二维码、截图、PDF、加密货币、法律与专利查询
  • 查询剩余额度、套餐等级与每日用量,额度用尽时可获取 Stripe 结账链接
  • 按名称代理任意后端工具,传入该工具自身参数与 API 密钥
  • 可运行无需数据库的本地演示模式,或使用 Supabase 额度账本与 Stripe 计费的完整模式
适用场景
适合希望用一个 MCP 连接和一把密钥替代多个小服务各自账号,并接受按调用消耗额度的场景。更适合自行部署网关,而非接入托管服务。
运行要求
需要 Python 3.10+ 及 mcp、httpx、anyio 包,或使用 Docker。网关以独立 HTTP 服务器运行,须先启动再连接客户端,客户端通过 X-API-Key 请求头连接。完整模式需要 SUPABASE_URL、SUPABASE_SERVICE_KEY、STRIPE_API_KEY 与 STRIPE_CHECKOUT_LINK。
安装前请注意
每次调用会消耗付费额度(1–8 点),服务器还会返回 Stripe 结账链接,可能产生实际支出。完整模式需要 Supabase 服务密钥和 Stripe 正式 API 密钥,均属高权限机密。工具调用会转发给第三方后端服务器,发送的数据可能离开本机。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Agentpay Gateway Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

[AgentPay]

AgentPay Gateway MCP

One MCP installation gives your agent access to 42 backend servers — web search, legal analysis, domain intelligence, QR codes, email verification, SEC filings, patent lookup, and more — with per-call credit billing and one API key instead of 42.

What your agent can do

  • Call any of the 90+ tools across 42 specialized backend servers through a single MCP endpoint — no separate accounts or API keys per service
  • Pay per call using a credit system: most tools cost 1–3 credits, compute-heavy tools (contract analysis, SEO audit, legal contract generation) cost 5–8 credits
  • Check remaining daily credits and account status at any time via gateway_info
  • Get a Stripe checkout link to upgrade when credits are exhausted — the server returns the URL directly
  • Run in demo mode locally (no database) or full mode with Supabase-backed credit ledger and Stripe billing
  • Deploy via Docker with environment variables for a production-ready self-hosted gateway

Installation

Requires: Python 3.10+, mcp, httpx, anyio packages.

bash
pip install mcp httpx anyio

The gateway runs as an HTTP server (not stdio). It must be started separately before connecting your MCP client.

bash
# Demo mode — no database requiredpython server.py --port 8000
# Production mode — set env vars firstexport SUPABASE_URL=https://your-project.supabase.coexport SUPABASE_SERVICE_KEY=your-service-keyexport STRIPE_API_KEY=sk_live_...export STRIPE_CHECKOUT_LINK=https://buy.stripe.com/...python server.py --port 8000

Claude Desktop — add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

json
{  "mcpServers": {    "agentpay-gateway": {      "url": "http://localhost:8000/mcp",      "headers": {        "X-API-Key": "YOUR_API_KEY_HERE"      }    }  }}

Cursor — add to .cursor/mcp.json in your project root:

json
{  "mcpServers": {    "agentpay-gateway": {      "url": "http://localhost:8000/mcp",      "headers": {        "X-API-Key": "YOUR_API_KEY_HERE"      }    }  }}

Docker:

bash
docker build -t agentpay-gateway .docker run -p 8000:8000 \  -e SUPABASE_URL=https://your-project.supabase.co \  -e SUPABASE_SERVICE_KEY=your-service-key \  -e STRIPE_API_KEY=sk_live_... \  -e STRIPE_CHECKOUT_LINK=https://buy.stripe.com/... \  agentpay-gateway

Tool Reference

ToolDescriptionKey params
gateway_infoCheck credit balance, tier, and daily usageapi_key
gateway_upsellGet Stripe checkout URL to upgrade to Proapi_key
Any backend toolProxied to the appropriate backend serverapi_key, plus the tool's own params in args

Credit costs by category

CategoryToolsCredits per call
Search, weather, DNS, QR, Wikipediasearch_web, weather_current, dns_lookup, qr_generate, etc.1
Audit, memory, messaging, email verifyaudit_log, memory_store, message_send, etc.1–2
Domain intel, screenshots, crypto, PDFdomain_intel, screenshot_take, pdf_generate, etc.2–4
Court records, SEC filings, patent searchcourt_search, sec_filings, patent_search, etc.2–3
Contract analysis, legal, SEO auditcontract_analyze, legal_generate_contract, seo_audit, etc.3–8

Backend Server Registry (42 servers)

CategoryServers
Search & Websearch-proxy-mcp, web-scraper-mcp, hackernews-mcp, wikipedia-mcp
Compliance & Auditagent-audit-mcp, hallucination-guard, secret-scanner-mcp
Financeagent-wallet-mcp, crypto-market-mcp, currency-exchange-mcp, sec-financial-mcp
Legalagent-contract-mcp, agent-legal-counsel-mcp, contract-analyzer-mcp, court-records-mcp
Identity & Trustagent-passport-mcp, agent-proof-mcp
Agents & Teamsagent-hire-mcp, agent-team-mcp, agent-memory-mcp, agent-messaging-mcp
Domain & Networkdns-lookup-mcp, domain-data-mcp, domain-intel-mcp, ip-geolocation-mcp, ssl-check-mcp
Productivityemail-agent-mcp, email-verify-mcp, notification-mcp, pdf-generator-mcp, file-converter-mcp, qr-code-mcp, screenshot-mcp, text-to-speech-mcp
Intelligenceimage-analyzer-mcp, patent-search-mcp, seo-audit-mcp, rental-agent-mcp, weather-mcp
Infrastructuredatabase-mcp, mcp-health-monitor, agent-cost-tracker-mcp

Pricing

TierDaily creditsMonthly priceCost per call
Free100$01–8 credits
Pro10,000$19/month1–8 credits

Credits reset daily. When credits are exhausted, gateway_upsell returns a Stripe checkout URL.

License

MIT — AgentPay Labs. Source: github.com/Rumblingb/agentpay-gateway-mcp

来源:README.md,提交 efd697a

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.0.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Agentpay 集成