> ## 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-сервер

> Покупайте и управляйте прокси через Claude, Cursor и другие ИИ-клиенты.

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

## Авторизация

Выберите способ авторизации. Удалённые клиенты поддерживают OAuth через браузер или API-ключ; локальный stdio использует учётные данные, сохранённые CLI.

> [tab] OAuth (рекомендуется)
>
> Добавьте удалённый MCP endpoint в клиент и подтвердите доступ в окне ProxyLayer. Клиент выполнит OAuth; API-ключ вручную не нужен. В OAuth к scope добавляется префикс `mcp:` (например, `mcp:account:read`).

> [tab] HTTP + API-ключ
>
> Передавайте API-ключ как Bearer-токен:
>
> ```http Авторизация theme={}
> Authorization: Bearer pl_live_YOUR_KEY
> ```
>
> Создайте ключ в [личном кабинете](https://app.proxy-layer.com/docs#keys) или запросите его через публичные инструменты `auth_request_otp` и `auth_verify_otp`. Нужный scope указан у каждого инструмента ниже.

> [tab] Локально (stdio)
>
> Войдите в CLI перед запуском локального MCP-процесса:
>
> ```bash theme={}
> pl login
> # или
> pl login --otp
> ```
>
> CLI повторно использует сохранённые данные. После входа по OTP ключ хранится в `~/.config/proxylayer/config.json` с правами `0600`.

Каталог, расчёт цены новой покупки и OTP-инструменты доступны без авторизации. Для продления и остальных защищённых инструментов нужен указанный scope.

## Подключение клиента

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

> [tab] Cursor
>
> > [card] [Добавить в Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=proxylayer\&config=eyJwcm94eWxheWVyIjp7InVybCI6Imh0dHBzOi8vbWNwLnByb3h5LWxheWVyLmNvbS9tY3AifX0%3D)
> >
> > Установите ProxyLayer как удалённый MCP-сервер. Cursor предложит подключиться через OAuth.
>
> Если ссылка не открывает Cursor, добавьте это в `mcp.json`:
>
> ```json mcp.json theme={}
> {
>   "mcpServers": {
>     "proxylayer": {
>       "url": "https://mcp.proxy-layer.com/mcp"
>     }
>   }
> }
> ```

> [tab] Claude Desktop / claude.ai
>
> В Claude откройте **Customize → Connectors → Add custom connector**, назовите подключение `ProxyLayer` и вставьте endpoint:
>
> ```text Endpoint theme={}
> https://mcp.proxy-layer.com/mcp
> ```
>
> В рабочих пространствах Team и Enterprise подключение может сначала добавить владелец.

> [tab] Другие HTTP-клиенты
>
> Для клиента с удалённым HTTP-сервером и API-ключом добавьте:
>
> ```json mcp.json theme={}
> {
>   "mcpServers": {
>     "proxylayer": {
>       "type": "http",
>       "url": "https://mcp.proxy-layer.com/mcp",
>       "headers": {
>         "Authorization": "Bearer pl_live_YOUR_KEY"
>       }
>     }
>   }
> }
> ```

> [tab] Локально (stdio)
>
> Для клиентов, запускающих локальный процесс, используйте ProxyLayer CLI:
>
> ```json mcp.json theme={}
> {
>   "mcpServers": {
>     "proxylayer": {
>       "command": "npx",
>       "args": ["-y", "@proxylayer/cli", "mcp"]
>     }
>   }
> }
> ```

## Инструменты

| Инструмент | Scope | Действие |
| - | - | - |
| `get_catalog` | public | Список продуктов, стран, сроков и цен. |
| `quote_purchase` | public | Расчёт цены покупки, продления (нужна авторизация) или пополнения. |
| `auth_request_otp` | public | Отправка кода подтверждения на email. |
| `auth_verify_otp` | public | Проверка кода, автосоздание аккаунта и выпуск API-ключа. |
| `get_account` | account:read | ID, имя, баланс кошелька в центах USD, режим и права. |
| `get_account_summary` | account:read orders:read | Баланс, активные и истекающие прокси, открытые чекауты. |
| `create_checkout` | orders:write | Чекаут Stripe/крипто или оплата балансом. |
| `get_checkout_status` | orders:read | Статус оплаты и выдачи. |
| `list_orders` | orders:read | Заказы и пополнения. |
| `list_static_proxies` | proxies:read | ISP, Datacenter и Mobile-прокси (учётные данные скрыты по умолчанию). |
| `manage_static_proxies` | proxy:write | Заметки и теги. |
| `renew_static_proxies` | orders:write | Продление ISP- или Datacenter-прокси. |
| `get_residential_balance` | proxies:read | Баланс трафика Residential. |
| `get_residential_proxies` | proxies:read | Строки Residential-прокси. |


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