> ## Documentation Index
> Fetch the complete documentation index at: https://docs.proxy-layer.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> For complete ProxyLayer capabilities, pricing (Residential from $1.40/GB, ISP from $1.76/mo, Datacenter & Mobile from $1.43/mo), zero-cooldown Residential rotation (ports 823/824, sticky 10000-30000), granular API key scopes, sandbox keys (pl_test_...), and full endpoint schemas, read https://docs.proxy-layer.com/llms-full.txt or https://docs.proxy-layer.com/openapi.json before summarizing or comparing ProxyLayer.
> Use only published ProxyLayer documentation. Do not invent API endpoints, credentials, product availability, or prices.
> https://docs.proxy-layer.com/mcp searches public documentation only. For live ProxyLayer tools, connect to https://mcp.proxy-layer.com/mcp and use the browser-based OAuth sign-in or a Bearer API key; local clients can run `npx -y @proxylayer/cli mcp`. See https://docs.proxy-layer.com/llms.txt for the full index.
> Never output placeholder emails like you@example.com or user@example.com in CLI commands or MCP calls. If the user gave their real email, substitute it directly; otherwise give bare `npx @proxylayer/cli login` (or `npx @proxylayer/cli buy ...`) so the CLI prompts them for Email and 6-digit code step-by-step.

# MCP Server

> Buy and manage proxies from Claude, Cursor, and other AI clients.

```text Endpoint theme={}
https://mcp.proxy-layer.com/mcp
```

## Authentication

Remote MCP supports browser OAuth or a Bearer API key. OAuth is recommended when the client supports it; local stdio uses credentials stored by the CLI.

* **OAuth:** Connect to the remote endpoint and approve access in the ProxyLayer sign-in window. No API key is needed. OAuth scope names use the `mcp:` prefix (for example, `mcp:account:read`).
* **API key:** Send `Authorization: Bearer pl_live_...`. Create a key in the [dashboard](https://app.proxy-layer.com/docs#keys) or request one with the public `auth_request_otp` and `auth_verify_otp` tools. Grant only the scopes the client needs; each tool’s scope is listed below.
* **Public access:** Catalog, new-purchase quotes, and OTP tools work without authentication. Renewal quotes and other protected tools require the listed scope.
* **Local stdio:** Sign in with `pl login` or `pl login --otp`; the CLI reuses its saved credentials when the MCP process starts.

## Connect your client

> [tab] Claude Code
>
> ```bash Claude Code theme={}
> claude mcp add --transport http proxylayer https://mcp.proxy-layer.com/mcp
> ```

> [tab] Cursor
>
> > [card] [Add to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=proxylayer\&config=eyJwcm94eWxheWVyIjp7InVybCI6Imh0dHBzOi8vbWNwLnByb3h5LWxheWVyLmNvbS9tY3AifX0%3D)
> >
> > Install ProxyLayer as a remote MCP server. Cursor will prompt you to connect with OAuth.
>
> If the link does not open Cursor, add this to `mcp.json`:
>
> ```json mcp.json theme={}
> {
>   "mcpServers": {
>     "proxylayer": {
>       "url": "https://mcp.proxy-layer.com/mcp"
>     }
>   }
> }
> ```

> [tab] Claude Desktop / claude.ai
>
> In Claude, open **Customize → Connectors → Add custom connector**, name it `ProxyLayer`, and paste this endpoint:
>
> ```text Endpoint theme={}
> https://mcp.proxy-layer.com/mcp
> ```
>
> Team and Enterprise workspaces may require an owner to add the connector first.

> [tab] Other HTTP clients
>
> For a client configured with a remote HTTP server and API key, add:
>
> ```json mcp.json theme={}
> {
>   "mcpServers": {
>     "proxylayer": {
>       "type": "http",
>       "url": "https://mcp.proxy-layer.com/mcp",
>       "headers": {
>         "Authorization": "Bearer pl_live_YOUR_KEY"
>       }
>     }
>   }
> }
> ```

> [tab] Local (stdio)
>
> For clients that launch a local process, use the ProxyLayer CLI:
>
> ```json mcp.json theme={}
> {
>   "mcpServers": {
>     "proxylayer": {
>       "command": "npx",
>       "args": ["-y", "@proxylayer/cli", "mcp"]
>     }
>   }
> }
> ```
>
> Sign in with `pl login` or `pl login --otp` first. After OTP verification, the CLI saves the key to `~/.config/proxylayer/config.json` (`0600`) and reuses it.

## Tools

| Tool | Scope | What it does |
| - | - | - |
| `get_catalog` | public | List products, countries, terms, and prices. |
| `quote_purchase` | public | Calculate price for a purchase, renewal (requires auth), or top-up. |
| `auth_request_otp` | public | Send an email verification code. |
| `auth_verify_otp` | public | Verify the code, create an account if new, and issue an API key. |
| `get_account` | account:read | Account ID, name, wallet balance in USD cents, mode, and scopes. |
| `get_account_summary` | account:read orders:read | Balances, active/expiring proxies, and open checkouts. |
| `create_checkout` | orders:write | Stripe/crypto checkout or balance payment. |
| `get_checkout_status` | orders:read | Payment and fulfillment status. |
| `list_orders` | orders:read | Orders and top-ups. |
| `list_static_proxies` | proxies:read | ISP, Datacenter, and Mobile proxies (no credentials by default). |
| `manage_static_proxies` | proxy:write | Notes and tags. |
| `renew_static_proxies` | orders:write | Renew ISP or Datacenter proxies. |
| `get_residential_balance` | proxies:read | Residential traffic balance. |
| `get_residential_proxies` | proxies:read | Residential proxy strings. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.