local-budget
The local-budget server is a local-first, agent-first personal finance tool with deterministic read/write tools for managing your budget (no AI inference). It offers:
Spending Analysis: Get monthly summaries, category/subcategory breakdowns, top merchants, transaction lists with filters (category, merchant substring, month, days lookback, min amount), compare periods, detect recurring charges and anomalies, track monthly trends, and run custom read-only SQL queries (with PII columns blocked).
Income Tracking: View income by source and drill into income transactions.
Categorization & Merchant Management: Pin merchants to categories, set categories for individual transactions, manage the review queue, and list the full category vocabulary.
Budgeting: Set/clear monthly budget limits per category/subcategory, set expected income, mark categories as floor (more spending desired) or ceiling (less spending desired), get budget overview with over-budget flags, and receive deterministic savings insights.
Amazon Integration: Get item-level breakdowns of Amazon charges, check coverage of item-level data, propose and apply splits across categories.
Data Import & Conflict Resolution: Import bank statements (QFX, OFX, CSV) and resolve open import conflicts.
Reporting: Generate visual PDF reports with charts and save brief summaries to local markdown files.
Notes & Preferences: Save, list, and delete durable user notes.
Category Management: Add custom categories, remove categories by merging, mark/unmark floor categories.
Recurring Charges & Subscriptions: Detect subscription-like charges and split them into individual subcategories.
Privacy: All data stored locally in a SQLite database; PII like payee/memo is masked from agents.
Click on "Deploy 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., "@local-budget How much did I spend on groceries 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.
local-budget
Brand: PRESS v0.7.2 — The report's colour and type tokens are generated from the
press skill, not maintained here. The token blocks marked
press:tokens are generated; edit press/brand/tokens.json and re-emit instead.
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."
Related MCP server: FinLynq
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 |
| first-run setup — expected income, an overview of where you stand |
| spending questions — categories, top merchants, "how am I doing" |
| a full month wrap-up — summary, trends, anomalies, recurring |
| pin merchants to categories, clear the review queue |
| set and check monthly category/subcategory limits |
| income by source and the underlying transactions |
| detected recurring charges, split into their own subcategories |
| 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) |
|
|
|
|
|
|
Install the commit guard so personal data can't slip into git:
ln -sf ../../scripts/secret-scan.sh .git/hooks/pre-commitRequirements
Python 3.12. MIT licensed (see LICENSE).
Available Tools
36 toolsadd_custom_categoryC
Add a user-defined spend category.
Inputs: name (required).
amazon_breakdownB
What was actually bought behind the Amazon charges in a month — item titles, quantities and line totals. Read-only; needs budget amazon sync to have run.
Inputs: month.
amazon_coverageB
How much Amazon spend has item detail behind it, in DOLLARS. Check this before trusting an Amazon breakdown — a low number means most of the spend is still unexplained.
Inputs: month.
apply_splitB
Split one charge across categories. Lines MUST sum to the charge exactly or the write is refused. Confirm with the user first — a wrong allocation silently misstates a budget.
Inputs: lines (required), txn_id (required), source.
budget_overviewB
Spend vs budget per category for a month (over-budget flagged; floor categories like Investments flip the comparison — under-target is flagged instead of over-budget).
Inputs: month.
clear_budget_limitC
Clear the budget limit for a category (or subcategory).
Inputs: category (required), subcategory.
compare_periodsA
Compare spend between two months (YYYY-MM each). Returns each total, the overall delta, and a per-category delta table (sorted by biggest change).
Inputs: month_a (required), month_b (required).
delete_user_noteB
Delete the note at the given line index.
Inputs: line (required).
find_anomaliesA
Transactions far above their merchant's historical mean (default 2 sd). UNSCOPED by default — returns flags across ~2 years of history; pass month (YYYY-MM) and/or limit to scope the output (detection baselines still use full history).
Inputs: limit, month, sd_threshold.
get_category_breakdownB
Per-category spend totals for a month (YYYY-MM).
Inputs: month.
get_month_summaryA
Spend summary for a month (YYYY-MM, default current): spend total, per-category breakdown, income, transfers, and any unresolved conflicts. Call this first for 'how am I doing this month'.
Inputs: month.
income_by_sourceC
Income grouped by source for a month.
Inputs: month.
income_transactionsC
Income transactions for a given source (+ optional month).
Inputs: source (required), month.
insightsA
Deterministic 'ways to save' for a month (over-budget, biggest discretionary, subscriptions; floor categories like Investments falling short of target are flagged separately as 'under target' — add more, not a cut).
Inputs: month.
list_categoriesA
The assignable category vocabulary: every category's exact name, kind (spend/structural), floor-vs-ceiling direction, and custom flag. Call this before any category write — set_merchant_category / set_txn_category / set_budget_limit require an EXACT name from this list.
Inputs: no named parameters.
list_user_notesB
List saved user-preference notes.
Inputs: no named parameters.
mark_floor_categoryA
Mark a category as floor-type: MORE spend is good (e.g. Investments), the opposite of every other (ceiling-type) category.
Inputs: name (required).
monthly_trendB
Spend + income per month (most recent N, oldest-first).
Inputs: limit.
open_conflictsA
Open (unresolved) import conflicts to reconcile (advisory; resolve via the CLI).
Inputs: no named parameters.
propose_splitA
Item lines behind an Amazon charge, each scaled to its share of what was actually charged. Read-only. Assign a category to every line yourself, show the user, and only then call apply_split.
Inputs: txn_id (required).
query_transactionsA
List posted transactions with optional filters (category, merchant substring, month YYYY-MM or days lookback — month wins and days is ignored if both are given, min amount). Most recent first.
Inputs: days, limit, month, category, +2 more.
recurring_chargesC
Detected recurring/subscription charges (near-monthly, stable amount).
Inputs: no named parameters.
remove_categoryA
Remove a spend category by MERGING it into another (re-points its transactions/rules/budgets, then hides it).
Inputs: name (required), merge_into (required).
render_reportA
Render the month's visual report PDF (stat row, spend-vs-budget chart, trend, flags) deterministically to reports/budget-report-.pdf. period is YYYY-MM; optional narrative is a short plain-text paragraph placed under the headline. Writes a local file — confirm with the user before calling.
Inputs: period (required), narrative.
review_queueB
The categorization review queue: uncategorized merchants + individual checks to review.
Inputs: no named parameters.
run_sqlA
Run a read-only SELECT/WITH query against the transactions table (columns: posted_date, amount_cents, status, category, subcategory, category_source, merchant_norm, txn_type, txn_id, account_id). Rows of ALL statuses are visible — add WHERE status='posted' to match the spend tools. No writes, no ATTACH; PII columns (raw_ofx, payee, memo, acct_hash) are read-blocked by the authorizer — merchant_norm is the only merchant text.
Inputs: query (required).
save_briefA
Save a composed brief markdown to data/briefings/.md (period = YYYY-MM | 'all' | 'lastN').
Inputs: period (required), markdown (required).
save_user_noteA
Save a NEW durable user preference (one sentence). Not financial data.
Inputs: note (required).
set_budget_limitA
Set a monthly budget limit (cents) for a category or (category, subcategory). Direction (over-budget-is-bad vs under-target-is-bad) comes from the category's floor/ceiling marking (see mark_floor_category), not from this call.
Inputs: category (required), amount_cents (required), subcategory.
set_expected_incomeB
Set expected monthly income (cents).
Inputs: cents (required).
set_merchant_categoryA
Pin a merchant (merchant_norm substring) to a category (+ optional subcategory): adds a rule and recategorizes that merchant's existing transactions. Setting category='Random' requires confirm_random=true — it's discouraged, pick a real category or leave it in the review queue.
Inputs: category (required), merchant_norm (required), subcategory, confirm_random.
set_txn_categoryA
Categorize a SINGLE transaction by txn_id (no rule). Setting category='Random' requires confirm_random=true — it's discouraged, pick a real category or leave it in the review queue.
Inputs: txn_id (required), category (required), subcategory, confirm_random.
split_subscriptionsB
Give every Subscriptions merchant its own subcategory (blank ones only) so each can be budgeted individually.
Inputs: no named parameters.
subcategory_breakdownB
Spend by subcategory within a category for a month.
Inputs: category (required), month.
top_merchantsC
Top merchants by spend for a month (YYYY-MM).
Inputs: limit, month.
unmark_floor_categoryA
Revert a category to ordinary ceiling-type semantics (less spend is good).
Inputs: name (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 36 tools
Most tools have clearly distinct purposes, but a few pairs like get_category_breakdown vs budget_overview (both show per-category spend) and get_month_summary vs budget_overview (both summarize income/spend) could cause misselection. The detailed descriptions largely resolve ambiguity, but the overlap prevents a perfect score.
The naming mixes imperative verb_* forms (get_, set_, query_, render_) with noun-phrase names (top_merchants, amazon_breakdown, insights, review_queue). While readable, the pattern is not uniformly applied, making it harder to predict the tool name for a given action.
With 36 tools, the server far exceeds the 25-tool threshold for 'too many.' The feature-rich domain justifies some breadth, but many related operations (set/clear, mark/unmark) could be consolidated into single tools with parameters, reducing cognitive load.
The surface covers the core budgeting lifecycle well: income, transactions, categorization, budgets, reporting, and Amazon breakdowns. Notable gaps include no general transaction split (only Amazon charges) and conflict resolution being an external CLI dependency, but these are minor and do not block primary workflows.
Maintenance
Related MCP Connectors
Deterministic bank-statement parsing: messy CSV/OFX to clean categorized rows. In-memory only.
Import bank CSV exports, categorise transactions, total them by category or month, match expenses.
Personal finance for AI agents — onboard, import statements, categorize & budget over MCP.
Personal finance ledger for AI agents — query spending, track bills, forecast cash flow.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables interaction with local Beancount accounting ledgers through structured tools for viewing accounts, balances, and transactions, as well as inserting/removing transactions and answering natural-language questions via BeanQuery. Provides deterministic, validated, and auditable financial data operations with offline-first functionality.1-
- AlicenseBqualityAmaintenanceopen-source personal finance app with a first-party MCP server. 91 HTTP tools (OAuth 2.1 + DCR) and 87 stdio tools cover transactions, budgets, accounts, portfolio analytics, FX conversion, loans, subscriptions, goals, importers, and rules. Users self-host with Docker + PostgreSQL or use the managed cloud8936AGPL 3.0
- AlicenseAqualityBmaintenanceLocal-first personal finance MCP that aggregates bank, brokerage, credit, and loan accounts via Plaid and writes balances, holdings, and transactions to an Obsidian-style markdown vault, with access tokens stored securely in macOS Keychain.12MIT
- AlicenseNot gradedqualityBmaintenanceDeterministic bank-statement parsing for AI agents: messy CSV/OFX exports to clean, categorized ledger rows. In-memory only, no storage, no external calls, no LLM in the loop.MIT