india-markets-mcp
An MCP server for Indian equities and indices that provides quotes, technical signals, and symbol comparisons using public Yahoo Finance data.
Get latest close, daily change, 52-week range, and volume for a symbol such as RELIANCE, TCS, or NIFTY.
Compute RSI(14), 30-day volatility, max drawdown, 12-1 momentum, and a transparent rule-based trend regime with the rule text.
Rank 2–10 symbols by return over selectable periods, with volatility and drawdown metrics.
Resolve NSE symbols, pass through .BO/.NS and ^NSEI symbols, and map NIFTY/BANKNIFTY/SENSEX to indices.
Handle upstream failures explicitly with caching and retries.
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., "@india-markets-mcp what's the RSI and trend regime for RELIANCE?"
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.
india-markets-mcp
An MCP server that lets AI agents (Claude, Cursor, any MCP client) look up Indian equities and get simple, transparent technical signals. Built on public data via yfinance — no API keys.
Not investment advice. Data comes from Yahoo Finance and can be delayed or wrong.
Tools
Tool | What it does |
| Latest close, daily change, 52-week range, volume |
| RSI(14), 30-day volatility, max drawdown, 12-1 momentum, and a rule-based trend regime |
| Rank 2-10 symbols by return, with volatility and drawdown |
Symbols: RELIANCE → RELIANCE.NS; TCS.BO and ^NSEI pass through; NIFTY, BANKNIFTY, SENSEX map to indices.
The regime label is deliberately a plain rule (close vs the 50/200-day averages and the 200-day slope) and the output includes the rule text, so an agent can explain why a label was chosen.
Related MCP server: MCP YFinance Stock Server
Reliability notes
Data comes from Yahoo Finance through the unofficial yfinance library, which can rate-limit or break without notice.
To be a good citizen the server caches each (symbol, period) for 5 minutes and retries failures 3 times with backoff.
Errors are explicit: SymbolNotFoundError for unknown symbols, DataSourceError when the upstream is failing.
Install and run
pip install -e .
india-markets-mcp # starts the server over stdioClaude Desktop / Claude Code config:
{
"mcpServers": {
"india-markets": { "command": "india-markets-mcp" }
}
}Develop
pip install -e ".[dev]"
pytestIndicator and tool logic is pure pandas (indicators.py, core.py) and tested offline; only data.py touches the network.
Roadmap
Fundamentals (P/E, P/B) and sector comparison
Optional alternative data sources behind the same interface
Caching to be kinder to the upstream API
License
MIT
Available Tools
3 toolscompare_symbolsCompare SymbolsA
Rank 2-10 symbols by return over a period (1mo, 6mo, 1y, 2y, 5y), with volatility and drawdown.
Inputs: symbols (required), period. Returns: result
get_quoteGet QuoteB
Latest close, daily change and 52-week range for an NSE symbol (e.g. RELIANCE, TCS, NIFTY).
Inputs: symbol (required). Returns: object
get_signalsGet SignalsC
RSI, volatility, drawdown, 12-1 momentum and a rule-based trend regime for a symbol.
Inputs: symbol (required). Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose: single-symbol quote data, technical/statistical signals, and multi-symbol comparison. An agent can easily select the right tool based on whether it needs current pricing, derived indicators, or cross-symbol ranking.
All tool names follow a consistent snake_case verb_noun pattern: get_quote, get_signals, compare_symbols. The verbs are appropriate and predictable for their actions.
Three tools is on the lean side but appropriate for a focused market-data analytics server. Each tool earns its place, though additional utility tools may be expected for broader workflows.
The surface covers core quote retrieval, signal analysis, and relative comparison well. Minor gaps exist around symbol discovery, historical time-series access, or broader market/index coverage, but the stated analytics purpose is largely served.
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.
Yahoo Finance stock quotes and multi-ticker comparison as agent tools.
Yahoo Finance for AI agents: quotes, price history, options with Greeks, financials, news, movers.
Free public stock research, market context, and comparisons for AI agents.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides access to real-time and historical Indian stock data via Yahoo Finance API, enabling local LLMs to retrieve stock information through MCP-compatible agents like Claude Desktop and Cursor.2-
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to retrieve real-time stock data, manage watchlists, and perform comprehensive technical analysis using Yahoo Finance API. Provides 18+ tools for stock price tracking, trend analysis, volatility assessment, and financial indicators through MCP integration.MIT
- FlicenseAqualityDmaintenanceEnables real-time and historical Indian stock market data retrieval, including prices, news, recommendations, and top gainers/losers.11-
- AlicenseAqualityDmaintenanceEnables LLM clients to perform fundamental analysis of NSE/BSE-listed Indian stocks, covering financial statements, ratios, valuation, screening, and investment memos using Yahoo Finance data.281MIT