Yahoo Finance
Yahoo Finance quotes, financials, options, screeners and news for MCP clients, no API key
Yahoo Finance is an open-source MCP server for finance and payments. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, Self-hosted
- Runs
- Locally
- Version
- 1.6.2
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add yahoo-finance-mcp -- npx -y yahoo-finance-mcp-serverAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"yahoo-finance-mcp": {
"command": "npx",
"args": [
"-y",
"yahoo-finance-mcp-server"
]
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"yahoo-finance-mcp": {
"command": "npx",
"args": [
"-y",
"yahoo-finance-mcp-server"
]
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"yahoo-finance-mcp": {
"command": "npx",
"args": [
"-y",
"yahoo-finance-mcp-server"
]
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"yahoo-finance-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"yahoo-finance-mcp-server"
]
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add yahoo-finance-mcp -- npx -y yahoo-finance-mcp-serverOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.yahoo-finance-mcp]
command = "npx"
args = ["-y", "yahoo-finance-mcp-server"]Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"yahoo-finance-mcp": {
"command": "npx",
"args": [
"-y",
"yahoo-finance-mcp-server"
]
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "yahoo-finance-mcp": { "command": "npx", "args": [ "-y", "yahoo-finance-mcp-server" ] } } }Or run: gemini mcp add -s user yahoo-finance-mcp npx -- -y yahoo-finance-mcp-server
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "yahoo-finance-mcp": { "command": "npx", "args": [ "-y", "yahoo-finance-mcp-server" ] } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "yahoo-finance-mcp": { "command": "npx", "args": [ "-y", "yahoo-finance-mcp-server" ] } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "yahoo-finance-mcp": { "command": "npx", "args": [ "-y", "yahoo-finance-mcp-server" ] } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "yahoo-finance-mcp": { "command": "npx", "args": [ "-y", "yahoo-finance-mcp-server" ] } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "yahoo-finance-mcp": { "command": "npx", "args": [ "-y", "yahoo-finance-mcp-server" ] } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "yahoo-finance-mcp": { "command": "npx", "args": [ "-y", "yahoo-finance-mcp-server" ] } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "yahoo-finance-mcp": { "command": "npx", "args": [ "-y", "yahoo-finance-mcp-server" ] } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
About Yahoo Finance
This server wraps Yahoo Finance data in 18 read-only tools and needs no API key. The README says a single npx command starts it locally, and the wrapper builds an isolated Python environment on first launch, so Python 3.10+ and Node.js 16+ are required.
Coverage is broad: quotes and OHLCV history, company profiles, annual statements, analyst ratings and estimates, options chains with implied volatility and open interest, institutional and insider holders, dividend and split history, ETF and fund holdings, sector overviews, an earnings calendar and predefined screeners such as day gainers or most shorted. Requests share one browser-impersonating HTTP session to reduce rate limiting.
Results come as Markdown by default or JSON on request, and also as structured content with a published output schema. Besides stdio, an --http flag serves Streamable HTTP at /mcp, useful for n8n; it adds no authentication, so keep it on a trusted interface.
Tools this server provides (18)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 16 of 18 tools read data; 2 names don't say.
From the server's own tool labels and tool names; not verified by us.
- get_stock_quoteName suggests: reads
- Current price, change, ranges, volume, market cap, P/E, EPS and dividend yield.
- get_historical_pricesName suggests: reads
- OHLCV history with summary stats and total return.
- get_company_infoName suggests: reads
- Business summary, key executives, valuation and financial highlights.
- get_financial_statementsName suggests: reads
- Annual income statement, balance sheet and cash flow.
- compare_stocks
- Key metrics for 2 to 10 tickers side by side.
- get_analyst_recommendationsName suggests: reads
- Price targets, consensus and recent rating changes.
- get_market_newsName suggests: reads
- Latest news headlines per ticker.
- get_options_chainName suggests: reads
- Expiration dates or calls and puts with strikes, volume, OI and IV.
- get_holdersName suggests: reads
- Institutional, mutual-fund, major holders or insider transactions.
- get_dividends_splitsName suggests: reads
- Dividend and stock-split history.
- get_analyst_estimatesName suggests: reads
- Forward price targets and EPS and revenue estimates.
- search_symbolsName suggests: reads
- Find ticker symbols by company name or keyword.
- get_market_statusName suggests: reads
- Whether a market is open, with an index summary.
- get_earningsName suggests: reads
- Next earnings date, ex-dividend date and beat/miss history.
- get_earnings_calendarName suggests: reads
- Companies reporting in a date range.
- screen_stocks
- Yahoo predefined screener results.
- get_fund_dataName suggests: reads
- ETF or mutual fund holdings, expense ratio and sector weights.
- get_sector_overviewName suggests: reads
- Sector or industry overview with top companies.
What it does
- 18 read-only tools
- Covers quotes, history, statements, options, holders and news.
- Stock screeners
- Runs Yahoo predefined screeners such as gainers and most active.
- Earnings tools
- Next dates, beat/miss history and a market-wide calendar.
- Fund and sector data
- ETF holdings, expense ratios and sector overviews.
- HTTP mode
- Serves Streamable HTTP for n8n and URL-only clients.
- Markdown or JSON
- Returns readable text or structured data.
Good for
- Compare several stocks side by side
- Check next earnings dates and estimates
- Inspect an options chain for a ticker
- Screen for undervalued growth stocks
- Feed market data into an n8n workflow
Pricing
Open source
MIT-licensed per README badge; no API key
Yahoo Finance FAQ
Do I need an API key?
No, the README calls it a free server with no key.
What do I need installed?
Python 3.10+ and Node.js 16+; npx sets up the rest.
Is the HTTP mode secured?
No authentication is added, so bind it to a trusted interface.
Can Yahoo Finance place trades?
The tools listed are read-only data tools.
Is Yahoo Finance free?
Yes. Yahoo Finance is open source, so you can use and self-host it for free.
How do I add Yahoo Finance to Claude Code?
Run this command in your terminal: claude mcp add yahoo-finance-mcp -- npx -y yahoo-finance-mcp-server
What are the best alternatives to Yahoo Finance?
The closest alternatives to Yahoo Finance are Solana MCP by Vybe, Tapetide - Indian Stock Market MCP, NostrPulse, Australian Economic Data (ABS, RBA & APRA) and Crypto Perp Pulse & Outage Radar (x402).
Where this comes from
- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.
