Skip to main content
Glama

proxy302-mcp

Official Proxy302 MCP server, built and maintained by the Proxy302 team. For account, billing or connection questions contact Proxy302 support; for bugs in this server, open a GitHub issue.

Give your AI assistant a real residential-proxy toolbox. proxy302-mcp is a Model Context Protocol server for Proxy302: check your traffic and usage, browse countries and plans, get a rotating residential proxy URL for any country, list your proxies and static IPs, and fetch a web page through a proxy, all from Claude Code, Claude Desktop, Cursor or any MCP client.

中文说明

v1 is deliberately read-only and spend-free: it never buys, renews or tops up anything. The one write it can do (creating a dynamic proxy credential) is free, off by default, and only bills traffic when you actually use it.

Hosted server (no install)

Proxy302 also runs this server for you. Create an API key in the Proxy302 console first.

Add to Cursor Install in VS Code Install in VS Code Insiders

One click adds https://mcp.proxy302.com/mcp; the app then opens the Proxy302 sign-in window, where you paste your API key once (key id:secret). Deleting the key in the console disconnects it.

  • Claude (claude.ai, Claude Desktop): Settings → Connectors → Add custom connector, URL https://mcp.proxy302.com/mcp.

  • ChatGPT (developer mode): create a connector with the same URL and OAuth.

  • Cursor, VS Code, Windsurf and other MCP clients: the same URL, no headers needed.

Sign in with OAuth: add https://mcp.proxy302.com/mcp as a custom connector in Claude, ChatGPT or any client that supports MCP sign-in, and paste your API key once in the sign-in window. In Claude Code:

claude mcp add --transport http proxy302 https://mcp.proxy302.com/mcp

Then run /mcp in Claude Code to sign in.

Or send the key as a header: use https://proxy302.com/v1/mcp with Authorization: Bearer <key id>:<secret>.

claude mcp add --transport http proxy302 https://proxy302.com/v1/mcp --header "Authorization: Bearer <key id>:<secret>"

Cursor (~/.cursor/mcp.json):

{
  "mcpServers": {
    "proxy302": {
      "url": "https://proxy302.com/v1/mcp",
      "headers": { "Authorization": "Bearer <key id>:<secret>" }
    }
  }
}

The hosted server has the same tools except fetch_url, plus check_ip_purity (blocklist score of your static IPs, or of the IPs a location would hand out next) and estimate_cost (quote a plan against your wallet). It never spends money either.

Related MCP server: ScrapeOps MCP Server

Run it locally

  1. Create an API key in the Proxy302 console and note its key id and secret.

  2. Install:

claude mcp add proxy302 -e PROXY302_API_KEY="<key id>:<secret>" -- npx -y github:proxy302/proxy302-mcp

Requires Node.js 20+.

Bonus: Proxy302 credits 1 PTC to paid accounts the first time a call through proxy302-mcp succeeds (once per account).

Claude Desktop

claude_desktop_config.json:

{
  "mcpServers": {
    "proxy302": {
      "command": "npx",
      "args": ["-y", "github:proxy302/proxy302-mcp"],
      "env": { "PROXY302_API_KEY": "<key id>:<secret>" }
    }
  }
}

Cursor

~/.cursor/mcp.json (or .cursor/mcp.json in a project):

{
  "mcpServers": {
    "proxy302": {
      "command": "npx",
      "args": ["-y", "github:proxy302/proxy302-mcp"],
      "env": { "PROXY302_API_KEY": "<key id>:<secret>" }
    }
  }
}

Tools

Tool

What it does

get_account_usage

Account, wallet (PTC) balance, remaining prepaid traffic, per-pool balance and daily usage for the last N days

list_countries

Countries you can target, with ids and ISO codes (name filter)

list_regions

States of a country, or cities of a state

list_products

Product lines and static IP plans (data center and residential)

get_dynamic_proxy

A ready http://user:pass@host:port residential URL for a country (premium line: also state, city and ISP). session_mode=rotate gives a new IP on every connection, sticky (default) keeps one IP; session_minutes 10–120 on the budget line. Reuses an existing proxy of the same line and place; create_if_missing=true creates one, billed from a traffic package or else the wallet

list_isps

ISPs the premium line can target in a country

rotate_ip

New exit IP for sticky proxies: returns a fresh-session URL that switches at once

list_my_proxies

Your dynamic proxies and static IPs, passwords masked unless asked

fetch_url

Request a URL through your proxy (optionally from a given country) and return Markdown, text or raw

Not in v1, on purpose: purchases, renewals, top-ups.

Examples

Ask your assistant:

  • "How much proxy traffic do I have left, and what did I use this week?"

  • "Which countries can I use? Get me a Germany proxy."

  • "Fetch https://example.com/pricing from a US exit and summarise it."

  • "List my static IPs that expire in the next 7 days."

Use the proxy in Playwright

get_dynamic_proxy returns host, port, username and password:

import { chromium } from 'playwright';

const browser = await chromium.launch({
  proxy: { server: 'http://HOST:PORT', username: 'USERNAME', password: 'PASSWORD' },
});
const page = await browser.newPage();
await page.goto('https://ipinfo.io/json');
console.log(await page.textContent('body'));

Use the proxy in browser-use

from browser_use import Agent, Browser, BrowserConfig

browser = Browser(config=BrowserConfig(
    proxy={"server": "http://HOST:PORT", "username": "USERNAME", "password": "PASSWORD"},
))
agent = Agent(task="Open ipinfo.io and tell me the country", llm=llm, browser=browser)

fetch_url is a plain HTTP request without JavaScript rendering. For JavaScript-heavy sites, hand the proxy URL to a browser as above.

Not sure which proxy type a task needs (static ISP or rotating residential, TikTok, anti-detect browsers, Claude and ChatGPT)? See the Proxy302 guides.

Configuration

Variable

Meaning

PROXY302_API_KEY

Required. <key id>:<secret>, or a Basic ... token

PROXY302_API_SECRET

Optional; use with PROXY302_API_KEY holding only the key id

PROXY302_BASE_URL

Optional; default https://proxy302.com

Credentials are read from the environment only. Never commit them. Requests identify themselves with User-Agent: proxy302-mcp/<version> and X-Proxy302-Client.

Development

npm install
npm run build
npm test
PROXY302_API_KEY="<id>:<secret>" npm run smoke   # read-only checks against the live API

License

MIT

Available Tools

7 tools
fetch_urlFetch a web page through a Proxy302 proxyA
Read-only
Inspect

Request a URL from your machine through one of your Proxy302 proxies (optionally exiting in a given country) and return the page as Markdown, plain text or raw. No JavaScript rendering: for JS-heavy sites use a browser with the proxy URL from get_dynamic_proxy. Uses your proxy traffic.

Inputs: url (required), format, country, token_id, +1 more.

get_account_usageAccount, traffic balance and usageA
Read-only
Inspect

Show the account tied to the API key, wallet balance (PTC), remaining prepaid traffic, and traffic used per day for the last N days. Read-only.

Inputs: days.

get_dynamic_proxyGet a dynamic residential proxy connection stringA
Idempotent
Inspect

Return a ready-to-use rotating residential proxy URL for a country (optionally state/city). Reuses an existing matching proxy of yours; with create_if_missing=true it creates a new credential if none exists (creating is free, traffic is billed only when used from your prepaid pool).

Inputs: country (required), city, line, state, +2 more.

list_countriesList countriesA
Read-only
Inspect

List countries Proxy302 can target. Optional name filter (substring). Returns ids usable in other tools. Read-only.

Inputs: name.

list_my_proxiesList my proxies and static IPsA
Read-only
Inspect

List proxies on the account: dynamic or static, billed by traffic or by IP. Passwords are masked unless include_credentials=true. Read-only.

Inputs: kind, page, billing, page_size, +2 more.

list_productsList products and plansA
Read-only
Inspect

Describe the proxy products and list the static IP plans (data center and residential) with their plan ids. Read-only; prices are shown on proxy302.com.

Inputs: no named parameters.

list_regionsList states or citiesA
Read-only
Inspect

List states of a country, or cities of a state. Pass either country (name/code/id) or state_id. Read-only.

Inputs: name, country, state_id.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 7 tools

    Disambiguation4/5

    Most tools are cleanly separated by resource and action: geo lookups (list_countries/list_regions), catalog (list_products), account state (get_account_usage/list_my_proxies), and actions (get_dynamic_proxy/fetch_url). The only mild overlap is between get_dynamic_proxy and list_my_proxies, since get_dynamic_proxy may reuse an existing proxy, but the descriptions make the boundary (return a usable URL vs. enumerate proxies) clear enough.

    Naming Consistency5/5

    All names follow a consistent snake_case verb_noun pattern (get_*, list_*, fetch_url). The verb choice matches read-only vs. action semantics predictably. Minor quirks like 'my' in list_my_proxies don't break the pattern.

    Tool Count5/5

    Seven tools is a tight, well-scoped surface for a proxy service: discovery, account state, credential retrieval, and a fetch helper. Every tool maps to a distinct step in a plausible workflow, with no obvious filler.

    Completeness3/5

    The read/lookup and proxy-use lifecycle is covered, but there are notable gaps: list_products exposes static IP plan ids yet there is no tool to order/purchase a static plan, and there is no delete/revoke operation for proxies or credentials. Agents can still accomplish core scraping workflows but hit dead ends on provisioning and cleanup.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Provides AI agents with access to a global residential proxy network covering over 190 countries for web fetching and scraping. It enables pay-per-request transactions using USDC on the Base network via the x402 protocol.
      3
      103 npm
      2
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables AI agents to browse the web, bypass anti-bots, render JavaScript, take screenshots, and perform structured data extraction using the ScrapeOps Proxy API.
      3
      17 npm
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables coding agents and chat clients to inspect proxy tokens, usage, pools, geo targeting, and build ready-to-use proxy connection URLs via the Litport account API, while remaining read-only.
      81 npm
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI assistants to pull live free proxy lists filtered by country, protocol, and anonymity, run real liveness and anonymity checks against candidate proxies, and look up geolocation, ASN, and network details for public IP addresses. All tools are read-only and require no API key or installation.
      MIT