Centralized API gateway routing to MCP servers with per-call billing
MCPpedia last refreshed this data
io.github.Rumblingb/agentpay-gateway-mcp is an MCP server that centralized API gateway routing to MCP servers with per-call billing. It exposes 2 tools over stdio, sse and http, requires no API key, and scores 79/100 on MCPpedia's security, maintenance and efficiency rubric.
Config is the same across clients - only the file and path differ.
{
"mcpServers": {
"agentpay-gateway": {
"url": "http://localhost:8000/mcp",
"headers": {
"X-API-Key": "YOUR_API_KEY_HERE"
}
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Centralized API gateway routing to MCP servers with per-call billing
Run this in your terminal to verify the server starts. Then let us know if it worked - your result helps other developers.
uvx 'mcp' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories - click any category to see the underlying evidence.
Model Context Protocol Python SDK: OAuth client could send credentials to an authorization server chosen by the MCP server
### Summary In affected versions, the SDK's OAuth client support (`mcp.client.auth`) let the MCP server a client connected to decide where the client's OAuth credentials were sent: - the authorization server metadata `issuer` was not validated on every discovery path, and - stored or pre-provisioned client credentials were not bound to the authorization server they belong to. A malicious or compromised MCP server could therefore direct them to a token endpoint of its choosing: - by naming its
Model Context Protocol Python SDK: Server bearer-token authentication accepts tokens issued for a different resource server
### Summary In affected versions, the SDK's server-side bearer authentication had no way to check that a token was issued for your server (its audience). Where one authorization server issues tokens for several services, a valid token for another service was also accepted by your MCP server. ### Am I affected? Yes, if your HTTP server uses the SDK's bearer authentication (`auth=AuthSettings(...)` with `token_verifier=`), its authorization server also issues tokens for other services, and your `
Model Context Protocol Python SDK: HTTP client transports followed cross-origin redirects carrying custom headers and bodies
### Summary In affected versions, the SDK's Streamable HTTP and SSE client transports followed HTTP redirects to any host. If the configured MCP endpoint answered with a redirect to a different origin: - custom headers set on the client (for example an `X-API-Key` credential) were sent to that origin, and - on a `307` or `308` redirect the request body was re-sent there too. The SDK's OAuth client providers followed redirects on their own discovery, registration and token requests in the same
Model Context Protocol Python SDK: Client fetched server-chosen $ref URLs while validating tool results against output schemas
### Summary In affected versions, when a connected MCP server declared an `outputSchema` for a tool, the SDK's client validated each `call_tool` result with `jsonschema`'s default resolver, which fetches any `$ref` it cannot resolve locally by opening the URL. A server could therefore put an `http://`, `https://` or `file://` reference in a tool's output schema and make the client: - request that URL, or read that local file, from the client's own network position on every call of the tool (the
MCP Python SDK: Unbounded Session Accumulation in StreamableHTTP Transport Enables Resource Exhaustion
### Summary In affected versions, a Streamable HTTP server in stateful mode (the default) never reclaimed session state: - sessions did not expire; - a client `DELETE` ended the session but left its entry registered; - a session whose first request was refused stayed registered with a running task. Each session also kept its parsed `initialize` parameters, and the number of sessions was unlimited. A client that could reach the endpoint could grow server memory without bound using ordinary shor
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience - it helps other developers decide.
Sign in to write a review.
Others in developer-tools / finance
MCP Security Weekly
Get CVE alerts and security updates for io.github.Rumblingb/agentpay-gateway-mcp and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
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.
gateway_infoRequires: Python 3.10+, mcp, httpx, anyio packages.
pip install mcp httpx anyio
The gateway runs as an HTTP server (not stdio). It must be started separately before connecting your MCP client.
# Demo mode — no database required
python server.py --port 8000
# Production mode — set env vars first
export SUPABASE_URL=https://your-project.supabase.co
export SUPABASE_SERVICE_KEY=your-service-key
export 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):
{
"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:
{
"mcpServers": {
"agentpay-gateway": {
"url": "http://localhost:8000/mcp",
"headers": {
"X-API-Key": "YOUR_API_KEY_HERE"
}
}
}
}
Docker:
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 | Description | Key params |
|---|---|---|
gateway_info | Check credit balance, tier, and daily usage | api_key |
gateway_upsell | Get Stripe checkout URL to upgrade to Pro | api_key |
| Any backend tool | Proxied to the appropriate backend server | api_key, plus the tool's own params in args |
| Category | Tools | Credits per call |
|---|---|---|
| Search, weather, DNS, QR, Wikipedia | search_web, weather_current, dns_lookup, qr_generate, etc. | 1 |
| Audit, memory, messaging, email verify | audit_log, memory_store, message_send, etc. | 1–2 |
| Domain intel, screenshots, crypto, PDF | domain_intel, screenshot_take, pdf_generate, etc. | 2–4 |
| Court records, SEC filings, patent search | court_search, sec_filings, patent_search, etc. | 2–3 |
| Contract analysis, legal, SEO audit | contract_analyze, legal_generate_contract, seo_audit, etc. | 3–8 |
| Category | Servers |
|---|---|
| Search & Web | search-proxy-mcp, web-scraper-mcp, hackernews-mcp, wikipedia-mcp |
| Compliance & Audit | agent-audit-mcp, hallucination-guard, secret-scanner-mcp |
| Finance | agent-wallet-mcp, crypto-market-mcp, currency-exchange-mcp, sec-financial-mcp |
| Legal | agent-contract-mcp, agent-legal-counsel-mcp, contract-analyzer-mcp, court-records-mcp |
| Identity & Trust | agent |