india-stock-mcp
MCP serverDev toolsAdd this and your AI can answer questions about the Indian stock market using live data. It covers NSE and BSE stocks, market indices, mutual funds, options, and IPOs, and it needs no API keys.
Unavailable. This server has no hosted endpoint yet, so Ahel can't serve it.
Add to setup to save this item as a reference. Ahel cannot run it, and signing in will not install it.
What your AI can do with it
- Get live prices, volume, and 52-week ranges for NSE and BSE stocks
- Pull company fundamentals such as P/E ratio, EPS, ROE, and profit margins
- Compare two to five stocks side by side on price, valuation, and growth
- Look up NAV history for any Indian mutual fund scheme
- Show options chains with last prices, open interest, and implied volatility
- Report dividends, splits, and bonus issues, and check whether the market is open
Getting started
- Save this item in Your setup as a reference.
- Read the source or reference documentation for its setup requirements. Saving it here does not connect it to your AI.
- Check this page for availability before trying to install it through Ahel.
From the project's README
As published by akhilgovind02/india-stock-mcp in README.md.
MCP server for Indian stock market data — NSE/BSE quotes, historical prices, fundamentals, mutual fund NAV, indices, corporate actions, F&O option chains, IPOs, and portfolio analysis.
Works with any MCP client: Claude Desktop, Claude Code, Cursor, etc. No API keys, no auth, all free data sources.
Tools (16)
| Tool | What it does |
|---|---|
get_quote | Live price, volume, 52-week range for NSE/BSE stocks and indices |
get_historical | OHLCV history — daily / weekly / monthly |
search_symbol | Find stock symbols by company name |
get_fundamentals | P/E, EPS, ROE, margins, debt, growth rates |
compare_stocks | 2–5 stocks side by side |
get_index | Any NSE index (P/E, P/B, advances/declines) + SENSEX |
get_market_status | Is the market open? Session info per segment |
get_gainers_losers | Top NIFTY 50 movers ranked by % change |
get_corporate_actions | Dividends, splits, bonuses — per stock or market-wide |
get_options_chain | F&O chain around ATM: LTP, OI, OI change, IV, volume |
get_ipo_list | Current / upcoming / recently listed IPOs |
search_funds | Search 15,000+ Indian mutual fund schemes |
get_fund_nav | NAV history for a scheme |
get_fund_details | Fund house, category, current NAV |
compare_funds | 2–4 funds: NAV + % return over any period |
portfolio_summary | Holdings → current value, P&L, allocation breakdown |
Requirements
- Node.js 22+
Setup
Via npm (recommended)
No clone, no build:
Claude Code
claude mcp add india-stock -- npx -y india-stock-mcp
Claude Desktop — add to claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\):
{
"mcpServers": {
"india-stock": {
"command": "npx",
"args": ["-y", "india-stock-mcp"]
}
}
}
From source
git clone https://github.com/Akhilgovind02/india-stock-mcp.git
cd india-stock-mcp
npm install
npm run build
claude mcp add india-stock -- node /absolute/path/to/india-stock-mcp/dist/index.js
Restart Claude Desktop fully, then look for the tools icon in a new chat.
Example prompts
- "Quote for RELIANCE and how far is it from its 52-week high?"
- "Compare HDFC Bank vs ICICI Bank vs SBI fundamentals"
- "Top 5 NIFTY 50 gainers today"
- "NIFTY option chain — where's the max open interest?"
- "Compare Parag Parikh Flexi Cap vs Quant Small Cap over 3 years"
- "Analyze my portfolio: 10 RELIANCE @ 1200, 5 TCS @ 3000"
Development
npm run dev # run from TypeScript directly
npx tsx scripts/test-mcp.ts # end-to-end test of all 16 tools (live data)
npx tsx scripts/test-edge.ts # 24 edge-case assertions
npm run build # compile to dist/
Sample test output
Real output from npx tsx scripts/test-mcp.ts (live data, market hours, June 2026 — trimmed):
TOOLS: get_quote, get_historical, search_symbol, search_funds, get_fund_nav,
get_fundamentals, compare_stocks, get_index, get_market_status, get_gainers_losers,
get_corporate_actions, get_options_chain, get_ipo_list, get_fund_details,
compare_funds, portfolio_summary
PASS get_quote: {"source":"Yahoo Finance","symbol":"RELIANCE.NS","name":"RELIANCE
INDUSTRIES LTD","price":1266,"changePct":0.23,"volume":6107188,...}
PASS get_index: {"source":"NSE","index":"NIFTY BANK","last":55915,"percentChange":1.34,
"yearHigh":61764.85,"pe":...}
PASS get_market_status: [{"market":"Capital Market","marketStatus":"Open",...}]
PASS get_gainers_losers: {"type":"gainers","universe":"NIFTY 50","data":[{"symbol":
"SHRIRAMFIN","changePct":3.17,...}]}
PASS get_corporate_actions: {"symbol":"RELIANCE","actions":[{"subject":"Dividend -
Rs 5.5 Per Share","exDate":"14-Aug-2025",...}]}
PASS get_options_chain: {"symbol":"NIFTY","underlyingValue":23331,"atmStrike":23350,
"availableExpiries":["16-Jun-2026",...],"data":[{"strikePrice":...,"CE":{"lastPrice":
130.95,"openInterest":144769,"impliedVolatility":12.26},...}]}
PASS get_ipo_list: {"type":"current","ipos":[{"companyName":"Utkal Speciality
Industries India Limited","status":"Active",...}]}
PASS compare_funds: {"comparison":[{"name":"Parag Parikh Flexi Cap Fund - Direct
Plan - Growth","latestNAV":88.484,...}]}
PASS portfolio_summary: {"summary":{"totalInvested":41000,"totalCurrentValue":38663,
"totalPnL":-2337,"totalPnLPct":-5.7,...}}
... all 16 tools PASS
Data sources
| Source | Used for | Notes |
|---|---|---|
Yahoo Finance (yahoo-finance2) | Quotes, history, fundamentals, search | Primary source, may be delayed a few minutes |
NSE India (nse-bse-api) | Market status, indices, corporate actions, IPOs, option chains | Some NSE endpoints (quote, autocomplete) are no longer publicly accessible — the server falls back to Yahoo automatically |
| mfapi.in | Mutual fund NAV and search | Free, occasionally flaky — requests retry once |
| mfdata.in | Fund ratings / expense ratio | Often unreachable; falls back to mfapi.in |
Known limitations
get_gainers_losersranks a built-in NIFTY 50 constituent list (verified June 2026). NSE reconstitutes the index ~2×/year — updateNIFTY50_SYMBOLSinsrc/index.tswhen that happens.- Quotes may be delayed (Yahoo free feed); not suitable for live trading decisions.
- NSE may rate-limit or block heavy usage.
Disclaimer
Data comes from free public sources and may be delayed, incomplete, or wrong. This is not financial advice and not a substitute for a licensed broker or advisor. Do your own research before trading or investing.
License
Tools it gives your AI (16)
| Tool | What it does |
|---|---|
| get_quote | Get live price, volume, 52-week range, and basic stats for an NSE/BSE stock. Examples: RELIANCE, TCS, HDFCBANK, NIFTY 50 (index), ^NSEI (Nifty index code). |
| get_historical | Get OHLCV historical price data for a stock. Returns date, open, high, low, close, volume. |
| search_symbol | Search for a stock symbol by company name. Returns matching symbols with exchange info. |
| search_funds | Search Indian mutual funds by name. Returns scheme codes and names for use with other fund tools. |
| get_fund_nav | Get NAV (Net Asset Value) history for a mutual fund scheme. Use search_funds first to get scheme code. |
| get_fundamentals | Get fundamental financial data: P/E ratio, EPS, ROE, revenue, profit margins, debt, and more. |
| compare_stocks | Compare 2–5 stocks side by side: price, P/E, EPS, market cap, margins, growth rates. |
| get_index | Get live data for a market index: price, change, P/E, P/B, year high/low, advances/declines. |
| get_market_status | Check if NSE market is currently open or closed, and get trading session info. |
| get_gainers_losers | Get top gainers or losers among NIFTY 50 stocks, ranked by % change (live Yahoo quotes). |
| get_corporate_actions | Get dividends, stock splits, bonus issues, and rights issues. Pass a symbol for one stock, or omit it for recent market-wide corporate actions. |
| get_options_chain | Get F&O options chain for a stock or index: calls and puts around the ATM strike with last price, OI, OI change, IV, and volume. Works for NIFTY, BANKNIFTY, and F&O stocks like RELIANCE. |
| get_ipo_list | Get list of current, upcoming, or recently listed (past 3 months) IPOs on NSE. |
| get_fund_details | Get mutual fund details: fund house, category, current NAV. Includes Morningstar rating, expense ratio, and AUM when the rich data source is available. |
| compare_funds | Compare 2–4 mutual funds side by side: latest NAV and % return over the chosen period. |
| portfolio_summary | Analyze a stock portfolio. Pass holdings with buy price and quantity, get current value, P&L, allocation breakdown, and gain/loss per holding. Max 20 holdings. |
Signals
- GitHub stars
- 5
- Last commit
- Jun 2026
- Weekly downloads
- 68
- Tools captured
- 16
Advanced
- Delivery
- india-stock-mcp MCP server → your Ahel connector (mcp.ahel.ai) → your AI.
- Item type
- mcp-server
- Key
io-github-akhilgovind02-india-stock-mcp- Source
- github.com/akhilgovind02/india-stock-mcp
github.com/akhilgovind02/india-stock-mcp