monarch-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@monarch-mcp Show me my spending by category this month"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
monarch-mcp
MCP server bridging Claude (Desktop, Code, or any MCP client) to Monarch Money for personal-finance analysis and lightweight edits.
Wraps the unofficial monarchmoney Python client.
Features
Group | Tools |
Transactions |
|
Tags |
|
Categories |
|
Accounts |
|
Net worth |
|
Cash flow |
|
Budgets / goals |
|
Upstream API gaps
The following are not exposed because the upstream library does not implement them:
Tags: no rename, no delete.
Categories: no rename (delete is supported).
Goals: read-only (returned alongside
get_budgets); no create/update/delete.
Related MCP server: monarch-mcp2
Install
Requires Python 3.10+ and an OS keychain that the keyring package can talk to (macOS Keychain, Windows Credential Manager, GNOME Keyring / KWallet via D-Bus on Linux).
Recommended: pipx
pipx installs the package into its own venv and puts the monarch-mcp / monarch-mcp-setup entry points on your $PATH:
pipx install .Alternative: pip in a venv
python3 -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install .If you go this route, Claude Desktop will need the absolute path to the venv's monarch-mcp binary (see below).
Linux note
On a headless Linux box (or WSL2 without a desktop session), keyring won't find a backend by default. Either:
install
gnome-keyringand rundbus-launchso the daemon is reachable, orinstall
keyrings.alt(pip install keyrings.alt) and accept that secrets land in a plaintext file under~/.local/share/python_keyring/— fine for a personal dev box, not fine for shared machines.
Configure credentials
Run once to store your Monarch email, password, and (optional but recommended) MFA TOTP secret in the OS keychain. All three live under service name monarch-mcp.
monarch-mcp-setup set # interactive prompts (password + MFA are hidden input)
monarch-mcp-setup show # report which fields are stored (values not echoed)
monarch-mcp-setup clear # wipe all three fieldsmonarch-mcp-setup with no subcommand defaults to set.
About the MFA secret
When you enable MFA in Monarch, the setup screen shows a QR code and a base32 string (often labelled "secret key" or "manual entry code"). That base32 string is what monarch-mcp-setup is asking for — not a 6-digit code.
Storing it lets the server compute TOTP codes itself and re-authenticate unattended after the session pickle expires. Without it, every session expiry forces you to manually re-login by clearing credentials and running set again with a fresh code.
If you didn't capture the secret when you first enrolled, you can re-enroll your authenticator in Monarch's settings to see it again.
Where session state lives
After the first successful login, the server caches a session pickle so subsequent process starts skip the login round-trip:
Default:
~/.config/monarch-mcp/session.pickleOverride: set the
MONARCH_MCP_SESSION_DIRenv var to a directory of your choice
If the pickle gets corrupted or rejected by Monarch, the server silently falls back to a fresh login using the stored credentials — you don't need to clear it manually.
Wire into Claude Desktop
Edit claude_desktop_config.json:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Add an entry under mcpServers:
{
"mcpServers": {
"monarch": {
"command": "monarch-mcp"
}
}
}If monarch-mcp isn't on the $PATH Claude Desktop sees (common when you used a venv rather than pipx), give it the absolute path:
{
"mcpServers": {
"monarch": {
"command": "/Users/you/code/monarch-mcp/.venv/bin/monarch-mcp"
}
}
}To park the session pickle somewhere non-default:
{
"mcpServers": {
"monarch": {
"command": "monarch-mcp",
"env": { "MONARCH_MCP_SESSION_DIR": "/Users/you/.local/share/monarch-mcp" }
}
}
}Restart Claude Desktop. The tools should appear in the MCP picker.
Wire into Claude Code
claude mcp add monarch monarch-mcpNotes on the tool surface
All date arguments are ISO
YYYY-MM-DDstrings.IDs (category, tag, account) are opaque strings — discover them via the corresponding
list_*tool before calling filtered endpoints.set_budgetrequires exactly one ofcategory_idorcategory_group_id.list_transactionspaginates: passlimitandoffsetto walk results larger than the default 100.
Development & tests
The test suite is hermetic — it stubs keyring, monarchmoney, and mcp.server.fastmcp when those packages aren't installed, so you can run it without network access or a keychain backend.
Setup
python3 -m venv .venv
source .venv/bin/activate
pip install -e '.[dev]'-e .[dev] installs the package editable plus pytest and pytest-asyncio.
Run
pytest # full suite (~80ms, 43 tests)
pytest tests/test_server.py # one module
pytest -k "set_budget" # one keyword
pytest -v # verbose, lists each testPytest config lives in pyproject.toml under [tool.pytest.ini_options]:
pythonpath = ["src"]— letsfrom monarch_mcp import ...resolve without an editable install (handy in CI containers that don't runpip install).asyncio_mode = "auto"— async test functions don't need a@pytest.mark.asynciodecorator.testpaths = ["tests"]— barepytestfinds the suite.
Layout
src/monarch_mcp/
auth.py — keychain wrapper (get/set/delete + require_login_credentials)
setup.py — monarch-mcp-setup CLI (set / show / clear)
server.py — FastMCP server, lazy-login client, all tool definitions
tests/
conftest.py — third-party stubs + clean_keyring / fake_mm_client / server_with_fake_client fixtures
test_auth.py
test_setup.py
test_server.pyWriting a new tool
Add an
@mcp.tool()-decorated async function to src/monarch_mcp/server.py. The docstring becomes the MCP tool description Claude sees, so write it for Claude.If it calls a new
MonarchMoneymethod, add the method name to_FAKE_METHODSin tests/conftest.py sofake_mm_clientmocks it out.Add a test in tests/test_server.py using the
server_with_fake_clientfixture — assert onclient.<method>.await_args.kwargsto confirm the call shape.
What the fixtures do
clean_keyring— clears the in-memory keyring stub before each test (no-op when real keyring is installed).fake_mm_client—MagicMockwhose Monarch methods areAsyncMocks returning{"called": <method_name>}.server_with_fake_client— monkeypatchesserver._clientto the fake, so tool calls bypass_get_client()and the login flow entirely. Tests that do exercise login (test_get_client_*) reset_clienttoNoneand patchserver.MonarchMoneydirectly.
Available Tools
18 toolscreate_categoryC
Create a new category under the given group.
Inputs: group_id (required), name (required), icon, rollover_enabled. Returns: object
create_tagA
Create a new tag. Color is a hex string like '#ff0000'.
Inputs: name (required), color (required). Returns: object
delete_categoryB
Delete a category by ID.
Inputs: category_id (required). Returns: object
get_account_historyB
Historical balance snapshots for a single account.
Inputs: account_id (required). Returns: object
get_budgetsC
Budget plan vs. actuals for the date range. Includes v2 goals when present.
Inputs: start_date, end_date. Returns: object
get_cash_flowB
Cash flow aggregated by category, group, and merchant for the date range.
Inputs: limit, start_date, end_date. Returns: object
get_cash_flow_summaryA
Top-line cash flow numbers only (income, expense, savings).
Inputs: start_date, end_date. Returns: object
get_net_worth_by_typeC
Net worth broken down by account type. Timeframe: 'month' or 'year'.
Inputs: start_date (required), timeframe. Returns: object
get_net_worth_historyA
Daily net-worth snapshots aggregated across all accounts.
Optional account_type filters to a single type (e.g. 'brokerage'). Dates are ISO YYYY-MM-DD.
Inputs: start_date, end_date, account_type. Returns: object
get_transactionA
Return full detail for a single transaction (includes splits, tags, attachments).
Inputs: transaction_id (required). Returns: object
get_transactions_summaryB
Aggregate stats (count, sum, average, max) across all transactions.
Inputs: no named parameters. Returns: object
list_accountsA
List all configured accounts with current balances and metadata.
Inputs: no named parameters. Returns: object
list_categoriesA
List all transaction categories.
Inputs: no named parameters. Returns: object
list_category_groupsA
List all category groups (the parent groupings for categories).
Inputs: no named parameters. Returns: object
list_tagsA
List all transaction tags.
Inputs: no named parameters. Returns: object
list_transactionsA
List transactions with optional filters. Dates are ISO YYYY-MM-DD.
Use list_categories / list_tags / list_accounts to discover the IDs needed for the *_ids filter arguments.
Inputs: limit, offset, start_date, end_date, +9 more. Returns: object
set_budgetA
Set a budget amount. Provide exactly one of category_id or category_group_id.
timeframe: 'month' or 'year'. apply_to_future propagates the change forward.
Inputs: amount (required), category_id, category_group_id, timeframe, +2 more. Returns: object
set_transaction_tagsB
Replace the set of tags on a transaction with the given tag IDs.
Inputs: transaction_id (required), tag_ids (required). Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 18 tools
Each tool targets a distinct financial entity or operation (e.g., categories, tags, budgets, transactions, cash flow, net worth). No two tools have overlapping functionality; even related tools like get_cash_flow and get_cash_flow_summary are clearly differentiated by detail level.
All tool names follow a consistent verb_noun pattern using snake_case (e.g., create_category, get_budgets, list_transactions). Verbs are uniformly chosen (create, delete, get, list, set) and nouns are plural or singular as appropriate.
18 tools cover the major areas of personal finance management (accounts, transactions, categories, tags, budgets, cash flow, net worth) without being overwhelming. The count is within the optimal 3-15 range, though slightly above, but still well-scoped for the domain.
The tool surface has significant gaps: no update or delete for transactions, no delete for tags, no update for categories or tags. While core reads and some writes exist, essential lifecycle operations (especially delete and update for transactions) are missing, limiting agent workflows.
Maintenance
Related MCP Connectors
An MCP server that provides read access to your cloud storage providers, bank accounts and more.
Personal finance for AI agents — onboard, import statements, categorize & budget over MCP.
Read-only finance MCP server. Connects your banks, cards, payment apps, books and payroll into one ledger for your AI. Can't move money. Open source (AGPL-3.0), free during beta.
Query your real net worth, spending, transactions, budgets and portfolio from any MCP client.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAn MCP server that integrates with Monarch Money to provide financial data access and operations, including account management, transaction filtering, budget analysis, and goal tracking through natural language.-
- AlicenseCqualityCmaintenanceUnofficial MCP server for Monarch Money that exposes tools for managing accounts, transactions, budgets, and other financial data through natural language.1251MIT
- FlicenseBqualityDmaintenanceA personal MCP server that gives Claude native access to YNAB budget data.46-
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server that enables AI assistants to interact with your Monarch Money personal finance data. Manage accounts, transactions, budgets, and analyze your finances programmatically.MIT