# agentpay-gateway-mcp [Health: Active]

**Category:** 🔗 Aggregators  
**Repository:** https://github.com/Rumblingb/agentpay-gateway-mcp.git  
**GitHub Stars:** 1  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/agentpay-gateway-mcp

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

## Tools
Capabilities this server exposes over MCP:

- **gateway_info** — Check credit balance, tier, and daily usage
- **gateway_upsell** — Get Stripe checkout URL to upgrade to Pro

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/Rumblingb/agentpay-gateway-mcp.git), copied verbatim. Run them in order; they are not an mcpServers config.

1. Install:

```sh
pip install mcp httpx anyio
```

2. Start the server:

```sh
python server.py --port 8000
```

3. Install:

```sh
docker build -t agentpay-gateway .
```

4. Start the server:

```sh
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
```

## Documentation

## What agentpay-gateway-mcp MCP server does

The agentpay-gateway-mcp MCP server places a gateway in front of 42 backend MCP servers. Instead of configuring each backend separately, an MCP client sends requests to one gateway endpoint. The gateway authenticates the supplied API key, checks the account’s credit balance, routes the request to the selected backend, and records the deduction.

The registry includes servers for functions such as web search, email verification, weather, domain data, PDF generation, screenshots, financial data, and text-to-speech. The gateway documentation identifies the backend names, exposed tool counts, and local ports, but the available capabilities depend on those backend services being present and reachable.

Two gateway-specific tools are documented. `gateway_info` returns account information such as the current balance, while `gateway_upsell` returns a Stripe checkout URL for upgrading. Other calls use the name of a backend tool and pass its arguments through the gateway.

## How it works

Each call uses an API key. The gateway checks that key against its API-key data, verifies available credits, routes the request over HTTP to the matching backend MCP server, and logs the credit deduction. The documented pricing model charges one credit per call. The free tier provides 100 credits per day; the Pro tier provides 10,000 daily credits for $19 per month. Credits reset daily.

Supabase is used for API keys, the credit ledger, and related database state in the full deployment. Stripe supplies the optional payment flow for production upgrades. A local demo can run without a database, so the billing and persistence setup is not required for the basic quick start.

## Setup and configuration

Install Python 3.10 or newer, install the dependencies from `requirements.txt`, and start the process with `python3 server.py` for demo mode. For a full deployment, create a Supabase project, copy `.env.example` to `.env`, configure the credentials, bootstrap the database with `python3 server.py --db-only`, and start the gateway on port 8000.

The agentpay-gateway-mcp MCP server is configured through an HTTP URL such as `http://localhost:8000/mcp`. The client configuration also supplies an API key. Docker is supported with port 8000 exposed and environment variables for Supabase and Stripe passed to the container.

## Tools and capabilities

- Route calls to the listed 42 backend MCP servers.
- Authenticate requests with API keys.
- Check balances and apply per-call credit deductions.
- Reset daily credit allowances.
- Record deductions in an audit trail.
- Return Stripe checkout links through `gateway_upsell`.

## Limitations and notes

Backend availability therefore depends on the corresponding services and their configured ports. Supabase is optional for the local demo but is part of the full database-backed setup; Stripe is optional for production billing. The documented MCP client examples use Claude Desktop or Cursor with the HTTP endpoint and an API key.

_Full upstream README: https://allmcps.com/mcp/agentpay-gateway-mcp/readme_

