pocketledger
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., "@pocketledgerlog 250 rupees uber"
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.
PocketLedger

Talk to your money in plain language. The LLM only translates — deterministic Python + SQLite does every calculation.
"log 120 rupees chai" → ✅ Logged ₹120.00 — chai (category: food)
Two ways to use it:
Web dashboard + chat (
chat.py) — animated dashboard with monthly totals, category bars, budget meters, recurring-charge detection, and a terminal-style command dock. Uses a free Gemini API key for intent parsing only.MCP server (
server.py) — exposes the same 8 tools to any MCP client (Claude Desktop etc.) over stdio. Needs no API key at all.
Your data never leaves your machine except the raw text you type (sent to Gemini to figure out which tool you meant). All amounts, categories, budgets, and detections are computed locally. The layers that judge the money contain no ML.
Quick start — web dashboard (Windows)
git clone https://github.com/ektamishra4321/pocketledger.git
cd pocketledger
pip install -r requirements.txt
python -m pytest REM expect: 25 passedCreate a file named .env in the folder:
GEMINI_API_KEY=your_free_key_from_aistudio.google.comThen:
python chat.pyOpen http://localhost:5050. Try: log 120 rupees chai, set food budget 5000, summary this month, find recurring. Hinglish works: kal 250 ka uber.
Gemini free-tier survival kit (built in)
Free-tier Gemini is a moving target, so chat.py ships with the battle scars pre-healed:
Model auto-discovery — asks ListModels which models your key can actually use instead of hardcoding a name that Google may retire ("gemini-2.5-flash is no longer available to new users" — real error, handled).
Thinking-token guard — thinking models silently burn the output budget and return truncated JSON;
thinkingConfig: {thinkingBudget: 0}with automatic fallback for models that reject it.Key redaction — API errors never echo your key back onto the screen.
Fence-stripping JSON parser — because models love wrapping JSON in ``` fences.
Pin a model manually anytime with a second line in .env: GEMINI_MODEL=gemini-flash-latest.
Related MCP server: banktivity-mcp
The 8 tools
Tool | What it does |
| Log an expense; auto-categorizes via keyword rules (Swiggy→food, Zepto→groceries, …) |
| Parse a bank/card CSV (Debit/Credit columns or single-Amount+DR/CR); hash-dedupe makes re-imports no-ops |
| Filter by category / dates / merchant substring |
| Total, per-category breakdown, top merchants, vs. last month |
| Category limits with OVER / WARNING (≥80%) flags |
| Detects weekly/monthly/quarterly/yearly charges from amount + interval regularity |
| Fix mistakes; see what the rules know |
Design decisions
Integer paise everywhere. ₹1 = 100 paise, stored as integers. No float money bugs, ever.
Deterministic categorizer. Ordered keyword rules over normalized merchant strings (
UPI-SWIGGY-987@ybl→swiggy). Unknown merchants stay honestlyuncategorizedinstead of being guessed.Recurring detection is arithmetic, not vibes. ≥3 occurrences, amounts within ±12% of median, median gap inside a cadence window.
Duplicate-safe by construction. UNIQUE hash on date+amount+merchant+note.
Thread-safe writes. The Flask dashboard serves requests on multiple threads; all SQLite writes serialize through a lock.
Testing
25 deterministic tests, zero API keys needed:
python -m pytestCovers money math (paise conversion, accounting negatives), Indian date formats, merchant normalization, both CSV layouts, dedupe-on-reimport, budget thresholds, and recurring-cadence detection including the irregular-spend negative case. CI runs the suite on every push.
MCP server (no API key)
python server.py --selftest REM expect: SELFTEST OKFor MCP clients that read claude_desktop_config.json:
{
"mcpServers": {
"pocketledger": {
"command": "python",
"args": ["C:\\path\\to\\pocketledger\\server.py"]
}
}
}A packaged pocketledger.mcpb / .dxt extension is included for versions that install extensions from file.
Known limitations (v1)
Some Claude Desktop builds currently neither read
claude_desktop_config.jsonnor accept local extension files from the UI — on those versions, use the web dashboard (chat.py) instead. Tracked as an open item.CSV statements only; PDF statement parsing is not in v1.
The categorizer is keyword rules tuned for Indian merchants; extend
RULESincategorizer.py.Single-user, single-machine by design. This is a personal ledger, not a fintech product.
License
MIT. Not financial advice; not affiliated with any bank or with Google/Anthropic.
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
- AlicenseAqualityDmaintenancePersonal expense tracker MCP server that enables tracking expenses, income, budgets, and savings goals through natural language.Last updated10MIT
- Alicense-qualityDmaintenanceMCP server for accessing and managing Banktivity personal finance data, enabling account, transaction, and budget operations through natural language.Last updated3MIT
- Alicense-qualityBmaintenanceMCP server that turns bank transactions into a financial digest including cash-flow forecast, spending breakdown, fee detection, and receipt reconciliation, exposing deterministic engines as JSON-RPC tools.Last updatedApache 2.0
- Flicense-qualityCmaintenanceMCP server for personal finance management that connects a SQLite database to any MCP client, allowing users to register, query, and analyze financial transactions through natural language.Last updated
Related MCP Connectors
TaxSort — Tollbooth-monetized MCP server for personal tax transaction classification
Personal finance by conversation: expenses, receipts, statement import, budgets, net worth.
MCP server for generating rough-draft project plans from natural-language prompts.
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/ektamishra4321/pocketledger'
If you have feedback or need assistance with the MCP directory API, please join our Discord server