Connect Claude Desktop to FineProxy MCP
Connect Claude Desktop to the FineProxy MCP server through a custom connector with a request header, or through the local mcp-remote bridge in claude_desktop_config.json.
This page shows two ways to connect Claude Desktop to the FineProxy MCP server. Pick one:
| Method | How the API key is sent | Who connects to FineProxy |
|---|---|---|
| Custom connector (Settings → Connectors) | A request header you enter in the connector settings | Anthropic’s cloud |
claude_desktop_config.json + mcp-remote | The local bridge adds the header | Your computer |
The desktop config file only starts local (stdio) servers and has no field for HTTP headers. That is why the second method runs mcp-remote, a small bridge that turns a local stdio server into a Streamable HTTP connection with your Authorization header.
Requirements
- Claude Desktop. Custom connectors depend on your Claude plan — see Anthropic’s connector guide.
- For the
mcp-remotemethod: Node.js withnpxon your computer. - A FineProxy API key (starts with
fb_). Create one in Settings → API keys. Start with read-only scopes.
Set up
Option 1: custom connector
- Open Settings → Connectors → Add → Custom → Web.
- Enter the URL
https://fineproxy.org/account_new/api/v1/mcp. - Choose the Streamable HTTP transport.
- Under authentication, add a request header: name
Authorization, valueBearer fb_your_api_key(with your key). - Save the connector.
Requests to FineProxy then come from Anthropic’s servers rather than from your computer. This works because the FineProxy MCP endpoint is public HTTPS.
Option 2: claude_desktop_config.json with mcp-remote
-
Open the config file for your OS (create it if it does not exist):
OS Path macOS ~/Library/Application Support/Claude/claude_desktop_config.jsonWindows %APPDATA%\Claude\claude_desktop_config.jsonLinux ~/.config/Claude/claude_desktop_config.json -
Add the
fineproxyserver:{ "mcpServers": { "fineproxy": { "command": "npx", "args": [ "-y", "mcp-remote", "https://fineproxy.org/account_new/api/v1/mcp", "--transport", "http-only", "--header", "Authorization:${FP_AUTH}" ], "env": { "FP_AUTH": "Bearer fb_your_api_key" } } } }--transport http-onlymakes the bridge use Streamable HTTP, which is what the FineProxy server speaks.- Write the header argument exactly as
Authorization:${FP_AUTH}, without spaces around the colon. Some launchers (Claude Desktop on Windows among them) don’t escape spaces insideargs. Spaces are fine inside theenvvalue, soBearer ...goes there.
-
Fully quit Claude Desktop (
Cmd+Qon macOS, not just closing the window) and open it again.
You can test the same bridge from a terminal with the MCP Inspector before you touch the desktop config:
export FP_AUTH="Bearer $FINEPROXY_API_KEY"
npx -y @modelcontextprotocol/inspector --cli --method tools/list --transport stdio \
-e FP_AUTH="$FP_AUTH" -- \
npx -y mcp-remote https://fineproxy.org/account_new/api/v1/mcp \
--transport http-only \
--header "Authorization:\${FP_AUTH}"
Keep your key out of the config
-
Custom connector: the key is stored in your Claude connector settings, not in a file on disk or in Git. Keep in mind that it lives in your Claude account and follows your organization’s policies there.
-
Desktop config: the key sits in the
envblock ofclaude_desktop_config.json. Don’t keep copies of this file in a repository or a synced dotfiles folder. -
To keep the key out of the config file and the process list entirely, use
mcp-remote --header-fileinstead of--header. Point it to a file outside any repository with oneName: valueline, and restrict it to your user (chmod 600):Authorization: Bearer fb_your_api_key
Warning: Never commit a
claude_desktop_config.jsonor header file that contains a literalfb_...key.
Verify the connection
-
In a new chat, open the tools / connectors menu and check that
fineproxyis listed and connected. For a custom connector, the connector page in Settings shows its status. -
Ask:
What is my FineProxy balance?Claude calls the
wallet_balancetool and answers with your balance, for example"balance_cents": 5000— money values are integer cents, so that is $50.00.
Tips
- Approve tool calls. Claude Desktop asks before it runs a tool. Read the arguments of order, renewal and cancellation tools before you allow them, and don’t allow money-moving tools permanently.
- Use a read-only key first. For exploring, a key with
customer:read,wallet:read,services:readandcatalog:readis enough. Withoutwallet:spend, the agent can’t run tools that debit your wallet. - Add
wallet:spendonly for purchases. Create a separate key withwallet:spendwhen you want Claude to buy or renew. Purchase tools carry a price guard and an idempotency key: a wrong total is rejected without a charge, and a retry with the same key never charges twice. - Read MCP safety and the scopes reference before you give an agent spending rights.
Troubleshooting
| Symptom | Cause and fix |
|---|---|
'C:\Program' is not recognized... on Windows | Spaces in args aren’t escaped. Keep Authorization:${FP_AUTH} without spaces and put Bearer ... in env, as in the example. |
| The server doesn’t appear after editing the file | Claude Desktop reads the file at startup. Quit it completely and reopen it; check the file is valid JSON. |
| The custom connector works, the desktop config doesn’t | Check the mcp-remote output: the bridge logs to stderr, including the connection result and the HTTP status. |
401 | The key is missing or wrong, or the FP_AUTH value lacks the Bearer prefix. |
| Claude tries to start an OAuth sign-in | FineProxy MCP has no OAuth — it accepts API keys only. Make sure the Authorization header is set. |
429 Too Many Requests | Too many connections in a short time. Wait a moment and restart once. |
For server-side errors and tool failures, see MCP troubleshooting.