About Nse
Nse is an MCP server in the Finance category: mCP Server for NSE India.
Install
claude mcp add nse -- npx -y nse-mcpnpx -y nse-mcpThis server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.
Tools (3)
get_priceGet the latest price of a stock
Parameters not published.
get_trendGet the stock price trend over given days (default 30)
Parameters not published.
should_i_buyShould I buy this stock? (based on recent trend)
Parameters not published.
Ask AI
Ask AI about Nse
Powered by Claude · Grounded in docs
Security checks
- ✓README presentThe repository ships documentation.
5 checks have not been run yet.
README
NSE Stock Tools MCP Server
This is an MCP (Model Context Protocol) server that provides tools for interacting with NSE (National Stock Exchange of India) stock data.
Installation
To set up the project, clone the repository and install the dependencies:
npm install
Building the Project
To compile the TypeScript code, use the build script:
npm run build
This will output the compiled JavaScript files to the dist directory.
Running the Server
You do not need to run the server, simply point the client to the binary generated at dist/index.js
Connecting to the Server
To connect to this MCP server from clients like Claude, you can use the following command:
npx nse-mcp
Available Tools
This server exposes the following tools:
get_price
Get the latest price of a stock.
Input Schema:
{
"symbol": "string" // Stock symbol (e.g. INFY, TCS, RELIANCE)
}
Example Usage (via MCP CLI):
mcp-cli call get_price '{"symbol": "INFY"}'
get_trend
Get the stock price trend over a given number of days (default 30).
Input Schema:
{
"symbol": "string", // Stock symbol (e.g. INFY, TCS, RELIANCE)
"days": "number" // Optional: Number of days for the trend (default 30)
}
Example Usage (via MCP CLI):
mcp-cli call get_trend '{"symbol": "TCS", "days": 60}'
should_i_buy
Provides advice on whether to buy a stock based on its recent trend.
Input Schema:
{
"symbol": "string" // Stock symbol (e.g. INFY, TCS, RELIANCE)
}
Example Usage (via MCP CLI):
mcp-cli call should_i_buy '{"symbol": "RELIANCE"}'
README copy captured when this server was indexed; it may lag the repository. The original is authoritative.