Skip to main content
Glama
monarch-mcp

monarch-mcp

by vargahis

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 应用中切换写入模式的开启/关闭。

  1. 从 Releases 下载最新的 .mcpb 文件

  2. 在 Claude Desktop 中:设置 > 扩展 > 高级设置 > 安装扩展 — 选择 .mcpb 文件

  3. 重启 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 服务器首次启动且没有保存的会话时,身份验证会 在您的浏览器中自动进行。

  1. 启动(或重启)Claude Desktop

  2. 服务器检测到没有令牌,并在您的浏览器中打开登录页面

  3. 输入您的 Monarch Money 电子邮件和密码

  4. 如果启用了 MFA,请输入您的 2FA 代码

  5. 身份验证成功后,令牌将保存到您的系统钥匙串中 — 一切就绪

关键细节:

  • 凭据仅在您的浏览器中输入 — 绝不会通过 Claude Desktop 输入

  • 令牌存储在 OS 钥匙串中 — 在重启后保持有效,有效期为数周/数月

  • 过期的会话会自动重新验证 — 下次调用工具时会重新触发浏览器登录

  • 完全支持 MFA

  • 备选方案:在终端中运行 python login_setup.py 以用于无头环境

有关身份验证架构的技术细节,请参阅 docs/authentication.md。

使用示例

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

可用工具

工具

描述

模式

Auth

setup_authentication

获取设置说明

read

check_auth_status

检查身份验证状态

read

debug_session_loading

调试钥匙串问题

read

Accounts

get_accounts

获取所有金融账户

read

get_account_holdings

获取投资持仓

read

get_account_history

获取历史余额数据

read

get_recent_account_balances

获取每日余额

read

get_account_snapshots_by_type

按账户类型计算净资产

read

get_aggregate_snapshots

每日总净值

read

get_institutions

获取关联机构

read

get_account_type_options

获取有效的账户类型

read

refresh_accounts

请求账户数据刷新

read

create_manual_account

创建手动账户

write

update_account

更新账户设置

write

delete_account

删除账户

write

Transactions

get_transactions

获取带有过滤条件的交易(日期、账户、类别、标签、搜索、待审核等)

read

get_transaction_details

获取完整的交易详情

read

get_transactions_summary

汇总交易统计信息

read

get_transaction_splits

获取拆分信息

read

get_recurring_transactions

获取定期交易

read

create_transaction

创建新交易

write

update_transaction

更新现有交易

write

delete_transaction

删除交易

write

update_transaction_splits

创建/修改/删除拆分

write

Tags

get_transaction_tags

获取所有标签

read

create_transaction_tag

创建新标签

write

delete_transaction_tag

删除标签

write

set_transaction_tags

设置交易标签

write

Categories

get_transaction_categories

获取所有类别

read

get_transaction_category_groups

获取类别组

read

create_transaction_category

创建类别

write

delete_transaction_category

删除类别

write

Budgets & Cashflow

get_budgets

获取预算信息

read

get_cashflow

获取现金流分析

read

get_cashflow_summary

获取现金流摘要

read

set_budget_amount

设置类别预算

write

Other

get_subscription_details

获取订阅状态

read

get_credit_history

获取信用评分历史

read

🙏 致谢

派生自 @robcerda 的 monarch-mcp-server,由 vargahis 维护。

基于 monarchmoneycommunity Python 库构建。

感谢:

许可证

MIT 许可证

Available Tools

25 tools
check_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

    B3.2/5.0

    Scored across 25 tools

    Disambiguation5/5

    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.

    Naming Consistency4/5

    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.

    Tool Count4/5

    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.

    Completeness2/5

    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

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables 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.
      12
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables integration with Monarch Money to query financial data, analyze spending patterns, track budgets, and get personalized financial insights through conversational AI with Claude Desktop.
      11
      3
      ISC
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides read-only access to Monarch Money financial data, enabling AI assistants to analyze transactions, budgets, and cashflow.
      4
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Interactive 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