Monzo MCP Server
Give Claude AI read-only access to your Monzo bank account through the Model Context Protocol, enabling insights into spending, balances, and transactions via natural conversation.
README
Monzo MCP Server
Give Claude AI read-only access to your Monzo bank account through the Model Context Protocol.
<p align="center"> <img src="https://upload.wikimedia.org/wikipedia/en/thumb/9/95/Monzo_logo.svg/1200px-Monzo_logo.svg.png" alt="Monzo Logo" width="200"/> </p>
Overview
This MCP server enables Claude to securely interact with your Monzo bank account, providing insights into your spending habits, account balances, and transaction history—all through natural conversation.
Key Features
| Feature | Description |
|---|---|
| Account Overview | View all Monzo accounts (current, joint, Flex) |
| Balance Tracking | Real-time balance and daily spending |
| Transaction History | Browse up to 90 days of transactions |
| Smart Analysis | Detect subscriptions and frequent merchants |
| Savings Pots | Monitor your savings goals |
| Push Notifications | Send custom alerts to your Monzo app |
Security First
- Read-only access — Cannot move money or modify account settings
- OAuth 2.0 — Industry-standard authentication
- Local tokens — Credentials never leave your machine
- Open source — Full transparency, audit the code yourself
Architecture
┌─────────────────────────────────────────────────────────────────┐
│ Claude AI │
└─────────────────────────────────────────────────────────────────┘
│
│ MCP Protocol (stdio)
▼
┌─────────────────────────────────────────────────────────────────┐
│ Monzo MCP Server │
│ ┌───────────────────────────────────────────────────────────┐ │
│ │ FastMCP │ │
│ │ ┌─────────┐ ┌──────────────┐ ┌──────────┐ ┌───────────┐ │ │
│ │ │Accounts │ │ Transactions │ │ Analysis │ │ Pots │ │ │
│ │ │ Tools │ │ Tools │ │ Tools │ │ Tools │ │ │
│ │ └────┬────┘ └──────┬───────┘ └────┬─────┘ └─────┬─────┘ │ │
│ └───────┼─────────────┼──────────────┼─────────────┼────────┘ │
│ └─────────────┴──────────────┴─────────────┘ │
│ │ │
│ ┌────────▼────────┐ │
│ │ Monzo Client │ │
│ │ (async httpx) │ │
│ └────────┬────────┘ │
└──────────────────────────────┼──────────────────────────────────┘
│
│ HTTPS + Bearer Token
▼
┌─────────────────────┐
│ Monzo API │
│ api.monzo.com │
└─────────────────────┘
Quick Start
Prerequisites
- Python 3.11+
- A Monzo account
- Claude Code CLI
1. Create a Monzo Developer App
-
Visit developers.monzo.com
-
Sign in and click "New OAuth Client"
-
Configure your app:
Field Value Name Claude MCP(or anything you like)Redirect URL http://localhost:8080/callbackConfidentiality Confidential -
Save your Client ID and Client Secret
2. Install the Server
# Clone the repository
git clone https://github.com/yourusername/monzo-mcp.git
cd monzo-mcp
# Create virtual environment
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
# Install in development mode
pip install -e .
3. Configure Credentials
# Copy example configuration
cp .env.example .env
# Add your credentials to .env
MONZO_CLIENT_ID=oauth2client_xxxxx
MONZO_CLIENT_SECRET=mnzconf.xxxxx
4. Authenticate with Monzo
python scripts/auth.py
This opens your browser for Monzo login. After approving:
Important: Open your Monzo app within 5 minutes to approve the login request, otherwise you'll be limited to 90 days of transaction history.
5. Connect to Claude Code
Add to your Claude Code configuration (~/.claude.json or project .mcp.json):
{
"mcpServers": {
"monzo": {
"command": "/path/to/monzo-mcp/venv/bin/python",
"args": ["-m", "monzo_mcp.server"],
"cwd": "/path/to/monzo-mcp"
}
}
}
Available Tools
Account Tools
| Tool | Parameters | Description |
|---|---|---|
get_accounts |
— | List all Monzo accounts with IDs |
get_balance |
account_id |
Current balance, total balance, today's spending |
Transaction Tools
| Tool | Parameters | Description |
|---|---|---|
list_transactions |
account_id, limit? |
Recent transactions (default: 20, max: 100) |
get_transaction |
transaction_id |
Detailed info including merchant address |
Analysis Tools
| Tool | Parameters | Description |
|---|---|---|
list_subscriptions |
account_id |
Detect recurring payments (Netflix, Spotify, etc.) |
list_frequent_merchants |
account_id, min_transactions? |
Find merchants you visit often |
Savings Tools
| Tool | Parameters | Description |
|---|---|---|
list_pots |
account_id |
All savings pots with balances and goals |
Notification Tools
| Tool | Parameters | Description |
|---|---|---|
create_feed_item |
account_id, title, body |
Push notification to Monzo app |
Example Conversations
You: "What's my current balance?"
Claude: Uses get_accounts then get_balance
Your current account balance is £1,234.56. You've spent £45.20 today.
You: "Show me my subscriptions"
Claude: Uses list_subscriptions
I found 4 recurring payments:
- Netflix: £15.99/month
- Spotify: £10.99/month
- iCloud: £2.99/month
Estimated monthly total: £29.97
You: "Where do I spend the most money?"
Claude: Uses list_frequent_merchants
Your top merchants this month:
- Tesco (12 transactions) - £156.78
- TfL (8 transactions) - £42.50
- Pret A Manger (6 transactions) - £31.20
Project Structure
monzo-mcp/
├── src/monzo_mcp/
│ ├── __init__.py # Package metadata
│ ├── server.py # MCP server entry point
│ ├── monzo_client.py # Async Monzo API client
│ ├── models.py # Data classes & exceptions
│ ├── constants.py # Configuration constants
│ ├── utils.py # Shared utilities
│ ├── analysis.py # Subscription detection logic
│ └── tools/
│ ├── __init__.py # Tool registration
│ ├── accounts.py # Account tools
│ ├── transactions.py # Transaction tools
│ ├── analysis.py # Analysis tools
│ ├── pots.py # Pot tools
│ └── feed.py # Feed/notification tools
├── scripts/
│ └── auth.py # OAuth authentication flow
├── pyproject.toml # Package configuration
├── .env.example # Environment template
└── README.md
Limitations
| Limitation | Reason |
|---|---|
| 90-day history | Monzo's Strong Customer Authentication (SCA) requirement |
| Personal use only | Monzo API terms prohibit public applications |
| Rate limits | API calls are throttled; avoid rapid requests |
| No money movement | Intentional design choice for security |
Troubleshooting
"Access token expired"
python scripts/auth.py
Re-authenticate and approve in the Monzo app.
"Rate limited"
Wait 5-10 minutes before making more requests.
"No transactions found"
Ensure you approved the login in your Monzo app within 5 minutes of authenticating.
Server won't start
Check that your virtual environment is activated and credentials are in .env.
Development
# Install dev dependencies
pip install -e ".[dev]"
# Run linting
ruff check src/
# Run type checking
mypy src/
# Run tests
pytest
Contributing
Contributions are welcome! Please:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
- Monzo for their excellent API
- Anthropic for Claude and the MCP protocol
- FastMCP for the MCP server framework
<p align="center"> Made with ❤️ for the Claude + Monzo community </p>
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。