How to connect NSE MCP to Claude

Connect Claude Web, Desktop and Cowork to NSE MCP. Show today’s nifty 50 index snapshot, list the latest nse market gainers, and more using natural language, with authentication handled for you.

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

Introduction

Claude is Anthropic's AI assistant, available on the web, in the desktop app, and on mobile. Cowork is its agent for knowledge work, and it runs on all of those surfaces too. Connected to your apps, Claude can work with your files and services to accomplish complex tasks on your behalf.

This guide walks you through the easiest and most secure way to connect your NSE account to Claude via Composio Connect, enabling it to show today’s NIFTY 50 index snapshot, list the latest NSE market gainers, find stocks hitting new 52-week highs, and more such actions on your behalf without compromising your account security.

Setup is the same on Claude Web, Desktop, and Cowork, and you only need to do it once. The connector is tied to your account, so it's available in all three.

For exact tool slugs and parameter tables, see the tool catalog in the Composio docs.

Also integrate NSE MCP with

Connecting NSE to Claude Web, Desktop, and Cowork

Two ways to add the Composio connector. Pick whichever you prefer.

1. Add with one click

Click the button. Claude opens with the Composio connector filled in. Click Add, then go to step 2.

Add to Claude

Add manually

In Claude Desktop, click Customize in the left sidebar, then select Connectors and click the + icon at the top.

Claude Desktop connectors screen with Add custom connector selected

Click Add custom connector and paste in the Composio MCP server URL:

bash
https://connect.composio.dev/mcp
Add custom connector dialog with Composio MCP server URL

2. Authorize in your browser

Click Connect. You'll be redirected to a browser window where you can authorize Composio to continue.

Composio authorization screen for Claude Web, Desktop, and Cowork

3. Connect your NSE account

Back in Claude, ask it to connect to NSE or give it any NSE-related task.

For example, ask Claude to:

  • "Show today’s NIFTY 50 index snapshot"
  • "List the latest NSE market gainers"
  • "Find stocks hitting new 52-week highs"

It will prompt you to authenticate and authorize access.

That's it. Composio's tools are now available in Claude, and your NSE account is ready to use.

What is the NSE Claude Connector, and what's possible with it?

The NSE MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to NSE. It provides structured and secure access to end-of-day capital-market data, so your agent can look up symbols, retrieve stock and index prices, compare performance, and analyze market activity on your behalf.

  • Stock price research: Have your agent find NSE symbols, retrieve current available quotes, check a stock's 52-week high and low, or pull its closing price for a specific date.
  • Historical performance analysis: Let the agent review daily stock and index history, calculate moving averages, analyze trading volume, and compare a stock with a benchmark index.
  • Market-wide insights: Direct your agent to report market breadth, summarize market mood, identify top gaining and losing stocks, and find the most actively traded stocks for a date.
  • Index comparison and valuation: Instruct your agent to compare NSE indices by returns, volatility, drawdown, and valuation, or review an index's performance, history, and current valuation range.
  • Corporate event tracking: Have your agent fetch corporate actions for a specific NSE stock and include the relevant events in an investment research summary.

Troubleshooting

1. Why does Claude not use the Composio connector for NSE?

The connector can show as connected, but Claude must use it in each NSE conversation.

  • Click + at the lower left of the chat, or type /.
  • Hover Connectors.
  • Turn on Composio.
  • Ask Claude to connect to NSE again.

2. Why does Claude show an MCP server error before NSE connects?

Claude can show Couldn't reach the MCP server or Authorization with the MCP server failed when you add the connector for NSE.

  • Check that the connector URL is https://connect.composio.dev/mcp.
  • Connectors run from Anthropic's cloud, so your device network is usually not the problem.
  • Add the connector again from Customize > Connectors, then ask Claude to connect NSE.
  • If it fails again, send the error and the ofid_ reference id to support@composio.dev.

3. Why does the NSE authorization link not work?

The Composio connector is one server. Your NSE account connects separately when Claude asks for it.

  • If the browser does not open, or the link expires, ask Claude to retry the NSE connection.
  • Composio creates a fresh NSE authorization link.
  • Open that link in your browser and finish the NSE sign-in.

4. Why do NSE actions fail after they worked before?

The NSE connection can expire or lose permission.

  • Ask Claude to inspect the NSE connection.
  • If the connection is unhealthy, disconnect it when Claude prompts you.
  • Reconnect the NSE account and retry the action.
  • If Claude shows a permission prompt, approve it before Claude changes data in NSE.
  • If the action still fails with a permission error, check that the connected account has that permission in NSE itself.

5. How do I switch to a different NSE account?

Claude can manage the NSE connection for you.

  • Ask Claude to disconnect or delete the current NSE account.
  • Ask Claude to connect NSE again.
  • Open the new Composio authorization link for NSE.
  • Sign in with the other NSE account in the browser.
  • After the account connects, ask Claude to retry the NSE task.

6. Why is my NSE connection missing in Claude Desktop or on a Team plan?

The connector belongs to your Claude account, so your NSE connection works in Claude Web, Desktop, and Cowork.

  • In Claude Desktop, open Customize > Connectors.
  • Next to Composio, click ⋮ and click Clear cache.
  • If NSE tools still do not appear, click ⋮, disconnect, remove the connector, and add it again.
  • On Team or Enterprise, an Owner or Primary Owner must enable the connector before you can connect NSE.
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.

FRAMEWORKS

How to build NSE MCP Agent with another framework

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