Skip to content

Proxies for AI Agents: MCP, Claude Code, Codex, Cursor

Give Claude Code, Codex, Cursor and other AI tools a proxy they can use themselves: ask for a proxy in a given country, open a page from there or check how much traffic is left, right inside the assistant. For agents that drive a browser, hand the browser a proxy URL.

Install in your AI client

Two ways in: connect to the remote endpoint (nothing to install), or run proxy302-mcp on your own computer. Both need a Proxy302 API key.

  1. Create an API key on the API keys page of the console, then put it in the command or config below as <key id>:<secret>. API keys

    Keep the key in the environment variable as shown. Do not paste it into a chat or commit it to a repository.

  2. Connect your client straight to https://proxy302.com/v1/mcp. It uses Streamable HTTP; send your API key in the Authorization header as Bearer <key id>:<secret>. No Node.js needed.

    https://proxy302.com/v1/mcp

    Run in a terminal.

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

    9 tools

    • Account balance and usage
    • Country and region lists
    • Products and prices
    • A rotating residential proxy for a country
    • Your proxies, with the exit address of each static IP
    • Changing an IP
    • An IP purity check, scored the same way as on the order page
    • A cost estimate checked against your wallet balance

    None of them spends money: purchases stay in the console.

  3. Then 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.
    • What does a 30-day static ISP IP cost, and which plans are there?

proxy302-mcp is the official Proxy302 MCP server, open source on GitHub and maintained by the Proxy302 team. Account and billing questions go to Proxy302 support; bugs in the server go to its GitHub issues. Developer docsSource on GitHub

Using the proxy from mainland China? Turn on One-click boost in the Helper first. Helper guide

Paid accounts get 1 PTC the first time a call through MCP succeeds, once per account, while the offer runs.

Proxy302 at a glance for agent work

Scroll horizontally with the arrow keys to read all content.

Proxy302 at a glance for agent work
ItemPriceProtocolsLocationsFits agent work like
Rotating residentialFrom US$1.50 per GB (Budget line); US$5 per GB (Premium line); lower per GB in larger packagesHTTP, SOCKS5195+ countries and regions; state and major city on lines that support itBrowsing and research agents, data collection
Static ISP, per IPUS$0.50 for 1 day, US$7.99 for 30 days, the same in every countryHTTP or SOCKS5, chosen per IP30 countries on the order form; stock changes dailyOne fixed IP for each account an agent signs in to
ISP for AI subscriptionsPer 30 days: Claude 15 PTC, GPT / Grok 10 PTC, Gemini 8 PTC; the first order in each tier is 50% offHTTP or SOCKS5Claude: US, UK, DE, JP. GPT / Grok: US, UK, FR, JP, KR. Gemini: US, UK, FR, JPCoding tools and agents signed in to ChatGPT, Claude, Gemini or Grok
Datacenter, per IPUS$0.25 for 1 day, US$3.99 for 30 daysHTTP or SOCKS5, chosen per IP8 countriesAPI calls and tool traffic where the IP type does not matter
proxy302-mcpFree, open source (MIT)MCP over stdio, started with npxUses the products aboveLets Claude Code, Codex, Cursor and other MCP clients get a proxy and fetch pages through it

Prices are in PTC, paid from the wallet; 1 PTC = US$1. There is no free trial: the smallest purchase is 1 GB of rotating residential traffic or one IP for one day. Checked on 8 November 2026.

Agents that open a browser

Browser Use, Playwright MCP and other browser agents take a proxy URL with a username and password; use the HTTP endpoint for that. Give each agent its own rotating residential proxy, check the exit country on an IP lookup page first, and keep one IP for a multi-step task.

Data collection

Ask the assistant to fetch a public page from another country with the fetch_url tool, or point the crawler that feeds your retrieval pipeline at a rotating residential proxy. Follow each site's terms and robots.txt, and keep request rates reasonable.

AI subscriptions

Claude Code, Codex and Gemini CLI run on your own subscription account. Use one fixed ISP IP for each account, in a country the provider supports. A proxy changes only the network address the service sees; the provider's terms and supported-country list still apply.

FAQ

What is an AI-native proxy?

A proxy your AI tools can use on their own: through MCP tools inside the assistant, such as getting a proxy for a country or fetching a page through it, or as a proxy URL that an agent's browser or command-line tool sends its traffic through.

Does Proxy302 have an MCP server?

Yes, in two forms. The remote endpoint https://proxy302.com/v1/mcp needs no install: add it to your client with your API key in the Authorization header; it has 9 tools, and none of them spends money. proxy302-mcp is the open-source version that runs on your own computer, with 7 tools. Both are official and maintained by the Proxy302 team.

Can the MCP server spend my balance?

No. It cannot buy anything or spend the wallet. Its only write, creating a dynamic proxy credential, is free and off by default, and traffic is billed only when you use it.

Which proxy should my agent use?

Rotating residential for reading public pages from many countries, a fixed static ISP IP for each account an agent signs in to, and datacenter or no proxy for plain API calls. The table above lists prices and protocols.

Do AI coding tools work with SOCKS5?

Use the HTTP endpoint. Anthropic's Claude Code documentation says Claude Code does not support SOCKS proxies, and Playwright accepts a username and password only for HTTP proxies, so browser agents need the HTTP endpoint too.

Is there a free trial?

No. The smallest purchase is 1 GB of rotating residential traffic or one IP for one day. The MCP server itself is free.

Will a proxy let me use an AI service where it is not offered?

A proxy changes only the network address a service sees. Each AI provider's terms and supported-country lists still apply, and account decisions are made by the provider.

Reference links

9
  1. Claude Code docs: MCP

    Official documentation · Confirmed on:

  2. Claude Code docs: network configuration

    Official documentation · Confirmed on:

  3. Codex docs: MCP

    Official documentation · Confirmed on:

  4. Gemini CLI docs: MCP servers

    Official documentation · Confirmed on:

  5. Cursor docs: MCP

    Official documentation · Confirmed on:

  6. VS Code docs: MCP servers

    Official documentation · Confirmed on:

  7. Cline docs: configuring MCP servers

    Official documentation · Confirmed on:

  8. Playwright docs: HTTP proxy

    Official documentation · Confirmed on:

  9. proxy302-mcp source code

    Official documentation · Confirmed on:

Ready to connect?

Create an account, top up once and pick rotating residential, static ISP or datacenter. Rotating residential exits cover 195+ countries and regions.