Expense Tracker MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Expense Tracker MCP Server
A Model Context Protocol (MCP) server for personal expense tracking and management. Track your daily expenses, manage income/salary, and get insights into your spending patterns - all through natural language conversations with your AI assistant.
Features
💰 Expense Management: Add, edit, delete, and list expenses with categories and subcategories
💵 Income Tracking: Record salary and other income sources
📊 Smart Summaries: Get spending breakdowns by category and date range
🏷️ Built-in Categorization: Predefined categories with subcategories for detailed tracking
📝 Custom Notes: Add notes to any transaction for better context
💾 Local Storage: All data stored locally in SQLite database
📈 Salary Summaries: Save custom financial summaries for reference
Related MCP server: expense-tracker-mcp-server
Installation
Prerequisites
Python >= 3.13
uv (recommended package manager)
If you don’t have uv, install it using:
pip install uvSetup
Clone the repository:
git clone https://github.com/genaiwithms/expense-tracker-mcp.git
cd expense-tracker-mcpInstall dependencies:
uv add fastmcpRun the server:
python main.pyUsing Built-in Categories
We provide built-in categories to prevent misinformation and duplication (for example, Claude may write "Food" and "Dining" as separate categories). Using our built-in categories ensures consistency and accuracy in your expense tracking.
How to use built-in categories with Claude:
Click on the ➕ plus icon where you attach files.
Select “Add from expense tracker”.
Click on the
categories.jsonfile.Now you can simply ask Claude:
“Use the categories I attached”
This will help Claude (or any MCP client) use the correct, consistent categories for your expenses.
Configuration
Claude Desktop
Add the server to your Claude Desktop configuration file:
MacOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Example configuration:
"ExpenseTracker": {
"command": "absolute \\path\\to\\uv",
"args": [
"run",
"--with",
"fastmcp",
"fastmcp",
"run",
"\\absolute\\path to \\Expense-tracker-mcp\\main.py"
],
"env": {},
"transport": "stdio",
"type": null,
"cwd": null,
"timeout": null,
"description": null,
"icon": null,
"authentication": null
}Important for New Users:
Replace "absolute \\path\\to\\uv" with the full path to your uv binary.
Replace "\\absolute\\path to \\Expense-tracker-mcp\\main.py" with the full path to your main.py file inside this project.
If you’re unsure about your uv path, run:
Mac/Linux
which uvon Windows
where uvUsage Examples
Adding Expenses
"Add an expense of 50 Rs for travel to Sargodha yesterday"
"I spent 500 on food and 300 on healthcare today"
Tracking Income
"I received my salary of 40,000 Rs today"
"Add a credit of 5000 Rs from freelance work"
Getting Summaries
"Show me all my expenses for this month"
"What's my total food expense for the last week?"
"Summarize my spending by category"
"How much salary do I have remaining?"
Managing Records
"Edit expense #5 and change the amount to 600"
"Delete expense #12"
"Show me all expenses from October 1 to October 10"
Available Tools
Expenses
add_expense- Add a new expense entrydelete_expense- Delete an expense by IDedit_expense- Edit an existing expenselist_expenses- List expenses within a date rangesummarize- Get expense summary by category
Income/Credits
add_credit- Add income/salary entrylist_credits- List credits within a date rangesummarize_credits- Get income summary by category
Categories
list_categories- View all available categories and subcategories
Database Schema
The server uses SQLite with the following tables:
expenses: id, date, amount, category, subcategory, note
credits: id, date, amount, category, note
Development
Project Structure
expense-tracker-mcp/
├── main.py # MCP server implementation
├── categories.json # Category definitions
├── expenses.db # SQLite database (auto-created)
├── pyproject.toml # Project configuration
└── README.md # This fileAdding Custom Categories
Edit categories.json to add or modify expense categories and subcategories.
Privacy & Security
All data is stored locally on your machine
No data is sent to external servers
Database file is created in the project directory
Suitable for personal financial tracking
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is open source and available under the MIT License.
Acknowledgments
Built with FastMCP - A Python framework for building MCP servers.
Support
For issues, questions, or suggestions, please open an issue on GitHub.
Note: This MCP server is designed for personal use. Always keep backups of your
expenses.dbfile to prevent data loss.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Track budgets from your AI chat: envelopes, monthly limits, variance reports. All data is local.
Expense ledger for AI assistants: record receipts line by line, ask what you spent, export anytime.
Personal finance ledger for AI agents — query spending, track bills, forecast cash flow.
Track expenses from your AI chat: log, categorize, monthly CSV reports. All data is local.
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceEnables personal financial management through AI assistants by providing tools to add transactions, check balances, list transaction history, and generate monthly summaries. Supports natural language interaction for tracking income and expenses with categorization.1-
- FlicenseNot gradedqualityDmaintenanceEnables users to manage personal finances using natural language, including tracking expenses, income, budgets, and generating financial summaries.-
- AlicenseNot gradedqualityBmaintenanceManage your finances through natural language directly in your AI assistant. Add, edit, delete, and query expenses; set monthly budgets; and generate comprehensive spending reports seamlessly.1MIT
- AlicenseNot gradedqualityBmaintenanceEnables users to log expenses and income by voice, auto-categorize transactions, set and check budgets, summarize spending, undo or search entries, and generate AI spending insights with an offline fallback.MIT