# 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.

- Canonical: https://fineproxy.org/developers/docs/mcp/clients/claude-desktop/

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`](https://github.com/punkpeye/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](https://support.claude.com/en/articles/11175166-get-started-with-custom-connectors-using-remote-mcp).
- For the `mcp-remote` method: Node.js with `npx` on your computer.
- A FineProxy API key (starts with `fb_`). Create one in [Settings → API keys](https://fineproxy.org/account_new/settings#api-keys). Start with read-only [scopes](/developers/docs/authentication/#scopes).

## Set up

### Option 1: custom connector

1. Open **Settings → Connectors → Add → Custom → Web**.
2. Enter the URL `https://fineproxy.org/account_new/api/v1/mcp`.
3. Choose the **Streamable HTTP** transport.
4. Under authentication, add a **request header**: name `Authorization`, value `Bearer fb_your_api_key` (with your key).
5. 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

1. Open the config file for your OS (create it if it does not exist):

   | OS | Path |
   | --- | --- |
   | macOS | `~/Library/Application Support/Claude/claude_desktop_config.json` |
   | Windows | `%APPDATA%\Claude\claude_desktop_config.json` |
   | Linux | `~/.config/Claude/claude_desktop_config.json` |

2. Add the `fineproxy` server:

   ```json
   {
     "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-only` makes 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 inside `args`. Spaces are fine inside the `env` value, so `Bearer ...` goes there.

3. Fully quit Claude Desktop (`Cmd+Q` on 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:

```bash
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 `env` block of `claude_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-file` instead of `--header`. Point it to a file outside any repository with one `Name: value` line, and restrict it to your user (`chmod 600`):

  ```text
  Authorization: Bearer fb_your_api_key
  ```

> **Warning:** Never commit a `claude_desktop_config.json` or header file that contains a literal `fb_...` key.

## Verify the connection

1. In a new chat, open the tools / connectors menu and check that `fineproxy` is listed and connected. For a custom connector, the connector page in Settings shows its status.
2. Ask:

   ```text
   What is my FineProxy balance?
   ```

   Claude calls the `wallet_balance` tool 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:read` and `catalog:read` is enough. Without `wallet:spend`, the agent can't run tools that debit your wallet.
- **Add `wallet:spend` only for purchases.** Create a separate key with `wallet:spend` when 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](/developers/docs/mcp/safety/) and the [scopes reference](/developers/docs/authentication/#scopes) 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](/developers/docs/mcp/troubleshooting/).
