
monarchmoney mcp
基于 FastMCP 的 Monarch Money 账户交互工具服务器。
Repository Info
About This Server
基于 FastMCP 的 Monarch Money 账户交互工具服务器。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
Monarch Money MCP Server
A server application built with FastMCP to expose tools for interacting with a Monarch Money account via the hammem/monarchmoney library.
Features
This server provides the following tools that can be called via the MCP protocol:
-
get_accounts— gets all the accounts linked to Monarch Money -
get_account_holdings— gets all of the securities in a brokerage or similar type of account -
get_account_type_options— all account types and their subtypes available in Monarch Money -
get_account_history— gets all daily account history for the specified account -
get_institutions— gets institutions linked to Monarch Money -
get_budgets— all the budgets and the corresponding actual amounts -
get_subscription_details— gets the Monarch Money account's status (e.g., paid or trial) -
get_recurring_transactions— gets the future recurring transactions, including merchant and account details -
get_transactions_summary— gets the transaction summary data from the transactions page -
get_transactions— gets transaction data, defaults to returning the last 100 transactions; can also be searched by date range -
get_transaction_categories— gets all of the categories configured in the account -
get_transaction_category_groups— all category groups configured in the account -
get_transaction_details— gets detailed transaction data for a single transaction -
get_transaction_splits— gets transaction splits for a single transaction -
get_transaction_tags— gets all of the tags configured in the account -
get_cashflow— gets cashflow data (by category, category group, merchant, and a summary) -
get_cashflow_summary— gets cashflow summary (income, expense, savings, savings rate) -
is_accounts_refresh_complete— gets the status of a running account refresh
Setup
- Clone the repository:
git clone https://github.com/richardadonnell/monarchmoney-mcp cd monarchmoney-mcp - Install dependencies:
Make sure you have Python 3.x installed. Then, install the required packages:
pip install -r requirements.txt
Configuration
This server requires credentials to access your Monarch Money account. Create a .env file in the project root directory with the following variables:
MONARCH_EMAIL=your_email@example.com
MONARCH_PASSWORD=your_monarch_password
# Optional: Only required if your account uses MFA/TOTP. Comment out line below if not needed.
MONARCH_MFA_SECRET=your_mfa_totp_secret_key
- Replace the placeholder values with your actual Monarch Money email and password.
- If you use Multi-Factor Authentication (MFA) with an authenticator app (TOTP), you can provide your secret key (
MONARCH_MFA_SECRET) for non-interactive logins. If this is not provided and MFA is required, the login attempts within the tools will fail.
Security Note: Keep your .env file secure and do not commit it to version control.
Running the Server
There are two ways to configure your IDE (like Cursor or Claude Desktop) to use this MCP tool:
Option 1: Manual Configuration (Cursor)
-
Create
mcp.json: Create a file namedmcp.jsonin the.cursorfolder within your workspace. Make sure to replace the absolute path tomain.pywith the correct path on your system.{ "mcpServers": { "MonarchMoneyTool": { "command": "uv", "args": [ "run", "--with", "mcp[cli]", "mcp", "run", "C:\\\\example\\\\path\\\\to\\\\project\\\\main.py" ] } } }
Option 2: Automatic Installation (Claude Desktop / MCP CLI)
If you have the MCP CLI installed, you can automatically configure the tool by running the following command in the root directory of this project:
mcp install main.py
Dependencies
- FastMCP
- monarchmoney
- python-dotenv
- uvicorn
- aiohttp (Dependency of monarchmoney)
- gql (Dependency of monarchmoney)
- oathtool (Dependency of monarchmoney)
Quick Start
Clone the repository
git clone https://github.com/richardadonnell/monarchmoney-mcpInstall dependencies
cd monarchmoney-mcp
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.