expense-tracker-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., "@expense-tracker-mcpAdd a Food expense of ā¹250 for Lunch."
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.
Expense Tracker MCP Server
A local MCP (Model Context Protocol) server built with FastMCP and PostgreSQL.
This project exposes expense management tools that can be used by MCP clients such as Claude Desktop.
Features
ā Add Expense
š List Expenses
š Summarize Expenses
āļø Edit Expense
šļø Delete Expense
š° Add Credit
š Expense Categories Resource
Related MCP server: Expense Tracker MCP
Tech Stack
Python
FastMCP
PostgreSQL
SQLAlchemy
Psycopg 3
Pydantic Settings
UV
Project Structure
expense-tracker-mcp/
ā
āāā app/
ā āāā tools/
ā ā āāā expense_tools.py
ā ā āāā credit_tools.py
ā āāā config.py
ā āāā database.py
ā āāā models.py
ā āāā resources.py
ā
āāā categories.json
āāā main.py
āāā .env.example
āāā pyproject.toml
āāā README.mdMCP Tools
Tool | Description |
| Add a new expense |
| List all expenses |
| Show expense summary |
| Update an existing expense |
| Delete an expense |
| Add income/credit |
MCP Resource
expense://categoriesReturns the predefined expense categories.
Setup
Clone the repository:
git clone https://github.com/thearyangupta/expense-tracker-mcp.git
cd expense-tracker-mcpInstall dependencies:
uv syncCreate a .env file:
DATABASE_URL=postgresql+psycopg://postgres:YOUR_PASSWORD@localhost:5432/expense_trackerRun the server:
uv run python main.pyExample Prompts
Add a Food expense of ā¹250 for Lunch.
Show all expenses.
Summarize my expenses.
Update expense 3.
Delete expense 5.
Add a credit of ā¹20,000 from Freelancing.Future Improvements
Expense filtering
Monthly reports
Export to CSV
Budget tracking
AI-powered expense insights
Built using FastMCP and PostgreSQL.
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted MCP server for Mini Accountant: invoices, expenses, customers, analytics, tax estimates.
Corporate travel booking and expense management for TripGain, exposed as an MCP server.
Related MCP Servers
- FlicenseAqualityDmaintenanceA Model Context Protocol (MCP) server for tracking personal expenses. This server provides tools to add, list, and summarize expenses, utilizing a local SQLite database for storage.3-
- FlicenseNot gradedqualityBmaintenanceA simple MCP server for tracking expenses in a local SQLite database, enabling add, read, update, delete, and summarization of expenses with predefined categories.-
- FlicenseNot gradedqualityCmaintenanceA lightweight local MCP server for tracking personal or small-team expenses. It lets you add expense entries, list transactions within a date range, and generate simple summaries by category ā all backed by a local SQLite database.-
- FlicenseBqualityCmaintenanceA lightweight local MCP server that enables users to add, list, edit, and delete expenses via SQLite database through natural language in MCP-compatible clients.41-