Skip to content

Deployment

The repository’s compose.yaml is a good starting point:

services:
starling-mcp:
image: ghcr.io/mattoddie/starling-mcp:latest
container_name: starling-mcp
restart: unless-stopped
env_file: .env
ports:
- "8080:8080"
read_only: true
cap_drop: [ALL]
security_opt: ["no-new-privileges:true"]
Terminal window
docker compose up -d # start
docker compose logs -f # follow logs
docker compose ps # shows "healthy" once the health check passes
docker compose down # stop

The server keeps no state: the access token comes from the environment and the transaction cache lives in memory, so a restart simply starts with an empty cache. There’s no volume to look after, the root filesystem can be read-only, and you can run as many copies as you like.

The image has a built-in health check that runs starling-mcp healthcheck every 30 seconds. The image has no shell or curl, so the binary checks its own /health endpoint. It only shows that the server is running, not that Starling is reachable or the token is valid.

To listen on one interface only, such as a LAN address or localhost when you use a reverse proxy, change the port mapping to "192.168.1.20:8080:8080" or "127.0.0.1:8080:8080".

The image’s entrypoint is the starling-mcp binary, so you can run any of its commands with docker compose run --rm starling-mcp <command>, or docker compose exec starling-mcp /starling-mcp <command> while it’s running:

Command What it does
serve (the default) Serves MCP over stdio, or Streamable HTTP when MCP_TRANSPORT=http
healthcheck Exits with 0 if the HTTP server answers /health on MCP_HTTP_HOST (or 127.0.0.1 when it listens on every address) and MCP_HTTP_PORT. Used by the image’s HEALTHCHECK.
version Prints the version

Images are published to the GitHub Container Registry at ghcr.io/mattoddie/starling-mcp for linux/amd64 and linux/arm64. Each GitHub release publishes these tags:

Tag Example Moves?
X.Y.Z 1.4.2 Never. Pin this for full reproducibility.
X.Y 1.4 Moves to the latest patch release (bug fixes).
X 1 Moves to the latest minor release (new features, no breaking changes). Not published for 0.x.
latest Moves to the newest stable release.

Pre-releases, such as 1.5.0-rc.1, are only published under their exact version, never as latest.

The image is built FROM gcr.io/distroless/static-debian13:nonroot. It contains the static starling-mcp binary, CA certificates and time zone data, and nothing else: no shell and no package manager. It runs as the non-root user 65532 and is about 20 MB.

Every image includes an SBOM and build provenance attestation. To verify that an image was built by this repository’s release workflow:

Terminal window
gh attestation verify oci://ghcr.io/mattoddie/starling-mcp:1.4.2 --owner mattoddie
Terminal window
docker compose pull
docker compose up -d

Check the changelog or the release notes before upgrading across a major version. After an upgrade, reconnect or restart your MCP client so it fetches the new tool list.

Terminal window
git clone https://github.com/mattoddie/starling-mcp.git
cd starling-mcp
docker build -t starling-mcp . # or: make image

The tests run as part of the image build, so a broken build never produces an image. The build stage cross-compiles, so building for another architecture doesn’t need emulation. To use a local build with Compose, replace image: in compose.yaml with build: . and run docker compose up -d --build.

The server speaks plain HTTP. If it’s reachable from outside a trusted network, put a TLS-terminating reverse proxy in front of it and keep MCP_AUTH_TOKEN set.

Caddy, which gets certificates automatically:

starling-mcp.example.com {
reverse_proxy starling-mcp:8080
}

nginx:

server {
listen 443 ssl;
server_name starling-mcp.example.com;
ssl_certificate /etc/ssl/certs/starling-mcp.pem;
ssl_certificate_key /etc/ssl/private/starling-mcp.key;
location /mcp {
proxy_pass http://starling-mcp:8080;
proxy_set_header Host $host;
proxy_read_timeout 120s;
}
}

Traefik labels:

services:
starling-mcp:
image: ghcr.io/mattoddie/starling-mcp:latest
env_file: .env
labels:
- traefik.enable=true
- traefik.http.routers.starling-mcp.rule=Host(`starling-mcp.example.com`)
- traefik.http.routers.starling-mcp.tls.certresolver=letsencrypt
- traefik.http.services.starling-mcp.loadbalancer.server.port=8080

When the server sits behind a proxy, don’t publish its port. Set MCP_ALLOWED_HOSTS=starling-mcp.example.com so it only accepts requests for that hostname.

Most tools make one or a few Starling requests, each limited by STARLING_TIMEOUT_MS (30 seconds by default). Insights over long periods fetch the transaction feed in chunks, so give the proxy a read timeout of a minute or two.

The image already runs as a non-root user with nothing in it but the binary, and the default compose.yaml already sets read_only, cap_drop: [ALL] and no-new-privileges. You can lock it down further:

services:
starling-mcp:
image: ghcr.io/mattoddie/starling-mcp:1.4.2 # pinned
read_only: true
cap_drop: [ALL]
security_opt: ["no-new-privileges:true"]
mem_limit: 128m
pids_limit: 100
env_file: .env
ports: ["127.0.0.1:8080:8080"]

The server only needs outbound HTTPS to api.starlingbank.com. See Security for choosing settings and toolsets.

Docker suits a long-running service shared by several clients. For a single machine, Homebrew or a release binary is simpler: the server is a single static binary with no dependencies.

On macOS or Linux, install the release binary with Homebrew:

Terminal window
brew install mattoddie/tap/starling-mcp

brew upgrade picks up new releases, usually within an hour of them being published. The formula installs the same release archive described below, after checking its checksum and build provenance. See mattoddie/homebrew-tap.

Each release has an archive for macOS, Linux and Windows on amd64 and arm64. Each archive holds the starling-mcp binary and the licence. For example, on a Raspberry Pi or another 64-bit Arm Linux machine:

Terminal window
VERSION=1.2.3 # the latest release, without the v
curl -fsSLO https://github.com/mattoddie/starling-mcp/releases/download/v$VERSION/starling-mcp-$VERSION-linux-arm64.tar.gz
curl -fsSLO https://github.com/mattoddie/starling-mcp/releases/download/v$VERSION/SHA256SUMS
sha256sum -c SHA256SUMS --ignore-missing # on macOS: shasum -a 256 -c SHA256SUMS --ignore-missing
tar -xzf starling-mcp-$VERSION-linux-arm64.tar.gz
sudo install starling-mcp /usr/local/bin/

Use darwin-arm64 for a Mac with Apple silicon, darwin-amd64 for an Intel Mac, linux-amd64 for most PCs and servers, and the windows .zip files on Windows.

Each archive also has a signed build provenance attestation. To check that a file was built by this repository’s release workflow, run gh release verify-asset v$VERSION starling-mcp-$VERSION-linux-arm64.tar.gz -R mattoddie/starling-mcp.

Release binaries don’t update themselves. Watch the repository’s releases (Watch → Custom → Releases) to hear about new versions.

You need Go 1.26 or later. With go install:

Terminal window
go install github.com/mattoddie/starling-mcp/cmd/starling-mcp@latest

The binary lands in $(go env GOPATH)/bin. Built this way it reports its version as 0.0.0-dev.

Or from a clone, which also stamps the version:

Terminal window
git clone https://github.com/mattoddie/starling-mcp.git
cd starling-mcp
make build VERSION=1.2.3 # writes bin/starling-mcp
Terminal window
export STARLING_ACCESS_TOKEN=<your-token> # a read-only personal access token
starling-mcp # stdio, for an MCP client to start
MCP_TRANSPORT=http MCP_AUTH_TOKEN=... starling-mcp # or a long-running HTTP server

To run it as a service, a systemd unit that sets these variables in an EnvironmentFile (readable only by the service user) and runs starling-mcp as an unprivileged user works well.