Model Context Protocol (MCP) server for Monarch Money personal finance platform
Project description
Monarch Money MCP Server
A Model Context Protocol (MCP) server for integrating with the Monarch Money personal finance platform through Claude Desktop.
Overview
- Secure by design — browser-based login, token stored in OS keychain (never in config files or env vars)
- Safe by default — read-only mode prevents accidental changes; write tools require explicit opt-in
- Comprehensive — 44 tools covering accounts, transactions, splits, budgets, cashflow, tags, categories, transaction rules, recurring merchants, and credit history
- Easy to install — Claude Desktop extension (
.mcpb),uvx, orpip
Two operating modes:
The server starts in read-only mode by default. Write tools are hidden and blocked until you explicitly opt in.
| Read-only (default) | Write mode | |
|---|---|---|
| View accounts, transactions, budgets | Yes | Yes |
| Analyze cashflow, spending, net worth | Yes | Yes |
| Create transactions, tags, categories, rules | No | Yes |
| Update accounts, budgets, splits | No | Yes |
| Delete transactions, tags, accounts | No | Yes |
Quick Start
Installation
Option 1: Claude Desktop Extension (.mcpb) — Recommended for Claude Desktop
Enables toggling write mode on/off directly from the Claude Desktop app.
- Download the latest
.mcpbfrom Releases - In Claude Desktop: Settings > Extensions > Advanced Settings > Install Extensions — select the
.mcpbfile - Restart Claude Desktop
To enable write tools: Settings > Extensions > Monarch Money MCP Server > Configure — toggle "Enable write tools" and click Save.
Option 2: uvx (no install required) — Recommended for agents (e.g. Claude Code or Cursor)
Also works with Claude Desktop, but write mode cannot be toggled from the app — set it in the config instead.
Add to your MCP config file:
{
"mcpServers": {
"Monarch Money": {
"command": "uvx",
"args": ["monarch-mcp"]
}
}
}
To enable write tools:
{
"mcpServers": {
"Monarch Money": {
"command": "uvx",
"args": ["monarch-mcp", "--enable-write"]
}
}
}
Option 3: pip install — Recommended for local installation and venv
pip install monarch-mcp
Contributors: See docs/releasing.md for the release process, version scheme, and pre-release testing via TestPyPI.
Add to your MCP config using the full path to your Python interpreter:
{
"mcpServers": {
"Monarch Money": {
"command": "/path/to/bin/python3",
"args": ["-m", "monarch_mcp"]
}
}
}
To enable write tools, add "--enable-write" to args.
Option 4: Clone and install — Recommended for development
git clone https://github.com/vargahis/monarch-mcp.git
cd monarch-mcp
pip install -e .
Then add to your MCP config using the Python interpreter from your dev environment:
{
"mcpServers": {
"Monarch Money": {
"command": "/path/to/bin/python3",
"args": ["-m", "monarch_mcp"]
}
}
}
To enable write tools, add "--enable-write" to args.
Authentication
Authentication happens automatically in your browser the first time the MCP server starts without a saved session.
- Start (or restart) Claude Desktop
- The server detects that no token exists and opens a login page in your browser
- Enter your Monarch Money email and password
- Provide your 2FA code if you have MFA enabled
- Once authenticated, the token is saved to your system keyring — you're all set
Key details:
- Credentials are entered in your browser only — never through Claude Desktop
- Token stored in the OS keyring — persists across restarts, lasts weeks/months
- Expired sessions re-authenticate automatically — the browser login re-triggers on the next tool call
- MFA fully supported
- Fallback: run
python login_setup.pyin a terminal for headless environments
For technical details on the auth architecture, see docs/authentication.md.
Usage Examples
Show me all my financial accounts
What were my last 50 transactions?
How's my budget looking this month?
Analyze my cashflow for the last 3 months
Create a tag called "Business Expenses" in red
Available Tools
| Tool | Description | Mode |
|---|---|---|
| Auth | ||
setup_authentication |
Get setup instructions | read |
check_auth_status |
Check authentication status | read |
debug_session_loading |
Debug keyring issues | read |
| Accounts | ||
get_accounts |
Get all financial accounts | read |
get_account_holdings |
Get investment holdings | read |
get_account_history |
Get historical balance data | read |
get_recent_account_balances |
Get daily balances | read |
get_account_snapshots_by_type |
Net worth by account type | read |
get_aggregate_snapshots |
Daily aggregate net value | read |
get_institutions |
Get connected institutions | read |
get_account_type_options |
Get valid account types | read |
refresh_accounts |
Request account data refresh | read |
create_manual_account |
Create manual account | write |
update_account |
Update account settings | write |
delete_account |
Delete an account | write |
| Transactions | ||
get_transactions |
Get transactions with filtering (date, account, category, tag, search, needs_review, and more) | read |
get_transaction_details |
Get full transaction detail | read |
get_transactions_summary |
Aggregate transaction stats | read |
get_transaction_splits |
Get split information | read |
get_recurring_transactions |
Get recurring transactions | read |
find_merchant_id_by_name |
Search recent transactions for a merchant and return distinct IDs | read |
create_transaction |
Create new transaction | write |
update_transaction |
Update existing transaction (clear notes with clear_notes, unlink goal with clear_goal) |
write |
delete_transaction |
Delete a transaction | write |
update_transaction_splits |
Create/modify/delete splits | write |
update_recurring_merchant |
Mark/unmark a merchant as recurring, update its frequency/amount, or deactivate it — is_recurring is required on every call (requires --enable-write) |
write |
| Tags | ||
get_transaction_tags |
Get all tags | read |
create_transaction_tag |
Create new tag | write |
delete_transaction_tag |
Delete a tag | write |
set_transaction_tags |
Set tags on a transaction | write |
| Categories | ||
get_transaction_categories |
Get all categories | read |
get_transaction_category_groups |
Get category groups | read |
create_transaction_category |
Create a category | write |
delete_transaction_category |
Delete a category | write |
| Rules | ||
get_transaction_rules |
List every transaction rule with its criteria, actions, and recent application stats | read |
create_transaction_rule |
Create a transaction rule with full criteria + actions (category, tags, merchant, amount, splits…) | write |
update_transaction_rule |
Update a rule by id; merges overrides onto the current rule (handles Monarch's REPLACE semantics) | write |
delete_transaction_rule |
Delete a rule by ID | write |
| Budgets & Cashflow | ||
get_budgets |
Get budget information | read |
get_cashflow |
Get cashflow analysis | read |
get_cashflow_summary |
Get cashflow summary | read |
set_budget_amount |
Set budget for category | write |
| Other | ||
get_subscription_details |
Get subscription status | read |
get_credit_history |
Get credit score history | read |
Testing
This project has two complementary test surfaces:
1. Mocked unit tests (the quality gate) — fast, offline, no Monarch connection. These run in CI and must stay green:
uv run pytest tests/
The Monarch client is mocked, so these never touch a real account. Live e2e tests (below) are deselected by default.
2. Live end-to-end (e2e) integration tests — exercise the MCP tools against a real Monarch account to verify they handle the live API robustly (adversarial/edge inputs, server-side error paths). They are opt-in and never run in CI:
MONARCH_LIVE_TESTS=1 uv run pytest tests/integration -m integration
Prerequisites: a stored keyring token (run python login_setup.py once), or MONARCH_EMAIL /
MONARCH_PASSWORD in the environment. Without these, the suite skips. The tests create and delete
data prefixed with MCP-Test- and self-clean (a post-suite sweep removes any residue). See
tests/integration/README.md for details and safety notes.
There is also a separate agent test skill (
.claude/skills/test-monarch-mcp/) that drives an AI agent to verify it calls the tools correctly — distinct from the two pytest suites above.
🙏 Acknowledgments
Forked from @robcerda's monarch-mcp-server, maintained by vargahis.
Built on the monarchmoneycommunity Python library.
Thanks to:
- @robcerda for the original MCP server
- @hammem for the original monarchmoney library
- @bradleyseanf for the community fork
License
MIT License
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-0.1.4.tar.gz.
File metadata
- Download URL: monarch_mcp-0.1.4.tar.gz
- Upload date:
- Size: 181.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62c7100a32fd4cb8c8ff1ceecdced9b3ddf18a699c019925ad5b9358aa31818c
|
|
| MD5 |
f3a094b31faba2afcae9260d04d17d23
|
|
| BLAKE2b-256 |
694f7e8afee659d27e986f9106634efaa3cc0ff9fa5bc14a6d646ef212ad5c4b
|
Provenance
The following attestation bundles were made for monarch_mcp-0.1.4.tar.gz:
Publisher:
publish.yml on vargahis/monarch-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
monarch_mcp-0.1.4.tar.gz -
Subject digest:
62c7100a32fd4cb8c8ff1ceecdced9b3ddf18a699c019925ad5b9358aa31818c - Sigstore transparency entry: 1796554532
- Sigstore integration time:
-
Permalink:
vargahis/monarch-mcp@7299fdcd7cedbbac72369d17e015d9fc7d2eadfc -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/vargahis
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@7299fdcd7cedbbac72369d17e015d9fc7d2eadfc -
Trigger Event:
push
-
Statement type:
File details
Details for the file monarch_mcp-0.1.4-py3-none-any.whl.
File metadata
- Download URL: monarch_mcp-0.1.4-py3-none-any.whl
- Upload date:
- Size: 32.5 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 |
61c0ac99eb8b00246d4f599d514cc5b1779fcf1a865e647274e87f2b26b6ac3d
|
|
| MD5 |
4564e845559230b2de49cbdae5f8fb1f
|
|
| BLAKE2b-256 |
1b7bc9ed37c84120f65b77a1ddf239d30a77fc7305ddb2cd4f595f74503a8534
|
Provenance
The following attestation bundles were made for monarch_mcp-0.1.4-py3-none-any.whl:
Publisher:
publish.yml on vargahis/monarch-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
monarch_mcp-0.1.4-py3-none-any.whl -
Subject digest:
61c0ac99eb8b00246d4f599d514cc5b1779fcf1a865e647274e87f2b26b6ac3d - Sigstore transparency entry: 1796554676
- Sigstore integration time:
-
Permalink:
vargahis/monarch-mcp@7299fdcd7cedbbac72369d17e015d9fc7d2eadfc -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/vargahis
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@7299fdcd7cedbbac72369d17e015d9fc7d2eadfc -
Trigger Event:
push
-
Statement type: