NEW! |One API call, clean data back. No scrapers needed.Get 10,000 Free Tokens →

Setup instructions for AI agents

A step-by-step playbook an AI agent can follow to connect the FineProxy MCP server to the client it runs in, with the user's approval at every step.

This page is written for an AI agent. Give its Markdown version to the agent you work with — Cursor, Claude Code, VS Code Copilot, Cline, Windsurf, Codex, Gemini CLI or another MCP client — and it will walk you through connecting FineProxy:

Read https://fineproxy.org/developers/docs/mcp/agent-setup.md and help me connect the FineProxy MCP server to this client.

Everything below is addressed to the agent.

Your task

Connect the FineProxy MCP server to the MCP client you are running in, then prove the connection works with one read-only call. Work in small steps, explain each step to the user in plain language and ask before you change any file.

Server facts:

SettingValue
Server namefineproxy
URLhttps://fineproxy.org/account_new/api/v1/mcp
TransportStreamable HTTP (remote server, no local package needed)
AuthenticationHeader Authorization: Bearer <API key>; keys start with fb_
Environment variable for the keyFINEPROXY_API_KEY

FineProxy MCP has no OAuth. If the client offers an OAuth sign-in for this server, the Authorization header is missing.

Rules

  • Never ask the user to paste the API key into the chat. The key belongs in an environment variable that the user sets; the config file only references the variable.
  • Never write a literal fb_... key into a file that may be committed (project-level configs such as .cursor/mcp.json, .mcp.json, .vscode/mcp.json).
  • Ask before you create or edit a config file. Show the exact content you will write.
  • Start read-only. Recommend a key with customer:read, wallet:read, services:read and catalog:read. Mention wallet:spend only if the user wants you to buy or renew proxies later.
  • Never spend money during setup. Do not call any tool marked as spending money (order_composite, order_dedicated, buy_service, renew_service, add_ips, refresh_ips, purchase_addon).

Step 1. Identify the client

Determine which MCP client you are running in. If you are not sure, ask the user. Then read the matching page — it contains the exact config file location, format and environment-variable syntax for that client:

ClientInstructions
Cursor/developers/docs/mcp/clients/cursor.md
Claude Code/developers/docs/mcp/clients/claude-code.md
Claude Desktop/developers/docs/mcp/clients/claude-desktop.md
VS Code (GitHub Copilot)/developers/docs/mcp/clients/vscode.md
Cline/developers/docs/mcp/clients/cline.md
Windsurf/developers/docs/mcp/clients/windsurf.md
Codex CLI/developers/docs/mcp/clients/codex.md
Gemini CLI/developers/docs/mcp/clients/gemini-cli.md
n8n/developers/docs/mcp/clients/n8n.md
Anything else/developers/docs/mcp/clients/other.md

All paths are relative to https://fineproxy.org.

Step 2. Get an API key

Ask the user to:

  1. Open https://fineproxy.org/account_new/settings#api-keys and sign in.
  2. Create a key with read-only scopes: customer:read, wallet:read, services:read, catalog:read.
  3. Copy the key — it is shown only once.

Step 3. Put the key in an environment variable

Ask the user to set FINEPROXY_API_KEY themselves, in the environment the client process will see:

export FINEPROXY_API_KEY="fb_your_api_key"
setx FINEPROXY_API_KEY "fb_your_api_key"

Explain that GUI apps started from the Dock, Start menu or a launcher may not see variables from ~/.zshrc or ~/.bashrc; in that case the client must be started from a terminal where the variable is set, or the variable must be set system-wide. On Windows, setx affects only processes started afterwards.

Step 4. Add the server to the client config

Use the config from the client page you read in step 1. For example, Cursor (~/.cursor/mcp.json):

{
  "mcpServers": {
    "fineproxy": {
      "url": "https://fineproxy.org/account_new/api/v1/mcp",
      "headers": {
        "Authorization": "Bearer ${env:FINEPROXY_API_KEY}"
      }
    }
  }
}

Claude Code (one command, user scope):

claude mcp add --transport http --scope user fineproxy \
  https://fineproxy.org/account_new/api/v1/mcp \
  --header "Authorization: Bearer $FINEPROXY_API_KEY"

If the file already exists, merge the fineproxy entry into the existing mcpServers object — do not overwrite other servers. The environment-variable syntax differs between clients (${env:NAME}, ${NAME}, $NAME); always use the syntax from the client page.

Step 5. Reload and verify

  1. Ask the user to reload the MCP servers or restart the client, as described on the client page.

  2. Check that the fineproxy server is connected and exposes its tools.

  3. Call the read-only tool wallet_balance with no arguments. A working connection returns something like:

    {
      "balance_cents": 5000,
      "currency": "USD",
      "has_wallet": true
    }
  4. Tell the user the result in plain words: amounts are integer cents, so 5000 is $50.00.

Step 6. Hand over

Summarize what you configured (file path, server name, scopes of the key) and suggest a few first requests, for example:

  • “Show my active proxy services and when they expire.”
  • “Which countries have datacenter IPs in stock?”
  • “Quote 100 datacenter IPs in Germany for one month.” — a quote is free and does not buy anything.

Point the user to MCP safety before they give a key the wallet:spend scope.

If something fails

SymptomWhat to do
401 UnauthorizedThe key is missing, wrong or the variable is not visible to the client. Check step 3; do not ask for the key in chat.
OAuth sign-in promptThe Authorization header is missing from the config.
Server not listedConfig file in the wrong place or wrong format for this client — re-check the client page.
429 Too Many RequestsWait a minute and reconnect once.
Tool returns isError: trueRead the message: it explains the problem (for example a missing scope).

More cases: MCP troubleshooting.