India Market MCP
Comprehensive MCP server for Indian stock market with 60 tools covering NSE/BSE, derivatives, mutual funds, technicals, and more, requiring no API keys. Enables users to access live market data, analyze indicators, and manage investments through natural language.
README
India Market MCP
Comprehensive MCP server for the Indian stock market — 60 tools covering NSE/BSE, F&O, Mutual Funds, Technicals, ETFs, Commodities, Currencies, Screeners, and more.
Built by combining the best features from 5 open-source Indian market MCP servers. No API keys required.
Features
| Module | Tools | What It Covers |
|---|---|---|
| Stocks | 11 | Live quotes, history, financials, peers, corporate actions, peers |
| Derivatives | 15 | Option chain, Greeks, max pain, PCR, OI analysis, strategies, margin |
| Indices | 3 | All NSE indices, constituents, sector performance |
| Mutual Funds | 8 | 47,000+ AMFI schemes, NAV history, comparison, SIP/XIRR calculators |
| Market | 11 | FII/DII, IPOs, market breadth, block/bulk deals, dividends, holidays |
| Technicals | 3 | SMA, EMA, RSI, MACD, Bollinger Bands, support/resistance, candlestick |
| Additional | 9 | ETFs, commodities, currencies, sovereign gold bonds, stock screener |
Install
cd india-market-mcp
pip install -e .
Usage
With Claude Desktop / opencode (stdio)
Add to your MCP config:
{
"mcpServers": {
"india-market": {
"command": "python",
"args": ["-m", "src.server"],
"cwd": "D:\\Default Project\\nse-mcp-servers\\india-market-mcp"
}
}
}
With opencode (CLI)
opencode mcp add india-market -- python -m src.server
Development / Testing
mcp dev src/server.py
Tool List
Stocks
get_stock_quote— Live quote with price, volume, P/E, 52-week rangesearch_stocks— Search NSE by name or symbolget_stock_history— Historical OHLCV data (1d/1wk/1mo intervals)get_top_gainers_losers— NSE top movers with % changeget_52_week_high_low— Stocks near 52-week extremesget_corporate_actions— Dividends, splits, bonusesget_stock_financials— Revenue, profit, margins, balance sheetget_stock_peers— Compare against sector peersget_market_cap_ranking— Rank stocks by market capget_stock_returns— 1M, 3M, 6M, 1Y, 3Y, 5Y returnsget_delivery_volume— Delivery vs intraday volume analysis
Derivatives
get_option_chain— Full option chain for any F&O symbolget_expiry_dates— Available expiry datesget_spot_price— Current underlying pricecalculate_greeks— Black-Scholes Greeks calculatorcalculate_iv— Implied volatility from market priceget_max_pain— Max pain strike priceget_pcr— Put-Call Ratio by OI and volumeget_oi_analysis— Open interest build-up / unwindingget_top_oi_gainers— Largest OI change strikesbuild_strategy— Iron condor, straddle, strangle, butterfly, spreadcalculate_margin— Expected margin for F&O positionsget_option_premium— Theoretical premium from Black-Scholesget_atm_straddle_premium— ATM straddle premium and IVget_itm_otm_options— Classify strikes as ITM/ATM/OTMcalculate_position_size— Kelly Criterion / risk-based sizing
Indices
get_all_indices— All NSE indices with live valuesget_index_constituents— All stocks in an index with pricesget_sector_performance— Sectoral indices ranked by performance
Mutual Funds
search_mutual_funds— Search 47,000+ AMFI schemesget_mf_nav— Latest NAVget_mf_history— Full NAV historyget_mf_details— Fund house, category, AUM, expense ratiocompare_mf— Side-by-side comparison of 2–4 fundsanalyze_mf— Risk metrics, alpha, Sharpe, Sortinocalculate_sip— SIP future value calculatorcalculate_xirr— XIRR from irregular cashflows
Market
get_market_status— Is NSE open/closed/pre-marketget_fii_dii_data— Foreign & domestic institutional flowsget_advances_declines— Market breadthget_upcoming_ipos— Current & upcoming IPOsget_past_ipos— Recently listed IPO performanceget_market_announcements— NSE announcements & circularsget_top_market_news— Market news headlinesget_block_deals— Block deal activityget_bulk_deals— Bulk deal activityget_dividend_calendar— Upcoming ex-dividend datesget_market_holidays— NSE trading holidays
Technicals
get_technical_indicators— SMA, EMA, RSI, MACD, Bollinger Bandsget_support_resistance— Pivot point S/R levelsdetect_candlestick_patterns— Doji, hammer, engulfing, etc.
Additional
get_all_etfs— NSE ETFs with live pricesget_etf_quote— Detailed ETF quoteget_commodity_price— Gold, Silver, Crude, Natural Gasget_all_commodity_prices— All commodities at onceget_currency_rate— USD/INR, EUR/INR, GBP/INR, JPY/INRget_all_currency_rates— All major pairsget_sgb_prices— Sovereign Gold Bond live pricesget_stock_screener— Multi-criteria stock screeningget_sector_stocks— All stocks in a sector
Data Sources
- NSE India — Live market data, option chains, IPOs, FII/DII, announcements
- Yahoo Finance — International data, technical indicators, commodities, currencies
- AMFI — 47,000+ mutual fund schemes and NAV history
Caching
Results are cached to disk (.cache/india-market-mcp/) with TTLs ranging from 30s (live data) to 1h (static data). Cache size limit: 500MB.
Rate Limiting
NSE API calls are rate-limited to 1 request every 350ms with automatic retry on 401/403 responses and session re-initialization.
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。