MCP Hub
Back to servers

personal-finance

54 robust financial calculators based on deterministic mathematical principles.

Registry
Updated
Apr 11, 2026

Quick Install

uvx personal-finance-mcp

💰 Personal Finance MCP Server

mcp-name: io.github.sarveshtalele/personal-finance

Deterministic personal finance calculator powered by Model Context Protocol — based on the Core Financial Principles.

Python 3.10+ MCP SDK PyPI Tests License: MIT


✨ What It Does

Connect this server to Claude Desktop, Claude Code, or any MCP client to get 54 financial calculation tools with:

  • 🔢 Deterministic outputs — same inputs → same results, always
  • 📖 Theory-grounded — every formula traced to core financial concepts
  • 📐 Full formula display — shows the exact calculation, not just the answer
  • 🇮🇳 Indian finance context — ₹ formatting, SIP planning, EMI calculations
  • 🚀 Zero external APIs — works fully offline, no LLM dependency for math

📦 Quick Start

1. Connect to Claude Desktop (Zero-Install Method)

Because this tool is globally published to PyPI, you don't even need to download the code to use it. Add this to your claude_desktop_config.json:

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

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%/Claude/claude_desktop_config.json

Restart Claude Desktop, and you will see the integration automatically.

2. Manual Global Installation

If you'd like to use it natively from your terminal without uv, just install it via standard pip:

pip install personal-finance-mcp

# Starts the server!
personal-finance-mcp

🛠 Tool Categories (54 Tools)

📊 Time Value of Money — 10 tools

ToolDescription
calculate_future_valueFV with any compounding frequency
calculate_present_valueDiscount future cash flows to today
calculate_annuity_fvFuture value of regular payments (SIP)
calculate_annuity_pvPresent value of regular payments
calculate_perpetuityValue of infinite periodic payments
calculate_rule_of_72Quick doubling time estimate
calculate_effective_rateNominal → Effective Annual Rate
calculate_real_returnInflation-adjusted return (Fisher)
calculate_inflation_impactFuture cost after inflation
calculate_savings_neededMonthly savings for a target corpus

💳 Debt Management — 6 tools

ToolDescription
calculate_emiEMI for any loan
loan_amortizationMonth-wise principal/interest split
compare_loansSide-by-side loan comparison
calculate_prepayment_savingsInterest saved by prepaying
invest_or_prepay_loanShould you invest or prepay?
analyze_debt_consolidationShould you consolidate debts?

📋 Financial Planning — 9 tools

ToolDescription
calculate_net_worthAssets - Liabilities statement
analyze_financial_ratiosSavings, DTI, liquidity, solvency
calculate_emergency_fundRecommended buffer size
analyze_budget50/30/20 rule analysis
plan_financial_goalGoal setting with inflation adjustment
plan_retirementRetirement corpus & SIP calculator
plan_educationChild education fund planner
calculate_insurance_needHuman Life Value method
financial_health_check0-100 health score with rating

📈 Bond Analysis — 6 tools

ToolDescription
calculate_bond_priceDCF bond pricing
calculate_ytmYield to Maturity (Newton-Raphson)
calculate_current_yieldAnnual coupon / market price
calculate_bond_durationMacaulay & Modified Duration
calculate_bond_convexitySecond-order interest rate risk
calculate_zero_coupon_bondZero-coupon bond pricing

📊 Stock Valuation — 5 tools

ToolDescription
value_stock_ddmGordon Growth Model
value_stock_two_stage_ddmTwo-stage DDM
value_stock_peP/E relative valuation + PEG
value_stock_dcfDiscounted Cash Flow
calculate_dividend_yieldDividend yield %

🏦 Mutual Funds — 7 tools

ToolDescription
calculate_sip_returnsSIP calculator with step-up
calculate_sip_neededMonthly SIP for a target corpus
compare_lumpsum_vs_sipLump sum vs SIP comparison
analyze_expense_ratio_impactHow expense ratio erodes returns
calculate_swpSystematic Withdrawal Plan duration
calculate_cagrCompound Annual Growth Rate
calculate_navNet Asset Value calculation

📊 Portfolio Analytics — 11 tools

ToolDescription
calculate_portfolio_returnWeighted expected return
calculate_portfolio_riskPortfolio variance & std deviation
analyze_two_asset_portfolioTwo-asset analysis + min variance
calculate_capm_returnCAPM expected return
calculate_sharpe_ratioRisk-adjusted return (total risk)
calculate_treynor_ratioRisk-adjusted return (systematic)
calculate_jensens_alphaManager skill measurement
calculate_information_ratioConsistency vs benchmark
calculate_sortino_ratioDownside-risk-adjusted return
suggest_asset_allocationAge & risk-based allocation
rebalance_portfolioTrades needed for target allocation

💬 Example Usage in Claude

"Calculate EMI for a 50 lakh home loan at 8.5% for 20 years"

Output:

══════════════════════════════════════════════════
  EMI Calculation
══════════════════════════════════════════════════
  Emi: ₹43,391.16
  Total Payment: ₹1,04,13,878.40
  Total Interest: ₹54,13,878.40
  Interest To Principal Ratio: 1.0828
  Principal: ₹50,00,000.00
  Annual Rate: 8.5%
  Tenure Months: 240

  Formula: EMI = 50,00,000.00 × 0.007083 × (1+0.007083)^240 / ((1+0.007083)^240 - 1)

  

🏗 Architecture

Tools Layer  ───────→  Models Layer
     │                      │
  MCP interface        Pydantic validation
  + core math               + enums
  • Tools: FastMCP wrappers + deterministic mathematical functions.
  • Models: Pydantic schemas for strict input validation.

See docs/Architecture.md for full details.


📁 Project Structure

personal-finance-mcp/
├── src/
│   ├── server.py              # MCP server entry point
│   ├── __main__.py            # python -m src entry point
│   ├── tools/                 # Pure math & MCP wrappers
│   │   ├── tvm.py             # Time Value of Money
│   │   ├── debt.py            # EMI, amortization
│   │   ├── planning.py        # Financial ratios, health score
│   │   ├── bonds.py           # Bond pricing, YTM, duration
│   │   ├── stocks.py          # DDM, DCF, P/E valuation
│   │   ├── mutual_funds.py    # SIP, SWP, CAGR, NAV
│   │   └── portfolio.py       # MPT, CAPM, Sharpe, alpha
│   ├── models/                # Pydantic validation schemas
│   │   ├── schemas.py         # Type definitions & constraints
│   │   └── enums.py           # Validation Enums
│   └── utils/                 # Formatters & helpers
├── tests/                     # 100+ unit & integration tests
├── docs/                      # documentation & architecture
├── Dockerfile                 # Container deployment
├── run_production.py          # SSE server launcher
├── pyproject.toml             # Package configuration
└── LICENSE                    # MIT License

🚀 Deployment Options

MethodTransportUse Case
Claude DesktopstdioPersonal use — simplest
Claude CodestdioDevelopment / coding
SSE ServerHTTPRemote clients, team use
DockerHTTPProduction deployment

See docs/deployment.md for full instructions.


📚 Documentation

DocumentDescription
docs/documentation.mdFull tool reference with formulas
docs/setup.mdInstallation & connection guide
docs/testing.mdTest structure & running tests
docs/deployment.mdLocal, SSE, Docker deployment
docs/Architecture.mdSystem design & data flow
Plan.mdRoadmap & module breakdown
log.mdDevelopment changelog

🔑 Key Design Decisions

  1. Stateless — No database, no sessions. Every tool call is self-contained.
  2. Deterministic — Pure math, no randomness, no AI inference for numbers.
  3. Layered — Tools → Calculators → Models, each with single responsibility.
  4. Offline-first — Zero external API calls. Works without internet.
  5. Theory-grounded — Every formula is mathematically deterministic.

🌍 Local Development

If you wish to modify the source code:

git clone https://github.com/sarveshtalele/personal-finance-mcp.git
cd personal-finance-mcp
uv venv && source .venv/bin/activate
uv pip install -e ".[dev]"
pytest tests/ -v

📄 License

MIT — free to use, modify, and distribute.

Reviews

No reviews yet

Sign in to write a review