monarch-mcp2
Unofficial MCP server for Monarch Money that exposes tools for managing accounts, transactions, budgets, and other financial data through natural language.
README
monarch-mcp2
Unofficial MCP server for Monarch Money.
This project is not affiliated with, endorsed by, or supported by Monarch Money.
monarch-mcp2 gives agents like Codex and Claude access to Monarch Money
through Model Context Protocol tools. It exposes the public function surface
from monarch-api2, organized
by Monarch feature area, with tool names that map 1-to-1 to backend API
functions:
{group}_{function_name}
Features
- MCP tools backed directly by
monarch-api2, not the CLI - 1-to-1 tool names matching the API function surface
- Typed input schemas for filters, enums, nested objects, and mutations
- Tool annotations for read-only, write, and destructive operations
- Compact
summaryoutput by default, similar to the CLI's table/detail views fulloutput when agents need the complete structured API datarawoutput when agents explicitly need retained raw response payloads- Dotted-path field projection for targeted output
- Tools for auth, accounts, transactions, receipts, cashflow, reports, merchants, tags, household, categories, recurring items, investments, goals, and budgets
Installation
This package depends on monarch-api2 version 0.1.0, installed directly from
GitHub:
monarch-api2 @ git+https://github.com/erikrubstein/monarch-api2.git@v0.1.0
Install the MCP server from GitHub:
pipx install git+https://github.com/erikrubstein/monarch-mcp2.git
After installation, confirm the monarch-mcp command is available:
which monarch-mcp
Codex
Add the server to Codex:
codex mcp add monarch -- monarch-mcp
If your session file is somewhere other than the default path, include
MONARCH_SESSION_PATH:
codex mcp add \
--env MONARCH_SESSION_PATH="/absolute/path/to/session.json" \
monarch \
-- monarch-mcp
Verify the server was added:
codex mcp list
Restart Codex after adding the server. Once loaded, Codex should see tools such
as accounts_list_accounts, transactions_list_transactions, and
budget_get_budget.
Claude Code
Add the server to Claude Code:
claude mcp add --scope user monarch -- monarch-mcp
If your session file is somewhere other than the default path, include
MONARCH_SESSION_PATH:
claude mcp add \
--scope user \
-e MONARCH_SESSION_PATH="/absolute/path/to/session.json" \
monarch \
-- monarch-mcp
Verify the server was added:
claude mcp list
Restart Claude Code after adding the server.
Claude Desktop
Claude Desktop uses a JSON config file rather than the Claude Code claude mcp
command.
On macOS, the config file is usually:
~/Library/Application Support/Claude/claude_desktop_config.json
Example:
{
"mcpServers": {
"monarch": {
"command": "/absolute/path/to/monarch-mcp",
"args": [],
"env": {
"MONARCH_SESSION_PATH": "/absolute/path/to/session.json"
}
}
}
}
Restart Claude Desktop after editing the config.
Sessions
The default session file is:
~/.config/monarch/session.json
You can override it with MONARCH_SESSION_PATH, or set MONARCH_CONFIG_DIR to
change the config directory.
Use auth_create_session to create a Monarch session. Auth tools redact the
session token by default. Set include_token=true only when a trusted caller
explicitly needs the bearer token, such as when saving a session.
You can also provide a session file created by monarch-api2,
monarch-cli2, or another trusted tool. The MCP server loads the configured
session file for authenticated tools.
MCP Inspector
You can inspect the server with MCP Inspector:
npx @modelcontextprotocol/inspector /absolute/path/to/monarch-mcp
If Inspector asks for transport details, use stdio with:
{
"command": "/absolute/path/to/monarch-mcp",
"args": [],
"env": {
"MONARCH_SESSION_PATH": "/absolute/path/to/session.json"
}
}
Tools
Tool names mirror monarch-api2 function names:
auth_create_session
accounts_list_accounts
transactions_list_transactions
transactions_get_transaction
receipts_list_receipts
cashflow_get_cashflow_summary
reports_get_report_data
merchants_list_merchants
tags_list_tags
household_get_current_user
categories_list_categories
recurring_list_recurring_streams
investments_get_portfolio
goals_list_goals
budget_get_budget
The full server currently exposes 125 tools across all implemented API groups. Use an MCP client or MCP Inspector to browse the complete tool list and schemas.
Output
By default, tools return compact summary output. This is intended for agent
workflows where the caller usually needs the same fundamental fields a person
would scan in the CLI.
All tools accept common output controls:
output_mode="summary"returns compact CLI-style output.output_mode="full"returns complete structured API output withoutraw.output_mode="raw"returns complete structured API output includingraw.fields=[...]returns only selected dotted-path fields.
Examples:
{
"limit": 10
}
{
"limit": 10,
"output_mode": "full"
}
{
"transaction_id": "TRANSACTION_ID",
"output_mode": "raw"
}
{
"limit": 10,
"output_mode": "raw",
"fields": ["id", "date", "merchant.name", "category.name", "raw"]
}
When fields is provided, it is applied to the selected full/raw data and the
tool returns the projected object directly.
Development
Run the test suite:
.venv/bin/python -m pytest
The MCP source lives in src/monarch_mcp. Group-specific tools live in
src/monarch_mcp/groups.
Security
This is an unofficial tool that can access sensitive personal finance data. Treat saved session files like passwords.
- Do not commit session files, tokens, downloaded receipts, or personal finance exports.
- Use
output_mode="raw"carefully, since raw payloads may include large or sensitive response data. - Only connect this server to trusted MCP clients.
- Report security-sensitive issues privately instead of opening a public issue with credentials or personal financial data.
License
MIT License. See LICENSE.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。