bank-mcp MCP Server
Unofficial read-only MCP server for UK bank and card data via TrueLayer Open Banking
bank-mcp scores 67 (Good), licensed MIT and written in Python. It installs as a local process. It declares 5 tools. Filed under Uncategorized. GitHub shows 1 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
67 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade B
78/100 for listing completeness. Lost points: 3 of 5 tools barely described, short summary, no docs link.
How quality is graded
Where the 67 comes from
22 + 20 + 1 + 10 + 4 + 10 = 67. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 1 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "pritch56-bank-mcp": { "command": "uvx", "args": [ "bank-mcp" ], "env": { "TRUELAYER_CLIENT_ID": "", "TRUELAYER_CLIENT_SECRET": "YOUR_TRUELAYER_CLIENT_SECRET", "TRUELAYER_ENV": "" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
TRUELAYER_CLIENT_ID | Required | TrueLayer Console client id |
TRUELAYER_CLIENT_SECRETSecret | Required | TrueLayer Console client secret |
TRUELAYER_ENV | Optional | live (default) or sandbox |
Tools5Tool docs quality grade D
All capabilitiesget_balancetoolBalances (optionally one accountid)
list_accountstoolAccounts and cards
list_connectionstoolLinked banks and consent expiry
list_pendingtoolPending transactions
since/before dates, limit/offset paging, includepending
About
bank-mcp
Unofficial, read-only MCP server for your own UK bank and card data, via TrueLayer Open Banking. It can read accounts, cards, balances and transactions. It cannot move money: only read scopes are ever requested.
Not affiliated with TrueLayer or any bank. See SECURITY.md before linking real accounts.
Setup
Requires Python 3.11+ and uv (or pip).
git clone https://github.com/pritch56/bank-mcp.git
cd bank-mcp
uv sync
uv run bank-mcp-link --help
Or install the package into any environment with pip install .; this provides the bank-mcp (server) and
bank-mcp-link (bank linking) commands.
Get TrueLayer credentials
- Create a free account at the TrueLayer Console.
- Create an application and note its client ID and client secret. Start with the sandbox, then switch to live.
- In the application's settings, add this redirect URI:
http://localhost:3000/callback(use the same port as--portif you change it). - Make sure the Data API is enabled with these scopes:
info accounts cards balance transactions offline_access. - Export the credentials in the shell you run
bank-mcp-linkfrom:
export TRUELAYER_CLIENT_ID=your-client-id
export TRUELAYER_CLIENT_SECRET=your-client-secret
export TRUELAYER_ENV=sandbox # or "live" (the default)
Never commit these values. .env files are git-ignored.
Link a bank
bank-mcp-link opens your bank's sign-in page in the browser and stores the resulting tokens under a nickname of
your choice. You can link several banks.
# Sandbox (no real bank needed)
uv run bank-mcp-link --provider mock --name test --sandbox
# A real bank: use its TrueLayer provider id, for example ob-nationwide
uv run bank-mcp-link --provider ob-nationwide --name nationwide
uv run bank-mcp-link --list # linked banks and consent expiry
uv run bank-mcp-link --remove nationwide # forget a bank
If the browser does not open, copy the URL printed in the terminal. Linking waits five minutes for the redirect.
UK Open Banking consent lasts 90 days. When it lapses, tools return Reconnect required for '<bank>'; run
bank-mcp-link again for that bank.
Tokens are stored in ~/.bank-mcp/tokens.json, readable only by you.
Configure your MCP client
Replace /path/to/bank-mcp with your checkout. The server reads the same TRUELAYER_* credentials from its
environment, and uses the provider id and environment recorded when each bank was linked.
Claude Desktop
Add to claude_desktop_config.json (Settings > Developer > Edit Config), then restart Claude Desktop:
{
"mcpServers": {
"bank": {
"command": "uv",
"args": ["run", "--directory", "/path/to/bank-mcp", "bank-mcp"],
"env": {
"TRUELAYER_CLIENT_ID": "your-client-id",
"TRUELAYER_CLIENT_SECRET": "your-client-secret",
"TRUELAYER_ENV": "live"
}
}
}
}
Claude Code
claude mcp add bank \
--env TRUELAYER_CLIENT_ID=your-client-id \
--env TRUELAYER_CLIENT_SECRET=your-client-secret \
--env TRUELAYER_ENV=live \
-- uv run --directory /path/to/bank-mcp bank-mcp
Host it on Cloudflare Workers
To run the server remotely instead of over stdio, see worker/README.md: a TypeScript Worker with Workers KV for tokens, protected by Cloudflare Access.
Tools
bank-mcp (stdio) exposes five read-only tools. Each except list_connections takes an optional bank
nickname; leave it out to query every linked bank.
| Tool | Returns |
|---|---|
list_connections | Linked banks and consent expiry |
list_accounts | Accounts and cards |
get_balance | Balances (optionally one account_id) |
list_transactions | since/before dates, limit/offset paging, include_pending |
list_pending | Pending transactions |
When all banks are queried, the working banks are still returned and the failing ones are listed under errors.
Configuration
| Variable | Meaning |
|---|---|
TRUELAYER_CLIENT_ID / TRUELAYER_CLIENT_SECRET | TrueLayer Console credentials (required) |
TRUELAYER_ENV | live (default) or sandbox |
TRUELAYER_PROVIDER_ID | Provider id; set automatically per bank by bank-mcp-link |
BANK_TOKEN_FILE | Token file path (default ~/.bank-mcp/tokens.json) |
BANK_MAX_RANGE_DAYS | Longest date range a single transaction query may span |
BANK_TRUELAYER_REFRESH_TOKEN | Optional refresh-token seed |
Development
See CONTRIBUTING.md. Release history is in CHANGELOG.md.
Licence
Frequently asked questions
What is bank-mcp MCP Server?
Unofficial read-only MCP server for UK bank and card data via TrueLayer Open Banking
How do I install bank-mcp MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. bank-mcp MCP Server runs locally from the PyPI package bank-mcp with the command uvx bank-mcp.
Is bank-mcp MCP Server free and open source?
Yes. bank-mcp MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does bank-mcp MCP Server support remote (HTTP) connections?
No remote endpoint is listed for bank-mcp MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does bank-mcp MCP Server provide?
bank-mcp MCP Server provides 5 tools, including get_balance, list_accounts, list_connections, and list_pending. See the full tool list for descriptions and parameters.
How is bank-mcp MCP Server's trust score calculated?
bank-mcp MCP Server scores 67 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.