MCPInstall
mcp_server_poc logo

mcp_server_poc

by sagar-n sagar-n/mcp_server_poc

The MCP Yahoo Finance Server provides access to Yahoo Finance data with two main tools: get-historical-data for fetching historical stock prices and get-quote for obtaining current stock quotes. It integrates easily with applications and offers simple installation and usage.

READMEmaster

MCP Yahoo Finance Server

An MCP server that provides access to Yahoo Finance data through two tools:

  1. get-historical-data: Fetch historical price data for a stock
  2. get-quote: Get current stock quote information

Installation

npm install
npm run build

Usage

You can run the server directly:

npm start

Or use it with Claude for Desktop by adding this to your claude_desktop_config.json:

{
  "mcpServers": {
    "yahoo-finance": {
      "command": "node",
      "args": ["/ABSOLUTE/PATH/TO/build/index.js"]
    }
  }
}

Tools

get-historical-data

Fetches historical price data for a stock symbol.

Parameters:

  • symbol: Stock symbol (e.g. AAPL)
  • from: Start date (YYYY-MM-DD)
  • to: End date (YYYY-MM-DD)
  • period: (Optional) Period - 'd' (daily), 'w' (weekly), 'm' (monthly), 'v' (dividends only)

get-quote

Gets current quote information for a stock symbol.

Parameters:

  • symbol: Stock symbol (e.g. AAPL)
  • modules: (Optional) Array of quote modules to fetch (e.g. ['price', 'summaryDetail'])