Personal Finance

io.github.sarveshtalelePublished by GitHub account sarveshtalelev1.0.2Updated Oct 24, 2026

54 robust financial calculators based on deterministic mathematical principles.

The publisher's own server: Finance Foundation

VerifiedSTDIODesktop onlyFinanceData & Analytics

Overview

AI-generated overview

A deterministic personal-finance calculator server that lets an assistant compute loans, investments, portfolios, bonds and retirement plans, plus fetch live, k

What you can do
Compute time-value-of-money, loan, bond, derivative and equity-valuation figures with fixed formulas, so the same inputs always give the same answer. Run portfolio analytics such as CAPM, Sharpe, allocation and rebalancing, and Indian small-savings schemes like PPF, SSY and EPF. Build planning outputs: net worth, emergency fund, retirement, education, insurance and risk-profile splits. Fetch live mutual-fund NAVs, FX rates and stock or index quotes from public, keyless sources. Chain the calculators into one prioritised plan from a plain-language description of a situation.
When to use it
Useful when you want an assistant to do repeatable, formula-based financial arithmetic rather than estimate numbers, for example loan amortisation, SIP projections, retirement planning or portfolio metrics. Also suited to Indian savings and mutual-fund calculations and to quick lookups of live NAVs, FX rates and quotes.
Requirements
Runs as a local Python process installed from PyPI (pip or uvx), or can be reached through the author's hosted HTTP connector. No API keys, accounts or environment variables are declared. The hosted instance is shared, rate-limited and may cold-start after idle.
Before you install
Figures are illustrative and explicitly not investment advice; verify before acting on them. The hosted connector sends your inputs to a third-party shared service, so prefer the local install for private data. Live market data comes from public third-party sources and may be delayed or inaccurate. The server is stateless and does not store or change your data.

Installation

In SourceWeft

  1. Open Personal Finance in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

💰 Personal Finance MCP

Deterministic personal-finance toolkit exposed over the Model Context Protocol — 77 calculators, a meta-advisor, and live market data, with a polished web UI. Grounded in established financial mathematics.

[Python 3.10+] [MCP] [Tests] [License: MIT] [Live on Hugging Face]

Live demo: https://sarveshtalele-personal-finance-mcp.hf.space Connector URL: https://sarveshtalele-personal-finance-mcp.hf.space/mcp

Demo

[Watch the demo]

▶️ Watch the 2-minute demo — plain-language question → chained tools → a prioritized plan.

Public demo note: the hosted Space is a shared, best-effort instance (rate-limited, may cold-start after idle). For heavy or private use, run it locally or self-host (see docs/HOW_IT_WORKS.md).


Overview

Most finance "assistants" guess at numbers. This one doesn't. It ships 77 deterministic calculators — same inputs, same answer, every time — and lets an LLM route a plain-language question to the right tools. Describe your situation ("I'm 30, earn ₹1L/month, want to retire at 60") and the create_financial_plan orchestrator chains the relevant calculators into a single prioritised plan.

It runs three ways from one codebase:

  • As an MCP server — connect it to Claude Desktop, Claude Code, Cursor, or any MCP client.
  • As a website — a Next.js UI with a live calculator, a market dashboard, and a tool catalog.
  • As a hosted connector — deployed to a Hugging Face Docker Space; one URL does all three.

Highlights

  • 🔢 Deterministic — pure math, no model inference for the numbers.
  • 🤖 Story → tools — the model maps intent to tools; users never name them.
  • 🇮🇳 Theory-grounded — TVM, debt, PPF/SSY/NSC/EPF, bonds, derivatives, MPT, and more.
  • 🛰️ Live market data — mutual-fund NAVs (AMFI), FX (ECB), equity quotes (Yahoo) — no API keys.
  • 🔒 Hardened — stateless, rate-limited, input-bounded APIs with security headers/CSP.

Tool catalog — 77 tools, 13 categories

CategoryToolsExamples
Time Value of Money10future/present value, annuity, perpetuity, EAR, real return
Portfolio Analytics11CAPM, Sharpe, Sortino, Treynor, alpha, allocation, rebalancing
Financial Planning9net worth, ratios, emergency fund, retirement, education, insurance
Small Savings (India)9PPF, SSY, NSC, KVP, SCSS, RD, FD, EPF
Mutual Funds7SIP, SWP, lumpsum-vs-SIP, CAGR, NAV, expense-ratio impact
Debt & Loans6EMI, amortization, prepayment, consolidation, invest-vs-prepay
Fixed Income6bond price, YTM, current yield, duration, convexity, zero-coupon
Derivatives5futures fair value, option payoff, put-call parity, Black-Scholes, beta hedge
Equity Valuation5DDM, two-stage DDM, P/E, DCF, dividend yield
Live Market Data4MF search, live NAV, FX rate, stock/index quote
Cash Flow & Budgeting3household cash flow, debt-to-income, contingency fund
Risk Profiling1suitability score → suggested equity/debt split
Advisor1create_financial_plan — the story → plan orchestrator

Browse them all (with live descriptions) at /tools.


Quick start

Use the hosted connector (no install)

Claude Desktop — Settings → Connectors → Add custom connector → paste:

https://sarveshtalele-personal-finance-mcp.hf.space/mcp

Claude Code

bash
claude mcp add --transport http personal-finance https://sarveshtalele-personal-finance-mcp.hf.space/mcp

Cursor / VS Code — add to mcp.json:

json
{  "mcpServers": {    "personal-finance": {      "url": "https://sarveshtalele-personal-finance-mcp.hf.space/mcp",      "transport": "http"    }  }}

Install from PyPI (stdio server)

bash
pip install personal-finance-mcp     # or: uvx personal-finance-mcp

Then point Claude Desktop at it:

json
{  "mcpServers": {    "personal-finance": { "command": "uvx", "args": ["personal-finance-mcp"] }  }}

Run locally from source

bash
git clone https://github.com/sarveshtalele/personal-finance-mcp.gitcd personal-finance-mcppip install -e .
# Option A — classic stdio MCP server (offline, no web)python -m src
# Option B — unified server: website + /mcp connector + /api  (http://localhost:7860)cd web && npm install && npm run build && cd ..python -m src.web

For stdio, point Claude Desktop at the local process:

json
{  "mcpServers": {    "personal-finance": { "command": "python", "args": ["-m", "src"] }  }}

The website

python -m src.web serves everything on one port:

PathWhat
/Next.js site — home, tool catalog, live calculator, market dashboard, setup guide
/mcpMCP server over streamable-HTTP — the connector URL
/api/*JSON endpoints (tool catalog, calculators, live market data)

Architecture

src/├── server.py            # FastMCP server — registers all tool modules├── __main__.py          # `python -m src`  (stdio transport)├── tools/               # pure math fns + per-module register(mcp)│   ├── tvm.py  debt.py  planning.py  bonds.py  stocks.py  mutual_funds.py│   ├── portfolio.py  derivatives.py  india_savings.py  cashflow.py│   ├── risk_profile.py  advisor.py   # advisor = story → plan orchestrator│   └── marketdata.py    # live AMFI / Frankfurter / Yahoo (keyless)├── models/              # Pydantic schemas + enums├── utils/               # output formatters└── web/                 # unified Starlette server (MCP + /api + static site)    ├── server.py        # routes, security middleware, calculator registry    └── __main__.py      # `python -m src.web`  (uvicorn, port 7860)
web/                     # Next.js front-end (static export → web/out)└── app/                 # home, tools, calculator, dashboard, connect

Each tool file keeps deterministic pure functions separate from the thin @mcp.tool wrappers, so the same functions power the MCP server, the web calculators, and the tests.


Security

  • Stateless — no database, no sessions; every call is independent and reproducible.
  • Hardened API — per-IP rate limiting, request-body cap, and input validation that bounds loop-driving parameters (years/months/age) to prevent denial-of-service.
  • Security headers — CSP (with frame-ancestors for the Hugging Face embed), X-Content-Type-Options, Referrer-Policy, Permissions-Policy; CORS limited to GET/POST without credentials. The header middleware is implemented at the ASGI layer so it never buffers the streaming /mcp (SSE) responses.
  • No secrets in the app — live-data sources are public and keyless.

See SECURITY.md to report a vulnerability.


Development

bash
pip install -e ".[dev]"pytest -q                       # 119 testsruff check .                    # lintpython -m src.web               # run the full stack locally

Deployment

Deployed as a Hugging Face Docker Space, auto-synced from GitHub on every push to main (see .github/workflows/hf-sync.yml). Full instructions — local, Docker, and Hugging Face — are in docs/deployment.md.


Documentation

Contributing

Contributions are welcome — see CONTRIBUTING.md and the Code of Conduct. Good first issues: add a calculator (a pure function + a register wrapper + a test), improve descriptions for better tool routing, or extend the web UI.


Disclaimer

Educational tool for illustrating standard financial formulas. Not investment advice. Figures are illustrative; verify before making financial decisions.

License

MIT — free to use, modify, and distribute.

Source: README.md at commit aff44ea

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v1.0.2LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts

Other Finance integrations