Skip to content

Connecting MCP clients

starling-mcp supports both standard MCP transports:

Transport How it runs Best for
Streamable HTTP (the default in the image) One long-running container. Clients connect to http://<host>:8080/mcp. Most setups. One server can be shared by several clients, sessions and machines.
stdio (the default for the binary) The client starts the server for each session, with docker run -i or the local starling-mcp binary. A single machine, no network service, or clients that only support stdio.

The HTTP endpoint is stateless: each request is handled on its own, so you can restart the container at any time. When MCP_AUTH_TOKEN is set, every request must send Authorization: Bearer <token>.

On Claude Desktop you can skip Docker altogether: install the extension bundle, which runs the server for you over stdio.

In the examples below, replace <docker-host> with the machine running the container and <token> with your MCP_AUTH_TOKEN. The server is called starling in every example. If you use a different name, the prompt slash commands change to match.

Terminal window
claude mcp add --transport http starling http://<docker-host>:8080/mcp \
--header "Authorization: Bearer <token>"

Add --scope user to make it available in every project, or --scope project to save it in a .mcp.json you can share. Don’t commit the token: in .mcp.json, reference an environment variable instead:

{
"mcpServers": {
"starling": {
"type": "http",
"url": "http://<docker-host>:8080/mcp",
"headers": { "Authorization": "Bearer ${STARLING_MCP_TOKEN}" }
}
}
}

Run claude mcp list to check the connection, and /mcp inside Claude Code to see the tools. The built-in prompts are available as slash commands, such as /mcp__starling__monthly_review or /mcp__starling__payday_check.

To use stdio instead, with Docker or the local binary:

Terminal window
# Docker
claude mcp add starling -- docker run -i --rm \
-e MCP_TRANSPORT=stdio -e STARLING_ACCESS_TOKEN=<your-token> \
ghcr.io/mattoddie/starling-mcp:latest
# The local binary (see "Running without Docker" in the deployment guide)
claude mcp add starling -e STARLING_ACCESS_TOKEN=<your-token> -- starling-mcp

The easiest way is the extension bundle: a single .mcpb file that installs starling-mcp into Claude Desktop with a settings form. It needs no Docker, no service and no MCP_AUTH_TOKEN, because Claude Desktop runs the server itself over stdio.

  1. Open the latest release and download the bundle for your computer:

    Computer Bundle
    Mac with Apple silicon (M1 and later) starling-mcp-<version>-darwin-arm64.mcpb
    Mac with an Intel processor starling-mcp-<version>-darwin-amd64.mcpb
    Windows on x64 (most PCs) starling-mcp-<version>-windows-amd64.mcpb
    Windows on Arm starling-mcp-<version>-windows-arm64.mcpb

    There are Linux bundles too (linux-amd64, linux-arm64) for other clients that install MCP Bundles.

  2. Double-click the file, or drag it onto Settings → Extensions in Claude Desktop, and click Install.

  3. Fill in the settings and turn the extension on. The tools appear under the tools (🔨) menu, and the prompts under the + menu. You can allow or block each tool separately there.

To update, install the bundle from a newer release the same way.

Setting Variable What to enter
Personal access token (required) STARLING_ACCESS_TOKEN A token from Personal Access at developer.starlingbank.com, with only the read scopes ticked (see Getting started). Claude Desktop keeps it in your system’s secure storage.
Business account token STARLING_ACCESS_TOKEN_BUSINESS Optional second token, for a Starling business account, with only read scopes. Tools then take a holder (default or business), and pay between your company and you is owner pay on both sides. See Multiple account holders.
Your accounts elsewhere STARLING_OWN_ACCOUNTS Optional, such as J SMITH ISA, 12-34-56 / 87654321. Transfers to them are internal moves, not spending. See Your own accounts and your company.
Your company’s accounts elsewhere STARLING_COMPANY_ACCOUNTS Optional, such as SMITH CONSULTING LTD. Pay from them is owner pay; on the business account, moves to them are internal.
Company year end STARLING_YEAR_END Optional, as MM-DD, such as 03-31. Enables the accounting-year periods.
Show account numbers STARLING_SHOW_IDENTIFIERS Off by default, so account numbers, sort codes and IBANs are masked as ••••1234.
Toolsets STARLING_TOOLSETS Optional, such as accounts,transactions. Empty means every toolset except raw. See Keeping the tool list small.
Audit log file STARLING_AUDIT_LOG Optional full path to a file, such as /Users/you/starling-mcp-audit.jsonl, that records every call of the opt-in raw tool. The folder must exist; the file is created. stderr writes the entries to the extension’s log instead. Off when empty. See Audit log.

Settings you leave empty use their defaults, as described in Configuration.

  • Read the error. Claude Desktop shows that the extension failed to start. The server’s log, which says what’s wrong (for example a missing token), is in ~/Library/Logs/Claude/ on macOS and %APPDATA%\Claude\logs\ on Windows, in a file named after the extension.
  • macOS blocks the server. The binary in the bundle isn’t notarised by Apple. If macOS says it can’t check it for malicious software, open System Settings → Privacy & Security and click Open Anyway next to the message about starling-mcp, then turn the extension off and on again.

If you’d rather run the container image or your own binary, use stdio mode. Open Settings → Developer → Edit Config and add:

{
"mcpServers": {
"starling": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"-e", "MCP_TRANSPORT=stdio",
"-e", "STARLING_ACCESS_TOKEN",
"ghcr.io/mattoddie/starling-mcp:latest"
],
"env": {
"STARLING_ACCESS_TOKEN": "<your-token>"
}
}
}
}

Or, with the local binary:

{
"mcpServers": {
"starling": {
"command": "/usr/local/bin/starling-mcp",
"env": { "STARLING_ACCESS_TOKEN": "<your-token>" }
}
}
}

Restart Claude Desktop. The tools appear under the tools (🔨) menu, and the prompts appear under + → Add from starling.

For a business account as well, add a second token (STARLING_ACCESS_TOKEN_BUSINESS) the same way: see Multiple account holders.

Create .vscode/mcp.json in your workspace, or run MCP: Add Server from the command palette:

{
"inputs": [
{ "id": "starling-token", "type": "promptString", "description": "starling-mcp token", "password": true }
],
"servers": {
"starling": {
"type": "http",
"url": "http://<docker-host>:8080/mcp",
"headers": { "Authorization": "Bearer ${input:starling-token}" }
}
}
}

VS Code asks for the token once and stores it securely. Use the tools from Copilot Chat in Agent mode.

Add to ~/.cursor/mcp.json for all projects, or .cursor/mcp.json for one project:

{
"mcpServers": {
"starling": {
"url": "http://<docker-host>:8080/mcp",
"headers": { "Authorization": "Bearer <token>" }
}
}
}

Add to ~/.codex/config.toml:

[mcp_servers.starling]
url = "http://<docker-host>:8080/mcp"
bearer_token_env_var = "STARLING_MCP_TOKEN"

Then export STARLING_MCP_TOKEN=<token> before running codex.

Clients that install servers from the MCP Registry can find starling-mcp there as io.github.mattoddie/starling-mcp. The entry offers the Docker image in stdio mode and the extension bundles, and lists the same settings as the configuration variables.

Any client that supports MCP Streamable HTTP works. Point it at http://<docker-host>:8080/mcp and send the bearer token header.

If your client only supports stdio, you have two options. You can use stdio mode, or you can keep the shared HTTP server and connect through a stdio-to-HTTP bridge such as mcp-remote:

{
"command": "npx",
"args": ["-y", "mcp-remote", "http://<docker-host>:8080/mcp", "--header", "Authorization: Bearer <token>"]
}

Some clients limit how many tools they accept, or slow down with a lot of tools. If yours does, narrow STARLING_TOOLSETS. See Configuration.

In stdio mode the MCP client runs the server itself and talks to it over stdin/stdout. No port is opened, and no MCP_AUTH_TOKEN is needed because only the client can reach the server.

With Docker, the general shape is:

Terminal window
docker run -i --rm \
-e MCP_TRANSPORT=stdio \
-e STARLING_ACCESS_TOKEN=<your-token> \
ghcr.io/mattoddie/starling-mcp:latest

starling-mcp keeps nothing on disk, so there’s no volume to mount and several sessions can run at once.

Tips:

  • Keep the token out of the client config. Pass -e NAME without a value so Docker copies the variable from the client’s environment, as in the Claude Desktop example. You can also use --env-file /path/to/starling.env.
  • Always pass -i and never -t. A TTY corrupts the MCP message stream.
  • Docker on another machine works too. Set DOCKER_HOST in the client’s env.
  • Pin a version (for example :1.2.3) so a new latest doesn’t surprise you. See Deployment.

With a release binary, the client runs it directly. Use the binary’s full path as the command, and pass the settings as environment variables. In a JSON client config, that looks like:

{
"mcpServers": {
"starling": {
"command": "/usr/local/bin/starling-mcp",
"env": {
"STARLING_ACCESS_TOKEN": "<your-token>"
}
}
}
}

The binary uses stdio by default, so there’s no MCP_TRANSPORT to set. In Claude Code:

Terminal window
claude mcp add starling \
--env STARLING_ACCESS_TOKEN=<your-token> \
-- /usr/local/bin/starling-mcp