Skip to main content
Glama
Indian Stock Exchange MCP Server

Indian Stock Exchange MCP Server

by prakharv-ops

Indian Stock Exchange MCP Server

An MCP server that gives Claude (and any MCP client) live access to the Indian market: NSE/BSE equities, fundamentals, analyst targets, IPOs, mutual funds and commodities. Ask things like:

  • "Compare TCS, Infosys and Wipro on valuation, margins and momentum."

  • "Give me a research note on Reliance: financials, shareholding changes, analyst targets and recent filings."

  • "What's moving the market today? Any IPOs opening this week?"

  • "Shortlist the best mid-cap mutual funds by 3-year return and compare the top three."

Data comes from the Indian Stock Market API.

Demo: the compare-stocks tool returning TCS, Infosys and Wipro side by side

Real output from the compare-stocks tool. Regenerate it with node scripts/capture-demo.mjs && scripts/render-demo.sh.

Features

  • 27 tools, all read-only and annotated as such, with compact, analysis-ready output instead of raw API dumps

  • One-call stock snapshot: price, ranges, valuation, profitability, growth, leverage, returns, moving-average trend, analyst consensus and peers

  • Fundamentals: multi-year P&L, balance sheet, cash flow, ratios, shareholding pattern, analyst estimates and price targets

  • Market: gainers/losers, most active, price shockers, 52-week highs/lows, news, IPO calendar, commodity futures

  • Mutual funds: search, browse by category and return, full scheme details

  • 5 prompts (analyze-stock, compare-stocks, market-briefing, dividend-and-events, mutual-fund-picks) and 3 resources (news, IPO calendar, ise://stock/{name})

  • Reliable client: request timeout, retry with backoff on 429/5xx, in-memory TTL cache, in-flight de-duplication, clear error messages, and the API key is never exposed in output

  • stdio transport for desktop clients and stateless Streamable HTTP for remote use

Related MCP server: EODHD MCP Server

Tools

Area

Tool

What it does

Stocks

search-stocks

Resolve a name to NSE/BSE codes and ISIN

get-stock-snapshot

Condensed overview of a stock (start here)

get-stock-price

Latest price, day range, 52-week range

get-stock-details

Profile, key metrics, shareholding, actions, news by section

get-stock-history

Price, P/E, P/B, margins or EV history over 1m to max

compare-stocks

Side-by-side comparison of 2-5 stocks

get-peers

Peer companies with valuation and returns

get-stock-recommendations

Analyst rating breakdown and trend

Fundamentals

get-financial-statements

Quarterly/annual results, balance sheet, cash flow, ratios

get-shareholding-pattern

Promoter/FII/DII/public holding over time

get-analyst-estimates

Consensus forecasts or actuals (EPS, sales, net income, EBITDA, ROE, ...)

get-price-target

Mean/high/low targets and consensus recommendation

get-corporate-actions

Dividends, bonus, splits, rights, board meetings

get-announcements

Recent exchange filings with links

Market

get-market-overview

Movers, activity, shockers and headlines in one call

get-top-gainers / get-top-losers

Today's biggest movers

get-most-active

Highest-volume stocks (NSE or BSE)

get-price-shockers

Unusual price moves (NSE or BSE)

get-52-week-highs-lows

Stocks at 52-week extremes

get-news / get-market-news

Latest headlines with summaries

get-ipos

Upcoming, active, closed and listed IPOs

get-commodities

MCX futures with open-interest signal

Mutual funds

search-mutual-funds

Find schemes by name

get-mutual-fund-details

NAV, returns, risk, expense ratio, holdings

list-mutual-funds

Browse and rank by category and return period

Setup

Requires Node.js 20+ and an API key from indianapi.in.

git clone <this repo> && cd Indian-Stock-Exchange-MCP
cp .env.example .env        # then set ISE_API_KEY
npm install
npm run build

The key is read from the ISE_API_KEY environment variable, .env, or src/.env. Never commit it; all three files are git-ignored.

Claude Desktop

Settings > Developer > Edit Config:

{
  "mcpServers": {
    "indian-stock-exchange": {
      "command": "node",
      "args": ["/absolute/path/to/Indian-Stock-Exchange-MCP/build/index.js"],
      "env": { "ISE_API_KEY": "your_api_key_here" }
    }
  }
}

Restart Claude Desktop.

Claude Code

claude mcp add indian-stock-exchange --env ISE_API_KEY=your_api_key_here -- node /absolute/path/to/build/index.js

HTTP mode

npm run start:http          # http://127.0.0.1:3000/mcp  (health check: /health)

Stateless Streamable HTTP, bound to localhost by default (HOST and PORT override). It has no authentication, so put it behind a reverse proxy with auth before exposing it beyond your machine.

Development

npm test         # build + unit tests (mocked HTTP, no key needed)
npm run smoke    # calls every tool against the live API (needs ISE_API_KEY)
src/
  index.ts          entry point: stdio or --http
  server.ts         builds the McpServer and registers everything
  client.ts         API client: auth, timeout, retry, cache
  tools/            stocks, fundamentals, market, funds
  prompts.ts        reusable analysis prompts
  resources.ts      news, IPO and per-stock resources

Notes

  • Amounts are in INR; market caps are in crore.

  • get-top-gainers/get-top-losers come from the API's trending list, which is BSE-listed; use get-price-shockers with exchange: NSE for NSE.

  • Responses are cached for 60 seconds by default (ISE_CACHE_TTL_MS); history and fundamentals for longer.

  • This server provides information, not investment advice.

License

MIT

Available Tools

27 tools
compare-stocksCompare stocksA
Read-onlyIdempotent

Side-by-side comparison of 2-5 stocks on price, valuation, profitability, growth, risk and analyst views.

Inputs: names (required).

get-52-week-highs-lows52-week highs and lowsC
Read-onlyIdempotent

Stocks trading at their 52-week high or low.

Inputs: type, limit, exchange.

get-analyst-estimatesAnalyst estimatesB
Read-onlyIdempotent

Consensus forecasts or reported actuals for a financial measure. Measures: EPS (Earnings per share), SAL (Sales / revenue), NET (Net income), EBI (EBIT), EBT (EBITDA), DPS (Dividend per share), CPS (Cash flow per share), CPX (Capex), GPS (Gross profit per share), GRM (Gross margin), NAV (Net asset value), NDT (Net debt), PRE (Pre-tax profit), ROA (Return on assets), ROE (Return on equity).

Inputs: symbol (required), age, measure, data_type, +1 more.

get-announcementsCompany announcementsB
Read-onlyIdempotent

Recent exchange filings and announcements (BSE) for a company, with links to the PDFs.

Inputs: name (required), limit.

get-commoditiesCommodity futuresB
Read-onlyIdempotent

Commodity futures and options quotes (MCX) with open interest and buildup signal. Optionally filter by product, e.g. 'GOLD' or 'CRUDEOIL'.

Inputs: limit, product.

get-corporate-actionsCorporate actionsA
Read-onlyIdempotent

Dividends, bonus, splits, rights issues and board meetings for a company, most recent first.

Inputs: name (required), limit.

get-financial-statementsFinancial statementsA
Read-onlyIdempotent

Multi-year financials as metric -> period series. quarterly_results and annual_results hold the P&L (sales, profit, EPS), plus balance_sheet, cash_flow and ratios.

Inputs: name (required), statement (required).

get-iposIPOsB
Read-onlyIdempotent

IPO calendar: upcoming, active, pre-apply, recently closed and listed issues with price band and listing gains.

Inputs: limit, status.

get-market-newsMarket news (alias)A
Read-onlyIdempotent

Alias of get-news: the latest market news.

Inputs: limit.

get-market-overviewMarket overviewA
Read-onlyIdempotent

Dashboard of the day: top gainers and losers, most active NSE stocks, price shockers and headlines in one call.

Inputs: limit.

get-most-activeMost active stocksB
Read-onlyIdempotent

Most actively traded stocks by volume on the chosen exchange.

Inputs: limit, exchange.

get-mutual-fund-detailsMutual fund detailsB
Read-onlyIdempotent

NAV, returns, risk metrics, expense ratio (recent history), exit load, SIP limits, fund manager and top holdings for a scheme.

Inputs: name (required), holdings.

get-newsMarket newsB
Read-onlyIdempotent

Latest Indian stock-market and business news headlines with summaries.

Inputs: limit.

get-peersPeer companiesA
Read-onlyIdempotent

Listed peers of a company with their price, market cap, P/E, P/B, ROE and margins.

Inputs: name (required), limit.

get-price-shockersPrice shockersC
Read-onlyIdempotent

Stocks with unusually large price moves today on the chosen exchange.

Inputs: limit, exchange.

get-price-targetAnalyst price targetB
Read-onlyIdempotent

Mean/median/high/low analyst price targets and the consensus recommendation, with recent revisions.

Inputs: symbol (required).

get-shareholding-patternShareholding patternC
Read-onlyIdempotent

Promoter, FII, DII and public holding percentages over time.

Inputs: name (required), view.

get-stock-detailsStock detailsA
Read-onlyIdempotent

Detailed data for a stock, by section. Defaults to profile, key_metrics and analyst. 'financials' is very large; prefer get-financial-statements.

Inputs: name (required), sections.

get-stock-historyPrice and valuation historyB
Read-onlyIdempotent

Historical series for a stock: price, P/E, price-to-book, sales/margins or EV multiples.

Inputs: name (required), metric, period.

get-stock-priceStock priceA
Read-onlyIdempotent

Latest price (NSE and BSE), day change and 52-week range for a stock.

Inputs: name (required).

get-stock-recommendationsAnalyst recommendationsB
Read-onlyIdempotent

Analyst rating breakdown (strong buy to strong sell) and its trend over recent months for a stock.

Inputs: name (required).

get-stock-snapshotStock snapshotA
Read-onlyIdempotent

One-call overview of a stock: price, ranges, valuation, profitability, growth, balance-sheet health, returns, technical trend, analyst consensus and peers. Best first call for any stock question.

Inputs: name (required).

get-top-gainersTop gainersA
Read-onlyIdempotent

Today's top gaining stocks (BSE-listed; use get-price-shockers for NSE).

Inputs: limit.

get-top-losersTop losersA
Read-onlyIdempotent

Today's top losing stocks (BSE-listed; use get-price-shockers for NSE).

Inputs: limit.

list-mutual-fundsBrowse mutual fundsA
Read-onlyIdempotent

Browse funds by category (Equity, Debt, Hybrid, Index Funds, Solutions Oriented, Other) and sub-category, ranked by a return period. Call without arguments to list the categories.

Inputs: limit, sort_by, category, sub_category.

search-mutual-fundsSearch mutual fundsC
Read-onlyIdempotent

Find mutual fund schemes by name.

Inputs: query (required), limit.

search-stocksSearch stocksA
Read-onlyIdempotent

Find listed Indian companies by name or partial name. Returns NSE/BSE codes and ISIN; use it to resolve ambiguous names.

Inputs: query (required), limit.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 27 tools

    Disambiguation3/5

    Most tools target distinct data types, but get-market-overview duplicates top gainers/losers, most active, price shockers and headlines that also exist as standalone tools; get-market-news is an explicit alias of get-news. Stock snapshot/details/price/history/financials overlap somewhat, though descriptions help guide selection.

    Naming Consistency5/5

    All names use kebab-case and are predominantly verb-first (get-, search-, list-, compare-), with no camelCase/snake_case mixing. Minor plural/alias variations such as get-ipos and get-market-news do not break the overall pattern.

    Tool Count3/5

    27 tools is heavy for a single MCP server, though the broad Indian-market domain (stocks, funds, IPOs, commodities, news, analyst data) justifies many. Overlap between aggregate and standalone market-mover tools means not every tool is strictly necessary.

    Completeness4/5

    Coverage is broad: stock discovery, snapshots, financials, shareholding, analyst views, corporate actions, market movers, news, IPOs, commodities and mutual funds. Minor gaps remain around index/sector-level data and per-stock news, but core workflows are covered.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      C
      quality
      D
      maintenance
      Enables access to comprehensive Indian stock market data from the NSE and BSE, including historical statistics, corporate actions, and IPO information. It also provides tools for mutual fund searches, analyst recommendations, and tracking market-active or trending stocks.
      16
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables access to financial market data including EOD, intraday, fundamentals, news, and more via 75 read-only MCP tools.
      5
      MIT
    • F
      license
      A
      quality
      C
      maintenance
      Enables analysis of Indian stocks listed on BSE/NSE through real-time quotes, fundamentals, historical data, stock discovery, market overview, and news integration.
      13
      -
    • A
      license
      A
      quality
      C
      maintenance
      Gives AI assistants live Indian market data without any API keys, spanning NSE quotes and indices, option chains with Greeks, max pain and OI analytics, company financials, shareholding and corporate actions, plus mutual fund NAVs and trailing returns. It also ships research, market-brief and options-positioning prompts so users can compare stocks, trace sector leadership or size up an expiry through natural language.
      10
      13
      MIT