bank-mcp

bank-mcp

Provides AI assistants with secure, read-only access to over 15,000 financial institutions across the US and Europe via the Model Context Protocol. It enables users to query account balances, transactions, and spending breakdowns through natural language conversation.

Category
Visit Server

README

๐Ÿฆ bank-mcp

<p align="center"> <img src="bank-mcp.png" alt="bank-mcp โ€” Banking data for AI assistants" width="700"> </p>

Give your AI assistant secure, read-only access to your bank accounts.

npm version License: MIT CI Node.js TypeScript


Most people manage their finances by logging into bank portals, downloading CSVs, and building spreadsheets. bank-mcp eliminates that friction by letting your AI assistant query your bank accounts directly โ€” balances, transactions, spending breakdowns โ€” through natural conversation. It connects to real bank APIs via the Model Context Protocol so any MCP-compatible client (Claude Code, Claude Desktop, and others) can understand your finances.

  • 5 providers, 15,000+ institutions โ€” US and European banks covered
  • Read-only by design โ€” no write access, no transfers, no modifications
  • Works with any MCP client โ€” Claude Code, Claude Desktop, Cursor, and more
  • Pluggable architecture โ€” add your own provider in under 100 lines

Table of Contents

Supported Providers

Provider Region Institutions Auth Method Setup Difficulty
Enable Banking Europe 2,000+ RSA key + session Medium
Teller US 7,000+ mTLS certificate Medium
Plaid US / CA / EU 12,000+ Client ID + secret Easy
Tink Europe 3,400+ OAuth2 token Easy
Mock Demo โ€” None Instant

US Banks

Supported through Plaid and Teller โ€” covering the top 20 US institutions and thousands more:

JPMorgan Chase ยท Bank of America ยท Wells Fargo ยท Citibank ยท Capital One ยท U.S. Bank ยท PNC ยท Truist ยท Goldman Sachs ยท TD Bank ยท Citizens ยท Fifth Third ยท M&T Bank ยท Huntington ยท KeyBank ยท Ally ยท Regions ยท BMO ยท American Express ยท USAA

European Banks

Supported through Enable Banking and Tink โ€” covering major banks across the EU and UK:

HSBC ยท BNP Paribas ยท Deutsche Bank ยท ING ยท Crรฉdit Agricole ยท Santander ยท Sociรฉtรฉ Gรฉnรฉrale ยท UniCredit ยท Intesa Sanpaolo ยท Barclays ยท Lloyds ยท BBVA ยท CaixaBank ยท Commerzbank ยท Rabobank ยท ABN AMRO ยท Swedbank ยท Handelsbanken ยท Nordea ยท PKO Bank Polski

Quick Start

1. Run the setup wizard

npx @bank-mcp/server init

The interactive wizard walks you through everything โ€” provider selection, credentials, bank authorization, and account verification โ€” all with a polished terminal UI:

โ”Œ  bank-mcp โ€” Connect your bank account
โ”‚
โ—‡  Choose your banking provider
โ”‚  Plaid / Teller / Tink / Enable Banking
โ”‚
โ—‡  Environment
โ”‚  Sandbox / Development / Production
โ”‚
โ—‡  Found 3 account(s) โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚    ****1591 (Bank of America Platinum Card)   โ”‚
โ”‚    ****3588 (Bank of America My Checking)     โ”‚
โ”‚    ****2450 (Bank of America Essential Savings)โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
โ”‚
โ””  Setup complete!

2. Add to your MCP client

At the end of setup, the wizard asks which MCP client you use and shows the exact configuration:

  • Claude Code โ€” one command: claude mcp add bank -- npx @bank-mcp/server
  • Cursor โ€” add to .cursor/mcp.json
  • Windsurf โ€” add to ~/.codeium/windsurf/mcp_config.json
  • Gemini CLI โ€” add to ~/.gemini/settings.json
  • Codex CLI โ€” add to ~/.codex/config.json

Using a different tool? See Client Setup for all supported clients including Claude Desktop, VS Code, and Zed.

3. Try it

Ask your AI assistant about your finances in natural language:

"What's my checking account balance?"
"Show my spending by category this month"
"Find all Amazon purchases over $50"
"Compare my spending this month vs last month"

Demo Mode

Don't have bank credentials yet? Start with realistic fake data:

npx @bank-mcp/server --mock

This launches with a mock provider that generates deterministic sample accounts and transactions โ€” perfect for testing your setup or building on top of bank-mcp before connecting real accounts.

Client Setup

bank-mcp works with any MCP-compatible client. Pick your tool below.

Claude Code

Add to .mcp.json in your project root (or ~/.claude/.mcp.json for all projects):

{
  "mcpServers": {
    "bank": {
      "command": "npx",
      "args": ["@bank-mcp/server"]
    }
  }
}

Or add via the CLI:

claude mcp add bank -- npx @bank-mcp/server

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "bank": {
      "command": "npx",
      "args": ["@bank-mcp/server"]
    }
  }
}

Config file location:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Cursor

Add to .cursor/mcp.json in your project root (or ~/.cursor/mcp.json globally):

{
  "mcpServers": {
    "bank": {
      "command": "npx",
      "args": ["@bank-mcp/server"]
    }
  }
}

VS Code (Copilot)

Add to .vscode/mcp.json in your workspace:

{
  "servers": {
    "bank": {
      "type": "stdio",
      "command": "npx",
      "args": ["@bank-mcp/server"]
    }
  }
}

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "bank": {
      "command": "npx",
      "args": ["@bank-mcp/server"]
    }
  }
}

OpenAI Codex CLI

Add to ~/.codex/config.toml (or .codex/config.toml in your project):

[mcp_servers.bank]
command = "npx"
args = ["@bank-mcp/server"]

Or add via the CLI:

codex mcp add bank -- npx @bank-mcp/server

Gemini CLI

Add to ~/.gemini/settings.json (or .gemini/settings.json in your project):

{
  "mcpServers": {
    "bank": {
      "command": "npx",
      "args": ["@bank-mcp/server"]
    }
  }
}

Zed

Add to your Zed settings.json:

{
  "context_servers": {
    "bank": {
      "command": {
        "path": "npx",
        "args": ["@bank-mcp/server"]
      }
    }
  }
}

Don't see your tool? bank-mcp uses standard MCP stdio transport. Any client that supports MCP stdio servers can connect using npx @bank-mcp/server as the command.

Available Tools

Tool Description Key Parameters
list_accounts List all bank accounts across connections connectionId?
list_transactions Fetch transactions with filtering accountId, from?, to?, minAmount?, maxAmount?
search_transactions Full-text search on descriptions and merchants query, accountId?, from?, to?
get_balance Current and available balances accountId, connectionId?
spending_summary Expenses grouped by merchant or category accountId, from?, to?, groupBy?

Screenshots

All examples below use Claude Code with the mock provider (npx @bank-mcp/server --mock).

Listing accounts โ€” "List my bank accounts"

Listing bank accounts

Checking balances โ€” "What's my current balance?"

Account balances

Transaction history โ€” "Show my transactions from the last 15 days"

Recent transactions with spending breakdown

Searching transactions โ€” "Find all Starbucks purchases in last 2 weeks"

Finding Starbucks purchases

Spending by category โ€” "Show my spending by category this month"

Category breakdown with chart

<details> <summary><strong>More examples</strong> (merchant analysis, subscriptions, grocery comparison, financial overview)</summary>

<br>

Top merchants โ€” "Which merchants am I spending the most at?"

Merchant spending breakdown

Subscription tracking โ€” "Show my recurring subscriptions"

Recurring subscription analysis

Grocery comparison โ€” "Compare Trader Joe's vs Whole Foods spending"

Trader Joe's vs Whole Foods analysis

Full financial picture โ€” "Give me my full February financial picture"

Monthly income, expenses, and savings

</details>

Architecture

<p align="center"> <img src="architecture.png" alt="bank-mcp architecture diagram" width="700"> </p>

File Structure

~/.bank-mcp/
  config.json          # Connections & credentials (permissions: 600)
  keys/                # RSA keys and certificates

src/
  providers/
    base.ts            # Abstract BankProvider class
    registry.ts        # Provider registration
    enable-banking/    # PSD2 via Enable Banking API
    teller/            # US banks via mTLS
    plaid/             # US/CA/EU via Plaid API
    tink/              # EU Open Banking via Tink API
    mock/              # Deterministic fake data
  tools/               # MCP tool implementations
  utils/
    cache.ts           # In-memory TTL cache
    http.ts            # Fetch with timeout + retry

Provider Interface

Every provider extends the same abstract class, making it straightforward to add new integrations:

abstract class BankProvider {
  abstract listAccounts(config): Promise<BankAccount[]>;
  abstract listTransactions(config, accountId, filter?): Promise<Transaction[]>;
  abstract getBalance(config, accountId): Promise<Balance[]>;
  abstract getConfigSchema(): ConfigField[];
}

Provider Setup Guides

Enable Banking (PSD2)

What you need:

  • [ ] An Enable Banking account with a registered app
  • [ ] Your RSA private key (.pem file)
  • [ ] An active session ID from the OAuth consent flow
npx @bank-mcp/server init
# Select: Enable Banking (PSD2)
# Enter: App ID, key path, session ID

Tip: Sessions expire after 90 days (PSD2 regulation). You'll need to re-authenticate through the consent flow periodically. The server logs a clear message when a session expires.

Teller (US Banks)

What you need:

  • [ ] A Teller developer account
  • [ ] Your client certificate and private key (.zip download from the Teller dashboard)
  • [ ] An access token from a Teller Connect enrollment
# Extract your certificate
mkdir -p ~/.bank-mcp/keys/teller
unzip ~/Downloads/teller.zip -d ~/.bank-mcp/keys/teller/
chmod 600 ~/.bank-mcp/keys/teller/*.pem

# Run setup
npx @bank-mcp/server init
# Select: Teller (US Banks)
# Enter: certificate path, key path, access token

Tip: Teller uses mutual TLS (mTLS) โ€” your app authenticates at the TLS layer via client certificate, then individual enrollments authenticate via access token. Free tier supports up to 100 live connections.

Plaid (US/CA/EU)

What you need:

  • [ ] A Plaid developer account (free signup)
  • [ ] Your Client ID and Secret (from the Plaid dashboard)
  • [ ] An access token from a Plaid Link enrollment
npx @bank-mcp/server init
# Select: Plaid (US/CA/EU)
# Enter: client ID, secret, access token, environment

Tip: Start with the sandbox environment (fake data, instant setup). Plaid provides the richest transaction categorization โ€” 104 sub-categories with confidence scores โ€” which makes it ideal for LLM-driven spending analysis.

Tink (EU Open Banking)

What you need:

  • [ ] A Tink developer account (free for testing)
  • [ ] An OAuth2 access token (from the Tink Console or your OAuth2 flow)
npx @bank-mcp/server init
# Select: Tink (EU Open Banking)
# Enter: access token

Tip: Tink covers 3,400+ banks across Europe. Transactions include PFM (Personal Finance Management) categories with merchant enrichment, and amounts use fixed-point decimals โ€” no floating-point rounding surprises.

Caching

All data is cached in-memory (no disk persistence โ€” cache dies with the process):

Data TTL Why
Account list 1 hour Accounts rarely change; minimizes API calls
Transactions 15 minutes Balances new transactions vs freshness
Balances 5 minutes Most time-sensitive; users expect current data

Cache is per-connection and per-account. Restarting the server clears all caches.

Multiple Connections

Configure as many bank connections as you need โ€” even across different providers:

{
  "connections": [
    { "id": "ing-main", "provider": "enable-banking", "..." : "..." },
    { "id": "chase-checking", "provider": "plaid", "..." : "..." },
    { "id": "revolut", "provider": "tink", "..." : "..." }
  ]
}

All tools accept an optional connectionId parameter to target a specific connection. When omitted, every connection is queried and results are merged โ€” so "show all my balances" works across banks automatically.

Security

Design Principles

bank-mcp handles sensitive financial credentials. Its security posture is built on minimizing attack surface:

  • Read-only by design โ€” the BankProvider interface exposes only read methods (listAccounts, listTransactions, getBalance). There are no write methods โ€” no transfers, no account modifications, no payment initiation. This is enforced at the type level, not by convention.
  • No network listener โ€” bank-mcp runs as a stdio process (stdin/stdout), not an HTTP server. There is no open port, no attack surface from the network.
  • Minimal dependencies โ€” only 3 runtime dependencies (@modelcontextprotocol/sdk, jsonwebtoken, zod). Fewer dependencies means fewer supply chain risks.
  • Open source โ€” every line is auditable. No obfuscated code, no compiled blobs, no telemetry.

Credential Storage

  • Config file at ~/.bank-mcp/config.json is created with 600 permissions (owner read/write only)
  • RSA keys and certificates are stored in ~/.bank-mcp/keys/ with the same restrictive permissions
  • Credentials are never logged โ€” the server sanitizes config objects before any debug output
  • No credential caching beyond the process lifetime โ€” when the server stops, credentials exist only on disk

Data Flow

Your Bank's API โ† HTTPS โ†’ bank-mcp (local process) โ† stdio โ†’ MCP Client (local)
  • Transaction data flows directly from your bank's API to your local MCP client
  • Nothing is stored remotely โ€” no cloud relay, no proxy server, no intermediate storage
  • No telemetry โ€” zero analytics, no crash reports, no usage tracking, no phone-home
  • In-memory cache is per-process and dies when the server stops

What Your MCP Client Sees

The MCP client (Claude, Cursor, etc.) receives structured tool results containing:

  • Account names, types, and balances
  • Transaction descriptions, amounts, dates, and categories
  • Spending summaries

The LLM processes this in its context window. Be aware that cloud-hosted LLMs send your conversation (including tool results) to their servers. If this is a concern, use a local model or review your provider's data retention policy.

Recommendations

  • Rotate tokens โ€” if your banking provider supports token rotation, enable it
  • Use sandbox first โ€” test your setup with mock data or Plaid sandbox before connecting live accounts
  • Review permissions โ€” ensure ~/.bank-mcp/ is not world-readable (ls -la ~/.bank-mcp/)
  • Scope access โ€” if your provider supports it, request the minimum scopes needed (read-only account and transaction access)

Reporting Vulnerabilities

If you discover a security issue, please email the maintainer directly rather than opening a public issue. See CONTRIBUTING.md for contact details.

Adding a New Provider

The pluggable architecture makes it straightforward to add support for additional banking APIs:

  1. Create your provider at src/providers/your-provider/index.ts
  2. Extend BankProvider โ€” implement listAccounts, listTransactions, getBalance, and getConfigSchema
  3. Register it in src/providers/registry.ts
  4. Add config fields for the init wizard (the schema drives the interactive prompts automatically)

See src/providers/enable-banking/ as a reference implementation. The mock provider at src/providers/mock/ is also useful for understanding the expected data shapes.

Troubleshooting

npx is running an old version

npx caches packages. Force the latest:

npx @bank-mcp/server@latest

"Permission denied" reading config

The config file should be readable by your user:

ls -la ~/.bank-mcp/config.json
# Should show: -rw------- (600)
# Fix: chmod 600 ~/.bank-mcp/config.json

"Session expired" (Enable Banking)

PSD2 sessions expire after 90 days. Re-run the init wizard:

npx @bank-mcp/server init
# Select your existing Enable Banking connection to update the session

Tools not showing up in your MCP client

  1. Verify the server starts: npx @bank-mcp/server --mock (should output MCP protocol on stdout)
  2. Check your config file path matches your client's expected location
  3. Restart your MCP client after adding the config
  4. Check your client's MCP logs for connection errors

"ETLS" or certificate errors (Teller)

Teller requires mTLS. Verify your certificate files:

ls -la ~/.bank-mcp/keys/teller/
# Should contain: certificate.pem, private_key.pem
# Both should be chmod 600

Development

git clone https://github.com/elcukro/bank-mcp.git
cd bank-mcp
npm install
npm test          # Run tests (vitest)
npm run build     # Compile TypeScript
npm run dev       # Watch mode (recompile on change)
npm run lint      # ESLint

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for guidelines.

If you're adding a new provider, open an issue first to discuss the approach โ€” we want to make sure the integration fits the project's architecture.

License

MIT โ€” use it however you want.


<p align="center"> Built for the <a href="https://modelcontextprotocol.io">Model Context Protocol</a> ecosystem </p>

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured