ExpenseTracker MCP Server
Provides persistent storage and management of personal expense data, enabling tools to store, edit, delete, and query financial records with database transactions for expense tracking and reporting.
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., "@ExpenseTracker MCP Server add a $45.99 expense for groceries at Whole Foods yesterday"
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.
ExpenseTracker MCP Server
A production-ready Model Context Protocol (MCP) server that turns your AI assistant into a persistent personal finance manager using PostgreSQL.
This project allows Claude Desktop or any MCP-enabled agent to securely store, analyze, and export expense data using real database transactions instead of chat memory.
Related MCP server: Expense Tracker MCP Server
What Is It?
ExpenseTracker MCP is a local backend service exposing structured financial tools to AI agents.
It enables your assistant to:
Store expenses permanently
Edit and delete past records
Summarize spending patterns
Detect top spending categories
Generate monthly reports
Export data for accounting or tax use
How It Works
Claude Desktop sends a tool request using MCP.
ExpenseTracker MCP receives the request.
The server executes the database operation in PostgreSQL.
Results are returned to Claude as structured JSON.
Logs are written to
expense_tracker.log.
The AI never invents data — it only queries your real database.
How To Run Using uv
Install dependencies
uv add fastmcp psycopg2-binary python-dotenvCreate .env file
DB_HOST=localhost
DB_PORT=5432
DB_NAME=expense_tracker
DB_USER=expense_user
DB_PASSWORD=your_passwordStart MCP server
For Testing
uv run fastmcp dev main.pyFor Run
uv run fastmcp run main.pyHow to connect to Claude Desktop
uv run fastmcp install claude-desktop main.pyRestart Claude Desktop
Contribution
Contributions are welcome.
Fork the repository
Create a feature branch
Add or improve MCP tools or documentation
Submit a pull request with a clear description of your changes
Available Tools
12 toolsadd_expenseD
Inputs: date (required), amount (required), category (required), subcategory, +1 more.
budget_alertD
Inputs: start_date (required), end_date (required), limit (required).
daily_averageD
Inputs: start_date (required), end_date (required).
delete_expenseD
Inputs: expense_id (required).
export_csvD
Inputs: start_date (required), end_date (required).
health_checkD
Inputs: no named parameters.
list_expensesD
Inputs: start_date (required), end_date (required).
monthly_reportD
Inputs: year (required), month (required).
read_expenseD
Inputs: expense_id (required).
summarizeD
Inputs: start_date (required), end_date (required), category.
top_spending_categoriesD
Inputs: start_date (required), end_date (required), limit.
update_expenseD
Inputs: expense_id (required), date, amount, category, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 12 tools
Most tools have distinct purposes targeting specific expense tracking operations like adding, listing, deleting, updating, and reporting. However, 'summarize' and 'monthly_report' could potentially overlap in function if not clearly differentiated by their descriptions, creating minor ambiguity.
All tool names follow a consistent snake_case pattern with clear verb_noun structures (e.g., add_expense, list_expenses, monthly_report). There are no deviations in naming conventions, making the set predictable and easy to parse.
With 12 tools, this server is well-scoped for an expense tracking domain. The count is appropriate, covering core operations without being excessive, and each tool appears to serve a specific, justified role in the workflow.
The tool set provides good coverage for expense management, including CRUD operations (add, read, update, delete), reporting (monthly_report, daily_average), and utilities (export_csv, health_check). A minor gap might be the absence of a tool for setting or managing budgets, which could limit full lifecycle coverage.
Maintenance
Related MCP Connectors
Track expenses from your AI chat: log, categorize, monthly CSV reports. All data is local.
Personal finance, bank account, and shared memory connector for Claude, ChatGPT, Gemini Spark & more
Expense ledger for AI assistants: record receipts line by line, ask what you spent, export anytime.
Household finance memory, budgets, transactions, and monthly reviews for AI assistants.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to manage personal expenses through natural language conversations. Supports adding, searching, and analyzing transactions with automatic categorization and financial insights.3MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage personal expenses through natural conversation, supporting expense tracking, categorization, filtering, and financial summaries. Uses SQLite database to store expense records with full CRUD operations for comprehensive personal finance management.2-
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage personal expenses by adding, querying, and summarizing expense data through a SQLite database and configurable categories.1GPL 3.0
- AlicenseNot gradedqualityBmaintenanceEnables users to record and retrieve expenses through natural language, with support for categories, dates, and descriptions, backed by a Postgres database.MIT