Finance Intelligence MCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Finance Intelligence MCP show my total expenses for March"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Finance Intelligence MCP Server
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.
Related MCP server: ExpenseTracker MCP Server
š ļø 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
overallspending, specificcategorythresholds, or down to nestedsubcategorytargets.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:
stdioSupported 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:
git clone https://github.com/Ronit-019/Finance-Intelligence-MCP.git
cd Finance-Intelligence-MCP
uv sync2. Detailed Installation
Step A: Get a PostgreSQL Connection URL
The easiest, free option is Supabase:
Go to Supabase and create a free project.
Go to Project Settings (gear icon) > Database.
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:
git clone https://github.com/Ronit-019/Finance-Intelligence-MCP.git
cd Finance-Intelligence-MCPCopy 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:
pip install -e .3. Client Integration
Claude Desktop Setup
Open your Claude configuration file (
claude_desktop_config.json):Windows: Press
Win + R, paste%APPDATA%\Claude\claude_desktop_config.jsonand press Enter.macOS: Paste
~/Library/Application Support/Claude/claude_desktop_config.jsonin Finder's Go to Folder.
Add this entry to
mcpServers:
{
"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"
}
}
}
}Save and completely restart Claude Desktop.
Cursor IDE Setup
Go to Settings > Features > MCP.
Click + Add New MCP Server:
Name:
Finance IntelligenceType:
commandCommand:
uv --directory "REPLACE_WITH_ABSOLUTE_PATH_TO_CLONED_DIRECTORY" run python main.py
Click + Add Env Var:
Key:
DATABASE_URLValue:
REPLACE_WITH_YOUR_SUPABASE_CONNECTION_STRING
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 Name | Parameters | Description |
|
| Inserts a new expense transaction. |
|
| Lists transactions, exports to Excel if count > 50. |
|
| Aggregates spending sums and counts. |
|
| Deletes expenses matching filters. |
|
| Edits expense records. |
|
| Registers new spending limits. |
|
| Returns registered budgets. |
|
| Modifies active budgets. |
|
| Deletes target budget limits. |
|
| Compares budget vs actual spending. |
|
| Generates a Matplotlib line/bar chart. |
|
| Evaluates 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:
"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.jsonuse 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
Available Tools
12 toolsadd_expenseC
Add an expense to the database.
Inputs: date (required), amount (required), category (required), note, +1 more.
compare_budget_vs_expensesA
Get the real-time spending status compared against active budgets on a given reference date. All provided filters are combined using AND.
Inputs: period, category, budget_type, subcategory, +1 more. Returns: object
create_budgetA
Create one or more budget tracking limits. You can either pass single budget parameters or a list of budget dicts in 'budgets'.
Inputs: amount, period, budgets, category, +4 more. Returns: object
delete_budgetsA
Delete budgets matching the target filters. At least one target filter must be provided. All provided filters are combined using AND.
Inputs: period, category, end_date, budget_ids, +3 more. Returns: object
delete_expensesA
Delete expenses matching the provided filters. At least one filter must be provided to prevent accidental deletion of all records. All provided filters are combined using AND.
Inputs: category, end_date, start_date, expense_ids, +1 more. Returns: object
expense_breakdownA
Summarize and breakdown expenses by columns or time units within a date range.
Inputs: end_date (required), start_date (required), category, group_by, +2 more. Returns: result
expense_summaryA
Generate an analytical expense summary with a rich Matplotlib chart. At least one grouping dimension ('period' or 'group_by') is recommended.
Inputs: period, category, end_date, group_by, +2 more. Returns: object
financial_health_scoreC
Calculate a deterministic financial health score and feedback metrics.
Inputs: reference_month. Returns: object
list_budgetsA
List all budgets matching the optional filters. All provided filters are combined using AND.
Inputs: period, category, budget_type, subcategory. Returns: result
list_expensesA
List all expenses from the database within a date range (inclusive). If the list contains more than 50 items, it truncates the inline results to the first 50 and exports the full dataset to a downloadable CSV spreadsheet.
Inputs: end_date (required), start_date (required).
update_budgetsA
Update budgets matching the target filters with the specified values. At least one target filter and one update value must be provided. All provided filters are combined using AND.
Inputs: amount, period, category, end_date, +8 more. Returns: object
update_expensesA
Update expenses matching the target filters with the specified values. At least one target filter and one update value must be provided. All provided filters are combined using AND.
Inputs: date, note, amount, category, +6 more. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogā¦
TDQS
Scored across 12 tools
Each tool targets a distinct aspect of expense or budget management. The analytical tools (expense_breakdown, expense_summary, compare_budget_vs_expenses) have some conceptual overlap, but their descriptions clarify the differences (tabular grouping vs. chart-based summary vs. real-time comparison). The CRUD tools are clearly separated by resource (expenses vs. budgets).
Most tools follow a verb_noun pattern (list_expenses, add_expense, delete_budgets), but three tools are noun phrases (expense_breakdown, expense_summary, financial_health_score). There is also a minor inconsistency with 'add_expense' vs. 'create_budget', using different verbs for the same create action.
With 12 tools, the server is well-scoped for a financial management domain. Each tool serves a clear purpose, covering CRUD for expenses and budgets plus analytical insights, without excessive fragmentation or unnecessary overlap.
The tool surface provides full CRUD for both expenses and budgets, with list operations that support filters to act as read-by-query. Analytical coverage is strong with breakdown, summary, budget comparison, and health score, leaving no obvious dead ends for typical expense-tracking workflows.
Maintenance
Related MCP Connectors
Personal finance, bank account, and shared memory connector for Claude, ChatGPT, Gemini Spark & more
Read-only access to your own bank, card and brokerage accounts for Claude, ChatGPT and other AI agents: balances, transactions, spending, subscriptions, cashflow and investment holdings. It can never move money.
Connect AI agents to bank accounts, transactions, balances, and investments.
Personal finance ledger for AI agents ā query spending, track bills, forecast cash flow.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to analyze personal financial data from Open Banking sources stored in PostgreSQL database. Provides educational financial analysis tools with intelligent formatting for learning about spending patterns, account balances, and transaction history.2ISC
- FlicenseCqualityDmaintenanceEnables AI assistants to manage personal finances by storing, analyzing, and exporting expense data using a persistent PostgreSQL database. Supports adding/editing expenses, generating spending summaries, detecting top categories, and creating monthly reports.12-
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to access and manage personal financial data from US institutions and manual entries, including transactions, balances, liabilities, and investments.MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to manage personal finances through natural language, including adding, editing, listing, and deleting expenses, organizing them into categories, and setting monthly budgets with overspend warnings. It also provides spending summaries with month-over-month comparisons, budget status checks, and exportable Markdown or CSV reports, all backed by PostgreSQL storage with Google OAuth-authenticated per-user accounts.MIT