MCP server

Let an AI assistant read the Mutual Fund API for you. The server speaks the Model Context Protocol, so Claude, Cursor and other MCP clients can look up schemes, NAV history, returns and monthly holdings in a conversation.

Endpoint https://fin.ejiapi.com/mcp (Streamable HTTP). It uses your own API key, the same one as the REST API, so it counts against your own quota. Request a key if you do not have one.

Connect

claude mcp add --transport http mf-api https://fin.ejiapi.com/mcp \
  --header "x-api-key: YOUR_KEY"
{
  "mcpServers": {
    "mf-api": {
      "url": "https://fin.ejiapi.com/mcp",
      "headers": { "x-api-key": "YOUR_KEY" }
    }
  }
}
{
  "mcpServers": {
    "mf-api": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://fin.ejiapi.com/mcp",
               "--header", "x-api-key:${MF_API_KEY}"],
      "env": { "MF_API_KEY": "YOUR_KEY" }
    }
  }
}
Claude Desktop reaches remote servers through the mcp-remote helper, which needs Node.js. Keep your key out of shared config files and repositories.

Tools

All tools are read-only. Start with mf_search_schemes to get a scheme code, then use it in the others.

ToolWhat it does
mf_search_schemesFind schemes by words of the name.
mf_get_schemeOne scheme by code or ISIN: latest NAV and 52-week high and low.
mf_list_schemesBrowse schemes a page at a time, optionally by category.
mf_list_amcsAll fund houses with their scheme counts.
mf_list_amc_schemesSchemes of one fund house, by id or name.
mf_get_variantsPlan and option variants of an exact scheme name.
mf_get_nav_historyDaily NAV over a date range. Long ranges are thinned to about max_points points.
mf_get_returns1, 3, 5 and 10 year annualised returns (CAGR).
mf_compare_schemesTwo to five schemes side by side.
mf_get_holdingsMonth-end portfolio disclosures: largest positions, sectors and weights.
mf_get_statusHow fresh the data is and which fund houses have holdings.

Example questions

Keys and limits