monarch-mcp
Monarch Money MCP 服务器
一个用于通过 Claude Desktop 与 Monarch Money 个人理财平台集成的模型上下文协议 (MCP) 服务器。
概览
设计安全 — 基于浏览器的登录,令牌存储在 OS 钥匙串中(绝不存储在配置文件或环境变量中)
默认安全 — 只读模式可防止意外更改;写入工具需要明确选择启用
功能全面 — 37 个工具,涵盖账户、交易、拆分、预算、现金流、标签、类别和信用记录
易于安装 — Claude Desktop 扩展 (
.mcpb)、uvx或pip
两种运行模式:
服务器默认以 只读模式 启动。在您明确选择启用之前,写入工具将被隐藏并禁用。
只读(默认) | 写入模式 | |
查看 账户、交易、预算 | 是 | 是 |
分析 现金流、支出、净资产 | 是 | 是 |
创建 交易、标签、类别 | 否 | 是 |
更新 账户、预算、拆分 | 否 | 是 |
删除 交易、标签、账户 | 否 | 是 |
Related MCP server: Monarch Money MCP Server
快速入门
安装
选项 1:Claude Desktop 扩展 (.mcpb) — 推荐用于 Claude Desktop
允许直接从 Claude Desktop 应用中切换写入模式的开启/关闭。
从 Releases 下载最新的
.mcpb文件在 Claude Desktop 中:设置 > 扩展 > 高级设置 > 安装扩展 — 选择
.mcpb文件重启 Claude Desktop
要启用写入工具:设置 > 扩展 > Monarch Money MCP Server > 配置 — 切换 “启用写入工具” 并点击 保存。
选项 2:uvx(无需安装) — 推荐用于代理(例如 Claude Code 或 Cursor)
也适用于 Claude Desktop,但无法从应用内切换写入模式 — 请在配置中设置。
添加到您的 MCP 配置文件中:
{
"mcpServers": {
"Monarch Money": {
"command": "uvx",
"args": ["monarch-mcp"]
}
}
}要启用写入工具:
{
"mcpServers": {
"Monarch Money": {
"command": "uvx",
"args": ["monarch-mcp", "--enable-write"]
}
}
}选项 3:pip 安装 — 推荐用于本地安装和 venv
pip install monarch-mcp贡献者:请参阅 docs/releasing.md 了解发布流程、版本方案以及通过 TestPyPI 进行的预发布测试。
使用 Python 解释器的完整路径添加到您的 MCP 配置中:
{
"mcpServers": {
"Monarch Money": {
"command": "/path/to/bin/python3",
"args": ["-m", "monarch_mcp"]
}
}
}要启用写入工具,请在 args 中添加 "--enable-write"。
选项 4:克隆并安装 — 推荐用于开发
git clone https://github.com/vargahis/monarch-mcp.git
cd monarch-mcp
pip install -e .然后使用开发环境中的 Python 解释器添加到您的 MCP 配置中:
{
"mcpServers": {
"Monarch Money": {
"command": "/path/to/bin/python3",
"args": ["-m", "monarch_mcp"]
}
}
}要启用写入工具,请在 args 中添加 "--enable-write"。
身份验证
当 MCP 服务器首次启动且没有保存的会话时,身份验证会 在您的浏览器中自动进行。
启动(或重启)Claude Desktop
服务器检测到没有令牌,并在您的浏览器中打开登录页面
输入您的 Monarch Money 电子邮件和密码
如果启用了 MFA,请输入您的 2FA 代码
身份验证成功后,令牌将保存到您的系统钥匙串中 — 一切就绪
关键细节:
凭据仅在您的浏览器中输入 — 绝不会通过 Claude Desktop 输入
令牌存储在 OS 钥匙串中 — 在重启后保持有效,有效期为数周/数月
过期的会话会自动重新验证 — 下次调用工具时会重新触发浏览器登录
完全支持 MFA
备选方案:在终端中运行
python login_setup.py以用于无头环境
有关身份验证架构的技术细节,请参阅 docs/authentication.md。
使用示例
Show me all my financial accountsWhat were my last 50 transactions?How's my budget looking this month?Analyze my cashflow for the last 3 monthsCreate a tag called "Business Expenses" in red可用工具
工具 | 描述 | 模式 |
Auth | ||
| 获取设置说明 | read |
| 检查身份验证状态 | read |
| 调试钥匙串问题 | read |
Accounts | ||
| 获取所有金融账户 | read |
| 获取投资持仓 | read |
| 获取历史余额数据 | read |
| 获取每日余额 | read |
| 按账户类型计算净资产 | read |
| 每日总净值 | read |
| 获取关联机构 | read |
| 获取有效的账户类型 | read |
| 请求账户数据刷新 | read |
| 创建手动账户 | write |
| 更新账户设置 | write |
| 删除账户 | write |
Transactions | ||
| 获取带有过滤条件的交易(日期、账户、类别、标签、搜索、待审核等) | read |
| 获取完整的交易详情 | read |
| 汇总交易统计信息 | read |
| 获取拆分信息 | read |
| 获取定期交易 | read |
| 创建新交易 | write |
| 更新现有交易 | write |
| 删除交易 | write |
| 创建/修改/删除拆分 | write |
Tags | ||
| 获取所有标签 | read |
| 创建新标签 | write |
| 删除标签 | write |
| 设置交易标签 | write |
Categories | ||
| 获取所有类别 | read |
| 获取类别组 | read |
| 创建类别 | write |
| 删除类别 | write |
Budgets & Cashflow | ||
| 获取预算信息 | read |
| 获取现金流分析 | read |
| 获取现金流摘要 | read |
| 设置类别预算 | write |
Other | ||
| 获取订阅状态 | read |
| 获取信用评分历史 | read |
🙏 致谢
派生自 @robcerda 的 monarch-mcp-server,由 vargahis 维护。
基于 monarchmoneycommunity Python 库构建。
感谢:
@robcerda 提供原始 MCP 服务器
@hammem 提供原始 monarchmoney 库
@bradleyseanf 提供社区分支
许可证
MIT 许可证
Available Tools
25 toolscheck_auth_statusA
Check if already authenticated with Monarch Money.
Inputs: no named parameters. Returns: result
debug_session_loadingC
Debug keyring session loading issues.
Inputs: no named parameters. Returns: result
get_account_historyC
Get historical balance snapshots for an account.
Args: account_id: The ID of the account
Inputs: account_id (required). Returns: result
get_account_holdingsC
Get investment holdings for a specific account.
Args: account_id: The ID of the investment account
Inputs: account_id (required). Returns: result
get_accountsA
Get all financial accounts from Monarch Money.
Inputs: no named parameters. Returns: result
get_account_snapshots_by_typeA
Get net value snapshots grouped by account type.
Args: start_date: Start date in YYYY-MM-DD format timeframe: Aggregation period - "month" or "year"
Inputs: start_date (required), timeframe (required). Returns: result
get_account_type_optionsA
Get available account types and sub-types for creating manual accounts.
Inputs: no named parameters. Returns: result
get_aggregate_snapshotsA
Get daily aggregate net value of all accounts.
Args: start_date: Start date in YYYY-MM-DD format end_date: End date in YYYY-MM-DD format account_type: Filter by account type (optional)
Inputs: start_date, end_date, account_type. Returns: result
get_budgetsB
Get budget information from Monarch Money.
Args: start_date: Start date in YYYY-MM-DD format (default: last month) end_date: End date in YYYY-MM-DD format (default: next month) use_v2_goals: Whether to use v2 goals format (default: True)
Inputs: start_date, end_date, use_v2_goals. Returns: result
get_cashflowB
Get cashflow analysis from Monarch Money.
Args: start_date: Start date in YYYY-MM-DD format (requires end_date; defaults to current month) end_date: End date in YYYY-MM-DD format (requires start_date; defaults to current month)
Inputs: start_date, end_date. Returns: result
get_cashflow_summaryA
Get cashflow summary (income, expenses, savings, savings rate).
Args: limit: Number of records to retrieve (default: 100) start_date: Start date in YYYY-MM-DD format (requires end_date) end_date: End date in YYYY-MM-DD format (requires start_date)
Inputs: limit, start_date, end_date. Returns: result
get_credit_historyA
Get credit score history and related details.
Inputs: no named parameters. Returns: result
get_institutionsA
Get all connected financial institutions and their connection status.
Inputs: no named parameters. Returns: result
get_recent_account_balancesB
Get daily balance for all accounts from a start date.
Args: start_date: Start date in YYYY-MM-DD format (optional)
Inputs: start_date. Returns: result
get_recurring_transactionsC
Get recurring transactions from Monarch Money.
Args: start_date: Start date in YYYY-MM-DD format (requires end_date) end_date: End date in YYYY-MM-DD format (requires start_date)
Inputs: start_date, end_date. Returns: result
get_subscription_detailsB
Get Monarch Money subscription status and details.
Inputs: no named parameters. Returns: result
get_transaction_categoriesA
Get all transaction categories from Monarch Money.
Inputs: no named parameters. Returns: result
get_transaction_category_groupsA
Get all transaction category groups from Monarch Money.
Inputs: no named parameters. Returns: result
get_transaction_detailsA
Get detailed information about a specific transaction.
Args: transaction_id: The ID of the transaction redirect_posted: Whether to redirect to posted transaction (default: True)
Inputs: transaction_id (required), redirect_posted. Returns: result
get_transactionsA
Get transactions from Monarch Money.
Args: limit: Number of transactions to retrieve (default: 100) offset: Number of transactions to skip (default: 0) start_date: Start date in YYYY-MM-DD format (requires end_date) end_date: End date in YYYY-MM-DD format (requires start_date) account_id: Specific account ID to filter by (shorthand for account_ids with one ID) search: Free text search query category_ids: List of category IDs to filter by account_ids: List of account IDs to filter by (cannot use with account_id) tag_ids: List of tag IDs to filter by has_attachments: Filter transactions with/without attachments has_notes: Filter transactions with/without notes hidden_from_reports: Filter transactions hidden/visible in reports is_split: Filter split/unsplit transactions is_recurring: Filter recurring/non-recurring transactions synced_from_institution: Filter synced/manual transactions needs_review: Filter transactions that need review
Inputs: limit, offset, start_date, end_date, +12 more. Returns: result
get_transaction_splitsB
Get split information for a transaction.
Args: transaction_id: The ID of the transaction
Inputs: transaction_id (required). Returns: result
get_transactions_summaryB
Get aggregate transaction summary (count, sum, avg, max, income, expenses).
Inputs: no named parameters. Returns: result
get_transaction_tagsA
Get all transaction tags from Monarch Money.
Inputs: no named parameters. Returns: result
refresh_accountsB
Request account data refresh from financial institutions.
Inputs: no named parameters. Returns: result
setup_authenticationA
Get instructions for setting up secure authentication with Monarch Money.
Inputs: no named parameters. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 25 tools
Each tool targets a distinct aspect of Monarch Money (accounts, transactions, budgets, cashflow, credit, institutions, auth). Even with many transaction-related tools, they differ in scope (e.g., get_transactions vs get_transaction_details vs get_transaction_splits) and have clear parameter distinctions, leaving no ambiguity.
All tool names use snake_case and follow a verb_noun pattern, which is consistent. However, the verbs vary: most use 'get_', but there are also 'check_', 'debug_', 'setup_', and 'refresh_'. This minor inconsistency prevents a perfect score.
With 25 tools, the server is on the larger side but covers many facets of personal finance (accounts, transactions, budgets, cashflow, credit, institutions). Each tool serves a clear purpose, and the count feels justified for the domain, though slightly heavy.
The tool set is heavily read-focused, lacking any create, update, or delete operations for core entities like accounts, transactions, or budgets. This is a significant gap for agents that need to manage finances, leaving the surface incomplete for typical CRUD workflows.
Maintenance
Related MCP Connectors
Ask Claude about your income and spending, and import bank statements. No bank login.
Read-only access to your own bank, card and brokerage accounts for Claude, ChatGPT and other AI agents: balances, transactions, spending, subscriptions, cashflow and investment holdings. It can never move money.
Personal finance, bank account, and shared memory connector for Claude, ChatGPT, Gemini Spark & more
Where Is My Dough (WIMD) is a budgeting app for Canadians. Connect it to Claude or another AI app and ask about your real Canadian bank accounts, spending, budgets, cash flow and projects: "Why was October so expensive?", "Can I afford a $2,400 trip in March?". Read-only by default; with your permission it can also categorize transactions, create rules and set project budgets. Every change is logged and can be undone, and it never moves money.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to access and analyze MonarchMoney personal finance data through natural language queries. Provides comprehensive financial insights including account balances, transaction analysis, budget tracking, and spending patterns with enterprise-grade security.12MIT
- AlicenseAqualityDmaintenanceEnables integration with Monarch Money to query financial data, analyze spending patterns, track budgets, and get personalized financial insights through conversational AI with Claude Desktop.113ISC
- AlicenseNot gradedqualityDmaintenanceProvides read-only access to Monarch Money financial data, enabling AI assistants to analyze transactions, budgets, and cashflow.4MIT
- AlicenseNot gradedqualityBmaintenanceInteractive UI for Monarch Money inside claude.ai, running on Monarch's official OAuth. Provides interactive widgets for transactions, spending, and accounts with inline editing and broad data-tool coverage.MIT