Expense Tracker MCP Server
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 MCP Server show me my financial summary for last 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 professional Model Context Protocol (MCP) server designed to help you track, analyze, and optimize your personal finances. This server provides tools to add expenses, list transactions, and generate detailed financial summaries with Indian Rupee (โน) support and strategic advice.
๐ Features
Add Expenses: Easily log expenses with categories, dates, and notes.
Tabular Summaries: Professional reports in tabular format showing counts, totals, and percentages.
Financial Advice: Strategic solutions tailored to your spending habits (Needs vs. Wants).
Visual Graphs: Built-in support for Mermaid.js charts and Matplotlib PNG graphs for visual distribution.
INR Support: All financial values are formatted in Indian Rupees (โน).
Related MCP server: Trackor
๐ ๏ธ Installation
1. Clone the Repository
git clone https://github.com/your-username/expense-tracker.git
cd expense-tracker2. Install Dependencies (Recommended: uv)
If you have uv installed, simply run:
uv syncAlternatively, using standard pip:
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
pip install -r requirements.txt๐ฅ๏ธ Usage
Running the Server
If using uv, you can run the server directly:
uv run main.pyOtherwise, use python:
python main.pyClaude Desktop Integration
To use this with Claude Desktop, add the following to your claude_desktop_config.json:
{
"mcpServers": {
"Expense Tracker": {
"command": "uv",
"args": ["--directory", "C:/path/to/expense-tracker", "run", "main.py"]
}
}
}Note: Replace C:/path/to/ with the actual absolute path to your project directory.
๐ Project Structure
main.py: The core MCP server implementation.expenses.db: SQLite database for persistent storage.requirements.txt: List of Python dependencies.pyproject.toml: Project configuration for tools likeuv.
๐ง Smart Tools
add_expense: Add a new expense record.list_expenses: Retrieve transactions within a date range.summarize: Get a detailed financial report with graphs and advice.categories: List all supported expense categories.
โ๏ธ License
MIT
Available Tools
3 toolsadd_expenseD
Inputs: date (required), amount (required), category (required), note, +1 more.
list_expensesD
Inputs: end_date (required), start_date (required).
summarizeA
Summarize expenses between two dates, providing a detailed analysis, financial advice, and a visualization graph.
Inputs: end_date (required), start_date (required), category.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogโฆ
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose: adding an expense, listing expenses, and summarizing/analyzing them. There is no overlap in their core functions, making it easy for an agent to choose the right tool.
Most tools follow the verb_noun pattern (add_expense, list_expenses), but 'summarize' lacks an object, deviating from the pattern. There is also a minor singular/plural inconsistency between 'expense' and 'expenses'. Overall the convention is readable and predictable.
With only three tools, the set is minimal but appropriate for a simple expense tracker. The count is not excessively thin (like 1-2) and stays within a reasonable scope, though one could imagine additional tools for management.
The server covers creating and reading expenses, plus a summary/analysis function, but lacks update and delete operations. For an expense tracker, the inability to modify or remove expenses is a notable gap that agents would have to work around.
Maintenance
Related MCP Connectors
Personal finance tracker: log expenses and income, track EMIs, debts, subscriptions and bills.
Track expenses from your AI chat: log, categorize, monthly CSV reports. All data is local.
Personal finance by conversation: expenses, receipts, statement import, budgets, net worth.
Personal finance assistant: track accounts, expenses, cash flow forecasts, and subscriptions.
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 users to track and manage personal expenses through natural language, including adding entries, filtering by date/category, viewing statistics, and exporting data in JSON or CSV format.3-
- FlicenseNot gradedqualityDmaintenanceEnables users to manage personal finances using natural language, including tracking expenses, income, budgets, and generating financial summaries.-
- FlicenseNot gradedqualityDmaintenanceEnables managing personal expenses, budgets, and financial summaries through natural language, with tools for adding, listing, updating, deleting expenses, setting budgets and credits, and generating dashboards.-