yahoo-finance-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@yahoo-finance-mcp Get the latest stock quote for AAPL"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Yahoo Finance MCP Server
A Model Context Protocol (MCP) server that provides access to Yahoo Finance data including stock quotes, historical prices, financial statements, company information, symbol search, and news.
Installation
Claude Code
claude mcp add yfinance-mcp -- npx yfinance-mcpClaude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"yfinance-mcp": {
"command": "npx",
"args": ["yfinance-mcp"]
}
}
}Related MCP server: Stock Data MCP Server
Available Tools
get_quote
Get real-time stock quote data including price, change, volume, and key metrics.
Parameters:
symbol(string, required): Stock ticker symbol (e.g., "AAPL", "GOOGL")
Example response:
{
"symbol": "AAPL",
"name": "Apple Inc.",
"price": 273.08,
"change": -0.68,
"changePercent": -0.25,
"volume": 20667651,
"marketCap": 4052613332992,
"peRatio": 36.56
}get_historical
Get historical OHLCV (Open, High, Low, Close, Volume) price data.
Parameters:
symbol(string, required): Stock ticker symbolperiod(string, optional): Time period - "1d", "5d", "1mo", "3mo", "6mo", "1y", "2y", "5y", "max" (default: "1mo")interval(string, optional): Data interval - "1d", "1wk", "1mo" (default: "1d")
get_financials
Get company financial statements (income statement, balance sheet, or cash flow).
Parameters:
symbol(string, required): Stock ticker symbolstatement(string, required): Type of statement - "income", "balance", "cashflow"quarterly(boolean, optional): Get quarterly data instead of annual (default: false)
get_company_info
Get company profile including sector, industry, description, and key statistics.
Parameters:
symbol(string, required): Stock ticker symbol
search_symbols
Search for stock symbols by company name or keywords.
Parameters:
query(string, required): Search query (company name or keywords)
get_news
Get latest news for a stock symbol.
Parameters:
symbol(string, required): Stock ticker symbol
Development
Run in development mode
pnpm devRun tests
pnpm test # Run tests in watch mode
pnpm test -- --run # Run tests onceRun tests with coverage
pnpm test:coverageLint and format
pnpm lint # Check for linting errors
pnpm lint:fix # Fix linting errors
pnpm format # Format code with PrettierBuild
pnpm buildTech Stack
TypeScript
MCP SDK (
@modelcontextprotocol/sdk)yahoo-finance2
Zod for input validation
Vitest for testing
ESLint + Prettier for code quality
License
MIT
Available Tools
6 toolsget_company_infoC
Get company profile including sector, industry, description, and key statistics
Inputs: symbol (required).
get_financialsA
Get company financial statements (income statement, balance sheet, or cash flow)
Inputs: symbol (required), statement (required), quarterly.
get_historicalB
Get historical OHLCV (Open, High, Low, Close, Volume) price data
Inputs: symbol (required), period, interval.
get_newsC
Get latest news for a stock symbol
Inputs: symbol (required).
get_quoteB
Get real-time stock quote data including price, change, volume, and key metrics
Inputs: symbol (required).
search_symbolsC
Search for stock symbols by company name or keywords
Inputs: query (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool targets a distinct aspect of financial data: company profile, financial statements, historical prices, news, real-time quotes, and symbol search. No overlapping purposes.
All tool names follow a consistent verb_noun pattern (get_*, search_*), with clear and predictable naming conventions.
6 tools is well-scoped for a financial data server, covering core functionality without being excessive or insufficient.
Covers essential financial data (profile, financials, historical, quote, news, search), but lacks some common features like dividends, splits, or options data.
Maintenance
Related MCP Connectors
Scrape stock quotes, historical prices, and financial statements from Yahoo Finance.
Yahoo Finance for AI agents: quotes, price history, options with Greeks, financials, news, movers.
Fetch current stock prices and key data for symbols across global markets. Look up companies like…
Financial statements, metrics, dividends, and price data for public companies.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides real-time stock market data and financial analysis through Yahoo Finance integration. Enables users to get quotes, historical prices, fundamentals, dividends, analyst forecasts, and growth projections for any stock symbol.4-
- FlicenseNot gradedqualityDmaintenanceProvides real-time stock market data through Yahoo Finance without requiring an API key. Get quotes, historical data, company information, financial statements, and ticker search capabilities.-
- AlicenseNot gradedqualityDmaintenanceProvides comprehensive financial data from Yahoo Finance, enabling retrieval of stock prices, company information, financial statements, options data, analyst recommendations, and market news through natural language queries.MIT
- AlicenseNot gradedqualityCmaintenanceProvides real-time stock quotes, historical data, and stock search via Yahoo Finance, enabling AI assistants to access and analyze financial market data.24 npm19MIT