local-budget
Enables local-first personal finance management through deterministic tools for importing, categorizing, and analyzing bank transactions.
README
local-budget
A local-first, agent-first personal spending agent for your bank/financial
statements. Your data stays in one
local data/budget.db on your own machine — full account numbers and every
transaction. You don't click through an app to understand your money; you talk
to it from a Claude Code session pointed at this repo, through a small MCP server
and a set of no-code skills. The server runs no inference — it just exposes
deterministic, column-guarded tools; the reasoning happens in your Claude Code
session under your own subscription auth.
How it works
- Import. Drop a bank statement export (
.qfx/.ofx/.csv) in your inbox and runbudget intake(orbudget import <file>). Account numbers are masked at import time; the raw transaction is stored once indata/budget.db. - The MCP server. The committed
.mcp.jsonwires upuv run budget-mcp— a standalone stdio MCP server that exposes 32 deterministic tools (18 read, 14 write) overbudget.db. Every tool runs behind a connection-scoped, column-level SQLite authorizer (db.agent_connect): imported facts are immutable, and account numbers, raw OFX, and raw payee/memo are read-denied — the sanitizedmerchant_normis the agent's only merchant text. Read tools return a{data, rendered}pair so the agent can print an exact, deterministic markdown block instead of paraphrasing numbers. - The skills. Eight no-code
budget-*skills (under.claude/skills/) orchestrate those tools in your session — grounded in a sharedbudget-analystpersona that enforces "never invent a number, print the tool'srenderedblock verbatim, confirm before any write." - The dashboard (optional).
budget servestarts a loopback-only web dashboard athttp://127.0.0.1:8770— a deterministic visual glance at your spending. It runs no Claude inference.
Open a Claude Code session in this repo and the MCP tools (.mcp.json) and the
budget skills (.claude/skills/) load automatically. Then just ask:
"How much did I spend on groceries this month?", "Categorize my unreviewed
merchants," "Give me a monthly brief."
Privacy
- One local DB. Everything lives in
data/budget.db, which is gitignored and never committed. - Account numbers masked at import and read-denied to the agent; raw
payee/memo read-denied by the authorizer — the agent sees only the
sanitized
merchant_norm. - The agent can never alter an imported fact. The write authorizer permits only the derived category columns and the app-config tables — not the imported transaction rows. No tool can rewrite history.
- The dashboard is loopback-only by default; binding a non-loopback host requires
a 32+ char
LOCAL_BUDGET_API_TOKEN(see.env.example).
Quick start
uv sync
# import a bank statement export
uv run budget import ~/Downloads/statement.qfx
# …or drop exports in your inbox and run:
uv run budget intake
# then open a Claude Code session in this repo and ask your money questions —
# the budget skills + MCP tools auto-load from .mcp.json and .claude/skills/.
For the optional visual dashboard:
uv run budget serve --open # http://127.0.0.1:8770 (loopback-only)
Run uv run budget --help for the full CLI (import, intake, report, reconcile,
recurring, limits, subscriptions, backup, …).
Skills
| Skill | What you ask it |
|---|---|
budget-setup |
first-run setup — expected income, an overview of where you stand |
budget-coach |
spending questions — categories, top merchants, "how am I doing" |
budget-monthly-brief |
a full month wrap-up — summary, trends, anomalies, recurring |
budget-categorize |
pin merchants to categories, clear the review queue |
budget-budgets |
set and check monthly category/subcategory limits |
budget-income |
income by source and the underlying transactions |
budget-subscriptions |
detected recurring charges, split into their own subcategories |
budget-reconcile |
review and resolve import conflicts |
All eight reference the shared budget-analyst persona; visual reports follow
the shared budget-visualizer discipline.
Evals
Skills are tested like code. scripts/eval.py runs a deterministic mock tier
(replays committed transcripts, no spend) in CI, plus an opt-in live tier
(--live, drives claude -p) that is cost-capped for when you want to verify
real model behavior.
What's committed vs. local
| Committed (the app — runs anywhere) | Local only (gitignored — your data/host) |
|---|---|
src/, tests/, scripts/, pyproject.toml, uv.lock |
data/ (budget.db, local_key, -wal/-shm) |
.mcp.json, .claude/skills/budget-*, docs/ |
.env (real tokens, host paths) |
LICENSE, README.md, fabricated test fixtures |
briefings/, backups/, raw bank exports |
Install the commit guard so personal data can't slip into git:
ln -sf ../../scripts/secret-scan.sh .git/hooks/pre-commit
Requirements
Python 3.12. MIT licensed (see LICENSE).
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.