Stock Analysis
Access real-time and historical Indian stock data using the Yahoo Finance API.
MCP Stock Analysis Server by Akshay Bavkar
This is an MCP server that provides access to real-time and historical Indian stock data using the Yahoo Finance API. It allows stock data retrieval to be used as context by local LLMs via Claude Desktop, Cursor, and other MCP-compatible agents.
Available Features
- getStockQuote: Get the current quote for an Indian stock.
- getHistoricalData: Get historical data for an Indian stock with custom intervals and periods.
Setup
npm install mcp-stock-analysis
Usage in Host
Configure your MCP client (e.g., Claude Desktop) to connect to the server:
{
"mcpServers": {
"mcp-stock-analysis": {
"command": "npx",
"args": ["-y", "mcp-stock-analysis"],
}
}
}
Tools
getStockQuote
Get the current quote for a stock.
Input:
symbol: The stock symbol (e.g., RELIANCE.NS)
Output:
{
"symbol": "RELIANCE.NS",
"price": 2748.15,
"name": "Reliance Industries Ltd"
}
getHistoricalData
Get historical data for a stock.
Input:
symbol: the stock symbol (e.g., RELIANCE.NS)interval: the time interval for the data (daily,weekly, ormonthly) (optional, default:daily)
Output:
{
"date": "2025-03-21T00:00:00+05:30",
"open": 2735,
"high": 2750,
"low": 2725,
"close": 2748.15,
"volume": 21780769
}
JSON object containing the historical data. The structure of the output depends on the interval parameter.
Contributing
Contributions are welcome! Please open an issue or pull request.
License
MIT
相关服务器
Google Search
Perform Google searches and view web content with advanced bot detection avoidance.
SIMAP MCP Server
An MCP (Model Context Protocol) server for interacting with SIMAP.ch, Switzerland's public procurement platform.
PubMed MCP Server
Search and download scientific articles from PubMed's E-utilities API.
Dictionary-MCP
A dictionary server using the Merriam-Webster API to provide definitions, parts of speech, and pronunciations for words.
Zefix Search
Company search in Swiss Central Business Name Index (zefix.ch)
Reexpress
Enable Similarity-Distance-Magnitude statistical verification for your search, software, and data science workflows
Haloscan MCP Server
An MCP server for interacting with the Haloscan SEO API.
Parquet MCP Server
An MCP server for web and similarity search, designed for Claude Desktop. It integrates with various external embedding and API services.
Naver Map Direction MCP
Provides geographical and directional data from the Naver Map API.
MediaWiki MCP Server
Interact with the MediaWiki API to search and retrieve content from Wikipedia or other MediaWiki sites.