MCP Stock Analysis Server

Integrations

  • Enables installation and execution of the MCP server via npm packages, making it accessible through npx commands.

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

-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Provides access to real-time and historical Indian stock data via Yahoo Finance API, enabling local LLMs to retrieve stock information through MCP-compatible agents like Claude Desktop and Cursor.

  1. Available Features
    1. Setup
      1. Usage in Host
        1. Tools
          1. getStockQuote
          2. getHistoricalData
        2. Contributing
          1. License

        Related MCP Servers

        • A
          security
          F
          license
          A
          quality
          This is an MCP server that provides access to the Alpha Vantage API, allowing stock data retrieval to be used as context to LLMs.
          Last updated 25 days ago
          2
          15
          6
          JavaScript
        • -
          security
          A
          license
          -
          quality
          Provides comprehensive stock screening capabilities through Yahoo Finance. Enables LLMs to screen stocks based on technical, fundamental, and options criteria, with support for watchlist management and result storage.
          Last updated 2 months ago
          13
          Python
          MIT License
        • -
          security
          A
          license
          -
          quality
          A Model Context Protocol server providing real-time stock data and options analysis through Yahoo Finance, enabling LLMs to access market data, analyze stocks, and evaluate options strategies.
          Last updated 2 months ago
          4
          Python
          MIT License
        • -
          security
          F
          license
          -
          quality
          Integrates Yahoo Finance API with LLaMA 3.2 3B, allowing users to retrieve real-time stock prices, company information, historical data, and market news while maintaining the model's original capabilities.
          Last updated 2 months ago
          Python

        View all related MCP servers

        ID: v35utpi7bf