Enhanced MCP server for MonarchMoney financial data access with dynamic tool generation
Project description
Monarch Money MCP Server Enhanced
A dynamic MCP (Model Context Protocol) server that automatically exposes all methods from the monarchmoney-enhanced library as MCP tools. No manual updates needed when the library adds new features!
Version: 0.3.4 (synchronized with monarchmoney-enhanced)
Key Features
🔄 Fully Dynamic: Automatically discovers and exposes all MonarchMoney methods as tools
🚀 Auto-Updating: GitHub Actions automatically release new versions when monarchmoney-enhanced updates
📊 Complete API Access: Every method in the library becomes an MCP tool automatically
🛠️ Smart Schema Generation: Automatically generates parameter schemas from method signatures
Automatically Available Features
Since this server dynamically exposes all monarchmoney-enhanced methods, you get access to everything:
- Account Management: Create, update, delete accounts, get balances, history
- Transaction Operations: CRUD operations, categorization, tagging, rules, splits
- Budget Management: Set budgets, analyze spending, track goals
- Category & Tag Management: Create, modify, delete categories and tags
- Institution Management: Manage connected financial institutions
- Recurring Transactions: Track and manage recurring payments
- Investment Tracking: Portfolio holdings, performance data
- Subscription Management: Account details and billing info
- And more...: Any new features added to
monarchmoney-enhancedare instantly available!
Installation
- Clone or download this MCP server
- Install dependencies:
cd /path/to/monarch-money-mcp uv sync
Configuration
Add the server to your .mcp.json configuration file:
{
"mcpServers": {
"monarch-money-enhanced": {
"command": "/path/to/uv",
"args": [
"--directory",
"/path/to/monarch-money-mcp-enhanced",
"run",
"python",
"server.py"
],
"env": {
"MONARCH_EMAIL": "your-email@example.com",
"MONARCH_PASSWORD": "your-password",
"MONARCH_MFA_SECRET": "your-mfa-secret-key"
}
}
}
}
Important Notes:
- Replace
/path/to/uvwith the full path to youruvexecutable (find it withwhich uv) - Replace
/path/to/monarch-money-mcp-enhancedwith the absolute path to this server directory - Use absolute paths, not relative paths
Getting Your MFA Secret
- Go to Monarch Money settings and enable 2FA
- When shown the QR code, look for the "Can't scan?" or "Enter manually" option
- Copy the secret key (it will be a string like
T5SPVJIBRNPNNINFSH5W7RFVF2XYADYX) - Use this as your
MONARCH_MFA_SECRET
How It Works
The server automatically discovers all public methods from the monarchmoney-enhanced library and creates MCP tools for them. This means:
- No Manual Tool Definitions: Methods are discovered at runtime
- Automatic Schema Generation: Parameter types and requirements are inferred from method signatures
- Instant Updates: When
monarchmoney-enhancedadds new methods, they become available immediately - Complete Coverage: Every public method becomes an MCP tool
Available Tools (Dynamic)
Instead of listing specific tools, here's how to see what's available:
- Runtime Discovery: The server lists all available tools when it starts
- Method Coverage: All public methods from
MonarchMoneyclass become tools - Automatic Documentation: Tool descriptions are generated from method docstrings
Example Tools (Auto-Generated)
Some examples of tools that are automatically created:
get_accounts- Retrieve all linked financial accountscreate_transaction- Creates a transaction with the given parameterscreate_transaction_category- Creates a new transaction categoryget_transaction_tags- Get all transaction tagsset_budget_amount- Set budget amount for a categoryget_merchants- Get all merchantsdelete_transaction- Deletes the given transactionget_recurring_transactions- Get all recurring transactionscreate_manual_account- Creates a new manual account- And 30+ more... (automatically updated as the library grows)
Usage Examples
Creating Transaction Categories
Use create_transaction_category with name "Shared - Telco" to create a new category for shared telecom expenses.
Applying Transaction Rules
Use the transaction management tools to automatically categorize transactions. For example:
- Find transactions containing "Sentris Network LLC"
- Update them to use the "Shared - Telco" category
Complete Financial Management
Since all MonarchMoney methods are available:
- Create and manage accounts with create_manual_account
- Set up budgets with set_budget_amount
- Tag transactions with set_transaction_tags
- Analyze spending patterns with get_cashflow_summary
- Track investments with get_account_holdings
Session Management
The server automatically manages authentication sessions:
- Sessions are cached in a
.mmdirectory for faster subsequent logins - The session cache is automatically created and managed
- Use
MONARCH_FORCE_LOGIN=truein the env section to force a fresh login if needed
Troubleshooting
MFA Issues
- Ensure your MFA secret is correct and properly formatted
- Try setting
MONARCH_FORCE_LOGIN=truein your.mcp.jsonenv section - Check that your system time is accurate (required for TOTP)
Connection Issues
- Verify your email and password are correct in
.mcp.json - Check your internet connection
- Try running the server directly to see detailed error messages:
uv run server.py
Session Problems
- Delete the
.mmdirectory to clear cached sessions - Set
MONARCH_FORCE_LOGIN=truein your.mcp.jsonenv section temporarily
Auto-Updates
This repository includes GitHub Actions that automatically:
- Monitor Updates: Checks every 6 hours for new
monarchmoney-enhancedreleases - Auto-Release: Creates new releases when the library updates
- Zero Maintenance: No manual intervention needed to get new features
- Dependency Management: Dependabot keeps other dependencies secure
Credits
Original MCP Server
- Author: Taurus Colvin (@colvint)
- Repository: https://github.com/colvint/monarch-money-mcp
Enhanced MCP Server
- Enhanced By: Keith Herrington (@keithah)
- Repository: https://github.com/keithah/monarch-money-mcp-enhanced
- Name:
monarch-money-mcp-enhanced - Version: Synchronized with
monarchmoney-enhancedlibrary - Features: Dynamic tool generation, auto-updates, complete API coverage
MonarchMoney Enhanced Library
- Enhanced By: Keith Herrington (@keithah)
- Repository: https://github.com/keithah/monarchmoney-enhanced
- Description: Enhanced version of the MonarchMoney Python library with additional features
Original MonarchMoney Python Library
- Author: hammem (@hammem)
- Repository: https://github.com/hammem/monarchmoney
- License: MIT License
This dynamic MCP server automatically adapts to library changes, providing seamless integration with AI assistants through the Model Context Protocol.
Security Notes
- Keep your credentials secure in your
.mcp.jsonfile - The MFA secret provides full access to your account - treat it like a password
- Session files in
.mmdirectory contain authentication tokens - keep them secure - Consider restricting access to your
.mcp.jsonfile since it contains sensitive credentials
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file monarch_money_mcp_enhanced-0.6.1.tar.gz.
File metadata
- Download URL: monarch_money_mcp_enhanced-0.6.1.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
81cde01e5ec44e88df721b7b344f2846c18daff19029d23894cc10fe767261b7
|
|
| MD5 |
9600d97c509e58c62af3866567f370c5
|
|
| BLAKE2b-256 |
2ba990a7fd0d6954389f59d7aca4aed2bd6805f198eaf8382f11745ad9babadb
|
File details
Details for the file monarch_money_mcp_enhanced-0.6.1-py3-none-any.whl.
File metadata
- Download URL: monarch_money_mcp_enhanced-0.6.1-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b16ce6171bdbd7b93597f6f90364867cc63ea1f002f8964eaece7edbdb9c53e3
|
|
| MD5 |
db74a3558d7cd86c608380b76860c6cf
|
|
| BLAKE2b-256 |
460a37f47f7e2b1ccefb8501e15b66db6ed25d88003c0297ce1dc5d046e7d069
|