x402 MCP Wallet Mode: Agents Buy Proxies
Run @proxies-sx/mcp-server 3.2.0 with AGENT_WALLET_KEY so Claude or Cursor can buy pool GB with USDC on Base. Tools, setup, spend safety and limits.
By Proxies.sx Team. Reviewed .
@proxies-sx/mcp-server 3.2.0 has two modes. With an API key it lists 20 account tools by default and all 96 with --toolset=full, and that is the main path. With AGENT_WALLET_KEY set instead, it runs locally and lists the 5 public tools plus 16 x402 wallet tools: the agent can quote, buy and manage Pool Gateway credentials and dedicated ports by paying USDC on Base from that wallet, with no account. The wallet needs USDC and a little ETH for gas on Base.
Read live x402 pool pricingNo key or payment needed.
In this guide
Two modes: API key and wallet
| API key mode (main path) | Wallet mode | |
|---|---|---|
| Set | PROXIES_API_KEY | AGENT_WALLET_KEY |
| Runs | Locally, or hosted at https://api.proxies.sx/mcp with the key as a Bearer token | Locally over stdio only |
| Tools | 20 by default, all 96 with --toolset=full | The 5 public tools plus 16 x402 wallet tools |
| Pays with | The account balance | USDC on Base from the wallet |
| Products | Every product, including Private modems | Pool credentials and dedicated ports |
The MCP server page covers the API key tools. This guide is about wallet mode.
The 16 wallet tools
| Task | Tools |
|---|---|
| Price and check before buying | x402_pool_pricing, x402_get_pricing, x402_list_countries, x402_wallet_balance, x402_service_status |
| Spend USDC | x402_get_pool_access (pool credential, 0.1 to 100 GB per call), x402_get_proxy (dedicated port), x402_pool_topup (with add_traffic_gb) |
| Manage a pool credential | x402_pool_credit, x402_pool_usage, x402_pool_connection, x402_pool_regenerate |
| Manage a port | x402_list_sessions, x402_check_session, x402_extend_session, x402_rotate_ip |
x402_get_pool_access, x402_get_proxy and x402_pool_topup (with add_traffic_gb) send USDC. x402_pool_regenerate issues a new password and the old one stops working; x402_rotate_ip moves the port to another device. Extending a port's time is free. The other tools only read.
Configure the client
Add the server to an MCP client such as Claude Desktop, Claude Code or Cursor with the wallet key in its environment. Pin the version so an update never changes what the agent can do without your review. Then ask the agent for a price before anything else, for example: Quote 0.1 GB on the peer pool with x402_pool_pricing before buying anything.
{ "mcpServers": { "proxies-sx-wallet": {
"command": "npx", "args": ["-y", "@proxies-sx/mcp-server@3.2.0"],
"env": { "AGENT_WALLET_KEY": "<PRIVATE_KEY_OF_A_DEDICATED_LOW_BALANCE_BASE_WALLET>" } } } }Spend safety
The wallet key lets the agent spend whatever the wallet holds, so the wallet is the spending limit:
- Use a dedicated wallet for the agent and fund it with only what the agent may spend.
- Keep a human approval step for purchases. The purchase approval guide shows what to record before the agent pays.
- Every credential is capped at the GB it was bought for, so a single purchase cannot run past what was paid.
- Keep the key out of chat transcripts and logs; set it only in the client's environment.
What wallet mode does not do
- Solana. Wallet mode pays on Base. An agent with USDC on Solana pays by itself, as in the Solana guide.
- Private modems. They are not sold over x402 direct. The same wallet can sign in, top up the balance with USDC and mint an API key for API key mode; see the wallet account recipe.
- A built-in spend cap. 3.2.0 has no per-call or per-day limit setting. The wallet balance is the limit.
- A claim secret. 3.2.0 does not send
X-Claim-Secretwith its paid requests. Recovery of a lost response depends on its local session cache, described next.
Lost responses: keep the session cache
Wallet mode stores the session tokens and connection details it receives in ~/.proxies-sx/, in files readable by your user only. The management tools read the cached token when you do not pass one. Back up that folder with your other secrets and do not delete it while a credential is in use. If a purchase response never reached the cache, contact support with the transaction hash before paying again. A script that pays by itself can send X-Claim-Secret instead, as the curl quickstart shows.
Common questions
Can the hosted MCP server at api.proxies.sx/mcp pay with a wallet?
No. The hosted server authenticates with an API key. Wallet mode runs on your own machine because the wallet key must stay there.
Which clients can run wallet mode?
Any MCP client that starts a local stdio server with environment variables, such as Claude Desktop, Claude Code or Cursor.
Does wallet mode work with a Solana key?
No. AGENT_WALLET_KEY is a Base wallet private key. Solana payments are made outside the MCP server.
Sources and test scope
Quotes, prices and response fields on these pages were read from the live API without payment on 30 November 2026, and the error texts come from the backend build running that day. The wallet account examples follow the source of that build, and their signing commands were checked offline against its verification code. Standards and third-party documentation were checked the same day. These pages do not establish current stock in a country.
Next steps
The x402 overview lists every endpoint. The wallet account recipe gives both purchase paths step by step: x402 direct, and signing in with the paying wallet. Agents can read the machine contracts directly: skill.md for the whole service, pool/skill.md for the Pool Gateway and marketplace/skill.md for the dedicated port. The MCP server gives Claude, Cursor and other clients the same tools, and the price list covers account purchases.
x402 guides: buy proxy access with USDC
Start from the x402 overview, or open the guide for the step you are on.