India Stock Mcp

io.github.Akhilgovind02Published by GitHub account Akhilgovind02v1.0.1Updated Nov 3, 2026

Indian stock market: NSE/BSE quotes, fundamentals, mutual fund NAV, F&O chains, IPOs. No API keys.

VerifiedSTDIODesktop onlyFinanceData & Analytics

Overview

AI-generated overview

Local MCP server that gives an assistant Indian stock market data: NSE/BSE quotes, fundamentals, mutual fund NAV, F&O chains and IPOs.

What you can do
  • Look up live quotes, 52-week ranges, historical OHLCV and market status for NSE/BSE stocks and indices
  • Search symbols and compare fundamentals of 2-5 stocks side by side
  • Review index metrics, NIFTY 50 gainers and losers, and corporate actions such as dividends and splits
  • Inspect F&O option chains around the ATM strike and list current or upcoming IPOs
  • Search 15,000+ mutual fund schemes, fetch NAV history and details, and compare funds over a period
  • Summarize a portfolio from holdings into current value, P&L and allocation
When to use it
Useful when you want an assistant to answer questions about Indian equities, indices, derivatives or mutual funds, or to analyze a portfolio you describe, without signing up for a data provider.
Requirements
Runs locally over stdio via npx or from source; needs Node.js 22 or newer. No API keys, accounts or environment variables are declared. Network access to free public data sources (Yahoo Finance, NSE, mfapi.in) is required.
Before you install
Data comes from free public sources and may be delayed, incomplete or wrong; quotes are not suitable for live trading decisions. NSE may rate-limit or block heavy usage, and some endpoints fall back to Yahoo. The gainers/losers list uses a built-in NIFTY 50 constituent list that needs manual updates. Portfolio holdings you provide are sent to those third-party data sources. Not financial advice.

Installation

In SourceWeft

  1. Open India Stock Mcp in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

india-stock-mcp

[CI] [npm]

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)

ToolWhat it does
get_quoteLive price, volume, 52-week range for NSE/BSE stocks and indices
get_historicalOHLCV history — daily / weekly / monthly
search_symbolFind stock symbols by company name
get_fundamentalsP/E, EPS, ROE, margins, debt, growth rates
compare_stocks2–5 stocks side by side
get_indexAny NSE index (P/E, P/B, advances/declines) + SENSEX
get_market_statusIs the market open? Session info per segment
get_gainers_losersTop NIFTY 50 movers ranked by % change
get_corporate_actionsDividends, splits, bonuses — per stock or market-wide
get_options_chainF&O chain around ATM: LTP, OI, OI change, IV, volume
get_ipo_listCurrent / upcoming / recently listed IPOs
search_fundsSearch 15,000+ Indian mutual fund schemes
get_fund_navNAV history for a scheme
get_fund_detailsFund house, category, current NAV
compare_funds2–4 funds: NAV + % return over any period
portfolio_summaryHoldings → current value, P&L, allocation breakdown

Requirements

  • Node.js 22+

Setup

Via npm (recommended)

No clone, no build:

Claude Code

bash
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\):

json
{  "mcpServers": {    "india-stock": {      "command": "npx",      "args": ["-y", "india-stock-mcp"]    }  }}

From source

bash
git clone https://github.com/Akhilgovind02/india-stock-mcp.gitcd india-stock-mcpnpm installnpm run buildclaude 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

bash
npm run dev                      # run from TypeScript directlynpx tsx scripts/test-mcp.ts      # end-to-end test of all 16 tools (live data)npx tsx scripts/test-edge.ts     # 24 edge-case assertionsnpm 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

SourceUsed forNotes
Yahoo Finance (yahoo-finance2)Quotes, history, fundamentals, searchPrimary source, may be delayed a few minutes
NSE India (nse-bse-api)Market status, indices, corporate actions, IPOs, option chainsSome NSE endpoints (quote, autocomplete) are no longer publicly accessible — the server falls back to Yahoo automatically
mfapi.inMutual fund NAV and searchFree, occasionally flaky — requests retry once
mfdata.inFund ratings / expense ratioOften unreachable; falls back to mfapi.in

Known limitations

  • get_gainers_losers ranks a built-in NIFTY 50 constituent list (verified June 2026). NSE reconstitutes the index ~2×/year — update NIFTY50_SYMBOLS in src/index.ts when 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

MIT

Source: README.md at commit 6d071f3

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v1.0.1LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts