expense-tracker-mcp-server
Click on "Install 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-mcp-serverShow me my food expenses from this month"
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 powerful Model Context Protocol (MCP) server for tracking and managing personal expenses. This server integrates with Claude Desktop to provide seamless expense management through natural language interactions.
Features
š ļø Tools
add_expense: Add new expenses with flexible date parsing (supports "today", "yesterday", "Nov 27, 2025", etc.)
list_expenses: List expenses with filtering by category, date range, and natural language date queries
summarize_expenses: Get expense summaries by category with totals and percentages
update_expense: Modify existing expense records
delete_expense: Remove expense records by ID
š Resources
expense://categories: Access predefined expense categories and subcategories from
categories.json
⨠Key Capabilities
Natural Language Date Support: Use phrases like "last week", "last month", "this year", "last 30 days"
SQLite Database: Lightweight and efficient local storage
Category Management: Pre-defined categories with subcategories for better organization
Flexible Filtering: Filter expenses by date range, category, or specific criteria
Rich Summaries: View spending patterns with category-wise breakdowns and percentages
Related MCP server: Finance MCP Server
Installation
Prerequisites
Python 3.8 or higher
uv package manager (recommended)
Claude Desktop
Steps
Clone the repository
git clone <your-repo-url> cd Expense-Tracker-MCP-ServerInstall dependencies
Using uv (recommended):
uv pip install -r requirements.txtOr using pip:
pip install -r requirements.txtInstall to Claude Desktop
uv run fastmcp install claude-desktop main.pyOr manually add to your Claude Desktop config (
~/.config/Claude/claude_desktop_config.jsonon Mac/Linux or%APPDATA%\Claude\claude_desktop_config.jsonon Windows):{ "mcpServers": { "Expense Tracker Server": { "command": "uv", "args": [ "run", "--with", "fastmcp", "fastmcp", "run", "/absolute/path/to/Expense-Tracker-MCP-Server/main.py" ] } } }Restart Claude Desktop
Completely quit and restart Claude Desktop to load the MCP server.
Usage
Once installed, you can interact with the Expense Tracker directly in Claude Desktop using natural language:
Adding Expenses
"Add an expense of $45.50 for groceries yesterday"
"I spent $20 on lunch today in the Food category"
"Add expense: $100, Transport, Fuel, Nov 25, 2025, note: Monthly fuel"Listing Expenses
"Show me all expenses from last week"
"List my Food expenses from this month"
"Show expenses from last 30 days"Summarizing Expenses
"Summarize my expenses for last month"
"Show category-wise breakdown for this year"
"Summarize Food expenses from last week"Updating Expenses
"Update expense ID 5, change amount to $55.50"
"Change expense 3's category to Transport"Deleting Expenses
"Delete expense with ID 7"Database Schema
The server uses SQLite with the following schema:
CREATE TABLE expenses (
id INTEGER PRIMARY KEY AUTOINCREMENT,
date TEXT NOT NULL,
amount REAL NOT NULL,
category TEXT NOT NULL,
subcategory TEXT,
note TEXT
);Categories
The server includes predefined categories in categories.json:
Food (groceries, dining out, coffee, snacks, etc.)
Transport (fuel, public transport, cab, parking, etc.)
Housing (rent, maintenance, repairs, etc.)
Utilities (electricity, water, internet, mobile, etc.)
Health (medicines, doctor, insurance, fitness, etc.)
Education (books, courses, online subscriptions, etc.)
Entertainment (movies, streaming, games, etc.)
Shopping (clothing, electronics, accessories, etc.)
And many more...
You can customize categories by editing categories.json.
Development
Running Locally
uv run fastmcp dev main.pyProject Structure
Expense-Tracker-MCP-Server/
āāā main.py # Main MCP server code
āāā categories.json # Expense categories and subcategories
āāā requirements.txt # Python dependencies
āāā pyproject.toml # Project metadata
āāā expenses.db # SQLite database (auto-created)
āāā README.md # This fileRequirements
fastmcp>=2.0.0- FastMCP framework for building MCP serverspython-dateutil>=2.8.0- Flexible date parsing
Troubleshooting
Server not showing in Claude Desktop
Ensure Claude Desktop is completely quit (not just closed)
Check the config file has correct absolute paths
Verify the command path to
uvis correctRestart Claude Desktop
Database issues
The expenses.db file is created automatically in the project directory. If you encounter issues:
Delete
expenses.dband restart the serverCheck file permissions
Date parsing errors
The server supports various date formats. If you encounter parsing errors:
Use ISO format: "YYYY-MM-DD" (e.g., "2025-11-27")
Use common formats: "Nov 27, 2025", "27th November 2025"
Use relative dates: "today", "yesterday", "last week"
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
MIT License - feel free to use this project for personal or commercial purposes.
Author
Created with FastMCP and Claude
Acknowledgments
Built with FastMCP
Powered by Model Context Protocol
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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.Last updated5
- Flicense-qualityDmaintenanceEnables personal finance tracking through Claude Desktop using natural language to manage income and expenses with persistent SQLite storage. Supports adding and deleting transactions, checking balances, and viewing spending summaries grouped by category or month.Last updated
- Flicense-qualityDmaintenanceEnables AI assistants to track and manage expenses, including adding, viewing, and summarizing expenses by category, date, or amount, with persistent local storage.Last updated1
- Alicense-qualityDmaintenanceEnables users to manage personal expenses through natural conversation with Claude, including adding, updating, deleting expenses, and viewing summaries by category or date range.Last updated3MIT
Related MCP Connectors
Log, query, and edit expenses, budgets, and accounts in Ledgy from any MCP-compatible AI assistant.
Personal finance by conversation: expenses, receipts, statement import, budgets, net worth.
WHOOP recovery, strain, sleep and workouts in Claude via official WHOOP OAuth. Free, open source.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/bhakti259/expense-tracker-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server