Finance Intelligence Mcp

io.github.Ronit-019由 GitHub 帳號 Ronit-019 發布v1.0.0更新於 Oct 24, 2026

Personal finance MCP server with budgeting, analytics, and PostgreSQL.

發布方自己的服務:Finance Foundation

已驗證STDIO僅桌面資料庫金融資料與分析

概覽

AI 產生的概覽

一個本機 MCP 伺服器,讓 AI 助理在你自己的 PostgreSQL 資料庫中記錄、修改與分析個人支出和預算。

可以做什麼
新增、列出、修改與批次刪除支出紀錄,清單過長時匯出為 Excel 試算表。建立、列出、修改與刪除整體、分類及子分類預算。依分類、子分類、備註或日期,以週、月、年為單位彙總支出。比較預算與實際支出,並產生 Matplotlib 折線圖或長條圖呈現支出歷史。依六項個人財務指標計算財務健康分數。
適用情境
適合將個人財務資料存放在 PostgreSQL 資料庫的使用者,希望在桌面 MCP 用戶端中以自然語言記錄支出、查看預算執行狀況、取得支出明細與圖表,或查看財務健康分數。
執行需求
以 PyPI 套件(finance-intelligence-mcp)形式透過 stdio 在本機執行,需要 Python 3.10 至 3.12,可用 uv 或 pip 安裝。需要 PostgreSQL 12 以上版本的資料庫(例如 Supabase、RDS 或本機執行個體),並透過必要的環境變數 DATABASE_URL 提供連線。文件以 Claude Desktop、Cursor 等桌面 MCP 用戶端為對象。
安裝前請注意
DATABASE_URL 是包含資料庫密碼的機密連線字串,請勿寫入共用設定或日誌。伺服器可寫入並永久刪除支出與預算紀錄,批次刪除工具依篩選條件執行,執行前應確認目標。財務資料保存在你自己的資料庫中;README 表示不上傳遙測資料,也不使用外部分析服務。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Finance Intelligence Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Finance Intelligence MCP Server

[Python Version] [FastMCP] [License: MIT] [MCP Specification] [Database]

Finance Intelligence MCP is a production-ready Model Context Protocol (MCP) server that enables AI assistants (like Claude, Cursor, and others) to securely manage and analyze personal finances through natural language.

Released under the MIT License and designed to be extended with additional finance tools.


🔍 Overview

Unlike standard cloud-based personal finance apps, Finance Intelligence MCP keeps all financial data under your absolute control.

  • No Accounts / Subscriptions: Direct connection to your private database with zero SaaS dependencies.
  • Zero Telemetry: Your financial logs never go to external analytic APIs.
  • Full AI Context: Your AI assistant can query history, check budget status, make charts, and answer financial questions instantly.

🛠️ Architecture

   ┌────────────────────────────────┐   │           MCP Client           │   │  (Claude Desktop, Cursor, etc) │   └───────────────┬────────────────┘                   │                   │ (STDIO Transport Protocol)                   ▼   ┌────────────────────────────────┐   │  Finance Intelligence Server   │   │           (Local)              │   └───────────────┬────────────────┘                   │                   │ (Direct SQL Pool Connection)                   ▼   ┌────────────────────────────────┐   │       PostgreSQL Database      │   │ (Supabase, Local, RDS, etc)    │   └────────────────────────────────┘

✨ Features

  • Expense Operations: Create, view, edit, and bulk-delete expense entries.
  • Multi-level Budgeting: Set limits for overall spending, specific category thresholds, or down to nested subcategory targets.
  • Analytics Breakdowns: Aggregate expenses by category, subcategory, notes, or dates over weekly/monthly/yearly time blocks.
  • Visual Charts: Exposes tools that generate Matplotlib line/bar charts of historical spending automatically.
  • Excel Spreadsheet Export: Truncates long list responses and generates download-ready Excel spreadsheets for massive datasets.
  • Financial Health Scoring: Calculates a deterministic financial health score grade based on 6 core personal finance KPIs.

⚙️ Requirements & Compatibility

  • Transport: stdio
  • Supported Platforms:
    • Windows
    • macOS
    • Linux
  • Python Compatibility: Python 3.10, 3.11, and 3.12 (Tested)
  • Database: PostgreSQL 12+ (e.g. Supabase, RDS, or local Postgres)
  • Supported Clients:
    • Claude Desktop
    • Cursor
    • Compatible with any MCP client supporting stdio.

💾 Installation & Setup

1. Quick Setup (Shortcut)

If you have uv installed, get started in 2 lines:

bash
git clone https://github.com/Ronit-019/Finance-Intelligence-MCP.gitcd Finance-Intelligence-MCPuv sync

2. Detailed Installation

Step A: Get a PostgreSQL Connection URL

The easiest, free option is Supabase:

  1. Go to Supabase and create a free project.
  2. Go to Project Settings (gear icon) > Database.
  3. Under Connection string, select URI and copy the string.
    • Example: postgresql://postgres.[your-project-ref]:[your-password]@aws-0-us-east-1.pooler.supabase.com:5432/postgres
    • (Replace [your-password] with your database password).
Step B: Clone the Repository

Clone the codebase to a directory on your machine:

bash
git clone https://github.com/Ronit-019/Finance-Intelligence-MCP.gitcd Finance-Intelligence-MCP

Copy the absolute path of this directory (e.g. C:/Users/Admin/Desktop/Finance-Intelligence-MCP). Note: Always use forward slashes (/) for paths in JSON configs.

Step C: Install Dependencies

If you do not have uv installed, install from the project metadata:

bash
pip install -e .

3. Client Integration

Claude Desktop Setup
  1. Open your Claude configuration file (claude_desktop_config.json):
    • Windows: Press Win + R, paste %APPDATA%\Claude\claude_desktop_config.json and press Enter.
    • macOS: Paste ~/Library/Application Support/Claude/claude_desktop_config.json in Finder's Go to Folder.
  2. Add this entry to mcpServers:
json
{  "mcpServers": {    "finance-intelligence": {      "command": "uv",      "args": [        "--directory",        "REPLACE_WITH_ABSOLUTE_PATH_TO_CLONED_DIRECTORY",        "run",        "python",        "main.py"      ],      "env": {        "DATABASE_URL": "REPLACE_WITH_YOUR_SUPABASE_CONNECTION_STRING"      }    }  }}
  1. Save and completely restart Claude Desktop.
Cursor IDE Setup
  1. Go to Settings > Features > MCP.
  2. Click + Add New MCP Server:
    • Name: Finance Intelligence
    • Type: command
    • Command:
      bash
      uv --directory "REPLACE_WITH_ABSOLUTE_PATH_TO_CLONED_DIRECTORY" run python main.py
  3. Click + Add Env Var:
    • Key: DATABASE_URL
    • Value: REPLACE_WITH_YOUR_SUPABASE_CONNECTION_STRING
  4. Click Save and refresh.

💬 Example Prompts

Once configured, try talking to your AI assistant:

  • "Add ₹250 for lunch today under food."
  • "Show my spending breakdown this month."
  • "Generate an Excel report of all my expenses between May and July."
  • "Am I exceeding my monthly budget limit?"
  • "How much did I spend on dining out this week?"
  • "Calculate my monthly financial health score and give me feedback."
  • "Generate a spending chart for the last 30 days."

🛠️ Available Tools

The server registers 12 core tools on the client:

Tool NameParametersDescription
add_expensedate, amount, category, subcategory, noteInserts a new expense transaction.
list_expensesstart_date, end_dateLists transactions, exports to Excel if count > 50.
expense_breakdownstart_date, end_date, group_by, breakdown, category, subcategoryAggregates spending sums and counts.
delete_expensesexpense_ids, start_date, end_date, category, subcategoryDeletes expenses matching filters.
update_expensesexpense_ids, filter_..., date, amount, category, subcategory, noteEdits expense records.
create_budgetbudget_type, amount, period, start_date, end_date, category, subcategory, budgetsRegisters new spending limits.
list_budgetsbudget_type, category, subcategory, periodReturns registered budgets.
update_budgetsbudget_ids, filter_..., budget_type, amount, period, start_date, end_date, category, subcategoryModifies active budgets.
delete_budgetsbudget_ids, start_date, end_date, budget_type, category, subcategory, periodDeletes target budget limits.
compare_budget_vs_expensesreference_date, budget_type, category, subcategory, periodCompares budget vs actual spending.
expense_summaryperiod, group_by, category, subcategory, start_date, end_dateGenerates a Matplotlib line/bar chart.
financial_health_scorereference_monthEvaluates 6 key personal finance indicators.

💡 Troubleshooting

1. uv: command not found

If the client cannot locate uv, update your config file to run standard Python:

  • Ensure you ran pip install -e . inside the repository.
  • Update config:
json
"finance-intelligence": {  "command": "python",  "args": [    "REPLACE_WITH_ABSOLUTE_PATH_TO_CLONED_DIRECTORY/main.py"  ],  "env": {    "DATABASE_URL": "REPLACE_WITH_YOUR_SUPABASE_CONNECTION_STRING"  }}

2. Invalid DATABASE_URL / PostgreSQL Connection Errors

  • Make sure you replaced [your-password] with your actual database password in the Supabase URI string.
  • Ensure there are no surrounding spaces or special characters in the URL string.
  • Verify your Supabase instance is active and not paused.

3. Claude Not Detecting the Server

  • Double check that the folder paths in claude_desktop_config.json use forward slashes (/), even on Windows.
  • Check the logs at %APPDATA%\Claude\logs\mcp*.log (Windows) or ~/Library/Logs/Claude/mcp*.log (macOS) to see the exact startup error.

📁 Repository Structure

├── src/                       # Helper packages│   ├── __init__.py│   ├── budget.py              # Budget database operations│   ├── analytics.py           # Breakdown aggregations & Matplotlib routines│   └── health.py              # KPIs and financial health calculator├── main.py                    # FastMCP Server application├── categories.json            # Category mapping catalog├── pyproject.toml             # Dependencies├── LICENSE                    # MIT License file└── README.md                  # This file

🤝 Contributing

Contributions, bug reports, and feature requests are welcome! Please open an issue before submitting major changes or pull requests.


📄 License

This project is licensed under the MIT License - see the LICENSE file for details.


👨‍💻 Author

Ronit Rajput

來源:README.md,提交 af79c0c

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.0.0最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Finance 整合