# India Markets

> India Markets is an open-source MCP server for stock market data. MCP server giving AI agents NSE/BSE quotes, technical signals and valuation data. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Linux, macOS, Windows, Self-hosted
- **Repository:** https://github.com/aarya-mhatre69/india-markets-mcp
- **MCP Registry name:** io.github.Aarya-Mhatre69/india-markets-mcp
- **Categories:** [stock market data](https://ai-powered.com/categories/stock-market-data)
- **Listing updated:** 2026-11-27

## About

Adds Indian equity market data to any MCP-compatible AI client. An agent can look up a ticker from a company name, pull the latest close and 52-week range, and request indicators such as RSI(14), 30-day volatility and a rule-based trend regime.

Fundamentals cover market cap reported in crore rupees, P/E, P/B, ROE, debt-to-equity and dividend yield, along with side-by-side comparisons and median sector peer valuation. Indices like NIFTY, BANKNIFTY and SENSEX are supported directly, and the server returns null for missing values instead of estimating them.

It is aimed at developers and analysts who want an agent to report facts about Indian stocks. Data is sourced through Yahoo Finance, so it can be delayed or rate-limited and is intended for research rather than trading systems.

## Features

- **Ticker name search:** Finds NSE and BSE symbols, indices and ETFs from a company name.
- **Live quote snapshot:** Returns latest close, daily change, 52-week range and volume.
- **Technical signal set:** Computes RSI, volatility, max drawdown, momentum and a trend regime with its rule text.
- **Valuation comparison:** Compares market cap, P/E, P/B, ROE and debt-to-equity across several symbols.
- **Sector peer benchmark:** Shows a large-cap's P/E and P/B against a median of same-sector peers.
- **Read-only tool annotations:** Tools are marked read-only so clients can call them without repeated confirmation.

## Good for

- Checking the current price and 52-week position of an Indian stock inside a chat
- Comparing valuation multiples across companies in the same sector
- Ranking several NSE or BSE symbols by return and drawdown
- Building a facts-only market briefing for a portfolio review

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add india-markets-mcp -- uvx india-markets-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "india-markets-mcp": {
      "command": "uvx",
      "args": [
        "india-markets-mcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "india-markets-mcp": {
      "command": "uvx",
      "args": [
        "india-markets-mcp"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "india-markets-mcp": {
      "command": "uvx",
      "args": [
        "india-markets-mcp"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "india-markets-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "india-markets-mcp"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add india-markets-mcp -- uvx india-markets-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.india-markets-mcp]
command = "uvx"
args = ["india-markets-mcp"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "india-markets-mcp": {
      "command": "uvx",
      "args": [
        "india-markets-mcp"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user india-markets-mcp uvx -- india-markets-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "india-markets-mcp": {
      "command": "uvx",
      "args": [
        "india-markets-mcp"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "india-markets-mcp": {
      "command": "uvx",
      "args": [
        "india-markets-mcp"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "india-markets-mcp": {
      "command": "uvx",
      "args": [
        "india-markets-mcp"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "india-markets-mcp": {
      "command": "uvx",
      "args": [
        "india-markets-mcp"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "india-markets-mcp": {
      "command": "uvx",
      "args": [
        "india-markets-mcp"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "india-markets-mcp": {
      "command": "uvx",
      "args": [
        "india-markets-mcp"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "india-markets-mcp": {
      "command": "uvx",
      "args": [
        "india-markets-mcp"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "india-markets-mcp": {
      "command": "uvx",
      "args": [
        "india-markets-mcp"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 4 of 7 tools read data; 3 names don't say. From the server's own tool labels and tool names; not verified by us.

- `search_symbol` (name suggests: reads): Find a ticker from a company name across NSE/BSE equities, indices and ETFs.
- `get_quote` (name suggests: reads): Latest close, daily change, 52-week range, volume.
- `get_signals` (name suggests: reads): RSI(14), 30-day volatility, max drawdown, 12-1 momentum, rule-based trend regime.
- `compare_symbols`: Rank 2-10 symbols by return, with volatility and drawdown.
- `get_fundamentals` (name suggests: reads): Market cap in crore, P/E, P/B, ROE, debt/equity, dividend yield, sector.
- `compare_fundamentals`: Side-by-side valuation of 2-10 symbols, cheapest P/E first.
- `sector_peers`: Large-cap vs hand-picked same-sector peers median P/E and P/B.

## FAQ

### Does India Markets need an API key?

No API keys are required; it runs over stdio after installing from PyPI.

### How is India Markets installed?

Through uvx or pip, using the india-markets-mcp package with a command entry in the MCP client config.

### What happens when data is missing?

Missing fundamentals or values are returned as null rather than guessed.

### Where does the market data come from?

It uses the unofficial yfinance library, which pulls data from Yahoo Finance.

### Is India Markets free?

Yes. India Markets is open source, so you can use and self-host it for free.

### How do I add India Markets to Claude Code?

Run this command in your terminal: claude mcp add india-markets-mcp -- uvx india-markets-mcp

### What are the best alternatives to India Markets?

The closest alternatives to India Markets are Indian Stock Exchange, Indian NSE Stock Insights, India Stock MCP, Portfolio Signals and FinStack MCP.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Indian Stock Exchange](https://ai-powered.com/mcp/indian-stock-exchange): Indian Stock Exchange is an MCP server for finance and payments.
- [Indian NSE Stock Insights](https://ai-powered.com/mcp/indian-nse-stock-insights): Indian NSE Stock Insights is an open-source MCP server for finance and payments.
- [India Stock MCP](https://ai-powered.com/mcp/india-stock-mcp): India Stock MCP is an open-source MCP server for finance and payments.
- [Portfolio Signals](https://ai-powered.com/mcp/portfolio-signals): Portfolio Signals is an open-source MCP server for finance and payments.
- [FinStack MCP](https://ai-powered.com/mcp/finstack-mcp): FinStack MCP is an open-source MCP server for stock market data.
- [Stock Market Data MCP](https://ai-powered.com/mcp/stock-market-data-mcp): Stock Market Data MCP is a freemium MCP server for finance and payments.
- [TejHQ Indian Markets](https://ai-powered.com/mcp/tejhq-indian-markets): TejHQ Indian Markets is a freemium MCP server for stock market data.
- [Technical](https://ai-powered.com/mcp/technical): Technical is an MCP server for stock market data.

---
Source: https://ai-powered.com/mcp/india-markets
