Skip to main content
MCP server CX Codex

Yahoo Finance · danishashko — Claude Code MCP server: quotes and financials

Gives your coding agent Yahoo Finance data: quotes, price history, statements, analyst ratings and ticker news, all from a prompt.

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add yahoo-finance-mcp -- npx -y yahoo-finance-mcp-server
Open on GitHub

What Yahoo Finance does

The server exposes 13 tools. You get a live quote with day and 52-week range, OHLCV history for a chosen period and interval, a company profile, annual income statement, balance sheet and cash flow, a side-by-side comparison of up to 10 tickers, options chains, holders, dividend and split records, plus symbol lookup by company name. Answers arrive as markdown unless you ask for response_format: "json".

Nothing to build by hand: the npx wrapper sets up its own isolated Python environment and pulls dependencies on the first launch, a one-time step of roughly a minute. Your machine needs Python 3.10+ and Node.js 16+. Outgoing calls share one browser-impersonating HTTP session, which lowers the chance of tripping Yahoo Finance rate limits.

Clients that only accept a URL, n8n's MCP Client Tool node among them, can use --http. The same 13 tools are then served over Streamable HTTP at /mcp, bound to 127.0.0.1:8000 unless you change it. There is no authentication, so binding to a wider interface is a decision about who can reach your machine. DNS-rebinding protection stays active: names other than localhost, 127.0.0.1 and host.docker.internal must be listed with --allowed-host, or the request comes back as 421 Misdirected Request.

What it helps with

  • check a ticker's current price and market cap
  • pull OHLCV price history for a set period
  • compare key metrics across several stocks
  • read an options chain for a given expiration
  • find a ticker symbol from a company name

Example prompts for the agent

  • What is Apple trading at right now, with the day range?
  • Compare AAPL, MSFT and GOOGL on key metrics
  • Show me the SPY calls expiring next month

How to install Yahoo Finance

Platform CLI

claude mcp add yahoo-finance-mcp -- npx -y yahoo-finance-mcp-server

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about Yahoo Finance

How do I install the Yahoo Finance MCP server in Claude Code?

Run claude mcp add yahoo-finance-mcp -- npx -y yahoo-finance-mcp-server, then restart the session so the server connects.

What does the Yahoo Finance MCP server do?

It hands the agent tools for Yahoo Finance data: quotes, price history, financial statements, analyst ratings, options, holders, dividends and news for a ticker.

What is required for it to run?

Python 3.10+ and Node.js 16+. On the first start the npx wrapper creates a separate Python environment and installs dependencies, which takes about a minute.

Similar MCP servers

Everything for Finance and business →

Yahoo Finance by other authors comes first.

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor