
Monarch MCP Server
io.github.jamiew由 GitHub 账号 jamiew 发布v0.7.1更新于 Nov 7, 2026
Query and update Monarch Money accounts, transactions, and budgets
概览
将助手连接到 Monarch Money 账户,用于读取和更新账户、交易、预算、持仓与净资产。
- 可以做什么
- 列出账户、余额、持仓、金融机构与账户历史
- 读取、搜索、新建、更新、批量修改和删除交易、拆分、标签与商户
- 管理交易规则,包括将规则应用到历史交易
- 读取预算、现金流、定期收支流与计划发生项,并设置预算金额
- 按类别、账户或月份分析支出,比较各月并预测趋势
- 查看净资产历史、信用分历史、储蓄目标与疑似重复交易
- 适用场景
- 适合让助手查看个人财务状况、整理或归类交易、调整预算与储蓄目标,或基于 Monarch Money 账户生成支出与净资产摘要。更适合本地桌面客户端,而非网页端助手。
- 运行要求
- 通过 uvx 从 PyPI 包 monarch-mcp-jamiew 以 stdio 在本地运行,需要安装 uv。需要 Monarch Money 账户,以及环境变量 MONARCH_EMAIL、MONARCH_PASSWORD 和 MONARCH_MFA_SECRET(TOTP 密钥,不是动态验证码)。会话默认缓存在 ~/.monarch-mcp。
安装
在 SourceWeft 中
- 打开 控制台中的 Monarch MCP Server,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Monarch Money MCP Server
Use an AI assistant to read and update your Monarch Money accounts, transactions, and budgets through MCP.
Why this fork?
This rewrite adds these tools to colvint's original server:
- Search and bulk edits:
search_transactionsfinds merchants or keywords;update_transactions_bulkedits up to 100 transactions per call, five at a time, with per-item results. - Spending analysis:
get_spending_summarygroups totals by category, account, or month;analyze_spending_patternscompares months. - One-call overview:
get_complete_financial_overviewcombines accounts, budgets, cashflow, transactions, and categories. - Splits and recurring schedules: read and replace transaction splits, list every recurring stream with its next forecast, view scheduled occurrences, and edit merchant-wide recurrence.
- Cleanup tools: find possible duplicates, delete transactions, merge merchants, and tag transactions.
- Net worth and goals: daily net worth or monthly balances by account type, credit score history, and savings goals.
Unlike the original and keithah's enhanced Python fork, this server also provides:
- Typed results: structured output with
outputSchema, plus a text fallback. - MCP resources and prompts: account/category/institution resources, per-account holdings/history templates, and guided prompts with argument completion.
- Assistant-friendly calls: compact transaction/category records, natural-language dates, read/write labels, and progress on batch analysis.
Comparison checked September 14, 2026. Other forks overlap on financial tools; the enhanced Python fork exposes a broader library API. This project focuses on analysis workflows and MCP integration, not exposing every API method. See the tool catalog.
Monarch also relaunched its own official MCP connector on October 21, 2026. It uses OAuth instead of your password, has weekly usage limits, and skips Finicity-connected accounts. Try it first if it covers what you need; this server runs locally and covers more write and analysis tools.
Setup
Install uv, then configure your MCP client to run uvx monarch-mcp-jamiew. You'll need your Monarch email and password, plus an MFA secret for TOTP-based 2FA.
The latest release is on PyPI. Changes listed under Unreleased in the changelog need a source install until the next release.
Standard config
For clients with an mcpServers config:
Claude Desktop
Add the monarch-money entry from the standard config to your config file's mcpServers object (create the file if needed):
- 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
Add -s user to make it available across all your projects. Verify with claude mcp list.
Codex CLI
Or add the equivalent block to ~/.codex/config.toml:
.mcp.json (project-scoped)
For Claude Code's project scope, save the standard config as .mcp.json in your project root. Keep credential-bearing files out of version control.
Hermes
Add to ~/.hermes/config.yaml under mcp_servers:, then /reload-mcp (or restart Hermes):
OpenClaw
Add the standard config to ~/.openclaw/openclaw.json under mcpServers, then restart the gateway.
Any other MCP client (Cursor, VS Code, Windsurf, Cline, Zed, …)
Set up a local stdio MCP server with command uvx, argument monarch-mcp-jamiew, and the credentials above. Follow your client's config format.
Not sure how? Tell your agent:
Install the Monarch Money MCP server from https://github.com/jamiew/monarch-mcp. The PyPI package is
monarch-mcp-jamiew, run viauvx monarch-mcp-jamiew. It needsMONARCH_EMAIL,MONARCH_PASSWORD, andMONARCH_MFA_SECRETfor TOTP-based 2FA.
From source (development)
Source installs use a pinned monarchmoneycommunity commit:
Then point your client at the local copy with absolute paths (find them with which uv and pwd):
[!NOTE] The
claude mcp addandcodex mcp addcommands can save credentials in shell history. Edit the client's config directly to avoid that, and protect the config file.
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 TOTP secret key, not the rotating six-digit code
- Use this as your
MONARCH_MFA_SECRET
Tools
The server exposes these 42 tools.
Spending totals skip transfers, such as credit card payments, so money moving between your own accounts isn't counted twice. Each result reports transfers_excluded.
Dates accept ISO dates or natural language. A month or year, such as 2024-02 or last month, covers the whole period: as an end_date it means the period's last day.
Use is_pending=True for pending transactions or False for posted ones; omit it
for both. Single and bulk updates accept owner_user_id from get_household_members.
An empty string sets Shared ownership; omitted/null leaves ownership unchanged.
Assignments override inherited ownership. Inspect ownedByUser with verbose=True;
the update response does not include it.
Rules default to 25 per page (maximum 100); history defaults to 100 (maximum 1,000).
Use limit, offset, and returned next_offset to continue; total_count covers all
matching records. Rule details remain available with verbose=True.
A rule can set a category, merchant name, tags, or review status. It can also hide transactions from reports. Each rule must look for a merchant name, statement text, or amount. Monarch ignores edits to rules that don't.
When you edit a rule, anything you leave out stays the same. To clear a value, pass
[] or "". Monarch replaces the whole rule on every edit, so the server sends back
the full rule with your changes. That keeps settings the tools can't edit, such as
owners, goals, and splits.
apply_to_existing_transactions=True also changes past transactions that match. That
is hard to undo, so check what matches with search_transactions first.
Overviews and spending analysis default to compact summaries; verbose=True restores
full sections. Transaction samples are capped at 500 and 2,000 respectively, even
in verbose mode. Check batch_metadata.transactions_truncated before treating
totals as complete; null means the upstream count was unavailable.
Recurring transactions
get_recurring_transactions(start_date, end_date) returns a forecast, not posted history.
Dates accept ISO or natural language. No dates selects this month; one date fills
the missing bound from that month. For the full list of recurring streams with each
merchant ID, use get_recurring_streams; active_only=False adds inactive ones.
Occurrences include stream, account, category, and a matched transactionId when
available. isPast does not mean paid. Use get_transactions(is_recurring=True)
for recorded transactions; do not count forecasts and posted matches twice.
update_recurring_transaction changes a merchant-wide schedule, not one occurrence.
Use stream.merchant.id, not stream.id or transactionId, and the current merchant
name to avoid renaming it. Pass only settings to change: frequency, base_date,
amount, is_recurring, or is_active. Omitted settings stay unchanged.
Use Monarch's frequency and signed amount. This does not cancel subscriptions,
move money, or create posted transactions.
Transaction format
get_transactions and search_transactions return compact records by default:
pending appears only when true; notes appears only when nonempty. Set verbose=True on get_transactions or search_transactions for full transaction details, or on get_transaction_categories for full category details.
Session management
Sessions are cached in ~/.monarch-mcp/ for faster subsequent logins (override the location with the MONARCH_SESSION_DIR env var). If you hit auth issues:
- Delete
~/.monarch-mcp/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
For live checks, create a .env file (git-ignored) and load it explicitly with uv --env-file:
Tests
Integration tests share one fresh login to avoid MFA reuse and login throttling. They never load .env themselves or read/write saved sessions.
CI checks
Run the same checks as CI:
Releasing
Use /release to bump pyproject.toml, commit, tag vX.Y.Z, push, and create a GitHub release. The publish workflow publishes to PyPI and the MCP Registry through OIDC, setting server.json versions from the tag.
Log analysis
Measure tool calls and timing. Output sizes need MONARCH_LOG_RESULT_SIZE=true in the server's env, since measuring serializes each result a second time.
Security
Warning: This server uses unofficial Monarch Money API access. Your credentials grant full account access, including writes.
- The server runs locally and returns requested financial data to your MCP client. Review the client's privacy settings and tool approvals.
- Protect your password and MFA secret. The TOTP secret enables ongoing code generation.
- Session files in
~/.monarch-mcp/contain auth tokens. Protect them and any customMONARCH_SESSION_DIR. - Logs can include financial input values and error details. Review them before sharing.
- Never commit credential-bearing
.env,.mcp.json, or client config files. - Monarch Money may change or restrict unofficial API access at any time.
Credits
Forked from colvint/monarch-money-mcp. API access uses bradleyseanf/monarchmoneycommunity, based on hammem/monarchmoney. Source installs pin a commit; PyPI installs use the published library.
Contributors: @caseypugh (transaction splits), @seanperkins (spending summary pagination), @rajatbhagat (setup docs), @samyk (transaction rules), and @prerak-proof (transaction details).
来源:README.md,提交 9afaeb8
工具
0版本历史
6- v0.7.1最新Nov 7, 2026
- v0.6.0Nov 3, 2026
- v0.5.2Sep 29, 2026
- v0.5.1Sep 27, 2026
- v0.5.0Sep 21, 2026
- v0.4.0Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分