Stock SDK
Market data for China A-shares, Hong Kong and US stocks, funds, futures and options over MCP
Market data from the National Stock Exchange of India: quotes, history, option chains and reports
By Hi! ImCodeMan TypeScript Local · stdio Finance and paymentsData and analytics
55 popularity score ★ 293 ↓ 546/wk
Opens the app, which asks before it adds the server.
claude mcp add stock-nse-india -- npx -y stock-nse-india mcp{
"mcpServers": {
"stock-nse-india": {
"command": "npx",
"args": [
"-y",
"stock-nse-india",
"mcp"
]
}
}
}{
"mcpServers": {
"stock-nse-india": {
"command": "npx",
"args": [
"-y",
"stock-nse-india",
"mcp"
]
}
}
}{
"servers": {
"stock-nse-india": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"stock-nse-india",
"mcp"
]
}
}
}[mcp_servers.stock-nse-india]
command = "npx"
args = ["-y", "stock-nse-india", "mcp"]gemini mcp add --scope user stock-nse-india npx -- -y stock-nse-india mcpNODE_ENV |
Optional: Set to production in the README's example config; not needed for the server to run. |
|---|
stock-nse-india is an unofficial Node.js package that pulls equity, index, derivatives and market-wide data from the public website of the National Stock Exchange of India (NSE). Besides its library, REST/GraphQL API server and command line tool, the package ships a stdio MCP server, started with the `mcp` subcommand of its `nseindia` program.
Through the server an assistant can look up the list of listed symbols, a stock's price, trade and corporate details, intraday and historical prices, index data, option chains for indices, equities and commodities, market status, turnover and pre-open data, NSE circulars and merged daily reports, trading and clearing holidays, top gainers and losers and the most active stocks. One tool computes technical indicators (SMA, EMA, RSI, Bollinger Bands) on the fly, by default over 200 days of history with a 14-day RSI and a 20-day band; two others read OHLC candles from NSE's charting service, at 5-minute intraday intervals unless asked for daily bars or another interval.
The README counts 30 tools, but the tool file at version 1.4.0 (src/mcp/mcp-tools.ts) registers 32: the two charting tools, get_equity_chart_historical_data and get_equity_chart_symbol_info, are not in that count. Every tool only reads; nothing places orders or touches a trading account.
| Runtime | Node.js 18+ |
|---|
Node.js with npx. The README asks for Node.js 18 or later, but package.json at version 1.4.0 declares "engines": node >=20, so Node.js 20+ is the safe choice. Network access to nseindia.com and charting.nseindia.com. No NSE account or API key is needed.
Unofficial: it reads NSE's public website rather than a supported API, so tools can break when NSE changes its pages or blocks the requests. Covers NSE India only (no BSE or other exchanges) and only reads data; it cannot trade. The README's own config runs `npx stock-nse-india mcp` without `-y`; the command here adds it so npx does not wait for an install prompt. At startup the `mcp` command (src/cli/index.ts) prints status lines with console.log to standard output before the protocol starts, which a strict client may report as invalid messages.
Suits developers, traders and analysts who want an assistant to look up Indian stock, index and option-chain data, or run quick indicator checks, without an account or key. It runs locally and only reads public data. Pick something else if you need an exchange-supported or licensed data feed with uptime guarantees, data from markets outside NSE, or a server that can place orders through a broker.
get_all_stock_symbolsget_equity_detailsget_equity_trade_infoget_equity_corporate_infoget_equity_intraday_dataget_equity_historical_dataget_equity_seriesget_equity_stock_indicesget_index_intraday_dataget_index_option_chainget_index_option_chain_contract_infoget_equity_option_chainget_commodity_option_chainget_glossaryget_trading_holidaysget_clearing_holidaysget_market_statusget_market_turnoverget_all_indicesget_index_namesget_circularsget_latest_circularsget_equity_masterget_pre_open_market_dataget_merged_daily_reports_capitalget_merged_daily_reports_derivativesget_merged_daily_reports_debtget_equity_technical_indicatorsget_gainers_and_losers_by_indexget_most_active_equitiesget_equity_chart_historical_dataget_equity_chart_symbol_info