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
Servidores relacionados
Metro MCP
A MCP server of washington DC's Metro
Yandex Search
A web search server that uses the Yandex Search API.
WHOIS MCP Server
A WHOIS server for checking domain availability using the Chinaz API.
Google Search Console
An MCP server for accessing Google Search Console data, including site performance and indexing status.
wikipedia
A minimal MCP server for interacting with Wikipedia. It provides simple tools to search for articles and retrieve full content, making it easy for AI agents to access reliable, structured knowledge.
Perplexity AI
Intelligent search, reasoning, and research capabilities powered by Perplexity's specialized AI models.
Xiaohongshu XHS RedNote Social Media Data Assistant MCP
Read-only Xiaohongshu / XHS / RedNote MCP for note search, note details, paginated comments, creator profiles, and creator note lists.
Rijksmuseum MCP Server
Explore the Rijksmuseum's art collection using natural language.
eRegulations MCP Server
An MCP server for the eRegulations API, providing access to regulatory information.
Wolfram Alpha
Access Wolfram Alpha's computational knowledge engine for expert-level answers and data analysis.