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 Serveradd a $25 expense for transportation"
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 local Model Context Protocol (MCP) server for a personal Expense Tracker built with Python and SQLite3.
Features
add_expense— add an expense; decreases available creditlist_expenses— list expenses (newest first), optionally filtered by categorysummarize_expenses— totals by category, count, credit added, and available creditedit_expense— edit an expense; adjusts credit by the difference in amountdelete_expense— delete an expense; refunds the amount to creditadd_credit— add credit to the available balance
All balance-changing operations run inside SQLite transactions.
Related MCP server: Expense Tracker MCP Server
Folder structure
local MCP server/
├── main.py # MCP server + tool definitions (entry point)
├── expense_tracker/
│ ├── __init__.py
│ ├── database.py # SQLite connection + schema setup
│ └── operations.py # Core expense/credit business logic
├── pyproject.toml # Project config (fastmcp dependency)
├── uv.lock # Lockfile
└── README.mdThe database file expense_tracker.db is created automatically on the first tool call.
Installation
Clone the repo:
git clone https://github.com/YogeshSharma2007/Local-Expense-tracker-MCP.git
cd Local-Expense-tracker-MCPCreate and activate a virtual environment:
python -m venv .venv
.\.venv\Scripts\Activate.ps1Install dependencies:
uv sync # or: pip install -e .Run the server
python main.pyThen register the server as a local MCP stdio server in your MCP client.
Register with an MCP client (OpenCode example)
Add to your OpenCode config (opencode.json or wherever your client config lives):
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"local-mcp": {
"type": "local",
"command": [
"<path-to-repo>\\.venv\\Scripts\\python.exe",
"<path-to-repo>\\main.py"
],
"enabled": true
}
}
}Replace <path-to-repo> with the full path to wherever you cloned this repo, for example:
C:\Users\<your-username>\Documents\Local-Expense-tracker-MCPConfiguration
The database path defaults to expense_tracker.db in the project folder. Override it with the environment variable:
$env:EXPENSE_TRACKER_DB = "C:\path\to\expense_tracker.db"This server cannot be deployed
Maintenance
Related MCP Connectors
Personal finance tracker — log transactions, view summaries, and browse a dashboard
Hosted MCP server for Mini Accountant: invoices, expenses, customers, analytics, tax estimates.
Query your real net worth, spending, transactions, budgets and portfolio from any MCP client.
- WalleKOAuthapp.wallek
Personal finance ledger: log expenses, track bills and cards, import statements.
Related MCP Servers
- 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-
- 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 gradedqualityCmaintenanceA 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.-
- FlicenseNot gradedqualityBmaintenanceA lightweight MCP server that lets LLM clients track, query, and summarize personal expenses using a local SQLite database.-