# Bahi MCP

> Bahi MCP is an open-source MCP server for finance and payments. Indian mutual fund NAVs, SIP and XIRR maths, NSE/BSE quotes and tax estimates. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, self-hosted
- **Repository:** https://github.com/nayakwadis/bahi-mcp
- **MCP Registry name:** io.github.NayakwadiS/bahi-mcp
- **Categories:** [finance and payments](https://ai-powered.com/categories/finance-and-payments)
- **Listing updated:** 2026-11-18

## About

Bahi, from the Hindi word for a ledger, has the assistant compute numbers rather than guess them. Mutual fund data comes from AMFI through the mftool library; stock and index quotes come from Yahoo Finance and are described as unofficial and best effort. NAVs are usually published by about 9 PM IST and cached for 24 hours, so a clear_cache tool forces a fresh pull.

Analytics run on a fund's real NAV history: SIP simulations with XIRR, side-by-side comparison of up to five funds on 1, 3 and 5 year returns, volatility, drawdown and Sharpe ratio, and rolling-return distributions. Calculators cover XIRR, CAGR, EMI, fixed and recurring deposits, lump sums, SIP projection with step-up, SWP and retirement planning.

The tax tool follows FY 2026-27 assumptions for equity funds, models debt funds at slab rate only for units bought after 1 April 2023 and leaves out surcharge and loss set-off. The author says it is not investment or tax advice. It is a Python package, MIT-licensed, that runs over stdio.

## Features

- **AMFI scheme data:** Search schemes, quotes, details and NAV history.
- **Fund analytics:** SIP returns, fund comparison and rolling returns.
- **Market quotes:** NSE and BSE stocks and indices through an optional extra.
- **Calculators:** XIRR, CAGR, EMI, FD, RD, SWP and retirement planning.
- **Tax estimate:** Capital gains estimate on a fund redemption.

## Good for

- Compare flexi-cap funds on risk-adjusted returns
- Work out XIRR on a monthly SIP since a start date
- Check how long a retirement corpus lasts under withdrawals
- Estimate tax on selling an equity fund

## Install

### Claude Code (Terminal)

```sh
claude mcp add bahi-mcp -- uvx bahi-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "bahi-mcp": {
      "command": "uvx",
      "args": [
        "bahi-mcp"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "bahi-mcp": {
      "command": "uvx",
      "args": [
        "bahi-mcp"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "bahi-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "bahi-mcp"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "bahi-mcp": {
      "command": "uvx",
      "args": [
        "bahi-mcp"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "bahi-mcp": {
      "command": "uvx",
      "args": [
        "bahi-mcp"
      ]
    }
  }
}
```

## Tools

- `search_schemes`: Search schemes by name
- `get_scheme_quote`: Latest NAV and quote
- `get_scheme_details`: Fund house, type, category, start date
- `get_nav_history`: NAV history for a date range
- `get_portfolio_value`: Current value of holdings
- `clear_cache`: Drop cached AMFI data
- `calculate_sip_returns`: SIP simulation with XIRR
- `compare_funds`: Compare 1 to 5 funds
- `get_rolling_returns`: Rolling return distribution
- `get_stock_quote`: Stock price and ranges
- `get_index_quote`: Nifty, Sensex and other indices
- `get_stock_history`: OHLCV history
- `calculate_xirr`: XIRR for dated cash flows
- `calculate_cagr`: CAGR between two values
- `calculate_emi`: Loan EMI and interest
- `calculate_fd`: Fixed deposit maturity
- `calculate_rd`: Recurring deposit maturity
- `calculate_lumpsum_value`: Future value of a lump sum
- `project_sip`: SIP projection at an assumed return
- `calculate_swp`: Systematic withdrawal check
- `plan_retirement`: Corpus and SIP needed
- `estimate_mf_tax`: Capital gains tax estimate

## FAQ

### Where does the data come from?

AMFI via mftool for funds, and Yahoo Finance for stocks.

### Is it financial advice?

No. The README disclaims it and says verify before deciding.

### Do I need stock support?

Install the stocks extra to add yfinance; otherwise funds and calculators work.

### Why is my NAV old?

Cached for 24 hours; use clear_cache after the evening update.

### Is Bahi MCP free?

Yes. Bahi MCP is open source, so you can use and self-host it for free.

### How do I add Bahi MCP to Claude Code?

Run this command in your terminal: claude mcp add bahi-mcp -- uvx bahi-mcp

### What are the best alternatives to Bahi MCP?

The closest alternatives to Bahi MCP are Solana MCP by Vybe, Tapetide - Indian Stock Market MCP, Budget Tracker, Crypto Feeds and Crypto Fng.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Solana MCP by Vybe](https://ai-powered.com/mcp/solana-mcp-by-vybe): Solana MCP by Vybe is an MCP server for finance and payments.
- [Tapetide - Indian Stock Market MCP](https://ai-powered.com/mcp/tapetide-indian-stock-market-mcp): Tapetide - Indian Stock Market MCP is a freemium MCP server for finance and payments.
- [Budget Tracker](https://ai-powered.com/mcp/budget-tracker-2): Budget Tracker is a freemium MCP server for finance and payments.
- [Crypto Feeds](https://ai-powered.com/mcp/crypto-feeds): Crypto Feeds is a freemium MCP server for finance and payments.
- [Crypto Fng](https://ai-powered.com/mcp/crypto-fng): Crypto Fng is a freemium MCP server for finance and payments.
- [Creditcard](https://ai-powered.com/mcp/creditcard): Creditcard is a freemium MCP server for finance and payments.
- [Zovo LEI Lookup](https://ai-powered.com/mcp/zovo-lei-lookup): Zovo LEI Lookup is an MCP server for finance and payments.
- [Recurly](https://ai-powered.com/mcp/recurly): Recurly is a freemium MCP server for finance and payments.

---
Source: https://ai-powered.com/mcp/bahi-mcp
