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 $45.50 expense for groceries 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
This project is a Model Context Protocol (MCP) server for managing personal expenses. It exposes tools and a resource that can be used by MCP-compatible clients such as Claude Desktop or the FastMCP inspector.
What it does
The server provides:
add_expense(date, amount, category, subcategory="", note="")to store a new expenselist_expenses(start_date, end_date)to retrieve expenses in a date rangesummarize(start_date, end_date, category=None)to group totals by categoryexpense://categoriesas a JSON resource for category definitions
Expenses are stored in a local SQLite database created automatically when the server starts.
Related MCP server: Expense Tracker MCP Server
Requirements
Python 3.13 or newer
uv for dependency and script management
Installation
From the project root:
uv syncThis installs the project and its dependencies from the pyproject.toml file.
Run locally with the MCP inspector
Start the server and inspect it in the FastMCP inspector:
uv run fastmcp dev inspector src/expense_tracker_mcp_server/main.pyThis opens the inspector UI and lets you test the tools and resources.
Connect to Claude Desktop
To install the server into Claude Desktop, run:
uv run fastmcp install claude-desktop src/expense_tracker_mcp_server/main.pyOn Windows, Claude Desktop may store its config under a packaged-app path. If the default location is not detected, provide it explicitly:
uv run fastmcp install claude-desktop --config-path "C:\Users\<your-user>\AppData\Local\Packages\Claude_pzs8sxrjxfjjc\LocalCache\Roaming\Claude" src/expense_tracker_mcp_server/main.pyReplace <your-user> with your Windows username.
Project structure
src/
expense_tracker_mcp_server/
__init__.py
main.pymain.pycontains the MCP server implementation and tool definitions.expenses.dbis created automatically at runtime in the package directory.categories.jsonis loaded as theexpense://categoriesresource.
Example usage
Once the server is running, you can call the tools with payloads such as:
{
"date": "2026-07-31",
"amount": 42.5,
"category": "Food",
"subcategory": "Lunch",
"note": "Team lunch"
}Notes
The SQLite database is local to the project and will be created on first run.
The categories resource is read from the JSON file each time it is requested, so edits are picked up without restarting the server.
Available Tools
3 toolsadd_expenseC
Add a new expense entry to the database.
Inputs: date (required), amount (required), category (required), note, +1 more.
list_expensesA
List expense entries within an inclusive date range.
Inputs: end_date (required), start_date (required).
summarizeA
Summarize expenses by category within an inclusive date range.
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 expenses by category. There is no overlap or ambiguity between them.
Tools follow a mostly verb_noun pattern (add_expense, list_expenses), but 'summarize' lacks a noun object, which is a minor deviation. Overall the pattern is still clear and predictable.
Three tools is an appropriate, well-scoped count for a focused expense tracker server. Each tool serves a necessary function without redundancy.
The domain of expense tracking is covered with basic create (add_expense), read (list_expenses), and aggregate (summarize) operations. Missing update and delete capabilities are minor gaps that can be worked around.
Maintenance
Related MCP Connectors
Log, query, and edit expenses, budgets, and accounts in Manilo from any MCP-compatible AI assistant.
Query your real net worth, spending, transactions, budgets and portfolio from any MCP client.
Related MCP Servers
- FlicenseBqualityDmaintenanceMCP server for tracking personal expenses using FastMCP and SQLite, enabling adding, listing, updating, deleting expenses and summarizing by category via natural language tools.51-
- FlicenseAqualityDmaintenanceA 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.3-
- FlicenseNot gradedqualityDmaintenanceMCP server for tracking expenses with local SQLite storage. Provides tools to add, list, and summarize expenses by category.-
- FlicenseNot gradedqualityDmaintenanceA simple MCP server for tracking expenses in a local SQLite database, enabling add, read, update, delete, and summarization of expenses with predefined categories.-