MCP (Model Context Protocol) server for Proxies.sx: residential and mobile proxies for AI agents, metered per GB. Claude, Cursor and any MCP client can get rotating or sticky HTTP/SOCKS5 proxy URLs, check live stock per country, rotate IPs and manage usage by themselves, for web scraping, data collection and browser automation.
The main product is the Pool Gateway: one endpoint, gw.proxies.sx (HTTP 7000, SOCKS5 7001), where the proxy username says which pool, country and session you want. With this server an agent reads live stock, gets its credentials, builds the proxy URL, watches usage and opens a support ticket when something is wrong. For a dedicated, unlimited-traffic device it rents a Private modem (one 4G/5G modem, by the day, week or month) and tops up the balance by card through a link a person pays. It can also manage dedicated ports on carrier modems, Private Pools and Reserved IPs.
Every tool carries MCP annotations (readOnlyHint, destructiveHint), so a client can ask before a delete, rotate, cancel or purchase. The tools that spend money do nothing until the agent passes confirm: true, which it sets only after the user agreed to the exact USD amount.
Quick start
- Create an API key at client.proxies.sx/account and add traffic (GB) at client.proxies.sx/purchase.
- Add the server to your client. Claude Code:
claude mcp add proxies-sx -e PROXIES_API_KEY=psx_your_api_key_here -- npx -y @proxies-sx/mcp-server
Or install it as a Claude Code plugin, which connects to the hosted server below, adds the Proxies.sx skill and asks for your API key once (stored masked in secure storage):
/plugin marketplace add bolivian-peru/proxies-sx-mcp-server
/plugin install proxies-sx@proxies-sx
Or connect to the hosted server, with nothing to install: https://api.proxies.sx/mcp (Streamable HTTP). Send the key as Authorization: Bearer psx_...; without a key only the public tools are listed (stock, proxy URL format, error help, service status).
claude mcp add --transport http proxies-sx https://api.proxies.sx/mcp --header "Authorization: Bearer psx_your_api_key_here"
{ "mcpServers": { "proxies-sx": { "url": "https://api.proxies.sx/mcp", "headers": { "Authorization": "Bearer psx_your_api_key_here" } } } }
Add ?toolset=full to the URL for every API-key tool. The x402 wallet mode runs only locally (npx), because the hosted server never holds a wallet key.
- Ask for a proxy:
Check Pool Gateway stock for Germany, then give me a sticky residential proxy URL there.
The agent calls pool_get_stock, pool_get_my_credentials and pool_build_proxy_url and answers with a URL such as http://psx_abc123-peer-de-iptype-residential-sid-job1-rot-sticky:PASSWORD@gw.proxies.sx:7000.
API key scopes
A customer key can hold: ports:read, ports:write, ports:rotate, billing:read, account:read, account:write, traffic:read, tickets:read, tickets:write. Select all of them for the full customer tool set. Two opt-in scopes are never in the default set and must be ticked on purpose: modems:purchase (proxies_modem_buy, proxies_modem_renew) and billing:topup (proxies_topup_checkout, proxies_topup_status; each key has a daily top-up cap, spendCapUsdPerDay, default 100 USD, set in the dashboard).
billing:writeis not available to customer keys. The tools that need it (purchase_shared_traffic,create_crypto_payment,cancel_crypto_payment) work with reseller and admin keys only; a customer buys traffic in the dashboard.- The
pak_key tools (pool_mint_keyand the otherpool_*_keytools) need a reseller account, whose keys holdcustomers:readandcustomers:write. - The
ops_*tools answer only to admin keys withops:*scopes.
Pool Gateway rules
The username grammar is psx_<account>-<pool>-<country>[-token-value ...]. pool_build_proxy_url writes it for you; these are the rules behind it.
- Two pools.
peeris the main network: residential and mobile devices in most countries.mblis carrier modems in exactly six countries: US, GB, FR, NL, PL and GE. GE is Georgia, not Germany, sombl-denever works: usepeer-de.anyandbestlet the gateway choose.pool_get_stockshows what is online now. - IP class.
-iptype-mobile,-iptype-residentialor-iptype-isp. The ISP (static) class is addresses on ISP-registered networks hosted on servers; it is served only when you name it. - Rotation.
stickyandhardboth hold one device.auto5,auto10,auto20andauto60move to another device on that interval (auto10is the default).ondemandpicks again on each new connection. - Sessions need
-sid-.sticky,hardandauto*only persist across connections when the username carries-sid-<id>(lowercase letters, digits and_).-session-is not a token: the gateway ignores it without an error. - Sticky holds the device, not the IP. A mobile carrier can change the exit IP of a held modem. For an address that stays, use a residential peer or a Reserved IP.
- Limits per account: 500 concurrent connections and 250 sessions.
- Price: per GB of traffic, lower per GB on larger purchases; time is free.
get_pricingreads the live price list. Both pools cost the same. - Proxy password. The gateway password is the account's proxy password (
pool_get_my_credentials), or apak_key. It is not the account login password.
Gateway errors
The gateway answers a failed request with CODE: message (req: id). pool_explain_error turns any of them into what to do next.
| Code | Status | Meaning |
|---|---|---|
E_AUTH_REQUIRED |
407 | no proxy credentials sent |
E_AUTH_INVALID |
407 | username or proxy password rejected |
E_BALANCE_EXHAUSTED |
407 | credentials are right, the account has no traffic left |
E_CAP_EXCEEDED |
407 | a pak_ key reached its GB cap |
E_RATE_LIMITED_AUTH |
429 | too many failed logins |
E_RATE_LIMITED_CONN |
429 | over the connection limit |
E_SESSION_LIMIT |
429 | over the session limit |
E_NO_STOCK_COUNTRY |
502 | nothing online for that pool, country and filters |
E_STOCK_DEGRADED |
502 | the device went away during the request |
E_SSRF_BLOCKED |
403 | target is a private or metadata address |
E_WRONG_PORT |
400 | HTTP sent to the SOCKS5 port, or the reverse |
E_INTERNAL |
503 | unexpected gateway error |
A tool that fails returns an MCP error result (isError: true) whose text ends with a What to do: line for the common cases: a missing or revoked API key, a missing scope, a rate limit, a server error. Keys and passwords are masked in error text.
Modes and configuration
| Mode | Set | Tools |
|---|---|---|
| API key (standard) | PROXIES_API_KEY |
the default toolset (20 tools), or every API-key tool with --toolset=full |
| x402 wallet (optional) | AGENT_WALLET_KEY |
the x402 wallet group plus the tools marked "also listed in wallet mode" |
| Both | both variables | both of the above |
Toolsets
By default the server lists 20 tools, grouped by what an agent does: buy (proxies_modem_catalog, proxies_modem_quote, proxies_modem_buy, proxies_modem_renew, proxies_topup_checkout, proxies_topup_status, get_pricing), use (pool_get_stock, pool_get_my_credentials, pool_build_proxy_url, pool_explain_error, proxies_modem_mine, proxies_modem_rotate) and manage (get_account_summary, get_account_usage, pool_set_proxy_password, get_service_status, create_support_ticket, list_my_tickets, get_ticket). Fewer tools in the list means a client picks the right one more often.
Everything else (dedicated ports, Private Pools and Reserved IPs, crypto orders, coupons, pak_ keys, x402 session management, ops) is listed with the full toolset:
npx -y @proxies-sx/mcp-server --toolset=full # or PROXIES_TOOLSET=full in the environment
The wallet tools are not affected by the toolset: they are always listed when AGENT_WALLET_KEY is set. The tool tables below mark the default tools.
| Variable | Description |
|---|---|
PROXIES_API_KEY |
psx_ API key from client.proxies.sx/account |
PROXIES_EMAIL, PROXIES_PASSWORD |
Alternative to the API key: log in with the account credentials |
AGENT_WALLET_KEY |
Private key (0x...) of a USDC wallet on the Base network, for x402 payments without an account |
BASE_RPC_URL |
Custom Base RPC endpoint, for x402 (default https://mainnet.base.org) |
PROXIES_API_URL |
API base URL. Default https://api.proxies.sx; a trailing /v1 is accepted and ignored. Leave it unset unless you run a private API. |
PROXIES_TOOLSET |
default (20 tools) or full (every API-key tool). The --toolset=full argument does the same. |
Usage with MCP clients
Every client runs the same command, npx -y @proxies-sx/mcp-server, with PROXIES_API_KEY in the environment.
Claude Code
claude mcp add proxies-sx -e PROXIES_API_KEY=psx_your_api_key_here -- npx -y @proxies-sx/mcp-server
Add -s user to make it available in every project. A project can instead carry a .mcp.json in its root with the JSON below.
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows), then restart Claude Desktop:
{
"mcpServers": {
"proxies-sx": {
"command": "npx",
"args": ["-y", "@proxies-sx/mcp-server"],
"env": {
"PROXIES_API_KEY": "psx_your_api_key_here"
}
}
}
}
Cursor
The same JSON in ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project).
Windsurf
The same JSON in ~/.codeium/windsurf/mcp_config.json.
Docker
docker build -t proxies-sx-mcp https://github.com/bolivian-peru/proxies-sx-mcp-server.git
docker run -i --rm -e PROXIES_API_KEY=psx_your_api_key_here proxies-sx-mcp
The container speaks MCP over stdio (-i is required).
More recipes
recipes/ has working examples for LangChain, CrewAI and a raw MCP client.
Tools
Generated from the code of version 3.2.0 by npm run build:manifest. Do not edit by hand.
The 20 tools marked "Default" are listed without a flag; the others need --toolset=full (or PROXIES_TOOLSET=full). Wallet tools are always listed when a wallet is set.
Pool Gateway
| Tool | What it does |
|---|---|
pool_get_stock |
Get live Pool Gateway stock, no account needed. Default. Also listed in wallet mode. |
pool_get_facets |
List the cities, states, carriers (with ASN and class) and IP classes that have stock in one country, with counts, no account needed. Also listed in wallet mode. |
pool_build_proxy_url |
Build a ready-to-use Pool Gateway proxy URL (gw.proxies.sx, HTTP 7000 or SOCKS5 7001). Default. Also listed in wallet mode. |
pool_explain_error |
Explain a Pool Gateway error and say what to do about it. Default. Also listed in wallet mode. |
pool_get_my_credentials |
Get your Pool Gateway proxy username and proxy password with ready HTTP and SOCKS5 URLs. Default. |
pool_set_proxy_password |
Set a new proxy password (at least 6 characters). Default. |
pool_get_my_stats |
Get your own Pool Gateway traffic and open connections, plus the health score of the pool and how many devices are connected to it. |
pool_list_sessions |
List your saved Pool Gateway sessions: pool, country, carrier, rotation mode, bytes and last activity. |
pool_close_session |
Close one Pool Gateway session by the sessionKey from pool_list_sessions. |
pool_close_all_sessions |
Close every saved Pool Gateway session of the account. |
Private modems
| Tool | What it does |
|---|---|
proxies_modem_catalog |
List the Private modem plans for sale right now: country, carrier, period (day, week or month), price in USD, stock, OpenVPN and p0f support, regions. Default. |
proxies_modem_quote |
Price check before spending. Default. |
proxies_modem_buy |
Rent a Private modem (one dedicated 4G/5G modem, unlimited traffic) from the account balance. Default. |
proxies_modem_renew |
Extend the rental of one of your Private modems from the account balance. Default. |
proxies_modem_rotate |
Ask one of your Private modems for a new IP address. Default. |
proxies_modem_mine |
List your rented Private modems: status, expiry, online state, HTTP and SOCKS5 credentials, rotation settings, auto-renew, plus open orders and recent failures. Default. |
Private Pool and Reserved IPs
| Tool | What it does |
|---|---|
private_pool_list |
List your Private Pools with their countries, status, gateway username, connection strings with the password masked (private_pool_reveal shows the key) and remaining GB. |
private_pool_build |
Create a Private Pool paid from the account's existing GB balance: no purchase, traffic is metered from the same balance. |
private_pool_reveal |
Show the gateway password (pak_ key) of a Private Pool. |
private_pool_usage |
Get the traffic of a Private Pool per day, in MB. |
reserved_ip_list |
List the Reserved IPs a Private Pool holds: country, class, carrier, city, rotation mode, whether the device is online, the exit IP last seen, and connection strings with the password masked. |
reserved_ip_reserve |
Reserve one device for a Private Pool so no other customer is routed through it, and get its connection strings with the password masked. |
reserved_ip_rotate |
Move a Reserved IP to a different device in the same country now. |
reserved_ip_extend |
Change how long a Reserved IP is kept without traffic. |
reserved_ip_set_rotation |
Set whether a Reserved IP moves to another device on a schedule: off (hold the device, the default) or every 5, 10, 20 or 60 minutes. |
reserved_ip_release |
Give a Reserved IP back to the shared pool. |
Account
| Tool | What it does |
|---|---|
get_account_summary |
Get the account balance, free port slots, traffic bought and left, and any account alerts. Default. |
get_account_usage |
Get traffic purchased, used and still available, split into Pool Gateway traffic and dedicated-port traffic. Default. |
Billing
| Tool | What it does |
|---|---|
get_pricing |
Get the live price per GB, the volume discounts, the free port-slot tiers and your current tier. Default. |
calculate_price |
Calculate what a GB amount costs with the volume discount applied. |
purchase_shared_traffic |
Buy traffic in GB from the account balance. |
coupon_validate |
Check whether a coupon code is valid for an order, without using it. |
coupon_redeem |
Redeem a standalone coupon that grants free GB or port slots to the account. |
get_payment_history |
List the account's past payments and crypto top-up orders. |
Crypto payments
| Tool | What it does |
|---|---|
proxies_topup_checkout |
Add money to the account balance by card: creates a Stripe Checkout page and returns its url and sessionId. Default. |
proxies_topup_status |
Check whether a card top-up started with proxies_topup_checkout was paid and credited to the balance (credited true or false). Default. |
create_crypto_payment |
Create a crypto order that tops up the account balance and return its hosted payment link. |
check_crypto_payment_status |
Check whether a crypto order is still unpaid, confirming, paid, expired or cancelled, and whether the balance was credited. |
get_pending_crypto_payments |
List the account's crypto orders that are not finished yet, with their payment links. |
cancel_crypto_payment |
Cancel a crypto order that has not been paid yet. |
get_crypto_payment_info |
Check whether crypto top-ups are available right now and which currencies the payment page accepts. |
Dedicated ports
| Tool | What it does |
|---|---|
list_available_countries |
List the countries where a dedicated port can be created right now, with the countryId create_port needs. |
list_ports |
List your dedicated ports with status, country, carrier, expiry and port ids. |
get_port |
Get one dedicated port with its location and ready-to-use HTTP and SOCKS5 connection strings (contains the port password). |
create_port |
Create a dedicated port on a carrier modem and return its connection strings. |
delete_port |
Delete a dedicated port and free its slot. |
update_port_credentials |
Change the login and/or password of a dedicated port. |
update_os_fingerprint |
Set the OS fingerprint (TCP/IP signature) a dedicated port presents. |
reconfigure_port |
Move a dedicated port to another country, carrier or city. |
extend_port |
Add hours to a dedicated port's expiry. |
Port status
| Tool | What it does |
|---|---|
get_port_status |
Check whether a dedicated port is online, offline or expired. |
get_port_ip |
Get the server address a dedicated port listens on. |
ping_port |
Test that a dedicated port answers and measure its latency. |
speed_test_port |
Run a speed test through a dedicated port (download, upload, ping). |
Port rotation
| Tool | What it does |
|---|---|
rotate_port |
Move a dedicated port to another modem in the same location. |
check_rotation_availability |
Check whether a dedicated port can be rotated now, how long the cooldown still runs and how many other modems are free. |
configure_auto_rotation |
Turn automatic rotation of a dedicated port on or off and set its interval. |
get_rotation_history |
Get the past rotations of a dedicated port: when, how triggered, the location it moved to and whether it worked. |
get_rotation_token_url |
Get the public rotation link of a dedicated port. |
Utilities
| Tool | What it does |
|---|---|
get_proxy_connection_string |
Build the HTTP or SOCKS5 connection string of a dedicated port (contains the port password). |
get_all_proxy_formats |
Get a dedicated port in every common format: URLs, host:port, environment variables, curl, Python and Node.js snippets, and its public rotation link. |
get_service_status |
Check whether Proxies.sx is healthy right now: open Pool Gateway incidents, the state of the API, gateway and relay, and recent uptime. Default. Also listed in wallet mode. |
get_os_fingerprint_options |
List the OS fingerprint values create_port and update_os_fingerprint accept. |
Support
| Tool | What it does |
|---|---|
create_support_ticket |
Open a support ticket that a person at Proxies.sx reads and answers. Default. |
list_my_tickets |
List your support tickets with their status and IDs. Default. |
get_ticket |
Get one support ticket with the original message and every reply. Default. |
reply_to_ticket |
Add a reply to one of your support tickets. |
close_ticket |
Close one of your support tickets once the problem is solved. |
Pool access keys (reseller accounts)
| Tool | What it does |
|---|---|
pool_mint_key |
Create a Pool Access Key (pak_) for one of your customers; it is used as the proxy password. |
pool_list_keys |
List your Pool Access Keys with usage, cap and expiry; the key values are masked. |
pool_topup_key |
Add GB to a Pool Access Key's cap and/or extend its expiry in one step. |
pool_update_key |
Change a Pool Access Key's label, enabled flag, cap, expiry or quality tier. |
pool_regenerate_key |
Replace the secret pak_ value of a Pool Access Key. |
pool_reveal_key |
Show the full pak_ value of a Pool Access Key. |
pool_delete_key |
Delete a Pool Access Key. |
pool_key_usage |
Get the traffic of |
