Indian Mutual Fund Analytics (MFapi)

v1.0.0
io.github.vibhuti93/mutual-fund-mcp Checked 8 hours ago Published 2 days ago

AMFI mutual fund NAV tracking, SIP XIRR, lumpsum CAGR, and rolling returns on Cloudflare edge.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

search_indian_mf_schemes Search Indian Mutual Fund Schemes

Use this when the user asks to find an Indian mutual fund scheme code, look up an AMC's funds (e.g., HDFC, SBI, Parag Parikh, Quant, Nippon), or disambiguate between Direct/Regular and Growth/IDCW plans before fetching NAVs or calculating returns. Do not use for stocks, ETFs without AMFI scheme codes, or US/global funds.

ParameterTypeDescription
query *stringIndian mutual fund name, AMC, or scheme keywords (e.g. 'Parag Parikh Flexi Cap', 'HDFC Mid Cap', 'SBI Nifty 50').
limitintegerMaximum number of schemes to return (1-25, default 10).
optionFilterstringFilter schemes by option: 'growth', 'idcw', or 'all' (default 'all').
planFilterstringFilter schemes by plan type: 'direct', 'regular', or 'all' (default 'all').

get_indian_mf_nav Get Indian Mutual Fund NAV & History

Use this when the user asks for the latest NAV, scheme metadata (fund house, category, ISIN), or recent/historical NAV trend of a specific Indian mutual fund by its AMFI scheme code. Always call search_indian_mf_schemes first if you do not have the exact numeric schemeCode.

ParameterTypeDescription
schemeCode *integerNumeric AMFI mutual fund scheme code (use search_indian_mf_schemes first if unknown).
endDatestringOptional end date (YYYY-MM-DD) to bound historical NAV trend.
maxPointsintegerMaximum number of downsampled NAV points to return (1-60, default 12).
startDatestringOptional start date (YYYY-MM-DD) to fetch historical NAV trend.

calculate_indian_mf_returns Calculate Indian Mutual Fund SIP, Lumpsum & Rolling Returns

Use this when the user wants exact historical SIP returns (XIRR), lumpsum returns (CAGR), or rolling return consistency (1Y/3Y/5Y/7Y) for a single Indian mutual fund scheme using real historical NAVs from AMFI/MFapi.in. Do not use for speculative future projections or investment advice.

ParameterTypeDescription
schemeCode *integerNumeric AMFI mutual fund scheme code.
amountnumberInvestment amount in INR (defaults to 10000 for SIP / 100000 for lumpsum).
endDatestringOptional valuation end date (YYYY-MM-DD). Defaults to latest available NAV.
modestringCalculation mode: 'sip' (XIRR), 'lumpsum' (CAGR), 'rolling', or 'all' (default 'all').
rollingWindowYearsRolling return window in years: 1, 3, 5, or 7 (default 3).
sipDayintegerMonthly SIP installment day of month (1-28, default 5).
startDatestringOptional start date (YYYY-MM-DD). Defaults to 5 years before latest available NAV, or scheme inception if newer.

compare_indian_mf_schemes Compare Indian Mutual Fund Schemes

Use this when the user wants a side-by-side historical comparison of 2 to 4 Indian mutual fund schemes over the exact same time period (comparing latest NAV, lumpsum CAGR, SIP XIRR, rolling return median/consistency, and max drawdown). Warn if comparing mixed Direct vs Regular or Growth vs IDCW plans.

ParameterTypeDescription
schemeCodes *arrayArray of 2 to 4 unique AMFI mutual fund scheme codes to compare.
endDatestringOptional common end date (YYYY-MM-DD). Defaults to earliest latest-NAV date across the schemes.
monthlySipAmountnumberMonthly SIP amount in INR for XIRR comparison (default 10000).
rollingWindowYearsRolling return window in years: 1, 3, or 5 (default 3).
startDatestringOptional common start date (YYYY-MM-DD). Defaults to common overlapping start date across all schemes, capped at 5 years.