goetta-finance
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., "@goetta-financeshow my account balances"
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.
goetta-finance
A local-first tool that connects SimpleFIN to Claude. Your bank data lives only on your machine, in a DuckDB file you own. Claude reads it through an MCP server; you read it through a small web dashboard at localhost:8765.
See PROJECT_PLAN.md for the full vision and roadmap.
Requirements
Python 3.11+
A SimpleFIN Bridge account (about $1.50/month) — sign up at https://bridge.simplefin.org/
Related MCP server: plaid-mcp
Install
pipx install goetta-finance # recommended
# or: pip install goetta-financepipx is the cleanest way to install a Python CLI: it lives in its own isolated environment and puts the goetta-finance command on your PATH. That global path is also the stable thing to point Claude Desktop's MCP config at — no project venv path to chase.
git clone https://github.com/griffin-goepper/goetta-finance-mcp.git
cd goetta-finance-mcp
python -m venv .venv
.venv/Scripts/activate # Windows
# source .venv/bin/activate # macOS/Linux
pip install -e ".[dev]"Quick start
goetta-finance init # interactive setup wizard
goetta-finance sync # pull fresh data from SimpleFIN
goetta-finance web # open the dashboard at http://127.0.0.1:8765The init wizard walks four steps:
Claim a SimpleFIN setup token → access URL (stored at
~/.local/share/goetta-finance/config.json, mode0600on POSIX).Initialize the DuckDB store.
Pull initial history (up to 90 days).
Auto-write the Claude Desktop MCP config (merges into the existing file; preserves any other servers you've configured).
Re-running init is safe — each step detects existing state and offers to skip or replace.
Commands
Command | What it does |
| Interactive setup. Re-runnable. |
| One-shot pull from SimpleFIN. Idempotent — safe to run repeatedly. |
| Show last sync, account list with balances, recent warnings/errors. |
| Start the MCP server over stdio (used by Claude Desktop). |
| Start the local web dashboard. |
| Long-lived process: dashboard + MCP HTTP endpoint + daily scheduled sync, from one process. See "Daemon mode" below. |
| Manage manual accounts and liability flags. See "Manual accounts and liabilities" below. |
| Manage categories and the rules that map descriptions to them. See "Transaction categorization" below. |
| Manual per-transaction category overrides. See "Transaction categorization" below. |
Manual accounts and liabilities
SimpleFIN can't reach every account — 401(k) providers, HSAs, brokerages outside its bank list, and student-loan servicers all sit outside. goetta-finance account lets you track those by hand so they show up in MCP queries and the dashboard alongside synced accounts.
The four subcommands
# Create a manual account. Prompts interactively for any missing flags.
goetta-finance account add \
--name "Apple Savings" \
--org "Apple" \
--type savings \
--balance 30000 \
[--as-of 2026-05-17] # observation date, defaults to today (UTC)
# Mark an account as a liability (or clear the flag). Works on any account id.
goetta-finance account add ... --liability # at creation time
goetta-finance account set-liability MANUAL-<uuid> true # after the fact
goetta-finance account set-liability ACT-<simplefin-id> true # SimpleFIN accounts too
# Update the balance on a manual account (also writes a balance_snapshot).
goetta-finance account set-balance MANUAL-<uuid> 32500 [--as-of 2026-05-17]
# List all accounts. Manual + liability rows are tagged in the output.
goetta-finance account list
# Remove a manual account. Two layers of safety: cascade-delete its snapshots
# (--force) AND type the account name to confirm (skip with --yes for scripts).
goetta-finance account remove MANUAL-<uuid> --forceSign convention for liabilities
A liability always reduces net worth, regardless of how the source signs the balance. The signed-balance formula is:
CASE WHEN is_liability THEN -ABS(balance) ELSE balance ENDSo you can enter a student loan either way and the math comes out right:
account add --type loan --balance 22500 --liability(positive amount owed)A SimpleFIN credit card showing
balance = -500and you've flipped it tois_liability=true
Both contribute -500 and -22500 respectively to net worth — collapsing the loan-servicer convention and the SimpleFIN convention to one answer. The dashboard's net-worth chart and the accounts page footer respect the formula. When writing sql_query SELECTs against the accounts table, reach for the same CASE WHEN expression to compute totals correctly.
is_liability is independent of type on purpose — type describes what kind of account it is (loan, credit, investment), while is_liability controls how net-worth math treats it. A margin account is type=investment but functionally a liability; you can flip the flag without changing the type.
Heads-up
Retroactive flag. Toggling
is_liabilityre-treats all historicalbalance_snapshotsfor that account under the new value in net-worth-over-time charts. This is almost always what you want; if it isn't, flip the flag back.CC-credit edge case. A credit card with
is_liability=trueand a positive balance (you overpaid and now have a credit) computes as-balanceinstead of+balance. Rare;set-liability falsewhile the credit exists, then re-enable, is the workaround.Balance is authoritative. Payments to a manual loan don't auto-decrement the balance — re-run
set-balancefrom your servicer's monthly statement.
Transaction categorization
Every transaction resolves to a category at read time through a SQL view (transactions_with_category). Three layers, outermost wins:
Manual override — a row in
transaction_overridesfor that transaction id.Rule match — the lowest-priority rule in
category_ruleswhose pattern matches the transaction's description.Uncategorized— the fallback when nothing else matches.
Read-time resolution is the feature, not an optimization: adding or editing a rule applies retroactively to every existing transaction with zero data migration. A category_id column on transactions would silently break that.
Migration 0004 ships 14 default categories (Groceries, Dining, Transportation, Gas, Utilities, Subscriptions, Rent/Mortgage, Healthcare, Entertainment, Shopping, Travel, Transfers, Income, Uncategorized). Migration 0007 trims the default rule seed to a deliberately minimal universal set: a single (?i)transfer regex → Transfers (every bank uses "transfer" somewhere in inter-account descriptions) and five global subscriptions (Spotify, Netflix, Hulu, Disney Plus, Amazon Prime). Earlier versions shipped 38 US-merchant-specific defaults (Kroger, Starbucks, Shell, etc.) — they were noise for non-US users and bias for the rest. Expect most of your spending to land in Uncategorized on first install. That's the design: curate by adding rules for your descriptions. The MCP top_uncategorized_patterns tool (or the category set-rule CLI) is the curation path.
CLI
# Inspect what was seeded vs. what you've added.
goetta-finance category list # all categories with txn + rule counts
goetta-finance category default-rules # the is_default=TRUE rule set
# Add a rule. Pattern matches case-insensitively against transaction description.
goetta-finance category set-rule Dining --match contains --pattern 'CHIPOTLE'
goetta-finance category set-rule Dining --match regex --pattern '(?i)venmo.*lunch'
# Remove a rule. Defaults require --force AND a typed-pattern confirmation;
# user-added rules just need the id.
goetta-finance category remove-rule 42
goetta-finance category remove-rule 7 --force # default rule, prompts for the pattern
# Add a custom category.
goetta-finance category add --name "Gardening" --color "#4ade80"
# Recategorize a single transaction (manual override beats any rule).
goetta-finance transaction categorize <txn-id> Groceries
goetta-finance transaction uncategorize <txn-id> # back to rule resolution
# Category names are case-insensitive ("dining" → "Dining") and typos get
# a "Did you mean?" suggestion via difflib.From Claude
The spending_by_category(start, end) MCP tool aggregates per-category totals over a date range. By default it returns spending only (amount < 0, non-spending categories like Transfers and Income excluded) as positive magnitudes sorted descending. Pass include_non_spending=True to add them — Income rows come back with a negative total (cash in), Transfers positive (outflow to your own accounts).
get_transactions(category="Dining", ...) filters server-side through the view. Every transaction Claude sees carries a resolved category field — falling back to "Uncategorized", never None.
Curation is conversational. The whole maintenance loop runs in chat — no terminal needed:
You: "what's still uncategorized this month?" Claude calls
top_uncategorized_patterns→ "$85 CRUMBL COOKIES (3×), $60 NEW GYM LLC (2×)..." You: "Crumbl is dining, the gym is healthcare" Claude callsadd_category_ruletwice. Rules apply retroactively; done.
One-off fixes use categorize_transaction (override beats any rule) and uncategorize_transaction (undo). The MCP rule-write path runs the same pattern validation as the CLI.
For anything custom, query the view directly via sql_query:
SELECT category, COUNT(*), SUM(-amount) AS total
FROM transactions_with_category
WHERE posted >= '2026-01-01' AND amount < 0
GROUP BY category ORDER BY total DESC;Dashboard
By category page: pie chart of the last 30 days' spending, Income excluded.
Transactions page: per-row colored category badge + a category-filter dropdown that narrows via HTMX without a page reload. The badge tooltip pre-fills the CLI command to recategorize that specific transaction id — copy-paste-ready.
Inline categorize-from-dashboard (HTMX dropdown + write endpoint) is deliberately not in v1; use the CLI. The reason: the standalone goetta-finance web opens the DuckDB store read-only, so a write endpoint would only work in daemon mode and forking dashboard behavior on writability isn't worth it until dogfooding shows frequent re-categorization friction.
Heads-up
Rule patterns are MCP-reachable. A transaction memo can carry text that tricks Claude into calling
add_category_rule(or runningcategory set-rule ... --pattern <evil-regex>). Both surfaces run the same best-effort validator (refuses uncompilable regexes, nested quantifiers like(X+)+, large counted repetitions like(.*a){25}) but CPython'sreengine doesn't release the GIL so a runtime regex timeout isn't possible. The load-bearing runtime defense is the existingquery_sqlstatement-timeout watchdog (GOETTA_FINANCE_SQL_TIMEOUT_SECONDS, default 30s). SeeCLAUDE.mdfor the threat model.One category per transaction. Costco-style mixed purchases get one label. No splits in v1.
Default rules don't re-seed if you delete them. Migrations run once per database; the slate stays where you leave it. New defaults arrive only via new migration files — never edits to shipped ones.
See CUSTOMIZATION.md for the full map of user-tunable surfaces (rules, prefix list, categories, flags, colors).
Daemon mode
goetta-finance daemon runs one long-lived process that hosts:
The dashboard at
http://127.0.0.1:8765/The MCP endpoint at
http://127.0.0.1:8765/api/mcp(streamable-HTTP transport — Claude Code and Claude Desktop both support this)An internal scheduler that runs
collect()daily at--sync-atlocal time (default06:00)
One process means one DuckDB write handle, which is what sidesteps the Windows DuckDB-lock conflict between serve and web. If the laptop was closed past the daily tick, the scheduler detects "we slept through it" on wake and runs a catch-up sync immediately.
goetta-finance daemon # defaults: 127.0.0.1:8765, sync at 06:00 local
goetta-finance daemon --sync-at 03:30 # sync nightly at 3:30am
goetta-finance daemon --no-schedule # MCP + dashboard only, no automatic sync
goetta-finance daemon --no-mcp # dashboard + scheduler only (e.g. headless server)To register the daemon's MCP endpoint with Claude Code:
claude mcp add goetta-finance --scope user --transport http http://127.0.0.1:8765/api/mcp(Re-run goetta-finance init to pick the daemon path interactively — it will also clear any stale stdio registration first.)
In v1 the daemon does not auto-start. Keep it running in a separate terminal, or install one of the scheduling snippets below to start it at login.
Scheduling
You can run goetta-finance two ways: with the daemon (continuous, lazy-sync triggered too), or with an OS scheduler running goetta-finance sync periodically. The daemon is the better default when you want the MCP endpoint always available. Use the OS scheduler when you just want fresh data and the dashboard on demand.
Linux — systemd user units
# ~/.config/systemd/user/goetta-finance.service
[Unit]
Description=goetta-finance daily sync
[Service]
Type=oneshot
ExecStart=%h/.local/bin/goetta-finance sync# ~/.config/systemd/user/goetta-finance.timer
[Unit]
Description=goetta-finance daily sync at 06:00
[Timer]
OnCalendar=*-*-* 06:00:00
Persistent=true
[Install]
WantedBy=timers.targetsystemctl --user daemon-reload
systemctl --user enable --now goetta-finance.timerReplace goetta-finance sync with goetta-finance daemon and drop the timer if you want the daemon at login instead.
macOS — launchd
<!-- ~/Library/LaunchAgents/com.user.goetta-finance.plist -->
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key><string>com.user.goetta-finance</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/goetta-finance</string>
<string>sync</string>
</array>
<key>StartCalendarInterval</key>
<dict><key>Hour</key><integer>6</integer><key>Minute</key><integer>0</integer></dict>
</dict>
</plist>launchctl load ~/Library/LaunchAgents/com.user.goetta-finance.plistFor daemon-at-login, swap the ProgramArguments to [..., "daemon"] and replace StartCalendarInterval with <key>RunAtLoad</key><true/><key>KeepAlive</key><true/>.
Windows — Task Scheduler
# Daily sync at 06:00
schtasks /Create /TN "goetta-finance sync" `
/TR '"C:\path\to\goetta-finance.exe" sync' `
/SC DAILY /ST 06:00
# Or start the daemon at login (foreground in a window)
schtasks /Create /TN "goetta-finance daemon" `
/TR '"C:\path\to\goetta-finance.exe" daemon' `
/SC ONLOGONClaude clients
goetta-finance serve is a stdio MCP server — it talks to a Claude client over a local pipe. Which clients work:
Client | Works? | How |
Claude Code ( | ✅ best path |
|
Claude Desktop (direct download from claude.ai/download) | ✅ |
|
Claude Desktop (Microsoft Store install) | ⚠ known gap | MSIX sandboxing redirects config reads away from |
claude.ai web | ❌ | The web app can't spawn local processes. Only remote (HTTP/OAuth) MCP servers work there, and exposing your bank data over HTTP would defeat the local-first design. |
init runs through whichever clients it detects in step [4/4]. You can re-run init at any time to refresh registrations without going through the SimpleFIN steps again.
Using it from Claude
Once registered, restart your Claude client and try things like:
"What's my checking balance?" →
list_accounts"Show me everything I spent at Starbucks last month" →
get_transactions(search="Starbucks", ...)"Chart my net worth over the last 90 days" →
account_balance_history+ Claude renders an inline chart artifact"How much did I spend on dining last month?" →
spending_by_categoryreturns categorized totals (non-spending categories excluded by default)"What's still uncategorized?" →
top_uncategorized_patternssurfaces the biggest gaps; tell Claude which category each belongs to and it adds the rules"Is the data current?" →
sync_statusreports last sync + freshness
The MCP server exposes eleven tools:
list_accounts— all accounts with current balances (hidden accounts excluded by default)get_transactions— filter by account, date range, category, text search; up to 1000 rows. Every row carries a resolvedcategoryfield.account_balance_history— per-account balance snapshots over timespending_by_category— categorized spending totals between two dates. Non-spending categories (Transfers, Income) excluded by default; opt in viainclude_non_spending=True.top_uncategorized_patterns— the curation entry point: the largest spending patterns sitting in Uncategorized, normalized via yourprefixes.txtcategorize_transaction/uncategorize_transaction— per-transaction override and its undoadd_category_rule— add a rule from conversation; retroactive, validator-gated (same ReDoS checks as the CLI)sql_query— read-only SQL against the local DuckDB store (see security notes below). Prefertransactions_with_categoryover the baretransactionstable when you want category info.sync_status— report when the SimpleFIN data was last synced and whether it's stalesync_now— trigger a fresh pull from SimpleFIN
sql_query is the workhorse for anything the other tools don't cover: most natural-language questions collapse to a SQL query plus a Claude-rendered artifact. The MCP server intentionally has no chart tool — Claude renders inline charts as artifacts from the data tools return.
The web dashboard
goetta-finance web serves six views at http://127.0.0.1:8765:
Accounts — current balances and as-of timestamps
Net worth — Plotly line chart from balance snapshots
Spending — monthly income (up) and spending (down) stacked bars
By category — pie chart of the last 30 days' spending (Income excluded)
Transactions — sortable, searchable table with a category filter and a colored category badge per row. Filters update via HTMX without full page reloads. The badge tooltip carries the pre-filled CLI command to recategorize that specific transaction.
Sync — last sync time and recent warnings/errors
The dashboard binds to 127.0.0.1 only by default. If you pass a non-loopback --host, the CLI prints a warning — there is no auth. Don't expose this to a network you don't fully trust.
Where your data lives
Default paths (XDG-compliant on Linux/macOS, follows the same layout on Windows):
~/.local/share/goetta-finance/
├── config.json # mode 0600 on POSIX; contains your SimpleFIN access URL
└── data.duckdb # the databaseOverride the location with GOETTA_FINANCE_HOME=/some/other/dir or $XDG_DATA_HOME.
The SimpleFIN access URL is sensitive — it grants read access to your bank data. The default chmod 0600 keeps it owner-only on Linux/macOS; on Windows, file ACLs apply.
Privacy and security
No telemetry, no auto-update checks, no analytics. The only outbound network call is to SimpleFIN itself during
sync. The dashboard's HTMX and Plotly assets are bundled locally — no CDN requests when you load it.sql_queryhas three layers of defense in depth to prevent prompt injection through transaction memo / payee fields:A pre-flight prefix whitelist (
SELECT/WITH/SHOW/DESCRIBE).EXPLAINis deliberately excluded.A
BEGIN TRANSACTION READ ONLYwrapper — DuckDB's storage layer refuses in-database mutations that slip the whitelist (e.g.,WITH cte AS (...) DELETE FROM accounts).The DuckDB connection is opened with
enable_external_access=false(immutable at runtime), which blocksread_csv,read_blob,COPY ... TO 'file', andhttpfsURLs — closing the information-disclosure and filesystem-exfiltration vectors.
See
CLAUDE.md"Things to avoid" for the full threat model and regression tests.
Known limitations
Microsoft Store install of Claude Desktop: see the Claude clients table above. Use Claude Code or the direct-download Claude Desktop until
initlearns the MSIX-sandboxed config path.On Windows,
serveandwebcannot run simultaneously as separate processes. DuckDB takes an exclusive OS file lock on the database even for a read-only handle. Usegoetta-finance daemon(one process, both surfaces) to avoid the conflict, or stop one before starting the other. macOS/Linux use advisory POSIX locks so concurrent read-only + read-write may work, but it isn't relied upon.Pending transactions are dropped. Only
postedtransactions are stored in v1. SimpleFIN's pending feed will be supported in a later phase.No cross-currency arithmetic. Each account row displays its own currency, and aggregate labels (net worth, chart axes) derive from your accounts — a GBP-only install shows GBP, mixed-currency installs show "mixed". But cross-account totals still sum raw numbers without FX conversion, so a mixed-currency net worth is not meaningful. Manual accounts default to USD; pass
--currency EURtoaccount addto override.Categorization is flat and rule-based. No hierarchy, no transaction splits, no LLM auto-categorization, no transfer dedup (transfers between your own accounts show up in both balances). The default rules are USA-merchant biased; you'll add your own — see "Transaction categorization" above.
No inline category editing in the dashboard. Recategorize via the
goetta-finance transaction categorizeCLI; the transactions page surfaces the exact command in each badge's tooltip.
Development
pip install -e ".[dev]"
# All tests (POSIX-only file-permission test skips on Windows)
pytest
# Targeted runs
pytest tests/test_collector.py -v
pytest -k "query_sql" -v
# Lint and type-check
ruff check .
ruff format --check .
mypy --strict src/goetta_financeA passing change has all four clean.
Security tooling
One-time setup:
pipx install pre-commit
pre-commit install
# gitleaks is a Go binary, install via your OS package manager:
# macOS: brew install gitleaks
# Windows: winget install gitleaks
# Linux: see https://github.com/gitleaks/gitleaks/releases or your distro's repopre-commit install wires bandit / ruff / gitleaks into your git commit flow automatically. Manual audit run (e.g. before tagging a release):
bandit -r src/ -c pyproject.toml
pip-audit
gitleaks detect --source . --redact
ruff check . # includes ruff's S (bandit-derived) rulesRaw scanner output is git-ignored on purpose — see docs/SECURITY_AUDIT_2026-05.md for the narrative-summary policy. New findings should be reported there, not in raw JSON.
CLAUDE.md documents the operating principles, project layout, and patterns for adding new MCP tools, storage backends, or SimpleFIN fields. Read it before opening a PR.
License
MIT © 2026 Griffin Goepper. Use it, fork it, ship it.
Contributions welcome — see CONTRIBUTING.md.
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.
Latest Blog Posts
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/griffin-goepper/goetta-finance-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server