MCP Stock Analysis MCP Server

MCP server for Indian stock market using yfinance

Local serverstdio

What is the MCP Stock Analysis MCP server?

Mcp stock analysis mcp server connects MCP Stock Analysis to AI assistants that speak the Model Context Protocol. MCP server for Indian stock market using yfinance.

What MCP Stock Analysis does

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.

Tools it exposes

Once connected, the assistant can call these 2 tools directly:

  • getStockQuote — Output: JSON { "symbol": "RELIANCE.NS", "price": 2748.15, "name": "Reliance Industries Ltd" }
  • getHistoricalData — Output: JSON { "date": "2025-03-21T00:00:00+05:30", "open": 2735, "high": 2750, "low": 2725, "close": 2748.15, "volume": 21780769 }

Installing the mcp stock analysis mcp server

The server is distributed via npm as mcp-stock-analysis, so most clients can run it without a manual build step. Add it to your MCP client's configuration and restart the client to pick it up — the copy-paste configs for Claude Desktop, Claude Code and Cursor are on this page.

Where it fits

Developer-tool servers are usually the first ones people connect, because they turn "help me with this code" into an assistant that can actually read the repo and act on it. MCP Stock Analysis sits in that group, and the shape of its toolset — getStockQuote, getHistoricalData — tells you what it is really for. Worth comparing against the other developer tools servers in this directory before you commit to one, since several overlap in scope but differ sharply in setup cost and permissions.

Practical notes

  • This server runs locally, so it operates with whatever access your machine and its credentials already have. Scope that deliberately rather than by default.
  • Maintained by giptilabs.
  • MCP clients ask for confirmation before each tool call by default. Keep that on while you learn what the mcp stock analysis mcp server actually does with your data.
  • Every entry in this directory is reviewed by hand before it goes live, and details are checked against the project's own documentation.

Available tools

ToolWhat it does
getStockQuoteOutput: JSON { "symbol": "RELIANCE.NS", "price": 2748.15, "name": "Reliance Industries Ltd" }
getHistoricalDataOutput: JSON { "date": "2025-03-21T00:00:00+05:30", "open": 2735, "high": 2750, "low": 2725, "close": 2748.15, "volume": 21780769 }

How to install the MCP Stock Analysis MCP server

{
  "mcpServers": {
    "stock-analysis": {
      "command": "npx",
      "args": ["-y", "mcp-stock-analysis"]
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Example prompts to try

  • Use MCP Stock Analysis to getStockQuote.
  • Use MCP Stock Analysis to getHistoricalData.

Frequently asked questions

It connects MCP Stock Analysis to MCP-compatible AI assistants such as Claude and Cursor, exposing 2 tools (getStockQuote, getHistoricalData) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with MCP Stock Analysis directly.