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 $35 for gas 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 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.
Features
Add Expenses: Record new expenses with details like amount, category, description, and date.
Track History: Maintain a persistent history of all transactions in a local SQLite database.
Reporting: Generate summaries and list all expenses.
Management: Delete incorrect entries by ID.
Related MCP server: Expense Tracker MCP Server
Prerequisites
Python 3.12 or higher
uv (recommended) or pip
Installation
Clone or download this repository.
Install dependencies:
uv sync
# OR
pip install -r requirements.txtConfiguration for Claude Desktop
To use this with Claude Desktop, add the following to your config file (%APPDATA%\Claude\claude_desktop_config.json on Windows):
{
"mcpServers": {
"expense-tracker": {
"command": "path/to/your/python.exe",
"args": [
"path/to/finance.py"
]
}
}
}Note: It is highly recommended to use absolute paths for both the python executable and the script file to avoid issues.
Usage
Once connected to Claude, you can use natural language to manage your expenses:
"I spent $50 on groceries at Walmart today."
"Add a transportation expense of $15 for a taxi ride."
"Show me my expense report."
"Delete expense ID 4."
Architecture
Database: Uses
sqlite3for a lightweight, file-based database (expenses.db) that lives in the same directory as the script.MCP Framework: Built using
FastMCPfor a simple and efficient server implementation.
Available Tools
3 toolsadd_expenseB
Add a new expense to the tracker.
Args:
amount: The cost of the expense.
category: The category of the expense (e.g., Food, Transport, Rent).
description: A brief description of what was purchased.
time: The time when the expense occured down to the day(default is current time).
Inputs: amount (required), category (required), time, description. Returns: result
delete_expenseC
Delete an expense by its ID.
Args:
expense_id: The ID of the expense to delete.
Inputs: expense_id (required). Returns: result
list_expensesB
List all expenses recorded in the database. Returns a formatted string of expenses.
Inputs: no named parameters. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
add_expense, delete_expense, and list_expenses target clearly distinct operations on the same resource. There is no meaningful overlap or ambiguity between them.
All tools follow a consistent snake_case verb_noun pattern: add_expense, delete_expense, list_expenses. The plural in list_expenses is natural for a list operation.
Three tools is reasonable for a minimal expense tracker, and each tool has a clear purpose. However, the surface is on the thin side for typical expense-tracking workflows.
The set covers add, delete, and list, but lacks update_expense and get_expense, which are notable gaps for correcting or inspecting individual records. Reporting operations like totals or filtering by category/date are also absent.
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.
Hosted SQL Server MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Hosted MCP server for LLM cost estimation, model comparison, and budget-aware routing.
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 gradedqualityDmaintenanceA lightweight MCP server that lets LLM clients track, query, and summarize personal expenses using a local SQLite database.-
- FlicenseNot gradedqualityDmaintenanceAn MCP server that lets AI assistants add, list, and summarize personal expenses using natural language, backed by SQLite.-