25-tool personal finance MCP server via calcfi-mcp-server — paycheck take-home, mortgage payment/affordability, compound interest, capital gains tax, Fed funds rate, PMMS rates, Treasury yields, scena
calcfi-mcp-server v0.1.6 — 25-tool personal finance MCP server. Pure computation for calculators (no external API calls), build-time snapshots for market data (Fed funds rate, PMMS, Treasury yields). All tools credential-free.
Install: npm install calcfi-mcp-server. Entry: bin/calcfi-mcp.js (NOT dist/index.js — the dist entry crashes on stdio connect; use the bin shebang). Transport: stdio.
25 tools in 5 categories:
CALCULATORS (5 tools — pure offline math, 0-92ms):
- paychecktakehome — net pay from gross salary, US state, filing status. Uses 2026 IRS brackets + SSA OASDI. Params: grossannual, state (2-letter), filingstatus (single/married/headof_household). State tax is flat-rate approximation in v0.1.
- mortgagepayment — monthly P&I, total interest, PITI breakdown, first 12-month amortization schedule. Params: principal, rate (%), termyears. Optional: taxes, insurance, hoa.
- mortgageaffordability — max home price from income/debts/down payment. Uses Fannie Mae 28/36 DTI rules. Params: grossannual, monthlydebts, downpayment, rate. Binding constraint reported.
- compoundinterest — future value with optional monthly contributions. Params: principal, annualratepct, years, monthlycontribution. Returns yearly balances and effective annual yield.
- capitalgains — US federal capital gains tax (long/short-term). Params: proceeds, costbasis, holdingperioddays, filing_status. NIIT calculation included.
MARKET DATA (3 tools — build-time snapshots, 0-1ms):
- fedfundsrate — current FOMC target range (upper/lower/midpoint), effective date, next meeting date. Source: FRED DFEDTARU/DFEDTARL. Snapshot: 2026-05-07 data.
- freddiepmmscurrent — current 30yr/15yr/5-1 ARM rates with weekly change (bps). Source: Freddie Mac PMMS. Snapshot: week ending 2026-05-22.
- treasury_yield — full yield curve (1mo through 30yr), 10y-2y spread (bps), curve shape classification (normal/inverted/flat). Source: FRED DGS series. Snapshot: 2026-05-28.
RESEARCH/METADATA (13 tools — static embedded data, 0-53ms):
- getdatasetdoi — 5 Figshare DOIs with BibTeX/RIS citations (CC-BY-4.0 datasets)
- getcodeprovenance — 8 Software Heritage SWHIDs for source verification
- get_methodology — SSRN paper metadata (URL, version, authors, abstract)
- getpresscoverage — 26 placements across 8 publications (Featured.com, MSN, Yahoo Finance, etc.)
- listexamplenotebooks — 5 Kaggle notebooks for reproducibility
- listinteractiveapps — 10 Hugging Face Spaces (dashboards, simulators)
- listembeddablecodepens — 6 embeddable finance widgets
- listobservablenotebooks — 3 Observable notebooks (mortgage regime detection, treasury curve)
- getauthorprofile — schema.org Person JSON-LD with sameAs links (ORCID, Wikidata, GitHub, etc.)
- liststreamlitapps — 3 Streamlit Community Cloud apps
- getresearchoutputs — unified index of all published outputs
- cite_this — copy-paste citation in BibTeX/APA/receipt format
- getcanonicalurl — maps free-text query to canonical CalcFi page URL
ACTION TOOLS (4 tools — generate URLs/codes, 1-36ms):
- save_scenario — saves calc inputs to a 5-digit share code, returns calcfi.app URL. Expires in 30 days.
- emailfullreport — generates confirmation URL for PDF report delivery (pendinguserconfirmation status). Never sends without user click.
- subscribeweeklydigest — double opt-in digest subscription. seriesids enum: mortgagerates, federalfundsrate, treasuryyields, cpi, labormarket, consumer_credit, all. cadence: weekly/biweekly/monthly.
- crossanalyze — bundles 2-8 saved scenarios into a Money Analysis Score comparison. Runs on calcfi.app, NOT in MCP server. goal enum: buyhouse, retire, payoffdebt, switch_job, general.
25 calls tested, 25/25 OK (first attempt: 23 OK, 2 validation errors from wrong enum values — retried with correct values, 2/2 OK):
- paycheck_takehome $120k CA single — 92ms OK, net $85,273 (28.94% effective rate)
- mortgage_payment $400k
{ "server": "calcfi-mcp-server", "version": "0.1.6", "transport": "stdio", "entry": "bin/calcfi-mcp.js", "tools_count": 25, "categories": { "calculators": 5, "market_data": 3, "research_metadata": 13, "action_tools": 4 }, "total_calls": 25, "successful": 25, "failed": 0, "note": "2 validation errors on first attempt (wrong enum values), retried successfully", "calls": [ { "tool": "paycheck_takehome", "args": "$120k CA single", "ms": 92, "ok": true, "note": "net $85,273, 28.94% effective rate" }, { "tool": "mortgage_payment", "args": "$400k 6.5% 30yr", "ms": 2, "ok": true, "note": "$2,528/mo PI, $510k total interest" }, { "tool": "mortgage_affordability", "args": "$150k income", "ms": 2, "ok": true, "note": "max $518k, front-end DTI binding" }, { "tool": "compound_interest", "args": "$10k+$500/mo 7% 30yr", "ms": 1, "ok": true, "note": "FV $691,150" }, { "tool": "capital_gains", "args": "$50k sale $20k basis 400d", "ms": 0, "ok": true, "note": "$0 fed tax LTCG 0% bracket" }, { "tool": "fed_funds_rate", "ms": 0, "ok": true, "note": "4.25-4.50% target" }, { "tool": "freddie_pmms_current", "ms": 0, "ok": true, "note": "30yr 6.75%" }, { "tool": "treasury_yield", "ms": 1, "ok": true, "note": "10yr 4.42%, normal curve" }, { "tool": "get_dataset_doi", "ms": 53, "ok": true, "note": "5 Figshare DOIs" }, { "tool": "get_code_provenance", "ms": 1, "ok": true }, { "tool": "get_methodology", "ms": 1, "ok": true }, { "tool": "get_press_coverage", "ms": 1, "ok": true, "note": "26 placements" }, { "tool": "list_example_notebooks", "ms": 2, "ok": true, "note": "5 Kaggle" }, { "tool": "list_interactive_apps", "ms": 1, "ok": true, "note": "10 HF Spaces" }, { "tool": "list_embeddable_codepens", "ms": 0, "ok": true, "note": "6 pens" }, { "tool": "list_observable_notebooks", "ms": 3, "ok": true, "note": "3 notebooks" }, { "tool": "get_author_profile", "ms": 4, "ok": true }, { "tool": "list_streamlit_apps", "ms": 1, "ok": true, "note": "3 apps" }, { "tool": "get_research_outputs", "ms": 3, "ok": true }, { "tool": "cite_this", "args": "bibtex", "ms": 2, "ok": true }, { "tool": "get_canonical_url", "args": "california take home pay", "ms": 0, "ok": true }, { "tool": "save_scenario", "args": "mortgage $400k", "ms": 28, "ok": true, "note": "share code generated" }, { "tool": "email_full_report", "ms": 1, "ok": true, "note": "pending_user_confirmation" }, { "tool": "subscribe_weekly_digest", "args": "mortgage_rates+ffr weekly", "ms": 36, "ok": true, "note": "pending_double_optin" }, { "tool": "cross_analyze", "args": "2 mortgage scenarios", "ms": 1, "ok": true, "note": "returns calcfi.app bundle URL" } ] }