bank-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@bank-mcp show me my recent transactions across all linked banks"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 --helpOr install the package into any environment with pip install .; this provides the bank-mcp (server) and
bank-mcp-link (bank linking) commands.
Related MCP server: C6 Bank MCP
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 bankIf 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-mcpHost 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 |
| Linked banks and consent expiry |
| Accounts and cards |
| Balances (optionally one |
|
|
| 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 Console credentials (required) |
|
|
| Provider id; set automatically per bank by |
| Token file path (default |
| Longest date range a single transaction query may span |
| Optional refresh-token seed |
Development
See CONTRIBUTING.md. Release history is in CHANGELOG.md.
Licence
Available Tools
5 toolsget_balanceCRead-onlyIdempotent
Balances. bank is a nickname (omit for all banks); account_id narrows to one account.
Inputs: bank, account_id. Returns: object
list_accountsARead-onlyIdempotent
List accounts and cards. bank is a nickname; omit it to query all linked banks.
Inputs: bank. Returns: object
list_connectionsARead-onlyIdempotent
List linked banks with consent expiry. Banks needing re-linking say 'reconnect_required'.
Inputs: no named parameters. Returns: object
list_pendingCRead-onlyIdempotent
Pending (not yet settled) transactions. bank is a nickname; omit it for all banks.
Inputs: bank, limit, offset, account_id. Returns: object
list_transactionsARead-onlyIdempotent
Transactions with since <= date < before (ISO dates; default the last 30 days), oldest first.
Page with limit and offset; next_offset is null on the last page.
Inputs: bank, limit, since, before, +3 more. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Most tools target clearly distinct data: connections, accounts, balances, transactions, pending items. list_transactions and list_pending overlap in domain (both return transactions), but descriptions make the settled vs. unsettled distinction clear, so confusion is limited.
All five tools follow a consistent verb_noun pattern: list_connections, list_accounts, list_transactions, list_pending, and get_balance. Predictable and easy to scan.
Five tools is well-scoped for a read-only banking data surface; each tool covers a distinct query need without bloat.
The read surface is solid: consent status, accounts, balances, settled and pending transactions, with pagination on the one listing that needs it. Minor gaps exist—no account detail/routing info, no transaction lookup by merchant or ID, and no write operations like transfers, though those may be intentionally out of scope.
Maintenance
Related MCP Connectors
Read-only access to your own UK bank data: spending, subscriptions, payday plan, net worth.
Read-only access to your bank, investment, and crypto accounts: balances, transactions, holdings.
Read-only access to your Finch finances: accounts, transactions, spending, net worth, goals.
Read-only cash flow, spending, subscriptions and transaction search from your US and Canadian banks.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables read-only access to personal bank accounts via the TrueLayer API, allowing querying of accounts, balances, transactions, and generating financial analytics such as spending by category, subscriptions, and monthly summaries.92MIT
- AlicenseNot gradedqualityCmaintenanceEnables reading C6 Bank account balances, statements, credit card bills, and investments via Open Finance Brasil. It is read-only and regulated by the Central Bank of Brazil.MIT
- AlicenseBqualityCmaintenanceEnables Claude to read UK bank account data—balances, transactions, cards, standing orders, direct debits, and identity—through TrueLayer's Data API, with local caching and optional live refreshes. It is read-only by design, requiring consent and never moving money.122MIT
- AlicenseNot gradedqualityBmaintenanceEnables read-only access to connected personal and business bank and credit card accounts for cash flow analysis, expense and subscription tracking, transaction search, and finance reviews.MIT