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 集成