Monarch MCP Server

平台与服务

by jamiew

用于访问 Monarch 财务数据的 MCP 服务器,支持读取账户、交易、预算等信息。

什么是 Monarch MCP Server

用于访问 Monarch 财务数据的 MCP 服务器,支持读取账户、交易、预算等信息。

README

<!-- mcp-name: io.github.jamiew/monarch-mcp -->

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 a handful of tools to a broad toolset — 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

  • Tools covering accounts, transactions, budgets, cashflow, investments, categories, recurring transactions, and spending analysis
  • 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

One-line install, no clone, no absolute-path wrangling. The server is published to PyPI, so uv runs it on demand with uvx monarch-mcp-jamiew. 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:

json
{
  "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.

<details> <summary><b>Claude Desktop</b></summary>

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.

</details> <details> <summary><b>Claude Code</b></summary>
bash
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.

</details> <details> <summary><b>Codex CLI</b></summary>
bash
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:

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" }
</details> <details> <summary><b><code>.mcp.json</code> (project-scoped)</b></summary>

Drop the standard config into a .mcp.json file at your project root. Claude Code (project scope) and most clients auto-load it.

</details> <details> <summary><b>Hermes</b></summary>

Add to ~/.hermes/config.yaml under mcp_servers:, then /reload-mcp (or restart Hermes):

yaml
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"
</details> <details> <summary><b>OpenClaw</b></summary>

Add the standard config to ~/.openclaw/openclaw.json under mcpServers, then restart the gateway.

</details> <details> <summary><b>Any other MCP client (Cursor, VS Code, Windsurf, Cline, Zed, …)</b></summary>

Most 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.

Not sure how? Tell your agent:

Install the Monarch Money MCP server from https://github.com/jamiew/monarch-mcp — it's on PyPI as monarch-mcp-jamiew, runs via uvx monarch-mcp-jamiew, and needs env vars MONARCH_EMAIL, MONARCH_PASSWORD, and MONARCH_MFA_SECRET.

</details> <details> <summary><b>From source (development)</b></summary>

To run against a local checkout (and the git-pinned monarchmoneycommunity lib):

bash
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):

json
{
  "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"
      }
    }
  }
}
</details>

[!NOTE] The claude mcp add / codex mcp add one-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

  1. Go to Monarch Money settings and enable 2FA
  2. When shown the QR code, look for "Can't scan?" or "Enter manually"
  3. Copy the secret key (a string like T5SPVJIBRNPNNINFSH5W7RFVF2XYADYX)
  4. Use this as your MONARCH_MFA_SECRET

Tools

ToolDescription
get_accountsList accounts with balances
get_transactionsTransactions with date/account/category filtering
search_transactionsSearch by merchant name or keyword
get_transaction_categoriesCategory list (compact by default)
create_transactionCreate a manual transaction
update_transactionUpdate a single transaction
update_transactions_bulkUpdate multiple transactions in parallel
get_budgetsBudget data and spending analysis
get_cashflowIncome and expense analysis
get_account_holdingsInvestment holdings for an account (requires account_id)
get_account_historyAccount balance history
get_institutionsLinked financial institutions
get_recurring_transactionsRecurring transaction detection
set_budget_amountSet a budget category amount
create_manual_accountCreate a manually-tracked account
refresh_accountsTrigger account data refresh
get_spending_summarySpending aggregated by category, account, or month
get_complete_financial_overviewCombined 5-API call in parallel
analyze_spending_patternsMulti-month trend analysis

Transaction format

By default, transactions return a compact format with the fields that matter:

json
{
  "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 ~/.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.pickle to clear the cached session
  • Set MONARCH_FORCE_LOGIN=true in 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):

bash
MONARCH_EMAIL="your-email@example.com"
MONARCH_PASSWORD="your-password"
MONARCH_MFA_SECRET="YOUR_TOTP_SECRET_KEY"

Tests

bash
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):

bash
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:

bash
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.

  • The server runs locally on your machine — your credentials live in your MCP client config and never pass through the LLM. Only the financial data you actually query is returned to the assistant.
  • Your credentials have full account access — treat them like passwords
  • The MFA secret (TOTP key) provides ongoing access
  • Session files in ~/.monarch-mcp/ contain auth tokens — keep them secure
  • Never commit .env or .mcp.json files 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!

常见问题

Monarch MCP Server 是什么?

用于访问 Monarch 财务数据的 MCP 服务器,支持读取账户、交易、预算等信息。

相关 Skills

Slack动图

by anthropics

Universal
热门

面向Slack的动图制作Skill,内置emoji/消息GIF的尺寸、帧率和色彩约束、校验与优化流程,适合把创意或上传图片快速做成可直接发送的Slack动画。

帮你快速做出适配 Slack 的动图,内置约束规则和校验工具,少踩上传与播放坑,做表情包和演示都更省心。

平台与服务
未扫描164.6k

MCP构建

by anthropics

Universal
热门

聚焦高质量 MCP Server 开发,覆盖协议研究、工具设计、错误处理与传输选型,适合用 FastMCP 或 MCP SDK 对接外部 API、封装服务能力。

想让 LLM 稳定调用外部 API,就用 MCP构建:从 Python 到 Node 都有成熟指引,帮你更快做出高质量 MCP 服务器。

平台与服务
未扫描164.6k

接口测试套件

by alirezarezvani

Universal
热门

扫描 Next.js、Express、FastAPI、Django REST 的 API 路由,自动生成覆盖鉴权、参数校验、错误码、分页、上传与限流场景的 Vitest 或 Pytest 测试套件。

帮你把API与集成测试自动化跑顺,减少回归漏测;能力全面,尤其适合复杂接口场景的QA团队。

平台与服务
未扫描23.3k

相关 MCP Server

Slack 消息

编辑精选

by Anthropic

热门

Slack 是让 AI 助手直接读写你的 Slack 频道和消息的 MCP 服务器。

这个服务器解决了团队协作中需要 AI 实时获取 Slack 信息的痛点,特别适合开发团队让 Claude 帮忙汇总频道讨论或发送通知。不过,它目前只是参考实现,文档有限,不建议在生产环境直接使用——更适合开发者学习 MCP 如何集成第三方服务。

平台与服务
89.0k

by netdata

热门

io.github.netdata/mcp-server 是让 AI 助手实时监控服务器指标和日志的 MCP 服务器。

这个工具解决了运维人员需要手动检查系统状态的痛点,最适合 DevOps 团队让 Claude 自动分析性能数据。不过,它依赖 NetData 的现有部署,如果你没用过这个监控平台,得先花时间配置。

平台与服务
79.5k

by d4vinci

热门

Scrapling MCP Server 是专为现代网页设计的智能爬虫工具,支持绕过 Cloudflare 等反爬机制。

这个工具解决了爬取动态网页和反爬网站时的头疼问题,特别适合需要批量采集电商价格或新闻数据的开发者。不过,它依赖外部浏览器引擎,资源消耗较大,不适合轻量级任务。

平台与服务
71.5k

评论