MCP ExplorerExplorer

Mcp Stock Analysis

@giptilabson 9 months ago
1 MIT
FreeCommunity
AI Systems
MCP Stock Analysis Server provides real-time and historical Indian stock data.

Overview

What is Mcp Stock Analysis

mcp-stock-analysis is an MCP server developed by Akshay Bavkar that provides access to real-time and historical stock data for Indian stocks using the Yahoo Finance API.

Use cases

Use cases include real-time stock price tracking, historical data analysis for investment strategies, and integration with local LLMs for enhanced financial insights.

How to use

To use mcp-stock-analysis, install it via npm with ‘npm install mcp-stock-analysis’, and configure your MCP client (like Claude Desktop) to connect to the server using the provided JSON configuration.

Key features

Key features include ‘getStockQuote’ to retrieve the current stock price and ‘getHistoricalData’ to obtain historical stock data with customizable intervals.

Where to use

mcp-stock-analysis is primarily used in financial analysis, investment research, and applications requiring stock market data for Indian stocks.

Content

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, or monthly) (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

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers