Personal Finance

io.github.sarveshtalele由 GitHub 帳號 sarveshtalele 發布v1.0.2更新於 Oct 24, 2026

54 robust financial calculators based on deterministic mathematical principles.

發布方自己的服務:Finance Foundation

已驗證STDIO僅桌面金融資料與分析

概覽

AI 產生的概覽

一個確定性的個人理財計算器伺服器,讓助理用固定公式計算貸款、投資、投資組合、債券與退休規劃,並取得即時行情資料。

可以做什麼
用固定公式計算貨幣時間價值、貸款、債券、衍生性商品與股票估值,相同輸入永遠得到相同結果。執行 CAPM、夏普比率、資產配置與再平衡等投資組合分析,以及 PPF、SSY、EPF 等印度小額儲蓄方案。產生淨資產、緊急預備金、退休、教育、保險與風險屬性配置等規劃結果。從公開且免金鑰的來源取得基金淨值、匯率與股票或指數報價。依一段自然語言描述,把多個計算器串成一份依優先順序排列的理財計畫。
適用情境
適合希望助理進行可重複、依公式的財務計算而非估算數字的場合,例如貸款攤還、定期定額試算、退休規劃或投資組合指標。也適合印度儲蓄與共同基金計算,以及快速查詢即時淨值、匯率與報價。
執行需求
以本機 Python 程序執行,從 PyPI 安裝(pip 或 uvx),也可透過作者託管的 HTTP 連接器存取。未宣告需要 API 金鑰、帳號或環境變數。託管執行個體為共用服務,有速率限制,閒置後可能冷啟動。
安裝前請注意
計算結果僅供示例,明確不構成投資建議,決策前請自行核實。使用託管連接器會把輸入送到第三方共用服務,私密資料建議改在本機安裝。行情資料來自公開第三方來源,可能延遲或不準確。伺服器不保存狀態,不會儲存或變更你的資料。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Personal Finance,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

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.

來源:README.md,提交 aff44ea

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.0.2最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Finance 整合