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 Add a grocery expense of $50 for today."
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 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.
Features
Add Expenses: Log expenses with details including amount, category, subcategory, date, and notes.
List Expenses: Retrieve a list of expenses within a specified date range.
Summarize Expenses: Generate summaries of expenses (total amount) grouped by category.
Categories Resource: Access a comprehensive list of predefined expense categories.
Local Database: All data is stored in a local
expenses.dbfile.
Related MCP server: Expense Tracker MCP Server
Prerequisites
Installation
Clone the repository (if applicable) or navigate to the project directory:
cd "d:\Study\Expense Tracker MCP"Install dependencies:
Using
uv:uv syncOr using
pip:pip install -e .
Usage
Running Locally
You can run the MCP server locally for testing or development.
Development mode (with auto-reload):
uv run fastmcp dev main.pyProduction run:
uv run fastmcp run main.pyInspector
You can inspect and test the server tools using the MCP Inspector:
uv run fastmcp inspect main.pyIntegration with Claude Desktop
To use this Expense Tracker with Claude Desktop:
Open your Claude Desktop configuration file:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
Add the
expense-trackerserver to themcpServersobject. Make sure to use the absolute path to yourmain.pyfile.{ "mcpServers": { "expense-tracker": { "command": "uv", "args": [ "run", "fastmcp", "run", "d:/Study/Expense Tracker MCP/main.py" ] } } }Restart Claude Desktop.
Tools Available
add_expense
Adds a new expense entry.
Arguments:
amount(float): The cost of the expense.category(string): The category of the expense (seecategoriesresource).subcategory(string, optional): A more specific classification.note(string, optional): Additional details.date(string, optional): Date of expense inDD-MM-YYYYformat. Defaults to current date (IST) if omitted.
list_expenses
Lists expenses within a date range.
Arguments:
start_date(string): Start date inDD-MM-YYYYformat.end_date(string): End date inDD-MM-YYYYformat.
summarize
Summarizes expenses by category.
Arguments:
start_date(string): Start date inDD-MM-YYYYformat.end_date(string): End date inDD-MM-YYYYformat.category(string, optional): Filter by a specific category.
Resources
expense://categories
Returns the JSON content of the available expense categories.
Project Structure
main.py: The core MCP server implementation.expenses.db: SQLite database file (created automatically).categories.json: specific categories configuration.pyproject.toml: Project configuration and dependencies.
Notes
Date Format: The system uses
DD-MM-YYYYfor date storage and querying.Timezone: Default dates are calculated in Indian Standard Time (IST).
Available Tools
3 toolsadd_expenseA
Add a new expense entry to the database. If date is not provided, it defaults to current IST date.
Inputs: amount (required), category (required), date, note, +1 more. Returns: object
list_expensesA
List all expenses between start_date and end_date.
Inputs: end_date (required), start_date (required). Returns: result
summarizeA
Summarize all expenses by category within an inclusive date range. If category is not provided, summarize all categories.
Inputs: end_date (required), start_date (required), category. Returns: object
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, listing, and summarizing expenses. No overlap or ambiguity between them.
Two tools follow a verb_noun pattern (add_expense, list_expenses), but summarize is a bare verb, creating a minor inconsistency. Overall still readable and predictable.
Three tools is slightly minimal for an expense tracker, but it covers the core needs. Not excessively thin or bloated.
The set covers adding, listing, and summarizing expenses, but lacks update/delete operations. Users cannot correct or remove entries, a notable gap in lifecycle coverage.
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Log, query, and edit expenses, budgets, and accounts in Manilo from any MCP-compatible AI assistant.
Corporate travel booking and expense management for TripGain, exposed as an MCP server.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA lightweight server built with FastMCP and SQLite for managing personal finances. It allows users to add, list, and summarize expenses by category through MCP-compatible clients.-
- FlicenseBqualityDmaintenanceA powerful SQLite-backed expense tracking server built with the Model Context Protocol (MCP). This server allows AI agents (like Claude) to manage your personal finances by adding, deleting, and listing expenses directly from your chat interface.3-
- FlicenseNot gradedqualityDmaintenanceMCP server for tracking expenses with local SQLite storage. Provides tools to add, list, and summarize expenses by category.-
- FlicenseNot gradedqualityDmaintenanceA 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.-