expense-mcp
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-mcpshow my expenses for this month"
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-mcp
Personal Expense Tracker as an MCP Server — works with Claude Desktop, Cursor, nanobot, Windsurf, and any MCP-compatible client.
Features
📝 Track expenses & income with categories and descriptions
📊 Spending summaries — today, week, month, year
💳 Budget management — set limits per category, get alerts at 80%/100%
🎯 Savings goals — create goals, track progress with visual bars
📈 Spending insights — top categories, daily averages, biggest days
🗑️ Safe deletion — Pydantic-based elicitation for confirmation
🔄 Dual transport — stdio (local) + streamable HTTP (remote)
Install
# with uv (recommended)
uv pip install git+https://github.com/justfsl50/expense-mcp.git
# with pip
pip install git+https://github.com/justfsl50/expense-mcp.git
# from source
git clone https://github.com/justfsl50/expense-mcp.git
cd expense-mcp
pip install -e .Quick Start
Claude Desktop
Add to %APPDATA%\Claude\claude_desktop_config.json (Windows) or ~/Library/Application Support/Claude/claude_desktop_config.json (Mac):
{
"mcpServers": {
"expense-mcp": {
"command": "uv",
"args": ["run", "expense-mcp"],
"env": {
"DATABASE_URL": "sqlite:///expenses.db",
"CURRENCY": "₹",
"DEFAULT_USER": "me"
}
}
}
}Cursor / Windsurf
Same config — paste into MCP settings under the respective app.
nanobot
{
"mcp": {
"servers": [{
"name": "expense-mcp",
"command": "uv run expense-mcp"
}]
}
}HTTP mode (remote / multi-client)
python server.py http
# Server runs at http://127.0.0.1:8000/mcpEnvironment Variables
Variable | Default | Description |
|
| SQLite or PostgreSQL URL |
|
| Currency symbol |
|
| User ID for multi-user setups |
PostgreSQL example:
DATABASE_URL=postgresql://user:pass@localhost:5432/expensesTools
Tool | Description | Read-only |
| Save expense or income | ❌ |
| Filter by text, date, category, amount | ✅ |
| today / week / month / year totals | ✅ |
| Delete with Pydantic confirmation prompt | ❌ |
| Spending patterns and top categories | ✅ |
| Set monthly category budget | ❌ |
| View budgets with usage % | ✅ |
| Create savings goal | ❌ |
| Add money toward goal | ❌ |
| View goals with progress bars | ✅ |
Resources
URI | Description |
| Current month summary |
| This month's budgets |
| All savings goals |
Prompts
Prompt | Title | Description |
| Monthly Review | Start a full month spending review |
| Budget Setup | Auto-suggest budgets from history |
| Savings Plan | Create a plan for a savings goal |
Usage Examples
Just talk naturally in any MCP client:
"spent 500 on groceries"
"show food expenses this week"
"how much did I spend last month?"
"set food budget to 5000"
"am I within budget?"
"save 1000 toward my iPhone goal"
"give me spending insights"
"delete expense #12"Architecture
MCP SDK v1.26.0 with
FastMCP+json_response=TrueTyped lifespan — DB engine managed via
AppContextdataclassSQLAlchemy 2.0 —
DeclarativeBase,sessionmakerPydantic v2 — input validation, elicitation schemas
Tool annotations —
readOnlyHint,destructiveHint,idempotentHintContext logging —
ctx.info(),ctx.warning()in tools
Database Schema
expenses — id, user_id, amount, category, description, type, date, source, created_at
budgets — id, user_id, category, amount, month
goals — id, user_id, name, target, saved, deadlineLicense
MIT — free to use, modify, and distribute.
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
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/justfsl50/expense-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server