homefinance
Local-first home finance analysis for Claude Code. Your financial data lives in a SQLite file on your machine; Claude gets tools to query it.

What it looks like
An illustrative conversation (the numbers are invented; the tool calls and answer shapes are real):
You: How did our cash flow look over the last 3 months?
Claude: (calls the cash_flow tool, grouped by month) Transfers excluded, confirmed transactions only:
| Month | Inflow | Outflow | Net |
|---|
| June | $8,214.00 | $7,655.12 | +$558.88 |
| May | $8,214.00 | $8,902.44 | −$688.44 |
| April | $9,120.50 | $7,410.09 | +$1,710.41 |
May went negative — the annual insurance premium landed that month. Want me to break May down by category?
You: What subscriptions are due next?
Claude: (calls the detect_recurring tool) Highest-confidence recurring charges, with the next expected date:
- YMCA — $84.00 monthly, next expected July 15
- Netflix — $15.49 monthly, next expected July 18
- Spotify — $11.99 monthly, next expected July 23
What it does
- Read-only YNAB sync. Pulls your budgets, accounts, categories, and transactions from YNAB into a local SQLite store. The YNAB client has no write methods, so the tool cannot change anything in your budget.
- Statement import with human review. Parses bank and credit-card statements (CSV, OFX, QFX, PDF) into the same store. Every parsed batch is staged, reconciled against the statement's opening and closing balances where the format provides them (OFX/QFX), and shown to you for an explicit confirm or reject. Parser output is never trusted on its own.
- Categorization that converges. Deterministic rules categorize what they can; Claude suggests categories for the long tail, constrained to your existing YNAB category names; you approve. Approved suggestions become rules, so future imports categorize themselves.
- Spending analytics. Cash flow (income vs. outflow with transfers excluded), recurring-charge detection with next-bill forecasts, and category anomaly flags when a month spikes against its trailing baseline.
- Retirement contribution headroom. Traditional IRA, Roth IRA, and HSA limits, remaining room, Roth MAGI phase-out, and deadlines, computed from a bundled per-year IRS-limits file with cited sources. Informational only; it reports numbers, it does not give advice.
Install
You need Python 3.11+ and a YNAB Personal Access Token.
1. Install the Python package
git clone https://github.com/asachs01/homefinance.git
cd homefinance
python -m venv .venv && source .venv/bin/activate
pip install -e .
Pick the install that matches the statement formats you need:
| Command | You get |
|---|
pip install -e . | YNAB sync + CSV statement import |
pip install -e ".[ofx]" | adds OFX/QFX import (lightweight, pure Python) |
pip install -e ".[ingest]" | adds PDF import via Docling (PyTorch installs with it — expect a large download; ~200MB of layout models fetched on the first PDF parse) |
2. Install the Claude Code plugin
claude plugin marketplace add asachs01/homefinance
claude plugin install homefinance@homefinance
The plugin's MCP server is launched as python3 -m homefinance.mcp_server, so start Claude Code from a shell where the homefinance virtualenv is active (or edit the command in the plugin's .mcp.json to your venv's absolute Python path). The server runs database migrations automatically on first access.
3. Configure and ask
export HOMEFINANCE_YNAB_TOKEN=<your-token>
homefinance init # interactive: pick budgets, run the first sync
homefinance status # verify
Then open Claude Code and ask: "Show me my finances at a glance."
Full walkthrough: docs/quickstart.md.
Skills
Six skills ship with the plugin. They activate automatically when your question matches; the slash command forces one.