tuskledger-mcp

v0.2.0
tuskledger-mcp Checked 1 day ago Published 5 months ago

MCP server for Tusk Ledger — gives your AI assistant typed access to your local personal finance data.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_accounts

List every connected account in Tusk Ledger with current balance, type (checking, savings, credit, investment, loan), and last-sync timestamp. Use this first to understand what accounts exist before drilling into transactions or holdings.

list_stale_accounts

Return accounts whose data is older than the freshness threshold (a week for synced accounts, a month for manual). Useful when the user asks 'why is my net worth wrong?' — stale balances are usually the cause.

query_transactions

List transactions matching optional filters. Returns the most recent matches first. Common filter combos: • account_id + start_date + end_date → 'all transactions in my checking account this month' • category='Coffee' + start_date='2026-01-01' → 'every coffee purchase since New Year' Defaults to no filter (returns the most recent 100 transactions across all accounts).

ParameterTypeDescription
account_idintegerFilter to a single account by id.
categorystringFilter to a single category name (exact match).
end_datestringISO date YYYY-MM-DD; inclusive upper bound.
limitintegerMax rows to return (default 100, max 500).
start_datestringISO date YYYY-MM-DD; inclusive lower bound.

search_transactions

Free-text search across transaction names, merchant names, and notes. Use when the user asks 'find that Whole Foods charge from last week' or 'when did I last pay Verizon?'. Different from query_transactions in that this is a fuzzy text search, not a structured filter.

ParameterTypeDescription
q *stringSearch string. Matches partial words, case-insensitive.
limitintegerMax rows (default 50).

get_spending_summary

Aggregated spending totals broken down by category for a date range. Returns totals + per-category subtotals + counts. Defaults to the current calendar month if no dates given.

ParameterTypeDescription
end_datestringISO date YYYY-MM-DD.
exclude_businessbooleanDrop transactions tagged as business (default false).
start_datestringISO date YYYY-MM-DD.

get_top_merchants

Top N merchants by total spend in a date range. Returns merchant name, total amount, transaction count, and a sparkline of the monthly trend. Useful for 'who am I paying the most?'.

ParameterTypeDescription
end_datestringISO date.
limitintegerHow many merchants to return (default 10).
start_datestringISO date.

get_recurring_subscriptions

List detected recurring subscriptions: Netflix, Spotify, gym, etc. Returns merchant, cadence (monthly/annual/etc.), last amount, next expected date, and confidence. The user often asks 'what subscriptions do I have' — this answers it.

get_upcoming_bills

Forward 30-day calendar of expected bills + paychecks with a running balance. Returns each event's date, amount, source (merchant or paycheck), and the projected account balance after that event. Useful for 'is my account going to dip before payday?'.

ParameterTypeDescription
daysintegerHow many days forward to look (default 30).

get_net_worth

Current net worth (assets minus liabilities) plus a 12-month trend. Numbers are point-in-time from the last sync, not live-computed. Use list_stale_accounts to verify freshness.

ParameterTypeDescription
historybooleanIf true, return the full snapshot history instead of just latest.

get_holdings

Current investment holdings across every connected brokerage and 401(k). Returns symbol, account, quantity, current value, and unrealized gain/loss per position.

get_investments_summary

Roll-up of investment portfolio: total value, asset allocation (stocks/bonds/cash), top 5 holdings, % YTD gain. The 'how are my investments doing?' answer.

get_retirement_projection

Run the multi-decade Monte Carlo retirement simulator. Returns probability of success, depletion age, and summary at key milestones (retirement, age 73 for RMDs, etc.). Caveat: scenarios live in the Tusk Ledger UI's localStorage on the device the user last edited from — they aren't accessible to this tool. So the user (or their assistant) must supply at least current_age. Other params accept sensible defaults that match the standard 4% rule scenario; pass any you know to tighten the projection. To pull a saved scenario verbatim, the user can copy it out of the Retirement page in the UI and…

ParameterTypeDescription
current_age *integerUser's current age. Required.
annual_contributionnumberAnnual contribution. Omit to auto-detect from last 12mo of investment-account inflows.
desired_annual_incomenumberTarget annual spending in retirement, today's dollars (default 80000).
inflation_ratenumberLong-run inflation assumption (default 0.025).
pension_annualnumberAnnual pension income, today's dollars.
retirement_ageintegerTarget retirement age (default 65).
return_ratenumberReal annual return during accumulation (default 0.06 = 6%).
spouse_ageintegerSpouse's current age. Optional — enables two-phase simulation when paired with spouse_retirement_age.
spouse_retirement_ageintegerAge at which the spouse retires (in spouse's years).
ss_annualnumberAnnual Social Security at the user's claim age.
ss_start_ageintegerAge at which to claim SS (62–70, default 67).
withdrawal_ratenumberSafe withdrawal rate (default 0.04 = the 4% rule).

get_budget

Budget limits for a month: per-category limit_amount plus an optional total_limit. Omit month/year for a list of every budget that exists. NOTE: returns limits only, not spending — pair with get_spending_summary for the same month to compute over/under per category.

ParameterTypeDescription
monthinteger1-12. Requires year.
yearintegere.g. 2026. Requires month.

get_cash_flow_forecast

Project the next N days of cash flow from recurring charges/income (known dates and amounts) plus a variable-spend baseline. Returns a day-by-day series with running balance, the projected low point, and upcoming events. The 'will I have enough cash before payday?' answer.

ParameterTypeDescription
baselinestringHow variable (non-recurring) spend is estimated. Default median_3.
daysintegerForecast horizon in days. Default 30.

get_trading_tax_summary

Realized gains/losses for a calendar year: per-account FIFO lot matching mirroring the 1099-B, chain-correct wash-sale adjustments, short- vs long-term split, and estimated tax. Defaults to the current year-to-date and 22%/15% rates.

ParameterTypeDescription
account_idintegerRestrict to one investment account.
ltcg_ratenumberLong-term capital gains rate. Default 0.15.
ordinary_marginal_ratenumberMarginal ordinary-income rate for short-term gains. Default 0.22.
yearintegerCalendar year. Defaults to YTD.

get_merchant_details

Deep-dive on a single merchant: year-to-date total, all-time total, transaction count, 12-month spend trend, and recent transactions. Matches the name case-insensitively, including normalized forms ('AMZN Mktp' rolls up under 'Amazon'). The 'how much have I spent at X?' answer.

ParameterTypeDescription
merchant_name *stringMerchant display name, e.g. 'Amazon' or 'Whole Foods'.

run_sync

Trigger a Plaid sync across all connected items. Same as clicking 'Sync Now' in the UI. Returns a summary of what was fetched (accounts updated, transactions added). Safe to call freely — Plaid dedupes.