Unofficial Yahoo Finance MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| YF_MCP_HOST | No | Bind host for HTTP transports (e.g., 0.0.0.0 for remote). | 127.0.0.1 |
| YF_MCP_PATH | No | URL path for HTTP transports (for sse, default is /sse). | /mcp |
| YF_MCP_PORT | No | Port for HTTP transports. | 8000 |
| YF_MCP_CACHE | No | Set to '1' to enable persistent result cache (off by default). | |
| YF_MCP_CACHE_DIR | No | Directory for the cache file (default is OS cache directory). | |
| YF_MCP_LOG_LEVEL | No | Log level: DEBUG, INFO, WARNING, ERROR, or CRITICAL. | INFO |
| YF_MCP_TRANSPORT | No | Transport type: stdio, streamable-http, or sse. | stdio |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Read-only access to Yahoo Finance market data. Three things decide whether a call succeeds, and two more decide whether its answer is read correctly.
Symbols. Every tool taking a symbol accepts a Yahoo ticker such as AAPL, SAP.DE or BTC-USD, or a plain ISIN such as US0378331005, which is looked up through Yahoo's search and replaced by its ticker before the call. Pass either through unchanged — a symbol should never be assembled or transformed. A company name is not a symbol: resolve it with search and pass back what that returns. German WKNs resolve nowhere, not even through search, so ask for a ticker, an ISIN or the company name instead. Four tools are the exceptions: get_sector, get_industry and get_market take a key, not a ticker, and screen takes filters and finds the symbols itself.
Missing data is normal. Analyst, holder, earnings, insider, filing and calendar data exist for equities only, and for an ETF, fund or crypto those tools answer with an error that says so, which does not mean the symbol is wrong. get_fund_data is the reverse and fails for anything that is not a fund. An empty field usually means the instrument has no such data, not that the call went wrong.
Rate limits. Yahoo throttles aggressively and unpredictably. A rate-limit error is temporary and says nothing about the arguments — wait and retry rather than changing the call.
Currencies are never converted. Every price, market cap and statement figure is in the instrument's own currency, reported as currency where the tool has it. Comparing AAPL with SAP.DE, or summing them, means mixing USD and EUR, and nothing in the data will flag that.
Results are capped, mostly in silence. Only get_history, get_quotes and get_options report a truncated flag, and screen reports the total number of matches. Every other tool quietly returns at most its top or most recent rows, so a short list is not evidence that the list is short. Where a tool takes a limit, raise it rather than concluding there is no more.
Data is delayed and may be incomplete. This is not investment advice.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| searchA | Search Yahoo Finance by company name, ticker symbol, or ISIN. Use this to turn a company name into a Yahoo |
| get_quoteA | Get the current price and key intraday figures for a Yahoo symbol. One symbol: currency, exchange, last price, previous close, open, day
high/low, volume, market cap, 50- and 200-day averages and the 52-week
range and change. To
compare several symbols use |
| get_quotesA | Get compact current quotes for several Yahoo symbols in one call. Use this to compare or fetch prices for multiple tickers at once. Each symbol
is looked up individually and returns currency, last price, previous close,
open, day high/low, and market cap. Symbols that return no data are listed
under |
| get_historyA | Get historical OHLCV (open/high/low/close/volume) data for a symbol. Query a look-back |
| get_company_infoA | Get a company profile and key statistics for a Yahoo symbol. Use it for what a company is and how it is valued. For the price right
now use |
| get_financialsA | Get a financial statement for a Yahoo symbol. Use it for reported line items such as revenue, net income, debt or free
cash flow. For reported EPS against the estimate use |
| get_dividendsA | Get the dividend and stock-split history for a Yahoo symbol. |
| get_newsA | Get recent news headlines for a Yahoo symbol (up to Each article includes title, summary, publisher, publish time, and URL.
|
| get_calendarA | Get upcoming corporate-calendar events for a Yahoo symbol. Returns the next earnings date(s) with analyst estimate ranges and the next dividend / ex-dividend dates. Equity-only: an ETF, fund or crypto symbol answers with an error that says so. |
| get_sharesA | Get the shares-outstanding history for a Yahoo symbol. Each point is a date and the reported shares outstanding. Only the most
recent |
| get_recommendationsA | Get analyst recommendation trends and price targets for a Yahoo symbol. Returns the buy/hold/sell trend over recent months plus current/high/low/ mean/median analyst price targets when available. |
| get_earningsA | Get upcoming and historical earnings for a Yahoo symbol. Returns the earnings calendar (upcoming and past dates with EPS estimate,
reported EPS, and surprise %) plus the recent earnings history. Equity-only:
an ETF, fund or crypto symbol answers with an error that says so.
|
| get_estimatesA | Get forward analyst estimates for a Yahoo symbol. Returns earnings and revenue estimates, EPS trend and revisions, and growth
estimates (small tables keyed by period). Equity-only: an ETF, fund or
crypto symbol answers with an error that says so. |
| get_upgrades_downgradesA | Get recent analyst rating changes (upgrades/downgrades) for a Yahoo symbol. Each entry is a firm's rating change with the from/to grade and action, most recent first. Equity-only: an ETF, fund or crypto symbol answers with an error that says so. |
| get_holdersA | Get the ownership breakdown for a Yahoo symbol. Returns the high-level holder summary (insider/institutional percentages) plus the top institutional and mutual-fund holders. Equity-only: an ETF, fund or crypto symbol answers with an error that says so. |
| get_insider_activityA | Get insider trading activity for a Yahoo symbol. Returns individual insider transactions, a 6-month purchases/sales summary, and the current insider roster. Equity-only: an ETF, fund or crypto symbol answers with an error that says so. |
| get_sec_filingsA | Get recent SEC filings for a Yahoo symbol. Each entry has the filing date, type (e.g. |
| get_optionsA | Get the option chain for a Yahoo symbol. Call without |
| get_fund_dataA | Get fund/ETF profile data for a Yahoo symbol. Returns the fund overview, key figures, asset-class and sector weightings, and the top holdings. The key figures are the expense ratio (with the category average), holdings turnover, total assets, and the returns year to date and averaged over three and five years. Ratios and returns are fractions, 0.0007 for 0.07%, and a figure Yahoo lacks is left out, which for European ETFs is often the returns and the size. Fund/ETF-only, raises for stocks and crypto, which have no fund data. |
| get_sectorA | Browse a market sector by its Yahoo key (not a ticker symbol). Returns the sector overview (company count, market cap/weight, description),
its top companies, ETFs, and mutual funds, and the constituent industries.
Each industry's |
| get_industryA | Browse an industry by its Yahoo key (not a ticker symbol). Returns the industry overview, its parent sector, top companies, and the
top-performing and top-growth companies. Discover valid industry keys from
the |
| get_marketA | Get the trading status and headline index summary for a market. Answers questions like whether the market is open, when it opens or closes
next, and how the major indices are doing. Takes a market key such as
|
| screenA | Find stocks by criteria, e.g. dividend payers in a region or cheap large caps. Fields are these aliases, or a raw Yahoo screener field name:
Percentages are in percent, 3 means 3 %. A loss makes pe_ratio negative, so pair lt with gt 0. region is where a stock is listed, not where the company sits, so 'de' includes foreign companies traded in Germany, and a company appears once per listing. Preferred shares are listings too (on US exchanges symbols like JPM-PD), carrying the common stock's eps and market cap, so their pe_ratio means nothing. Returns total (all matches) and one row per match with price, valuation and dividend figures. A row's dividend_yield can be missing or differ markedly from the filter, which holds for Yahoo's screener data, not for that column. The other filters' figures are not in the rows: get_company_info adds beta and forward P/E, get_holders the ownership shares, get_financials the statements behind margins, growth and debt. |
| server_statusA | Report this server's version, transport and uptime. With |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| asset_analysis | One instrument in facts and own calculations: price, valuation, analysts. |
| compare | Several instruments side by side over one period, on one basis. |
| earnings_preview | What to expect from the next report of a company, and its record so far. |
| etf_profile | What a fund or ETF holds, what it costs and how it did. |
| dividend_calendar | Dividends per position and month for a year, paid and forecast, by rules. |
| find_symbol | The Yahoo symbol for a company name or an ISIN, on the right exchange. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 24 tools
Nearly every tool targets a distinct resource: single quote vs. batch quotes, company profile vs. financial statements vs. analyst estimates are all explicitly separated, and descriptions cross-reference each other to steer selection. The only real overlap is around corporate events — get_calendar (next earnings/dividend dates), get_earnings (earnings calendar + history), and get_dividends (dividend history) partially cover the same ground, though the descriptions make the boundary workable.
The dominant pattern is a clean `get_<noun>` convention (get_quote, get_history, get_financials, get_fund_data, get_sec_filings), which behaves predictably. The deviations — `search`, `screen`, and `server_status` — are bare verbs/status names rather than verb_noun, but they are few and still readable.
24 tools is on the heavy side and sits at the upper edge of the comfortable band, but the breadth mirrors Yahoo Finance's actual data surface (quotes, statements, analysts, ownership, filings, options, funds, screening, sector browsing). Each tool maps to a distinct upstream dataset rather than duplicating another, so the count is defensible.
Coverage spans the full read-only lifecycle: symbol discovery (search), price and history, statements, earnings/estimates, analyst views, ownership and insider activity, SEC filings, options chains, fund/ETF profiles, dividends, news, and market/sector/industry browsing plus a screener. Only exotic gaps remain (e.g. no movers/trending endpoint, quote lacks a timestamp), and those are noted in the descriptions rather than leaving silent dead ends.