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 lunch expense of $12.50 for Food"
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
A Model Context Protocol (MCP) server for tracking personal expenses, built with Python, SQLAlchemy, and FastMCP.
Project Structure
expense-tracker-mcp2/
├── mcp/
│ ├── server.py # FastMCP server & tool registration
│ └── tools/
│ └── expense_tools.py # Raw tool functions (called by server)
│
├── services/
│ └── expense_service.py # Business logic layer
│
├── database/
│ ├── connection.py # SQLAlchemy engine & session
│ └── models.py # ORM models
│
├── schemas/
│ └── expense_schema.py # Pydantic request/response schemas
│
├── .env # Environment variables
├── requirements.txt
└── README.mdRelated MCP server: Expense Tracker MCP Server
Setup
1. Install dependencies
cd expense-tracker-mcp2
pip install -r requirements.txt2. Configure environment
Edit .env to set your database URL. Defaults to SQLite:
DATABASE_URL=sqlite:///./expenses.db3. Run the MCP server
python mcp/server.pyThe database tables are created automatically on first run.
MCP Tools
Tool | Description |
| Add a new expense |
| List expenses with optional filters |
| Update an expense by ID |
| Delete an expense by ID |
| Summarize totals grouped by category |
Expense Categories
Food, Transport, Housing, Healthcare, Entertainment, Shopping, Education, Utilities, Other
Example Usage (via MCP client)
# Add an expense
tool_add_expense(title="Lunch", amount=250.0, category="Food", date="2026-05-24")
# List this month's expenses
tool_list_expenses(start_date="2026-05-01", end_date="2026-05-31")
# Summarize by category
tool_summarize_expenses(start_date="2026-05-01", end_date="2026-05-31")Connecting to Claude Desktop
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"expense-tracker": {
"command": "python",
"args": ["/path/to/expense-tracker-mcp2/mcp/server.py"]
}
}
}This server cannot be deployed
Maintenance
Related MCP Connectors
Personal finance tracker — log transactions, view summaries, and browse a dashboard
Track expenses, budgets, balances, transfers, and multi-currency reports with OAuth-secured tools.
- WalleKOAuthapp.wallek
Personal finance ledger: log expenses, track bills and cards, import statements.
Manage shared household finances for two people - expenses, budgets, savings, and settlements.
Related MCP Servers
- FlicenseCqualityDmaintenanceEnables personal expense management with SQLite storage, allowing users to add, update, delete, list, and summarize expenses by category through natural language interactions.5-
- FlicenseAqualityDmaintenanceEnables tracking and managing personal expenses through a local SQLite database. Supports adding, editing, deleting, listing, and summarizing expenses by category, as well as managing credit accounts.6-
- FlicenseAqualityCmaintenanceEnables logging and tracking personal expenses in a local SQLite database with category/subcategory validation, offering tools to add, view, summarize, and delete expenses.4-
- FlicenseAqualityCmaintenanceEnables tracking personal expenses by adding, listing, deleting, and summarizing expenses by day or month, stored locally in a JSON file.4-