MCP server for Monarch Money personal finance
Project description
Monarch Money MCP Server
An MCP server for Monarch Money — gives AI assistants like Claude access to your financial accounts, transactions, budgets, and more.
Originally forked from @colvint/monarch-money-mcp but has diverged into a full rewrite on a modern FastMCP architecture. It's grown from the original handful of tools to 19 — adding server-side transaction search, parallel bulk transaction updates, multi-month spending-pattern analysis with forecasting, and a single-call financial overview that fans out to five Monarch APIs at once. Responses are tuned hard for token efficiency: the default compact transaction format cuts payload size by ~80%, categories return just id+name unless you ask for more, and every tool accepts a verbose flag when you want the full payload. It also ships MCP resources and guided prompts, natural-language date parsing ("last month", "30 days ago"), and proper read/write tool annotations so clients know what's safe to call.
Built on the monarchmoneycommunity library by @bradleyseanf — an actively-maintained community fork that tracks the latest Monarch Money API changes (the api.monarch.com domain move, gql 4.0, auth persistence) with full MFA support, pinned to a specific commit for reproducible builds. It descends from the original monarchmoney library by @hammem, which is no longer actively maintained.
Features
- 19 tools covering accounts, transactions, budgets, cashflow, investments, categories, goals, net worth, recurring transactions, and more
- Structured output — every tool returns a typed schema (
outputSchema+ machine-readable structured content) with a text fallback for older clients - MCP resources for quick access to categories, accounts, and institutions, plus parameterized templates for per-account holdings and history (
accounts://{account_id}/holdings|history) - MCP prompts for guided financial analysis workflows, with live argument autocompletion
- Smart output formatting — compact transaction format reduces token usage by ~80%
- Natural language dates — "last month", "30 days ago", "this year" all work
- Batch operations — parallel multi-account queries, bulk transaction updates, with progress reporting
- Spending analysis — multi-month trend analysis with category/account breakdowns
- Tool annotations & titles — read/write metadata and human-friendly titles for MCP clients
Setup
The server is published to PyPI, so there's nothing to clone — uv runs it on demand with uvx. You'll need uv installed and your Monarch credentials (see Getting your MFA secret below).
Standard config
Every MCP client uses the same shape — command uvx, package monarch-mcp-jamiew, and your three credentials as env vars:
{
"mcpServers": {
"monarch-money": {
"command": "uvx",
"args": ["monarch-mcp-jamiew"],
"env": {
"MONARCH_EMAIL": "your-email@example.com",
"MONARCH_PASSWORD": "your-password",
"MONARCH_MFA_SECRET": "your-mfa-secret-key"
}
}
}
}
Pick your client below for the exact steps.
Claude Desktop
Edit your config file (create it if it doesn't exist) and add the standard config above under mcpServers:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Then fully quit and reopen Claude Desktop.
Claude Code
claude mcp add monarch-money \
-e MONARCH_EMAIL=your-email@example.com \
-e MONARCH_PASSWORD=your-password \
-e MONARCH_MFA_SECRET=your-mfa-secret-key \
-- uvx monarch-mcp-jamiew
Add -s user to make it available across all your projects. Verify with claude mcp list.
Codex CLI
codex mcp add monarch-money \
--env MONARCH_EMAIL=your-email@example.com \
--env MONARCH_PASSWORD=your-password \
--env MONARCH_MFA_SECRET=your-mfa-secret-key \
-- uvx monarch-mcp-jamiew
Or add the equivalent block to ~/.codex/config.toml:
[mcp_servers.monarch-money]
command = "uvx"
args = ["monarch-mcp-jamiew"]
env = { MONARCH_EMAIL = "your-email@example.com", MONARCH_PASSWORD = "your-password", MONARCH_MFA_SECRET = "your-mfa-secret-key" }
Other clients (Cursor, VS Code, Windsurf, Cline, Zed, …)
These all accept the same standard config — drop it into the client's MCP config (e.g. Cursor's ~/.cursor/mcp.json, or VS Code via code --add-mcp). Anything that speaks MCP over stdio works.
From source (development)
To run against a local checkout (and the git-pinned monarchmoneycommunity lib):
git clone https://github.com/jamiew/monarch-mcp
cd monarch-mcp
uv sync
Then point your client at the local copy with absolute paths (find them with which uv and pwd):
{
"mcpServers": {
"monarch-money": {
"command": "/abs/path/to/uv",
"args": ["--directory", "/abs/path/to/monarch-mcp", "run", "python", "server.py"],
"env": {
"MONARCH_EMAIL": "your-email@example.com",
"MONARCH_PASSWORD": "your-password",
"MONARCH_MFA_SECRET": "your-mfa-secret-key"
}
}
}
}
[!NOTE] The
claude mcp add/codex mcp addone-liners put your credentials in shell history. If that bothers you, edit the client's config file directly (as shown for Claude Desktop / Codex above) instead.
Getting your MFA secret
- Go to Monarch Money settings and enable 2FA
- When shown the QR code, look for "Can't scan?" or "Enter manually"
- Copy the secret key (a string like
T5SPVJIBRNPNNINFSH5W7RFVF2XYADYX) - Use this as your
MONARCH_MFA_SECRET
Tools
| Tool | Description |
|---|---|
get_accounts |
List accounts with balances |
get_transactions |
Transactions with date/account/category filtering |
search_transactions |
Search by merchant name or keyword |
get_transaction_categories |
Category list (compact by default) |
create_transaction |
Create a manual transaction |
update_transaction |
Update a single transaction |
update_transactions_bulk |
Update multiple transactions in parallel |
get_budgets |
Budget data and spending analysis |
get_cashflow |
Income and expense analysis |
get_account_holdings |
Investment holdings for an account (requires account_id) |
get_account_history |
Account balance history |
get_institutions |
Linked financial institutions |
get_recurring_transactions |
Recurring transaction detection |
set_budget_amount |
Set a budget category amount |
create_manual_account |
Create a manually-tracked account |
refresh_accounts |
Trigger account data refresh |
get_spending_summary |
Spending aggregated by category, account, or month |
get_complete_financial_overview |
Combined 5-API call in parallel |
analyze_spending_patterns |
Multi-month trend analysis |
Transaction format
By default, transactions return a compact format with the fields that matter:
{
"id": "123456789012345678",
"date": "2025-03-15",
"amount": -12.50,
"merchant": "Corner Deli",
"plaidName": "CORNER DELI NYC",
"category": "Restaurants & Bars",
"categoryId": "cat_001",
"account": "Main Credit Card",
"needsReview": true
}
pending and notes are included only when present. Set verbose=True on any tool for the full API response with all metadata.
Session management
Sessions are cached in a .mm directory for faster subsequent logins. If you hit auth issues:
- Delete
.mm/session.pickleto clear the cached session - Set
MONARCH_FORCE_LOGIN=truein your env config to force a fresh login - Make sure your system clock is accurate (required for TOTP)
Development
Local setup
Create a .env file (git-ignored):
MONARCH_EMAIL="your-email@example.com"
MONARCH_PASSWORD="your-password"
MONARCH_MFA_SECRET="YOUR_TOTP_SECRET_KEY"
Tests
uv run pytest tests/ -v # unit tests (no creds needed)
uv run pytest tests/test_integration.py -v # integration tests (needs .env)
uv run scripts/health_check.py # quick API connectivity check
CI checks
Run all checks locally (same as GitHub Actions CI):
uv run python scripts/ci.py
Releasing
Cut a release with the /release flow (bump version in pyproject.toml → commit → tag vX.Y.Z → push → gh release create). Publishing the GitHub release triggers .github/workflows/publish.yml, which builds and pushes to PyPI and the MCP Registry via OIDC trusted publishing — no API tokens are stored anywhere. The workflow injects the tag version into server.json automatically, so pyproject.toml is the only version field you bump by hand.
Log analysis
Tools for measuring and optimizing token usage across MCP sessions:
uv run scripts/analyze_logs.py # full report
uv run scripts/analyze_logs.py --json # JSON output
uv run scripts/eval_session.py snapshot # mark log position
# ... use tools in Claude ...
uv run scripts/eval_session.py analyze # analyze new entries
Security
Warning: Monarch Money does not provide an official API. This server uses unofficial API access that requires your actual account credentials. Use with appropriate caution.
- Your credentials have full account access — treat them like passwords
- The MFA secret (TOTP key) provides ongoing access
- Session files in
.mm/contain auth tokens — keep them secure - Never commit
.envor.mcp.jsonfiles to version control - This is an unofficial API — Monarch Money could change or restrict access at any time
Credits
This project started as a fork of colvint/monarch-money-mcp by @colvint. Thanks for the original implementation!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file monarch_mcp_jamiew-0.3.2.tar.gz.
File metadata
- Download URL: monarch_mcp_jamiew-0.3.2.tar.gz
- Upload date:
- Size: 30.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd333d90361cf5f01c19b9db1d1f6b80e93dad249e6324aa05bacec98e8a5344
|
|
| MD5 |
b0b87d7da9a513b819ef4ca5cd70497e
|
|
| BLAKE2b-256 |
f9691e1a60b6758d0c0e4da5e2dd1779285a54ff903b393d24d83cf64b84db59
|
Provenance
The following attestation bundles were made for monarch_mcp_jamiew-0.3.2.tar.gz:
Publisher:
publish.yml on jamiew/monarch-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
monarch_mcp_jamiew-0.3.2.tar.gz -
Subject digest:
fd333d90361cf5f01c19b9db1d1f6b80e93dad249e6324aa05bacec98e8a5344 - Sigstore transparency entry: 1664539515
- Sigstore integration time:
-
Permalink:
jamiew/monarch-mcp@b529c4cfc0ba647998be8766eeee18e575ee775f -
Branch / Tag:
refs/tags/v0.3.2 - Owner: https://github.com/jamiew
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b529c4cfc0ba647998be8766eeee18e575ee775f -
Trigger Event:
release
-
Statement type:
File details
Details for the file monarch_mcp_jamiew-0.3.2-py3-none-any.whl.
File metadata
- Download URL: monarch_mcp_jamiew-0.3.2-py3-none-any.whl
- Upload date:
- Size: 29.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a21925ee27552594aa35154fbce99e6725580260f2e7868cf25e3c69cf08220
|
|
| MD5 |
ebb2fa445e93f0546ecc1e53c7ac6c43
|
|
| BLAKE2b-256 |
04f539563ef1b48f3561f2304e7c4f404a72cb326d4cc210306f0e33fe663e51
|
Provenance
The following attestation bundles were made for monarch_mcp_jamiew-0.3.2-py3-none-any.whl:
Publisher:
publish.yml on jamiew/monarch-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
monarch_mcp_jamiew-0.3.2-py3-none-any.whl -
Subject digest:
5a21925ee27552594aa35154fbce99e6725580260f2e7868cf25e3c69cf08220 - Sigstore transparency entry: 1664539703
- Sigstore integration time:
-
Permalink:
jamiew/monarch-mcp@b529c4cfc0ba647998be8766eeee18e575ee775f -
Branch / Tag:
refs/tags/v0.3.2 - Owner: https://github.com/jamiew
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b529c4cfc0ba647998be8766eeee18e575ee775f -
Trigger Event:
release
-
Statement type: