yahoo-finance-mcp-server

refself/yahoo-finance-mcp-server

3.2

If you are the rightful owner of yahoo-finance-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

A remote MCP server for accessing Yahoo Finance data, utilizing Cloudflare Workers for deployment.

Tools
9
Resources
0
Prompts
0

Yahoo Finance MCP Server

A remote MCP (Model Context Protocol) server for Yahoo Finance data, deployed on Cloudflare Workers.

Features

  • 9 tools for accessing Yahoo Finance data
  • Cookie + Crumb authentication for reliable API access
  • SSE and Streamable HTTP transport support
  • Cloudflare Workers deployment with Durable Objects

Tools

ToolDescription
get_historical_stock_pricesGet OHLCV data for a ticker
get_stock_infoGet comprehensive stock information
get_yahoo_finance_newsGet latest news for a ticker
get_stock_actionsGet dividends and stock splits
get_financial_statementGet income statement, balance sheet, or cashflow
get_holder_infoGet institutional, insider, and major holders
get_option_expiration_datesGet available option expiration dates
get_option_chainGet calls/puts option chain
get_recommendationsGet analyst recommendations

Setup

npm install

Development

npm run dev

Server runs at http://localhost:5173

Deploy

npm run deploy

Endpoints

EndpointDescription
/JSON documentation
/sseMCP SSE transport
/mcpMCP Streamable HTTP transport

Usage

Claude Desktop

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "yahoo-finance": {
      "command": "npx",
      "args": ["mcp-remote", "https://your-worker.workers.dev/sse"]
    }
  }
}

MCP Inspector

npx @modelcontextprotocol/inspector@latest

Connect to http://localhost:5173/sse (local) or https://your-worker.workers.dev/sse (deployed).

Project Structure

src/
├── server.ts           # Worker entry point
├── mcp.ts              # MCP server with tool definitions
└── yahoo-finance-api.ts # Yahoo Finance API client

License

MIT