expense-tracker-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-tracker-mcplog 1200 for coffee at Espresso Lab"
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)
A single-user, PKR-only personal expense tracker exposed over MCP, so an agent is the primary interface. Log spending in one sentence — "4500 groceries at Imtiaz" — and ask for totals in another.
Storage is SQLite, embedded in the server process. There is no separate database container to run.
Design notes
Amounts are integer paisa in storage; rupees are only used at the tool boundary.
Only
amountis required to log an expense. The date defaults to today, and the category is inferred from previous expenses at the same merchant.Categories are a fixed list (
list_categories) so spelling can't fragment your reports.Deletes are soft —
undo_last()restores.Duplicates warn, they don't block. An identical amount/merchant/date returns a
possible_duplicateid and saves anyway.Recurring expenses post themselves on the first tool call after their day passes, tagged
recurring. Nothing is scheduled and nothing double-posts.Payday is the 1st, so every reporting period is a plain calendar month.
Related MCP server: expense-mcp
Run it
The server speaks streamable HTTP at /mcp. It runs as a long-lived container,
not one spawned per session.
docker compose up -d --buildThat publishes http://127.0.0.1:8000/mcp and restarts with Docker.
docker compose logs -f # follow
docker compose down # stopOpenClaw MCP config
{
"mcpServers": {
"expense-tracker": {
"type": "http",
"url": "http://localhost:8000/mcp"
}
}
}Security
The endpoint has no authentication — anything that can reach the port can read and edit the ledger. Two things keep that contained, and both matter:
Compose publishes on
127.0.0.1only, so the port is not on your network. Don't change that to0.0.0.0without putting auth in front of it.DNS-rebinding protection is on, so a browser page can't quietly drive the server.
If you publish on a host port other than 8000, requests fail with HTTP 421 Misdirected Request — the Host header no longer matches the allowlist. Set
EXPENSE_TRACKER_ALLOWED_HOSTS to match, e.g. localhost:9000,127.0.0.1:9000.
stdio instead
Still supported, for debugging or a per-session launch:
docker run -i --rm -e EXPENSE_TRACKER_TRANSPORT=stdio \
-v "$PWD/data:/data" -v "$PWD/backups:/backups" expense-tracker:latest-i is required and -t must not be passed — under stdio a TTY corrupts the
JSON-RPC framing.
Data and backups
Host | Container | Contents |
|
| live |
|
| daily |
Both are gitignored. A snapshot is taken on the first tool call of each day, and
backup_now() forces one.
Both directories live inside this project, so deleting it deletes the history and
the backups. If this data comes to matter, sync ./backups somewhere off-machine.
If SQLite locking misbehaves over the Docker Desktop bind mount, set
EXPENSE_TRACKER_JOURNAL=DELETE.
Environment
Variable | Default (container) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TZ matters: on UTC the container dates anything logged after 7pm PKT to the previous
day, skewing daily totals and month boundaries.
Tools
Write — add_expense, add_expenses, update_expense, update_last,
delete_expense, undo_last
Read — list_categories, query_expenses, summarize, search_expenses
Budgets & recurring — set_budget, budget_status, add_recurring,
list_recurring, delete_recurring
Maintenance — backup_now
query_expenses defaults to the current month and caps at 50 rows. For totals, use
summarize — it aggregates in SQL rather than returning rows to be added up.
Development
uv sync --group dev && uv run pytestRun the server outside Docker with uv run expense-tracker — HTTP on
127.0.0.1:8000, against ./data/expenses.db.
The suite covers both transports: a real MCP client over HTTP against a booted server,
and a stdio startup that must leave stdout completely empty (under stdio, stdout
carries the protocol, so a stray print() corrupts it — log to stderr only).
This server cannot be installed
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-qualityDmaintenanceEnables users to track personal expenses through natural language interactions with comprehensive category support and financial summaries. Provides both local and remote MCP server options with SQLite storage for fast expense management operations.Last updated
- AlicenseAqualityDmaintenancePersonal expense tracker MCP server that enables tracking expenses, income, budgets, and savings goals through natural language.Last updated10MIT
- FlicenseBqualityDmaintenanceMCP server for tracking personal expenses using FastMCP and SQLite, enabling adding, listing, updating, deleting expenses and summarizing by category via natural language tools.Last updated51
- Flicense-qualityCmaintenanceA 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.Last updated
Related MCP Connectors
Analytical memory for AI agents: a real Postgres queried in plain English over MCP. One command.
Hosted MCP server exposing US hospital procedure cost data to AI assistants
Hosted MCP server for LLM cost estimation, model comparison, and budget-aware routing.
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/AzeemWaqarRao/expense-tracker-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server