NSE Ticker MCP Server is an MCP server that provides access to National Stock Exchange (NSE) market data using the Upstox API. It enables financial analysts, algorithmic traders, and software developers to retrieve historical price action and market metrics directly within AI assistant environments like Claude Desktop. By interfacing with the Upstox API, the server exposes tools to query historical OHLCV (Open, High, Low, Close, Volume) candle data for Indian equities across multiple granularities. Users can configure time intervals including minute, 30-minute, daily, weekly, and monthly timeframes over custom date spans. The server relies on a preconfigured CSV mapping of NSE symbols and instrument keys, alongside built-in error handling and input validation for stock identifiers and date formats. This setup allows Large Language Models to evaluate stock performance, conduct technical analysis, and process financial context without requiring manual web searches or external charting interfaces.
Category: Data & Analytics
Tags: market data, nse, stocks, trading, upstox
sh git clone https://github.com/sougatabh/nse-ticker-mcp.git cd nse-ticker-mcp 2. Create and activate a Python 3.11+ virtual environment: sh python -m venv .venv source .venv/bin/activate 3. Install the dependencies: sh pip install -e . 4. Open your Claude Desktop configuration file (code ~/Library/Application\ Support/Claude/claude_desktop_config.json on macOS) and add the server definition: json { "mcpServers": { "nse-ticker": { "command": "python", "args": [ "--directory", "/ABSOLUTE/PATH/TO/nse-ticker-mcp", "ticker.py" ] } } } 5. Replace /ABSOLUTE/PATH/TO/nse-ticker-mcp with your actual project path and restart Claude Desktop.Part of MCP Servers
NSE Ticker MCP Server exposes tools to fetch historical OHLCV data for National Stock Exchange stocks using the Upstox API. It supports queries across multiple intervals, including minute, 30-minute, day, week, and month, with customizable start and end dates.
It is documented for integration with Claude for Desktop by registering the Python executable and script path in the claude_desktop_config.json file. It can also be inspected and tested locally using the standard MCP Inspector utility.
The server requires Python version 3.11 or higher. It relies on packages specified in pyproject.toml, including mcp, pandas, httpx, and pydantic, along with stock symbol definitions located in configs/NSE.csv.
Yes, NSE Ticker MCP Server is open source and released under the MIT License. Its code repository is publicly available on GitHub for modification, contributions, and personal use.