Indian Stock Exchange

io.github.prakharv-opsv2.0.0更新於 Oct 11, 2026

Indian stocks (NSE/BSE): quotes, fundamentals, analyst targets, IPOs, mutual funds, commodities.

已驗證STDIO僅桌面金融資料與分析

概覽

AI 產生的概覽

唯讀型 MCP 伺服器,讓助理取得印度股市即時資料:NSE/BSE 行情、基本面、分析師目標價、IPO、共同基金與大宗商品。

功能
提供 27 個唯讀工具,涵蓋印度股票與基金。可將名稱解析為 NSE/BSE 代碼,回傳價格快照、歷史走勢、財務報表、持股結構、分析師預估與目標價、公司行動與公告,以及市場漲跌排行、新聞、IPO 行事曆、MCX 商品期貨和共同基金搜尋與詳情。另附五個分析提示詞與三個資源,其中包括依股票查詢的資源。輸出經過精簡,方便分析而非原始 API 資料。
適用情境
適合助理需要印度市場最新資訊的研究型問題:比較上市公司、撰寫個股研究筆記、查看當日市場動向、了解即將上市的 IPO,或篩選共同基金。不用於交易或投資組合執行。
執行需求
以 npm 套件形式透過 stdio 在本機執行,需要 Node.js 20 或更新版本。必須透過 ISE_API_KEY 環境變數(或 .env 檔案)提供來自 indianapi.in 的 API 金鑰。可選的 HTTP 模式預設綁定本機,可用 HOST 與 PORT 覆寫。需要連線至資料供應商的網路。
安裝前請注意
需要 ISE_API_KEY 密鑰,該密鑰會傳送給第三方資料供應商,請勿提交至版本控制。所有工具皆標示為唯讀,不會執行交易或寫入。可選 HTTP 模式沒有身分驗證,若要暴露於本機之外,應先置於具驗證機制的反向代理之後。輸出僅供參考,不構成投資建議;金額單位為印度盧比,市值為千萬盧比(crore)。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Indian Stock Exchange,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

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

Tools

AreaToolWhat it does
Stockssearch-stocksResolve a name to NSE/BSE codes and ISIN
get-stock-snapshotCondensed overview of a stock (start here)
get-stock-priceLatest price, day range, 52-week range
get-stock-detailsProfile, key metrics, shareholding, actions, news by section
get-stock-historyPrice, P/E, P/B, margins or EV history over 1m to max
compare-stocksSide-by-side comparison of 2-5 stocks
get-peersPeer companies with valuation and returns
get-stock-recommendationsAnalyst rating breakdown and trend
Fundamentalsget-financial-statementsQuarterly/annual results, balance sheet, cash flow, ratios
get-shareholding-patternPromoter/FII/DII/public holding over time
get-analyst-estimatesConsensus forecasts or actuals (EPS, sales, net income, EBITDA, ROE, ...)
get-price-targetMean/high/low targets and consensus recommendation
get-corporate-actionsDividends, bonus, splits, rights, board meetings
get-announcementsRecent exchange filings with links
Marketget-market-overviewMovers, activity, shockers and headlines in one call
get-top-gainers / get-top-losersToday's biggest movers
get-most-activeHighest-volume stocks (NSE or BSE)
get-price-shockersUnusual price moves (NSE or BSE)
get-52-week-highs-lowsStocks at 52-week extremes
get-news / get-market-newsLatest headlines with summaries
get-iposUpcoming, active, closed and listed IPOs
get-commoditiesMCX futures with open-interest signal
Mutual fundssearch-mutual-fundsFind schemes by name
get-mutual-fund-detailsNAV, returns, risk, expense ratio, holdings
list-mutual-fundsBrowse and rank by category and return period

Setup

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

sh
git clone <this repo> && cd Indian-Stock-Exchange-MCPcp .env.example .env        # then set ISE_API_KEYnpm installnpm 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:

json
{  "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

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

HTTP mode

sh
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

sh
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

來源:README.md,提交 b75b84a

工具

0
工具後設資料尚未被收錄。

版本歷史

1
  1. v2.0.0最新Oct 11, 2026