{
  "markdown": "<p align=\"center\">\n  <img src=\"assets/logo.png\" width=\"80\" alt=\"AgentPay\">\n</p>\n\n# AgentPay Gateway MCP\n\nOne 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.\n\n## What your agent can do\n\n- Call any of the 90+ tools across 42 specialized backend servers through a single MCP endpoint — no separate accounts or API keys per service\n- 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\n- Check remaining daily credits and account status at any time via `gateway_info`\n- Get a Stripe checkout link to upgrade when credits are exhausted — the server returns the URL directly\n- Run in demo mode locally (no database) or full mode with Supabase-backed credit ledger and Stripe billing\n- Deploy via Docker with environment variables for a production-ready self-hosted gateway\n\n## Installation\n\n**Requires:** Python 3.10+, `mcp`, `httpx`, `anyio` packages.\n\n```bash\npip install mcp httpx anyio\n```\n\nThe gateway runs as an HTTP server (not stdio). It must be started separately before connecting your MCP client.\n\n```bash\n# Demo mode — no database required\npython server.py --port 8000\n\n# Production mode — set env vars first\nexport SUPABASE_URL=https://your-project.supabase.co\nexport SUPABASE_SERVICE_KEY=your-service-key\nexport STRIPE_API_KEY=sk_live_...\nexport STRIPE_CHECKOUT_LINK=https://buy.stripe.com/...\npython server.py --port 8000\n```\n\n**Claude Desktop** — add to `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or `%APPDATA%\\Claude\\claude_desktop_config.json` (Windows):\n\n```json\n{\n  \"mcpServers\": {\n    \"agentpay-gateway\": {\n      \"url\": \"http://localhost:8000/mcp\",\n      \"headers\": {\n        \"X-API-Key\": \"YOUR_API_KEY_HERE\"\n      }\n    }\n  }\n}\n```\n\n**Cursor** — add to `.cursor/mcp.json` in your project root:\n\n```json\n{\n  \"mcpServers\": {\n    \"agentpay-gateway\": {\n      \"url\": \"http://localhost:8000/mcp\",\n      \"headers\": {\n        \"X-API-Key\": \"YOUR_API_KEY_HERE\"\n      }\n    }\n  }\n}\n```\n\n**Docker:**\n\n```bash\ndocker build -t agentpay-gateway .\ndocker run -p 8000:8000 \\\n  -e SUPABASE_URL=https://your-project.supabase.co \\\n  -e SUPABASE_SERVICE_KEY=your-service-key \\\n  -e STRIPE_API_KEY=sk_live_... \\\n  -e STRIPE_CHECKOUT_LINK=https://buy.stripe.com/... \\\n  agentpay-gateway\n```\n\n## Tool Reference\n\n| Tool | Description | Key params |\n|------|-------------|------------|\n| `gateway_info` | Check credit balance, tier, and daily usage | `api_key` |\n| `gateway_upsell` | Get Stripe checkout URL to upgrade to Pro | `api_key` |\n| Any backend tool | Proxied to the appropriate backend server | `api_key`, plus the tool's own params in `args` |\n\n### Credit costs by category\n\n| Category | Tools | Credits per call |\n|----------|-------|-----------------|\n| Search, weather, DNS, QR, Wikipedia | `search_web`, `weather_current`, `dns_lookup`, `qr_generate`, etc. | 1 |\n| Audit, memory, messaging, email verify | `audit_log`, `memory_store`, `message_send`, etc. | 1–2 |\n| Domain intel, screenshots, crypto, PDF | `domain_intel`, `screenshot_take`, `pdf_generate`, etc. | 2–4 |\n| Court records, SEC filings, patent search | `court_search`, `sec_filings`, `patent_search`, etc. | 2–3 |\n| Contract analysis, legal, SEO audit | `contract_analyze`, `legal_generate_contract`, `seo_audit`, etc. | 3–8 |\n\n## Backend Server Registry (42 servers)\n\n| Category | Servers |\n|----------|---------|\n| Search & Web | search-proxy-mcp, web-scraper-mcp, hackernews-mcp, wikipedia-mcp |\n| Compliance & Audit | agent-audit-mcp, hallucination-guard, secret-scanner-mcp |\n| Finance | agent-wallet-mcp, crypto-market-mcp, currency-exchange-mcp, sec-financial-mcp |\n| Legal | agent-contract-mcp, agent-legal-counsel-mcp, contract-analyzer-mcp, court-records-mcp |\n| Identity & Trust | agent-passport-mcp, agent-proof-mcp |\n| Agents & Teams | agent-hire-mcp, agent-team-mcp, agent-memory-mcp, agent-messaging-mcp |\n| Domain & Network | dns-lookup-mcp, domain-data-mcp, domain-intel-mcp, ip-geolocation-mcp, ssl-check-mcp |\n| Productivity | email-agent-mcp, email-verify-mcp, notification-mcp, pdf-generator-mcp, file-converter-mcp, qr-code-mcp, screenshot-mcp, text-to-speech-mcp |\n| Intelligence | image-analyzer-mcp, patent-search-mcp, seo-audit-mcp, rental-agent-mcp, weather-mcp |\n| Infrastructure | database-mcp, mcp-health-monitor, agent-cost-tracker-mcp |\n\n## Pricing\n\n| Tier | Daily credits | Monthly price | Cost per call |\n|------|--------------|---------------|---------------|\n| Free | 100 | $0 | 1–8 credits |\n| Pro | 10,000 | $19/month | 1–8 credits |\n\nCredits reset daily. When credits are exhausted, `gateway_upsell` returns a Stripe checkout URL.\n\n## License\n\nMIT — AgentPay Labs. Source: [github.com/Rumblingb/agentpay-gateway-mcp](https://github.com/Rumblingb/agentpay-gateway-mcp)\n",
  "bytes": 5010,
  "sha": "45d7a716064e3f715a6ac648c2ba002c225f125c6a32e9a81b5449cba0db55d8",
  "repo_slug": "rumblingb/agentpay-gateway-mcp",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_rumblingb_agentpay_gateway_mcp_dab106d8/readme"
}