# indian-stocks-mcp

indian-stocks-mcp connects Claude Code to 6+ years of minute-level Indian market data and runs strategy backtests with local regulatory costs.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · 550 installs · ★ 4 repo stars
- Author: vishalmdi
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/vishalmdi/indian-stocks-mcp
- Updated: 2026-05-25
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/indian-stocks-mcp

## What it does

The server provides direct access to over 187M minute-level OHLCV candles covering 136 NSE index series and 117 NIFTY 100 equities. The underlying database refreshes twice every week, specifically on Mondays and Thursdays. All recorded timestamps use the `Asia/Kolkata` time zone.

Built-in backtesting covers eight distinct logic models, such as moving average crossovers, breakout levels, and Bollinger Bands. Simulations calculate realistic performance by factoring in Indian transaction expenses, including STT, brokerage fees, SEBI charges, and slippage. You can also evaluate up to ten rule sets side by side.

Every exposed tool is strictly read-only. The server returns raw market candles and backtest statistics, so executing live orders on an exchange remains entirely out of scope.

## Requirements
- Remote server: `https://indian-stocks-mcp--vishalmdi.run.tools`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http indian-stocks-mcp https://indian-stocks-mcp--vishalmdi.run.tools
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add indian-stocks-mcp --url https://indian-stocks-mcp--vishalmdi.run.tools
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "indian-stocks-mcp": {
            "url": "https://indian-stocks-mcp--vishalmdi.run.tools"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "indian-stocks-mcp": {
            "type": "http",
            "url": "https://indian-stocks-mcp--vishalmdi.run.tools"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http indian-stocks-mcp https://indian-stocks-mcp--vishalmdi.run.tools
```

## When to use it
- fetch granular OHLCV candles for NIFTY 100 equities and NSE indices
- backtest trading setups with realistic Indian exchange taxes and slippage
- compare metrics across multiple parameter combinations side by side
- analyze historical intraday price action during major macro events

## Example prompts
- Run an EMA crossover backtest on 1-minute `INFY` candles for 2023 with trading costs included.
- Fetch 15-minute price bars for `NIFTY BANK` during the first week of March 2020.
- Rank five different SMA window settings on `RELIANCE` by their profit factor and drawdown.

## Similar
- [Tapetide - Indian Stock Market MCP](https://affpapa.org/en/nevibecode/mcp/tapetide-indian-stock-market-mcp.md) — MCP server · ★ 151 repo stars
- [backtest-lab](https://affpapa.org/en/nevibecode/skills/backtest-lab.md) — skill · ★ 69 repo stars
- [breakout-planner](https://affpapa.org/en/nevibecode/skills/breakout-planner.md) — skill · ★ 69 repo stars
- [stockbee-20pct-study](https://affpapa.org/en/nevibecode/skills/stockbee-20pct-study.md) — skill · 2900 installs
- [dhanhq](https://affpapa.org/en/nevibecode/skills/dhanhq.md) — skill · 1500 installs
- [market-data](https://affpapa.org/en/nevibecode/mcp/market-data.md) — MCP server

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
