Skip to main content
Glama
starling-mcp

starling-mcp

README.md
<div align="center">

<img src="docs/assets/logo.svg" alt="starling-mcp logo" width="112" height="112">

# starling-mcp

**Talk to your money.**

An open-source, read-only [Model Context Protocol](https://modelcontextprotocol.io) server for **Starling Bank** customers in the UK. It lets Claude and other AI assistants look at your balances and transactions and, more usefully, answer the questions you actually have: where the money went, which subscriptions have crept up, what is coming out before payday, what you have paid yourself from your company. Install it with Homebrew, run it in Docker, or add it to Claude Desktop in one click.

[![CI](https://github.com/mattoddie/starling-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/mattoddie/starling-mcp/actions/workflows/ci.yml)
[![Release](https://img.shields.io/github/v/release/mattoddie/starling-mcp?sort=semver)](https://github.com/mattoddie/starling-mcp/releases)
[![Container image](https://img.shields.io/badge/ghcr.io-mattoddie%2Fstarling--mcp-2496ED?logo=docker&logoColor=white)](https://github.com/mattoddie/starling-mcp/pkgs/container/starling-mcp)
[![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)

**[starling-mcp.mattoddie.dev](https://starling-mcp.mattoddie.dev)**

[Quick start](#quick-start) · [Documentation](https://starling-mcp.mattoddie.dev/docs/) · [Tool reference](docs/tools.md) · [Contributing](CONTRIBUTING.md)

</div>

> [!NOTE]
> starling-mcp is an **unofficial**, independent community project. It is not affiliated with, endorsed by or supported by Starling Bank. It uses Starling's public developer API with your own personal access token.

> [!IMPORTANT]
> **It can never move money.** There are no payment, transfer or payee tools, and the client inside it only ever sends `GET` requests. Make your token read-only as well, so that even a leaked token can't pay anyone: see [step 1](#quick-start).

---

> **"What's coming out before payday, and has anything gone up in price?"**
> *Payday looks like the 25th, 11 days away. You have £1,420.55 now and £868.00 is due before then (rent £650.00, Sample Energy £124.00 and about £94.00 of subscriptions), so roughly £552.55 should be left, a little less if card payments are still pending. Two subscriptions have risen: Example Streaming from £9.99 to £11.99 in August, and Sample Cloud Storage from £2.49 to £2.99.*

*(Made-up names and figures.)* Ask about your money in plain English. The assistant picks from **18 tools** (and an opt-in raw tool) to look things up, and from **5 prompts** for common jobs. Some examples:

- 📊 *"Where did my money go last month, and how does it compare with the month before?"*
- 🔁 *"What subscriptions am I paying? Has anything gone up in price?"*
- 🗓️ *"What's coming out before payday? Will I have enough?"*
- 🔎 *"Anything odd on my account this month? Have I been charged twice?"*
- 🧑‍💼 *"What salary and dividends have I taken from my company this tax year?"*
- 📉 *"How low did my balance get over the last three months?"*

## Highlights

- **📊 Analysis, not raw feeds.** Starling's in-app spending insights aren't in its public API, so starling-mcp works them out from your transactions: totals by category, merchant, month or weekday, comparisons with the previous period or last year, recurring payments with price rises, regular income and paydays, upcoming payments, balance history and unusual payments. The sums are done by the server, not by the model.
- **🧮 Totals you can check.** Every result says what it left out and how much: moves between your own accounts, owner pay, pending items. Amounts in different currencies are never added together.
- **🧑‍💼 Owner pay done right.** If you pay yourself from your own company, that money is owner pay (salary, dividends, drawings) on **both** sides, not spending on the company account and not an internal move on yours. Accounts of yours elsewhere, such as an ISA, can be listed so transfers to them are internal. When a counterparty looks like you but isn't listed, the tools say so rather than guess.
- **🏢 Personal and business.** Personal, joint, sole trader and business accounts, with one token per holder. Personal and business money never appear in one total.
- **🛡️ Read-only by design.** No tool can make a payment or change anything. Account numbers, IBANs and addresses are masked unless you ask. The raw API tool is `GET` only, and off unless you name it.
- **🔑 Your token, your scopes.** Create a personal access token with only the read scopes you want to share. A token that can do more than read is flagged at start-up. The token never appears in output or logs.
- **📦 Install it your way.** A single static Go binary with no dependencies: `brew install mattoddie/tap/starling-mcp`, a tiny distroless Docker image (`ghcr.io/mattoddie/starling-mcp`, `linux/amd64` and `linux/arm64`, non-root, nothing stored), a one-click extension bundle (`.mcpb`) for Claude Desktop, or plain binaries for macOS, Linux and Windows.
- **🧪 Tested without real data.** The test suite runs against a mock Starling API fed by a synthetic account generator with an answer key. No real bank data is used anywhere.

## Quick start

You need a Starling Bank account and an MCP client such as [Claude Code](https://claude.com/claude-code).

**1. Create a read-only token** in the [Starling Developer Portal](https://developer.starlingbank.com/personal/list) under **Personal Access**. Tick **only** these read scopes, and no scope that can pay or transfer:

`account:read`, `account-list:read`, `account-holder-name:read`, `account-holder-type:read`, `account-identifier:read`, `balance:read`, `transaction:read`, `space:read`, `savings-goal:read`, `mandate:read`, `standing-order:read`, `payee:read`, `payee-transaction:read`, `scheduled-payment:read`, `card:read`, `attachment:read`, `receipt:read` and `feed-export-csv:read`.

You don't have to tick them all: a tool whose scope is missing says which one it needs. [Getting started](docs/getting-started.md#1-create-a-read-only-token) explains what each is for.

**2. Install and connect.** Pick one of these.

### With Homebrew (macOS or Linux)

Your MCP client starts the server when it needs it, over stdio. There's nothing to keep running and no `MCP_AUTH_TOKEN` to set.

```sh
brew install mattoddie/tap/starling-mcp

claude mcp add starling \
  --env STARLING_ACCESS_TOKEN=<your-token> \
  -- "$(brew --prefix)/bin/starling-mcp"
```

Now ask *"Give me an overview of my Starling accounts."* in Claude Code. `brew upgrade` picks up new releases. For VS Code, Cursor or Codex, see [Without Docker](docs/clients.md#without-docker).

### With Docker (a long-running service)

Run it once on a server or NAS and connect any number of clients over HTTP.

```sh
mkdir starling-mcp && cd starling-mcp
curl -fsSLO https://raw.githubusercontent.com/mattoddie/starling-mcp/main/compose.yaml
curl -fsSL https://raw.githubusercontent.com/mattoddie/starling-mcp/main/example.env -o .env
# Edit .env: set STARLING_ACCESS_TOKEN
# and a random MCP_AUTH_TOKEN (e.g. `openssl rand -hex 32`)
docker compose up -d

claude mcp add --transport http starling http://<docker-host>:8080/mcp \
  --header "Authorization: Bearer <MCP_AUTH_TOKEN>"
```

For other clients, see [Connecting MCP clients](docs/clients.md). Docker also has a [stdio mode](docs/clients.md#stdio-mode) with `docker run -i`.

### Claude Desktop in one click

On a Mac or Windows PC, download the `.mcpb` bundle for your computer from the [latest release](https://github.com/mattoddie/starling-mcp/releases/latest), open it, and enter your token in the settings. See [Claude Desktop](docs/clients.md#claude-desktop).

starling-mcp is listed in the [MCP Registry](https://registry.modelcontextprotocol.io/v0/servers?search=io.github.mattoddie/starling-mcp) as `io.github.mattoddie/starling-mcp`, so clients that install from the registry can find it there, with the Docker image and the bundles.

## Your company and your other accounts

A business account needs its own token (`STARLING_ACCESS_TOKEN_BUSINESS`); tools then take a `holder`. To keep totals honest, tell starling-mcp about your accounts elsewhere:

```sh
STARLING_OWN_ACCOUNTS="J SMITH ISA, 12-34-56 / 87654321"   # your accounts: internal moves, not spending
STARLING_COMPANY_ACCOUNTS="SMITH CONSULTING LTD"           # the company's: pay from here is owner pay
```

On a business holder the roles swap: payments to your own accounts are owner pay, and moves to the company's accounts elsewhere are internal.

For example, `SMITH CONSULTING LTD` paying `J SMITH` £2,500 is owner pay on both sides, and £500 a month from your Starling account to your ISA elsewhere is an internal move once the ISA is listed. [Configuration](docs/configuration.md#your-own-accounts-and-your-company) has worked examples.

## What it can do

| Toolset | What's covered |
|---|---|
| `accounts` | The overview (accounts, balances, Spaces), one account in detail, cards, and what your token is allowed to do |
| `transactions` | The transaction feed with filters, one transaction in full (card details, attachments), and Starling's CSV statement export |
| `insights` | Spending summaries and comparisons, recurring payments and price rises, upcoming payments, income and paydays, balance history, owner pay by tax year, unusual payments |
| `bills` | Direct debits, standing orders and payees |
| `spaces` | Savings goals and spending Spaces with balances and targets |
| `raw` | A `GET` to any `/api/v2/...` path. Opt-in: only enabled when named in `STARLING_TOOLSETS`, for example `all,raw`. It returns identifiers **unmasked** |

See the **[tool reference](docs/tools.md)** for every tool and argument. Ready-made prompts (`monthly_review`, `subscription_audit`, `payday_check`, `business_month_end` and `find_savings`) chain the tools together for common jobs.

## Documentation

The docs are also published at **[starling-mcp.mattoddie.dev/docs](https://starling-mcp.mattoddie.dev/docs/)**, with search.

| | |
|---|---|
| 🚀 [Getting started](docs/getting-started.md) | Step-by-step setup, from a read-only token to your first question |
| 🔌 [Connecting MCP clients](docs/clients.md) | Claude Code, Claude Desktop, VS Code, Cursor, Codex, stdio mode |
| ⚙️ [Configuration](docs/configuration.md) | Every environment variable, account holders, your own and company accounts, Docker secrets, toolsets |
| 🐳 [Deployment](docs/deployment.md) | Compose, image tags, upgrades, TLS reverse proxy, hardening, running without Docker |
| 💬 [Using starling-mcp](docs/usage.md) | Example conversations, prompts, how owner pay and internal moves are treated, what each insight assumes |
| 🧰 [Tool reference](docs/tools.md) | Every tool and prompt, generated from the code |
| 🛡️ [Security](docs/security.md) | Threat model, the token, recommended setups |
| 📡 [Compatibility](docs/compatibility.md) | The Starling API, account types, and known gaps |
| 🩹 [Troubleshooting](docs/troubleshooting.md) | Common errors and how to fix them |
| 🛠️ [Development](docs/development.md) | Architecture, adding a tool, testing, the synthetic data generator |

## Contributing

Contributions are very welcome, whether that's bug reports, notes on how the Starling API behaves, docs or new tools. Read the [contributing guide](CONTRIBUTING.md) to get started, and please follow the [code of conduct](CODE_OF_CONDUCT.md). To report a vulnerability, see the [security policy](SECURITY.md). Please don't open a public issue for one.

## License

[MIT](LICENSE) © Matt Oddie

*starling-mcp is an independent community project. It is not affiliated with, endorsed by or sponsored by Starling Bank Limited. "Starling" and "Starling Bank" are trademarks of their owners and are used here only to describe what the software works with. Totals are computed from your transaction feed and are not financial or tax advice.*