monzo-mcp

monzo-mcp

Read-only Monzo banking integration for Claude Code that allows querying balances, transactions, pots, and spending analysis through natural conversation.

Category
访问服务器

README

Monzo MCP Server for Claude Code

Read-only Monzo banking integration for Claude Code. Query balances, view transactions, check pots, and analyze spending — all through natural conversation.

Features

Tool Description
monzo_is_authenticated Verify authentication status (live ping)
monzo_complete_auth Complete OAuth when loopback fails (WSL/Docker fallback)
monzo_list_accounts List all accounts (current, joint, flex)
monzo_get_balance Current balance and today's spending
monzo_list_transactions Transaction history with merchant details
monzo_get_transaction Full detail on a single transaction
monzo_list_pots All active (non-deleted) pots with balances and goals
monzo_spending_summary Aggregated spending by category and top 10 merchants

Prerequisites

  1. Python 3.10+
  2. A Monzo developer OAuth clientconfidential type
  3. Set the redirect URL to http://localhost:3118/callback
  4. Claude Code (CLI or VS Code extension)

Why do I need my own OAuth client? Monzo restricts API access to personal use — there's no public app model. You create your own client at developers.monzo.com and only your credentials touch this server.


Quick Start

1. Create an OAuth Client

Go to developers.monzo.com and create a Confidential client.

  • Redirect URL: http://localhost:3118/callback

2. Installation

Option A: Claude Code Plugin (recommended)

Gives you the MCP server plus domain knowledge skills, auth hooks, and auto-updates.

In a Claude Code session, run:

/plugin marketplace add tcoretech/monzo-mcp
/plugin install monzo@tcoretech-monzo-mcp
/reload-plugins
/plugin enable monzo

Then "Configure Options" to set MONZO_CLIENT_ID and MONZO_CLIENT_SECRET (stored in the system keychain).

Option B: Claude Code MCP (server only)

uvx (no install needed):

claude mcp add monzo \
  -e MONZO_CLIENT_ID=your_client_id \
  -e MONZO_CLIENT_SECRET=your_client_secret \
  -- uvx --from monzo-mcp monzo-mcp

pip install:

pip install monzo-mcp
claude mcp add monzo \
  -e MONZO_CLIENT_ID=your_client_id \
  -e MONZO_CLIENT_SECRET=your_client_secret \
  -- monzo-mcp

From source:

git clone https://github.com/tcoretech/monzo-mcp.git
cd monzo-mcp
pip install -e .
claude mcp add monzo \
  -e MONZO_CLIENT_ID=your_client_id \
  -e MONZO_CLIENT_SECRET=your_client_secret \
  -- python3 mcp-server/server.py

Option C: Any MCP Client (JSON config)

For Claude Desktop, Cursor, or any other MCP-compatible client, add this to your configuration:

{
  "mcpServers": {
    "monzo": {
      "command": "uvx",
      "args": ["--from", "monzo-mcp", "monzo-mcp"],
      "env": {
        "MONZO_CLIENT_ID": "YOUR_CLIENT_ID",
        "MONZO_CLIENT_SECRET": "YOUR_CLIENT_SECRET"
      }
    }
  }
}

Authentication (Seamless OAuth)

This server implements a Seamless Loopback Flow. You don't need to run a separate setup command.

  1. Just-in-Time Auth: When you first ask Claude about your Monzo account, the server will detect missing tokens and automatically open your browser to the Monzo login page.
  2. Loopback Listener: A temporary local server (defaulting to port 3118) catches the callback from Monzo and saves your tokens securely to the system keychain.
  3. WSL & Docker Support: The server is environment-aware and will use PowerShell to bridge to your Windows host browser if running in WSL.
  4. SCA (Strong Customer Authentication): If Monzo requires an app approval, Claude will inform you. Simply tap "Approve" in your Monzo mobile app and tell Claude you've done so.

Note: Tokens are stored in the system keychain when available, with a plaintext fallback at ~/.monzo-mcp/tokens.json (0600 permissions). Existing plaintext tokens are automatically migrated to the keychain. Access tokens are refreshed automatically.

Where are tokens stored?

Storage Location When used
System keychain monzo-mcp service Default (macOS Keychain, GNOME Keyring, Windows Credential Locker)
Plaintext fallback ~/.monzo-mcp/tokens.json When keychain is unavailable

To force re-authentication, clear the keychain entry or delete the fallback file.


Usage Examples

Once connected, ask Claude things like:

  • "What's my Monzo balance?"
  • "Show my last 20 transactions"
  • "How much did I spend on eating out this month?"
  • "Give me a spending summary for the last 30 days"
  • "What are my pot balances?"
  • "Show transactions from Tesco last week"

Architecture

monzo-mcp/
├── .claude-plugin/          # Plugin metadata
│   ├── plugin.json
│   ├── marketplace.json
│   └── hooks/
│       ├── hooks.json       # Session-start auth check hook
│       └── check-monzo-auth.sh
├── mcp-server/              # MCP server (Python)
│   ├── server.py            # FastMCP entry point (stdio)
│   ├── tools.py             # 8 tool definitions (7 banking + 1 auth helper)
│   ├── monzo_client.py      # Async API client with retry
│   ├── auth.py              # OAuth token management, loopback listener, auto-refresh
│   └── .env.example
├── skills/monzo/
│   └── SKILL.md             # Domain knowledge for Claude
├── pyproject.toml           # Python packaging (pip/uvx)
├── LICENSE
└── README.md

Credential flow:

User provides                 Server handles internally
┌──────────────────┐         ┌──────────────────────────┐
│ MONZO_CLIENT_ID  │──env──▶ │ OAuth browser flow       │
│ MONZO_CLIENT_SECRET│       │ Token exchange            │
└──────────────────┘         │ Token refresh             │
                             │ Account auto-detection    │
                             │ ~/.monzo-mcp/tokens.json  │
                             └──────────────────────────┘

Security:

  • Read-only — no write operations, no fund transfers
  • Credentials stored locally only, never transmitted beyond the Monzo API
  • Token file restricted to user permissions (0600)
  • Automatic token refresh on expiry
  • Exponential backoff on rate limits

Important Notes

  • 90-day limit: Due to Monzo's Strong Customer Authentication (SCA), transaction history is limited to 90 days. After approving SCA in the Monzo app, full history is accessible for 5 minutes before reverting to the 90-day window.
  • Personal use only: The Monzo API is restricted to personal use — Monzo does not allow public applications.
  • Rate limits: Monzo enforces rate limits. The client handles retries automatically.
  • Amounts: All API amounts are in minor units (pence for GBP). Claude converts to pounds.

Changelog

  • v1.1.1 — Reorganized installation docs: plugin-first ordering, uvx for generic JSON config
  • v1.1.0 — Secure token storage: OAuth tokens stored in system keychain (with plaintext fallback), auto-migrates existing tokens
  • v1.0.9 — Plugin credentials via keychain: userConfig prompts at enable time, stores securely in system keychain
  • v1.0.8 — Seamless plugin onboarding: credentials read from ~/.monzo-mcp/config.json, interactive setup via SessionStart hook
  • v1.0.7 — Security hardening (OAuth state nonce, bind 127.0.0.1, XSS escaping), code quality fixes, docs refresh
  • v1.0.6 — Include decline_reason in list_transactions output
  • v1.0.5 — Make MCP server client-agnostic
  • v1.0.4 — Polished OAuth callback pages with SCA reminder
  • v1.0.3 — Lazy account ID detection after SCA approval
  • v1.0.2 — Add monzo_complete_auth tool for WSL/Docker callback fallback
  • v1.0.1 — Bug fixes
  • v1.0.0 — Initial release

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选