NSE MCP server for AI agents and assistants

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with NSE MCP or direct API to retrieve quotes, analyze market history, track index snapshots, and find movers through natural language.

NSE MCP logoNSE MCP
No Auth

NSE MCP is the official National Stock Exchange of India service for end-of-day market data. It provides structured quotes, index snapshots, movers, and corporate actions.

21 Tools

Try NSE MCP now

Type what you want done — sign in and watch it run live in the Tool Router playground.

TOOL ROUTER PLAYGROUND
NSE MCP
Try asking
TOOLS

Supported Tools

Every NSE MCP action and event your agent gets out of the box.

Compare indices

Compare 2 to 10 NSE indices side by side over the same period: return, annualised volatility, maximum drawdown and current valuation (P/E, P/B, dividend yield).

Compare stocks

Compare multiple NSE stocks side-by-side over a time period.

Get 52 week high low

Get the 52-week high and low prices for an NSE stock.

Get bulk quote

Get the latest available price snapshot for multiple NSE stocks in one call.

Get corporate actions

Fetch actual NSE corporate action events for a stock directly from NSE India.

Get index history

Get daily history for an NSE index: open, high, low, close, points change, % change, volume, turnover (₹ Cr), P/E, P/B and dividend yield.

Get index movers

Get the top gaining and top losing NSE indices for a day or a period — useful for sector and theme rotation.

Get index performance

Get the price performance of one NSE index: 1-day change plus returns over 1 week, 1 month, 3 months, 6 months, 1 year and 2 years, and the 52-week high/low with dates and distance from each.

Get index snapshot

Get the end-of-day values of NSE indices on a specific date: open, high, low, close, points change, % change, volume, turnover (₹ Cr), P/E, P/B and dividend yield.

Get index valuation

Get the valuation ratios of an NSE equity index — P/E, P/B and dividend yield as published by NSE — and where today's value sits within its own recent range: min, max (with dates), median, mean and percentile.

Get ltp by date

Returns the last traded price (close price) for a given NSE symbol on a specific date.

Get market breadth

Get overall NSE market breadth for a trading date.

Get market mood

Get a factual read of NSE market mood for a day: India VIX level, its change over 1 day / 1 week / 1 month and where it sits in its recent range; how many equity indices rose vs fell; how many mainboard stocks advanced vs declined (when available); and the day's change in the main benchmarks.

Get stock history

Get daily OHLCV (Open, High, Low, Close, Volume) price history for an NSE stock.

Get stock vs index

Compare one NSE stock against a benchmark index over a period: return of each, outperformance in percentage points, beta and correlation.

Get top by volume

Get the top N most actively traded NSE stocks on a specific date, sorted descending.

Get top movers

Get the top N gaining or losing NSE stocks on a specific date.

Get volume analysis

Analyse trading volume trends for an NSE stock over N trading days.

Moving average

Calculates the simple moving average (SMA) of close prices for a stock over the last N trading days.

Nse lookup symbol

Look up NSE ticker symbols by partial name or keyword.

Search symbols

Search for NSE stock symbols by company name or partial symbol.

SETUP GUIDE

Connect NSE MCP Tool with your Agent

1

Install Composio

typescript
npm install @composio/core ai @ai-sdk/mcp @ai-sdk/openai
Install the Composio SDK and your agent framework
2

Create a session with MCP enabled

typescript
import { Composio } from "@composio/core";

const composio = new Composio();
const { mcp } = await composio.create("your-user-id", {
  toolkits: ["nse_mcp"],
  mcp: true,
});
Create a session scoped to NSE MCP and read its MCP URL and headers
3

Connect your agent to the MCP server

typescript
import { createMCPClient } from "@ai-sdk/mcp";
import { openai } from "@ai-sdk/openai";
import { generateText, stepCountIs } from "ai";

const client = await createMCPClient({
  transport: { type: "http", url: mcp.url, headers: mcp.headers },
});

const { text } = await generateText({
  model: openai("gpt-5.6-sol"),
  tools: await client.tools(),
  prompt: "Show the latest NIFTY 50 index snapshot and list the top five NSE gainers for that session.",
  stopWhen: stepCountIs(10),
});

console.log(text);
await client.close();
Pass the session's MCP URL and headers to your agent and run a NSE MCP request
SETUP GUIDE

Connect NSE MCP API Tool with your Agent

1

Install Composio

typescript
npm install @composio/core @composio/openai openai
Install the Composio SDK, the OpenAI provider, and the OpenAI SDK
2

Create a Composio session

typescript
import OpenAI from "openai";
import { Composio } from "@composio/core";
import { OpenAIResponsesProvider } from "@composio/openai";

const composio = new Composio({ provider: new OpenAIResponsesProvider() });
const client = new OpenAI();

const session = await composio.create("your-user-id", { toolkits: ["nse_mcp"] });
const tools = await session.tools();
Initialize Composio with the OpenAI Responses provider and create a session scoped to NSE MCP
3

Run NSE MCP tools with your agent

typescript
let response = await client.responses.create({
  model: "gpt-5.6-sol",
  tools,
  input: [{ role: "user", content: "Show the latest NIFTY 50 index snapshot and list the top five NSE gainers for that session." }],
});

while (response.output.some((o) => o.type === "function_call")) {
  const outputs = await composio.provider.handleToolCalls(session, response.output);
  response = await client.responses.create({
    model: "gpt-5.6-sol",
    tools,
    previous_response_id: response.id,
    input: outputs,
  });
}

console.log(response.output_text);
Send a request, execute the NSE MCP tool calls through the session, and print the final answer

Why Use Composio?

AI Native NSE MCP Integration

  • Supports NSE MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable market-data queries
  • Rich coverage for quotes, history, indices, breadth, movers, and corporate actions

No Credential Setup

  • NSE MCP uses publicly available end-of-day capital-market data
  • No OAuth flow, API key, or developer credential setup is required
  • Composio still provides secure session handling for your connected agents

Agent Optimized Design

  • Tools are tuned using real error and success rates to improve reliability over time
  • Comprehensive execution logs so you always know what ran, when, and on whose behalf

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access NSE MCP
  • Scoped access to NSE MCP market-data resources
  • Full audit trail of agent actions to support review and compliance
FRAMEWORKS

Use NSE MCP with any AI Agent Framework

Choose a Framework you want to connect NSE MCP with

Rolling this out across your team?

Give your team centralized access control across every framework with Composio’s MCP Gateway.

EXPLORE MCP GATEWAY
FAQ

Frequently asked questions

Start with NSE MCP.It takes 30 seconds.

Managed auth, hosted MCP servers, and every NSE MCP tool your agent needs.Free to start.

Start building