MF Portfolio Analyser

₹1,25,000

of long-term gains on equity funds and shares, tax-free each year

Switch funds inside the tax-free room.

A Claude Code plugin that reads your CAS and plans your switches.

Every fund against its own index

Three years of return and swing, for direct and regular plans.

Educational sample, not advice. Built by an individual investor to review their own portfolio and shared as an example. Not investment, tax or legal advice; the author is not a SEBI-registered adviser. Past returns don’t predict future returns.

Each fund of the sample portfolio plotted by 3-year return minus its benchmark against how much more it swings, labelled with its profit.
From the sample report: a made-up investor holding real funds, values from real NAVs.

Four views of one portfolio

Which funds lag

Exit candidates, laggards, volatile but ahead, steady compounders and duplicate index funds, each with how often it beat its index. A peer check and a fund detail view sit beside them.

Where the money could go

Every direct-growth fund in your categories from AMFI’s list (311 with three years of history), scored out of 100: 75% the last 3 years, 25% its record since 2018. The index fund is always an option.

One fund per job

Each move carries a case-for-change score from seven tests and a break-even time, so close calls show as close calls.

Year by year, on your real lots

Four financial years ahead, oldest units first, only long-term and unlocked lots, inside each year’s room after gains you’ve already booked.

Your statement stays on your computer

  • Claude never sees the CASA local script reads it and keeps no name, PAN, address or folio numbers.
  • Raw text deleted, every runEven when a run fails. Its files are yours alone.
  • No password on a command lineAsked in a hidden prompt, handed to qpdf through an owner-only file.
  • A report that works offlineNo fonts, scripts or trackers. It never logs in or places orders.

Your CAS, Python and two PDF tools

No accounts or API keys. MF Central’s Detailed CAS from inception works best; a CSV or INDmoney export also works.

ToolFor
Claude CodeRunning /analyse-mf
Python 3.10+The analysis, standard library only
pdftotextReading the CAS PDF
qpdfPassword-protected PDFs
Install, then add the folder as a plugin in Claude Code or copy skills/mf-portfolio-analyser into ~/.claude/skills/
git clone https://github.com/Alafazam/mf-portfolio-analyser
python3 -m mfpa doctor
Run, in your own terminal
python3 -m mfpa run --cas ~/Downloads/cas.pdf

Every score is in method.md

  • Public dataNAVs from mfapi.in and AMFI’s scheme list.
  • Tax rules, FY 2026-2712.5% above ₹1.25L after more than 12 months; FIFO per folio; ELSS lock-in per instalment.
  • Every rule written downScores, flags and plan rules in method.md; weights in versioned files.
  • LimitsReads the MF Central Detailed CAS only. Funds near the 65% equity line need a factsheet check. Hindsight figures are not evidence.

When could your family stop depending on salary?

The same plugin builds a family money plan from ten questions. Run /plan-family.

  • Budget by phaseNow, after the new home’s possession, and after the loan is cleared. Goal SIPs come out of the surplus, not on top of it.
  • Pensions and pay commissionsOPS, UPS and NPS, with the next pay commission’s jump and arrears for government earners.
  • An independence age, twiceA base case, and a stress case where the first decade goes badly. Estimates, not probabilities.
  • Yearly milestonesWhat you should have each year, when the loan clears, and when each child starts school and college.

See how much room this year has left

Not advice. This is a rules-based screen an individual investor wrote for their own portfolio. Tax rules change and past returns don’t predict future ones. Check with a SEBI-registered investment adviser and a tax professional before acting. You run it on your own data, at your own risk.

The sample report’s FY 2026-27 card: ₹1,18,750 of the ₹1,25,000 room planned, with ₹40,850 of gains already booked this year.