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
Serveurs connexes
Docs MCP Server
Creates a personal, always-current knowledge base for AI by indexing documentation from websites, GitHub, npm, PyPI, and local files.
grep.app Code Search
Search code across millions of public GitHub repositories using the grep.app API.
302AI Web Search
A web search server powered by the 302.AI API.
Tavily Search
Perform web searches using the Tavily Search API.
Perplexity
An MCP server that connects to Perplexity's Sonar API, enabling real-time web-wide research in conversational AI.
Brave Search
An MCP server for web and local search using the Brave Search API.
Boring News
Fetches the latest news headlines from the Boring News API.
1ly MCP
Enable AI agents to discover, launch tokens, pay for, and sell APIs and resources using x402
Local Flow
A minimal, local, GPU-accelerated RAG server for document ingestion and querying.
IP2Location.io
IP2Location.io API integration to retrieve the geolocation information for an IP address.