CM

carsol/monarch-mcp-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

4 stars 6 forks 质量 57 趋势 5MIT

一个模式背景协议(MCP)服务器,提供只读访问Monarch Money财务数据.

概览

一个模式背景协议(MCP)服务器,提供只读访问Monarch Money财务数据. 这使得克劳德桌面等AI助手可以分析您的财务信息,交易,预算和现金流量数据. 注:我创作这个是为了取乐个人,与"君主钱"无关. 我创建它主要是为了了解我的开支, 用它来预测。 因为我不需要改变任何数据 目前是读取数据 - 在外交部的支持下,将现金流分析(包括持有的投资),以尽量减少重新认证 - Python 3.13+ - uv 包管理器(推荐) - 一个君主货币账户 3. 用您的君主钱币证书编辑.env : 添加到您的 Claude 桌面配置( Claude desktop config) .

概述(AI 翻译)

一个模式背景协议(MCP)服务器,提供只读访问Monarch Money财务数据. 这使得克劳德桌面等AI助手可以分析您的财务信息,交易,预算和现金流量数据.

注:我创作这个是为了取乐个人,与"君主钱"无关. 我创建它主要是为了了解我的开支, 用它来预测。 因为我不需要改变任何数据 目前是读取数据

大声呼喊

□ 特性

  • ** 仅读取** 君主货币账户
  • ** 交易分析** 有日期过滤和搜索
  • ** 预算跟踪**和现金流量分析
  • ** 账户详情** 包括持有的投资
  • ** 在外交部支持下进行安全认证**
  • ** 持续开会**以尽量减少重新核证

□ 安装

· 先决条件

  • Py 3.13+
  • uv包管理器(建议)
  • 君主货币账户

QQ 设置

  1. ** 登记库:**

  2. ** 建立附属关系:**

  3. ** 配置环境变量:**

使用您的君主货币证书编辑 [[T0] :

  1. ** 试验联系:**

□ 使用量

QQ 运行服务器

启动 MCP 服务器 :

Claude 桌面集成

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Monarch Money MCP Server

A Model Context Protocol (MCP) server that provides read-only access to Monarch Money financial data. This allows AI assistants like Claude Desktop to analyze your financial information, transactions, budgets, and cashflow data.

Note: I’ve created this for personal fun and is not affiated with Monarch Money. I mostly created it for learning about my spending, using it for projections. Since I don’t have any need to mutate any data it’s currently READONLY.

Shout out to

Features

  • Read-only access to Monarch Money accounts
  • Transaction analysis with date filtering and search
  • Budget tracking and cashflow analysis
  • Account details including investment holdings
  • Secure authentication with MFA support
  • Session persistence to minimize re-authentication

Installation

Prerequisites

  • Python 3.13+
  • uv package manager (recommended)
  • A Monarch Money account

Setup

  1. Clone the repository:

  2. Install dependencies:

    uv add mcp monarchmoney python-dotenv
    
  3. Configure environment variables:

    cp .env.example .env
    

    Edit .env with your Monarch Money credentials:

    [email protected]
    MONARCH_PASSWORD=your-monarch-password
    MONARCH_MFA_SECRET=your-mfa-secret-key  # Optional but recommended
    
  4. Test the connection:

    python test_api.py
    

Usage

Running the Server

Start the MCP server:

python run_server.py

Claude Desktop Integration

Add to your Claude Desktop configuration (claude_desktop_config.json):

{
  "mcpServers": {
    "monarch-money": {
      "command": "python",
      "args": ["/path/to/monarch-mcp-server/run_server.py"],
      "env": {
        "MONARCH_EMAIL": "[email protected]",
        "MONARCH_PASSWORD": "your-password",
        "MONARCH_MFA_SECRET": "your-mfa-secret"
      }
    }
  }
}

Available Resources

  • monarch://accounts - All linked accounts
  • monarch://transactions/recent - Last 100 transactions
  • monarch://budgets - Budget information with actual vs target
  • monarch://cashflow/summary - Income, expenses, and savings summary

Available Tools

  • get_transactions - Get transactions with date range filtering
  • get_account_details - Detailed account information including holdings
  • get_cashflow_analysis - Cashflow analysis by category and time period
  • search_transactions - Search transactions by description or merchant
  • get_categories - All transaction categories
  • get_institutions - Linked financial institutions

Example Prompts

Once configured with Claude Desktop, you can ask:

  • “Show me my recent transactions from last month”
  • “What’s my current budget status?”
  • “Analyze my spending patterns by category”
  • “How much did I spend on groceries this year?”
  • “What are my investment account balances?”

Security

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "monarch-money": { "command": "python", "args": ["/path/to/monarch-mcp-server/run_server.py"], "env": { "MONARCH_EMAIL": "[email protected]", "MONARCH_PASSWORD": "your-password", "MONARCH_MFA_SECRET": "your-mfa-secret" } } } }