expense-tracker
Click on "Install 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-trackerSummarize my food expenses for July 2026"
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 lightweight Model Context Protocol (MCP) server for recording, browsing, and summarizing expenses. It stores data locally in SQLite and exposes a curated category list as an MCP resource, so an MCP client can help keep spending records organized without relying on a hosted service.
Features
Add expenses with a date, amount, category, optional subcategory, and note
List expenses within an inclusive date range
Summarize spending by category, with an optional category filter
Read the available categories and subcategories from
expense://categoriesPersist everything locally in
expenses.db
Related MCP server: Personal Finance Tracker
Requirements
Python 3.13 or newer
uv(recommended)
Install
Clone the repository and install the project dependencies:
git clone https://github.com/ansh-rohilla/expense-tracker-mcp-server.git
cd expense-tracker-mcp-server
uv syncRun the server
Start the server with:
uv run python main.pyThe SQLite database is created automatically at expenses.db in the project root on first run.
Configure an MCP client
Add the following server entry to your MCP client's configuration. Replace /absolute/path/to with the path where you cloned this repository.
{
"mcpServers": {
"expense-tracker": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/expense-tracker-mcp-server",
"run",
"python",
"main.py"
]
}
}
}For example, in Claude Desktop this entry belongs in claude_desktop_config.json. Restart the client after saving the configuration.
Available tools
add_expense
Adds an expense to the local database.
Parameter | Required | Description |
| Yes | Date of the expense, preferably |
| Yes | Expense amount as a number |
| Yes | A top-level category such as |
| No | A more specific category, such as |
| No | Any useful context about the expense |
Example request:
Add an expense of 450 on 2026-08-02 for groceries under food. Note: weekly vegetables.list_expenses
Returns expenses whose dates fall within the inclusive range.
Parameter | Required | Description |
| Yes | Beginning of the date range ( |
| Yes | End of the date range ( |
summarize
Returns total spending grouped by category for an inclusive date range.
Parameter | Required | Description |
| Yes | Beginning of the date range ( |
| Yes | End of the date range ( |
| No | Limit the summary to one category |
Categories resource
The server provides expense://categories as JSON. It reads from categories.json, which you can customize to match your own budgeting system. Common top-level categories include food, transport, housing, utilities, health, education, entertainment, shopping, travel, investments, and more.
Data and privacy
Expenses remain on your machine in the local SQLite database. Back up expenses.db if you want to retain your records when moving or reinstalling the project. Because the database can contain personal financial information, avoid committing a populated copy to a public repository.
Project layout
.
├── main.py # FastMCP server and expense tools
├── categories.json # Available categories and subcategories
├── expenses.db # Local SQLite database (created automatically)
├── pyproject.toml # Project metadata and dependencies
└── uv.lock # Locked dependency versionsLicense
No license has been specified yet. Add a license file before distributing or reusing this project publicly.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceA 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.Last updated
- Flicense-qualityDmaintenanceA lightweight MCP server for tracking personal expenses, income, and budget summaries using SQLite.Last updated4
- Flicense-qualityCmaintenanceMCP server for tracking expenses with local SQLite storage. Provides tools to add, list, and summarize expenses by category.Last updated
- Flicense-qualityBmaintenanceA simple MCP server for tracking expenses in a local SQLite database, enabling add, read, update, delete, and summarization of expenses with predefined categories.Last updated
Related MCP Connectors
Hosted MCP server for Mini Accountant: invoices, expenses, customers, analytics, tax estimates.
A MCP server built for developers enabling Git based project management with project and personal…
MCP server for URL shortening and management
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ansh-rohilla/expense-tracker-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server