Ask Claude about mutual funds and the market with MCP
MCP (Model Context Protocol) lets an AI assistant call tools. The EJI API MCP server gives Claude read-only tools for Indian mutual fund and NSE data, so you can ask in plain language and get answers from live data instead of memory.
You need an API key: request a free beta key. Keep it in an environment variable, never in code you publish.
Connect
The server address is https://fin.ejiapi.com/mcp and your key goes in the x-api-key header. Each person uses their own key.
Claude Code:
claude mcp add --transport http mf-api https://fin.ejiapi.com/mcp \ --header "x-api-key: YOUR_KEY"
Cursor / VS Code (MCP settings file):
{
"mcpServers": {
"mf-api": {
"url": "https://fin.ejiapi.com/mcp",
"headers": { "x-api-key": "YOUR_KEY" }
}
}
}Claude Desktop reaches remote servers through the mcp-remote helper, which needs Node.js. The full config is on the MCP server page. Keep your key out of shared config files and repositories.
What it can do
We checked the live server's tool list on 2026-11-08. It has 27 read-only tools. Mutual funds: mf_search_schemes, mf_get_scheme, mf_get_nav_history, mf_get_returns, mf_compare_schemes, mf_get_holdings, mf_get_industry_flows and more. Market: market_get_indices, market_get_equity_history, market_get_flows, market_get_futures, market_get_corporate_actions, market_get_ipos, market_get_fx and more. Full list on the MCP server page.
Example questions
- "Find the Direct Growth plan of Parag Parikh Flexi Cap and show its 1, 3 and 5 year returns."
- "Compare the top holdings of these two funds."
- "What were the FII and DII net flows over the last five trading days?"
- "Show Nifty Bank's P/E and P/B on the latest day."
Good habits
- Start with a search so the assistant gets the right scheme code; many funds have several plans.
- Ask the assistant to state the data date it used. Funds publish NAVs on business days, and market data is end of day.
- MCP calls count against the same monthly quota as direct API calls. See pricing.
- Check the connection first:
claude mcp listshould show the server as connected.
Data comes from public disclosures and is for information, not investment advice. Sample outputs were produced on 2026-11-08 and change as new data is published.