Skip to main content
Glama
README.md
<p align="center"><img src="assets/logo.png" width="96" alt="AgentProxy logo"></p>

# AgentProxy MCP server

Residential, mobile and datacenter proxies for AI agents, over the [Model Context Protocol](https://modelcontextprotocol.io).
Your assistant can list proxy products, buy one, read its connection strings, rotate the exit IP and top up the balance with USDC or USDT.

[![Add to Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/install-mcp?name=agentproxy&config=eyJ1cmwiOiJodHRwczovL21jcC5hZ2VudHByb3h5Lmdsb2JhbC9tY3AiLCJoZWFkZXJzIjp7IngtYXBpLWtleSI6ImFweF9ZT1VSX0tFWSJ9fQ==)
[![Install in VS Code](https://img.shields.io/badge/VS_Code-Install_AgentProxy-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://vscode.dev/redirect/mcp/install?name=agentproxy&inputs=%5B%7B%22type%22%3A%22promptString%22%2C%22id%22%3A%22agentproxy_key%22%2C%22description%22%3A%22AgentProxy%20API%20key%20%28apx_...%29%22%2C%22password%22%3Atrue%7D%5D&config=%7B%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A//mcp.agentproxy.global/mcp%22%2C%22headers%22%3A%7B%22x-api-key%22%3A%22%24%7Binput%3Aagentproxy_key%7D%22%7D%7D)
[![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Install_AgentProxy-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://insiders.vscode.dev/redirect/mcp/install?name=agentproxy&inputs=%5B%7B%22type%22%3A%22promptString%22%2C%22id%22%3A%22agentproxy_key%22%2C%22description%22%3A%22AgentProxy%20API%20key%20%28apx_...%29%22%2C%22password%22%3Atrue%7D%5D&config=%7B%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A//mcp.agentproxy.global/mcp%22%2C%22headers%22%3A%7B%22x-api-key%22%3A%22%24%7Binput%3Aagentproxy_key%7D%22%7D%7D)

| | |
|---|---|
| Endpoint | `https://mcp.agentproxy.global/mcp` |
| Transport | Streamable HTTP (remote, nothing to install) |
| Auth | AgentProxy API key in the `x-api-key` header (`Authorization: Bearer apx_...` also works) |
| Registry name | `global.agentproxy/proxy` ([Official MCP Registry](https://registry.modelcontextprotocol.io/v0.1/servers?search=global.agentproxy)) |
| Docs | https://agentproxy.global/docs/mcp |

This repository holds the public connection metadata (`server.json`, client configs, plugin manifest). The server itself is hosted by AgentProxy; there is no code to run locally.

## 1. Get an API key

- **People:** sign in at https://agentproxy.global/login and create a key under [Dashboard → API keys](https://agentproxy.global/dashboard/keys). Keys start with `apx_` and are shown once.
- **Agents without a browser:** sign up with an EVM wallet signature:

```bash
# Ask for a sign-in message for your address
curl -s https://agentproxy.global/api/apg/v1/agents/challenge \
  -H "content-type: application/json" -d '{"address":"0xYOUR_ADDRESS"}'
# Sign data.message with that wallet (personal_sign), then:
curl -s https://agentproxy.global/api/apg/v1/agents/signup \
  -H "content-type: application/json" \
  -d '{"message":"<data.message>","signature":"0x..."}'
# data.apiKey.key is your apx_ key
```

In every config below, replace `apx_YOUR_KEY` with your key.

## 2. Connect your client

### Claude Code

```bash
claude mcp add --transport http agentproxy https://mcp.agentproxy.global/mcp --header "x-api-key: apx_YOUR_KEY"
```

### Cursor

Click **Add to Cursor** above, or add to `~/.cursor/mcp.json`:

```json
{
  "mcpServers": {
    "agentproxy": {
      "url": "https://mcp.agentproxy.global/mcp",
      "headers": { "x-api-key": "apx_YOUR_KEY" }
    }
  }
}
```

### VS Code (GitHub Copilot agent mode)

Click **Install in VS Code** above (it asks for the key once and stores it as a secret), or add to `.vscode/mcp.json`:

```json
{
  "inputs": [
    { "type": "promptString", "id": "agentproxy_key", "description": "AgentProxy API key", "password": true }
  ],
  "servers": {
    "agentproxy": {
      "type": "http",
      "url": "https://mcp.agentproxy.global/mcp",
      "headers": { "x-api-key": "${input:agentproxy_key}" }
    }
  }
}
```

Command line: `code --add-mcp '{"name":"agentproxy","type":"http","url":"https://mcp.agentproxy.global/mcp","headers":{"x-api-key":"apx_YOUR_KEY"}}'`

### Grok Bot

Ask your Bot: *"Add a custom remote MCP server named agentproxy at https://mcp.agentproxy.global/mcp with header x-api-key = apx_YOUR_KEY"* and confirm the card it shows.

### Windsurf

Cascade → MCP → *Open MCP config file* (`mcp_config.json`):

```json
{
  "mcpServers": {
    "agentproxy": {
      "serverUrl": "https://mcp.agentproxy.global/mcp",
      "headers": { "x-api-key": "apx_YOUR_KEY" }
    }
  }
}
```

### Cline

Cline → MCP Servers → Remote Servers → name `agentproxy`, URL `https://mcp.agentproxy.global/mcp`, or edit `cline_mcp_settings.json`:

```json
{
  "mcpServers": {
    "agentproxy": {
      "type": "streamableHttp",
      "url": "https://mcp.agentproxy.global/mcp",
      "headers": { "x-api-key": "apx_YOUR_KEY" }
    }
  }
}
```

### Claude.ai / Claude Desktop, ChatGPT

Add a custom connector with the URL `https://mcp.agentproxy.global/mcp`. Where the dialog offers request headers, add `x-api-key` with your key. OAuth sign-in for these apps is on the roadmap.

### Any other MCP client

Point it at `https://mcp.agentproxy.global/mcp` (Streamable HTTP) and send the `x-api-key` header. `initialize` and `tools/list` work without a key, so you can inspect the tools first, for example with the MCP Inspector: `npx @modelcontextprotocol/inspector`.

## Tools

Every tool declares a `title`, the MCP hints (`readOnlyHint`, `destructiveHint`, `idempotentHint`, `openWorldHint`) and an `outputSchema`.

| Tool | Kind | What it does |
|---|---|---|
| `apg_list_products` | read-only | Proxy products with type, protocol, billing unit and price |
| `apg_get_balance` | read-only | Account balance in USD |
| `apg_list_orders` | read-only | Your proxy orders, newest first |
| `apg_get_order` | read-only | One order with connection strings (http, socks5, raw) |
| `apg_create_order` | spends balance | Buy a proxy; the same `idempotencyKey` never charges twice |
| `apg_rotate_ip` | write | Change the exit IP, optionally to another country |
| `apg_deposit_options` | read-only | Chains and stablecoins accepted for top-ups |
| `apg_create_deposit` | write | Create a deposit address and EIP-681 payment URI (nothing is charged) |
| `apg_get_deposit` | read-only | Status of one deposit |
| `apg_list_deposits` | read-only | Deposits, with a status filter |

Example prompts:

- "What proxy products does AgentProxy have, and what is my balance?"
- "Buy 1 GB of residential proxy and give me the http connection string."
- "Rotate my proxy to a US IP."
- "Create a 10 USD USDC deposit on Base and tell me when it is credited."

## Payments

Balances are funded with USDC or USDT on EVM chains (see `apg_deposit_options`). Metered HTTP routes also accept [x402](https://x402.org) pay-per-request on Base USDC. See https://agentproxy.global/pay-with-crypto.

## Support and policies

- Support: support@agentproxy.global
- [Terms](https://agentproxy.global/terms) · [Privacy](https://agentproxy.global/privacy) · [Acceptable use](https://agentproxy.global/acceptable-use)

## License

MIT for the contents of this repository. Use of the hosted service is governed by the AgentProxy terms.