Bahi MCP
Indian mutual fund NAVs, SIP and XIRR maths, NSE/BSE quotes and tax estimates
- Pricing
- Open source
- Platforms
- CLI, self-hosted
- Runs
- Locally
- Version
- 0.3.1
- Listing updated
- today
Similar MCP servers
About Bahi MCP
Bahi MCP is an open-source MCP server for finance and payments. It runs locally on your machine and is started by your AI client.
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.
Install
Run in a terminal
claude mcp add bahi-mcp -- uvx bahi-mcpAdd to claude_desktop_config.json
{
"mcpServers": {
"bahi-mcp": {
"command": "uvx",
"args": [
"bahi-mcp"
]
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"bahi-mcp": {
"command": "uvx",
"args": [
"bahi-mcp"
]
}
}
}Add to .vscode/mcp.json
{
"servers": {
"bahi-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"bahi-mcp"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"bahi-mcp": {
"command": "uvx",
"args": [
"bahi-mcp"
]
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"bahi-mcp": {
"command": "uvx",
"args": [
"bahi-mcp"
]
}
}
}Using several servers? Build one config file with the MCP config generator.
Tools this server provides (22)
Taken from the project documentation; the running server may differ.
- 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
What it does
- 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
Pricing
Open source
MIT licence
Bahi MCP 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.

