Skip to main content

Enhanced MCP server for MonarchMoney financial data access with dynamic tool generation

Project description

🏦 Monarch Money MCP Server Enhanced

🎉 Claude Desktop Extension - One-Click Installation!

A dynamic MCP (Model Context Protocol) server that automatically exposes all methods from the monarchmoney-enhanced library as MCP tools. Now available as a Claude Desktop Extension for seamless one-click installation!

NEW in v0.9.2: Install like a browser extension - just download and double-click the .mcpb file!

Enhanced with performance optimizations including 80% reduction in API calls through intelligent caching and auto-updating capabilities.

Key Features

🎯 One-Click Installation: Install as a Claude Desktop Extension - no configuration files needed!
🔄 Fully Dynamic: Automatically discovers and exposes all MonarchMoney methods as tools
🚀 Auto-Updating: GitHub Actions automatically release new versions with MCPB bundles
📊 Complete API Access: Every method in the library becomes an MCP tool automatically
🛠️ Smart Schema Generation: Automatically generates parameter schemas from method signatures
Performance Optimized: 80% reduction in API calls, 90% cache hit rate, intelligent caching with TTL
💫 User-Friendly Setup: Configure credentials through Claude Desktop's intuitive interface

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-enhanced are instantly available!

Installation

Option 1: 🚀 Claude Desktop Extension (Recommended)

⚡ FASTEST & EASIEST INSTALLATION ⚡

Transform your installation experience from complex manual setup to Chrome extension-style simplicity:

  1. Download the Extension: Get the latest monarch-money-enhanced.mcpb file from the Releases page

  2. Install in Claude Desktop: Double-click the .mcpb file to automatically install in Claude Desktop

  3. Configure: Enter your Monarch Money credentials in Claude Desktop settings:

    • Email: Your Monarch Money account email
    • Password: Your Monarch Money account password
    • MFA Secret (optional): Your 2FA secret key if enabled
    • Force Login (optional): Force fresh login instead of cached session
  4. Enable: Enable the extension in Claude Desktop settings

That's it! 🎉 No manual configuration files, no path setup, no terminal commands required!


Option 2: 🛠️ Manual Installation (Advanced Users)

  1. Clone or download this MCP server

  2. Install dependencies:

    cd /path/to/monarch-money-mcp
    uv sync
    
  3. 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/uv with the full path to your uv executable (find it with which uv)
  • Replace /path/to/monarch-money-mcp-enhanced with the absolute path to this server directory
  • Use absolute paths, not relative paths

Getting Your MFA Secret

  1. Go to Monarch Money settings and enable 2FA
  2. When shown the QR code, look for the "Can't scan?" or "Enter manually" option
  3. Copy the secret key (it will be a string like T5SPVJIBRNPNNINFSH5W7RFVF2XYADYX)
  4. 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:

  1. No Manual Tool Definitions: Methods are discovered at runtime
  2. Automatic Schema Generation: Parameter types and requirements are inferred from method signatures
  3. Instant Updates: When monarchmoney-enhanced adds new methods, they become available immediately
  4. 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:

  1. Runtime Discovery: The server lists all available tools when it starts
  2. Method Coverage: All public methods from MonarchMoney class become tools
  3. 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 accounts
  • create_transaction - Creates a transaction with the given parameters
  • create_transaction_category - Creates a new transaction category
  • get_transaction_tags - Get all transaction tags
  • set_budget_amount - Set budget amount for a category
  • get_merchants - Get all merchants
  • delete_transaction - Deletes the given transaction
  • get_recurring_transactions - Get all recurring transactions
  • create_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 .mm directory for faster subsequent logins
  • The session cache is automatically created and managed
  • Use MONARCH_FORCE_LOGIN=true in 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=true in your .mcp.json env 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 .mm directory to clear cached sessions
  • Set MONARCH_FORCE_LOGIN=true in your .mcp.json env section temporarily

Auto-Updates

This repository includes GitHub Actions that automatically:

  1. Monitor Updates: Checks every 6 hours for new monarchmoney-enhanced releases
  2. Auto-Release: Creates new releases when the library updates
  3. Zero Maintenance: No manual intervention needed to get new features
  4. Dependency Management: Dependabot keeps other dependencies secure
  5. MCPB Generation: Automatically creates .mcpb extension bundles for each release
  6. Extension Distribution: Ready-to-install bundles available in GitHub Releases

Building MCPB Extensions (For Developers)

If you want to create your own MCPB bundle:

  1. Install MCPB CLI:

    npm install -g @anthropic-ai/mcpb
    
  2. Generate Bundle:

    mcpb pack
    
  3. Output: The CLI generates monarch-money-enhanced-VERSION.mcpb ready for distribution

The manifest.json file defines the extension configuration and is automatically used by the MCPB CLI.

Credits

Original MCP Server

Enhanced MCP Server

MonarchMoney Enhanced Library

Original MonarchMoney Python Library

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.json file
  • The MFA secret provides full access to your account - treat it like a password
  • Session files in .mm directory contain authentication tokens - keep them secure
  • Consider restricting access to your .mcp.json file since it contains sensitive credentials

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

monarch_money_mcp_enhanced-0.9.2.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

monarch_money_mcp_enhanced-0.9.2-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file monarch_money_mcp_enhanced-0.9.2.tar.gz.

File metadata

File hashes

Hashes for monarch_money_mcp_enhanced-0.9.2.tar.gz
Algorithm Hash digest
SHA256 f515107897e1201fe095b2bb3e8f1ab05ed317bca38d4740ce2c0aae3f982e53
MD5 bbfcce472bfbf28a53620c66b27c66d3
BLAKE2b-256 3adbab21947cf0e14aaa3aaf2d972919f77f665c64e426ab5e635e79357a3f59

See more details on using hashes here.

File details

Details for the file monarch_money_mcp_enhanced-0.9.2-py3-none-any.whl.

File metadata

File hashes

Hashes for monarch_money_mcp_enhanced-0.9.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e030d022a9ee76caa8f241966d12da506996dcb37d6d80155178d65ed87e3582
MD5 11d40688a44ae48df76940bb41d83486
BLAKE2b-256 adc8745f9fa4f63e49d02d14d0938b70827edf3adcba862f678df9d7cf97aad4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page