indian-markets-mcp
This server provides read-only access to Indian market and regulatory data from official sources: NSE end-of-day data, NIFTY index constituents, AMFI mutual fund data, and a sample of SEBI enforcement orders.
nse_eod_quote — Get settled end-of-day OHLCV for an NSE stock (e.g. RELIANCE), optionally for a specific trade date; defaults to the latest published trading day.
nse_eod_history — Get a daily OHLCV series for one NSE symbol over a date range (capped at 120 calendar days).
list_nse_indices — List the NSE/NIFTY indices for which constituent data is available.
nse_index_constituents — Get constituent stocks for an index such as 'NIFTY 50' or 'NIFTY BANK'; weights are not available.
mf_search_schemes — Search ~14,000 Indian mutual fund schemes by name, AMC, or category; returns scheme codes, latest NAV, and metadata.
mf_scheme — Get latest NAV and metadata for a specific AMFI scheme code.
mf_nav_history — Get historical NAV series for a mutual fund, optionally bounded by start/end dates.
sebi_search_orders — Search a local sample of SEBI enforcement orders by text, entity, or year; the corpus is only a sample, so absence of results does not prove no orders exist.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@indian-markets-mcp Get the NSE end-of-day quote for Infosys"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
indian-markets-mcp
An MCP server exposing Indian market and regulatory data from official, openly published sources — NSE's bhavcopy archive, NIFTY Indices constituent files, AMFI's industry NAV file, and a local SEBI enforcement-order corpus.
Built against MCP Python SDK v2 (mcp >= 2.0.0).
The server's real tools/list response, fetched in-process with the MCP SDK client (no upstream calls). Regenerate: python scripts/render_tool_list.py.
Why this one exists
There are already several Indian-market MCP servers (see
docs/SURVEY.md for the full landscape review). Almost all of
them wrap either yfinance or a paid third-party API, and they compete on live
quote coverage.
This server deliberately does not compete there. It covers what the others do not: official primary sources with a clean terms position, plus regulatory data. Where a source will not permit automated access, this server says so and omits the tool rather than working around the block.
Related MCP server: mftool-mcp
What it does and does not cover
Tool | Source | Status |
| NSE bhavcopy archive | Working — end-of-day only |
| NSE bhavcopy archive | Working — capped at 120 days |
| static list | Working |
| niftyindices.com CSV | Working — no weights |
| AMFI | Working — ~14,200 schemes |
| AMFI | Working |
| mfapi.in | Working |
| local corpus | Working — 25-order sample |
Deliberately not implemented, with reasons:
Live/intraday quotes.
nseindia.com/api/quote-equityreturns403 Access Deniedto non-browser clients (verified 2026-08-06). Reaching it means forging browser headers to defeat an access control the exchange put there on purpose. Not done.Index constituent weights. NSE publishes weights only in factsheet PDFs and a paid data product. The free constituent CSVs carry no weight column, so the tool reports
weights_available: falserather than estimating.Corporate actions (dividends, splits, bonuses). The spec asked for these. No free source was found that serves them to an automated client under terms that permit it — NSE's corporate-actions endpoint sits behind the same 403. Not implemented rather than half-implemented. See docs/SOURCES.md.
Install
Not yet published to PyPI. From a checkout:
git clone https://github.com/siddharthgaur1/indian-markets-mcp
cd indian-markets-mcp
python -m venv .venv && .venv/bin/pip install -e .Claude Desktop configuration
{
"mcpServers": {
"indian-markets": {
"command": "/absolute/path/to/indian-markets-mcp/.venv/bin/indian-markets-mcp"
}
}
}On Windows use .venv\\Scripts\\indian-markets-mcp.exe.
The SEBI tool additionally needs a corpus; point it at one with:
"env": { "INDIAN_MARKETS_MCP_SEBI_DB": "/path/to/sebi_orders.db" }Every other tool works with no API keys and no configuration.
Behaviour guarantees
No fabricated data. A dead upstream raises a clear error. Missing values stay
null; they are never coerced to zero.Caching. On-disk SQLite at
~/.cache/indian-markets-mcp/. Settled bhavcopies are cached permanently because they are immutable.Rate limiting. One-second minimum interval per host, enforced centrally, with exponential backoff. Not left to the caller.
Stale-cache fallback. If an upstream is down and a stale cached copy exists, it is served rather than failing — and never presented as live.
Tests
.venv/bin/pytest # offline tests only (default)
.venv/bin/pytest -m live # additionally hits real upstream sourcesNetwork-dependent tests are marked live and deselected by default, so CI does
not depend on NSE being reachable.
Licence
MIT. Data served by this tool belongs to its publishers (NSE, NIFTY Indices, AMFI, SEBI) and is subject to their terms — see docs/SOURCES.md.
Available Tools
8 toolslist_nse_indicesList NSE indicesARead-onlyIdempotent
Names of the NSE/NIFTY indices whose constituents this server can return.
Inputs: no named parameters.
mf_schemeMutual fund scheme detailARead-onlyIdempotent
Latest NAV and metadata for one AMFI scheme code.
Inputs: scheme_code (required).
mf_search_schemesSearch mutual fund schemesARead-onlyIdempotent
Search all ~14,000 Indian mutual fund schemes by name, AMC or category, from AMFI's daily industry NAV file. Returns scheme code, name, AMC, category, ISINs and latest NAV. Use the returned scheme_code with mf_nav_history. A scheme's NAV may be null when it did not report that day.
Inputs: query (required), limit.
nse_eod_historyNSE end-of-day historyARead-onlyIdempotent
Daily OHLCV series for one NSE symbol over a date range. Each day is a separate archive file, so the range is capped at 120 calendar days; for multi-year history use a pre-built warehouse instead. Non-trading days are absent from the series and counted in days_unavailable.
Inputs: end (required), start (required), symbol (required).
nse_eod_quoteNSE end-of-day quoteARead-onlyIdempotent
End-of-day OHLCV for an NSE-listed stock, from NSE's official published bhavcopy archive. This is SETTLED END-OF-DAY data, never a live intraday price — do not present it as the current price. Omit trade_date for the most recent published trading day. Returns open/high/low/close, previous close, volume, turnover and trade count.
Inputs: symbol (required), trade_date.
nse_index_constituentsNSE index constituentsARead-onlyIdempotent
Constituent stocks of an NSE index (e.g. 'NIFTY 50', 'NIFTY BANK'), from the CSV that NIFTY Indices publishes. Returns company name, industry, symbol, series and ISIN. CONSTITUENT WEIGHTS ARE NOT AVAILABLE — NSE publishes them only in factsheet PDFs and a paid product, so do not infer or estimate them.
Inputs: index (required).
sebi_search_ordersSearch SEBI enforcement ordersARead-onlyIdempotent
Search a LOCAL SAMPLE of SEBI enforcement orders by text, entity or year. IMPORTANT: this corpus is a small sample (see corpus_size in the response), NOT SEBI's complete enforcement archive. If a search returns nothing, say that the sample contains no match — never conclude that SEBI has issued no order against the entity.
Inputs: year, limit, query, entity.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool targets a distinct resource and action: single-day NSE quote vs. history, index listing vs. constituents, mutual fund search vs. latest scheme data vs. historical NAV, and SEBI orders. The descriptions clearly separate even the closest pairs, so an agent should not confuse them.
All names are readable snake_case, but conventions are mixed: some use verb-first forms like list_nse_indices, mf_search_schemes, and sebi_search_orders, while others are noun-first like nse_eod_quote, nse_index_constituents, and mf_nav_history. The prefix placement is also inconsistent (nse_ vs. list_nse_).
Eight tools is well-scoped for a financial data server covering NSE equities, indices, mutual funds, and SEBI sample data. Each tool provides a meaningful capability with no obvious redundancy or padding.
The surface covers core EOD equity, index constituents, mutual fund NAV, and SEBI order search workflows, but there are notable gaps: no index quote/history tool, no way to search/list NSE symbols, and no mutual fund category-level or performance comparisons. SEBI search is intentionally limited to a sample, which is documented but still restricts coverage.
Maintenance
Related MCP Connectors
Hosted MCP server for Indian NSE/BSE stock research: 59 tools for quotes, financials and ratios, peers, shareholding and pledge, filings with extracted facts, screens, F&O and FII/DII context. Source and freshness on every answer; no buy/sell calls.
Hosted MCP server for Indian market quotes, option-chain Greeks and multi-broker telemetry.
A Model Context Protocol server exposing real-time and historical Colombo Stock Exchange (CSE) data to AI agents and LLM applications. Provides quotes and OHLCV price history, full financial statements (income, balance sheet, cash flow), pre-computed technicals (moving averages, RS ratings, volume signals), macroeconomic indicators, corporate actions, and rule-based screening across CSE stocks and sector indices, everything needed to build CSE-aware trading assistants, research tools, and market-analysis agents. This is the official MCP server of www.ceyloncharts.com
Official Intrinio MCP server. US stock prices, options and fundamentals for AI agents.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that provides comprehensive Indian stock market data from the NSE and BSE, including live quotes, historical trends, and fundamental analysis. Users can compare stock performance, track major indices, and access financial statements without the need for an API key.2MIT
- AlicenseAqualityBmaintenanceMCP Server for publicly available real-time Indian Mutual Funds data128MIT
- AlicenseAqualityDmaintenanceMCP server for Indian stock market data. Provides 16 tools for quotes, history, fundamentals, mutual funds, indices, corporate actions, options, IPOs, and portfolio analysis.1690 npm5MIT
- AlicenseNot gradedqualityDmaintenanceMCP server that provides access to screener.in financial data for Indian stocks, enabling queries for company info, financials, ratios, quarterly results, shareholding, and stock screening.MIT