mcp-yahoo-finance
v0.2.0A Model Context Protocol (MCP) server providing tools to interact with Yahoo Finance for LLMs
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_current_stock_price
Get the current stock price based on stock symbol.
| Parameter | Type | Description |
|---|---|---|
symbol * | string | Stock symbol in Yahoo Finance format. |
get_rich_quote
Get a normalized quote snapshot for one stock symbol.
| Parameter | Type | Description |
|---|---|---|
symbol * | string | Stock symbol in Yahoo Finance format. |
get_company_overview
Get a normalized company overview for one stock symbol.
| Parameter | Type | Description |
|---|---|---|
symbol * | string | Stock symbol in Yahoo Finance format. |
get_symbol_comparison
Compare current quote data for multiple stock symbols.
| Parameter | Type | Description |
|---|---|---|
symbols * | array | One to 20 Yahoo Finance symbols to compare. |
get_performance_analysis
Analyze adjusted performance for multiple symbols over a date range.
| Parameter | Type | Description |
|---|---|---|
end_date * | string | Inclusive end date in YYYY-MM-DD format. |
start_date * | string | Inclusive start date in YYYY-MM-DD format. |
symbols * | array | One to 10 Yahoo Finance symbols to analyze. |
benchmark_symbol | string | Optional symbol used for relative return and correlation. |
limit | integer | Maximum price rows returned per symbol, from 1 to 500. |
get_stock_price_by_date
Get the stock price for a given stock symbol on a specific date.
| Parameter | Type | Description |
|---|---|---|
date * | string | The date in YYYY-MM-DD format. |
symbol * | string | Stock symbol in Yahoo Finance format. |
get_stock_price_date_range
Get stock prices for a symbol over an inclusive date range.
| Parameter | Type | Description |
|---|---|---|
end_date * | string | The end date in YYYY-MM-DD format. |
start_date * | string | The start date in YYYY-MM-DD format. |
symbol * | string | Stock symbol in Yahoo Finance format. |
get_historical_stock_prices
Get historical stock prices for a given stock symbol.
| Parameter | Type | Description |
|---|---|---|
symbol * | string | Stock symbol in Yahoo Finance format. |
adjusted | boolean | Return split- and dividend-adjusted prices. Defaults to True. |
interval | string | The interval between data points. |
period | string | The period for historical data. |
get_dividends
Get normalized dividend history for a given stock symbol.
| Parameter | Type | Description |
|---|---|---|
symbol * | string | Stock symbol in Yahoo Finance format. |
get_stock_splits
Get normalized stock split history for a symbol.
| Parameter | Type | Description |
|---|---|---|
symbol * | string | Stock symbol in Yahoo Finance format. |
get_capital_gains
Get normalized capital-gains distributions for a symbol.
| Parameter | Type | Description |
|---|---|---|
symbol * | string | Stock symbol in Yahoo Finance format. |
get_upcoming_dividends
Get upcoming dividend dates and rates when Yahoo provides them.
| Parameter | Type | Description |
|---|---|---|
symbol * | string | Stock symbol in Yahoo Finance format. |
get_earnings_analytics
Get earnings surprise history and analyst estimate history.
| Parameter | Type | Description |
|---|---|---|
symbol * | string | Stock symbol in Yahoo Finance format. |
limit | integer | Maximum rows returned for each history, from 1 to 100. |
get_income_statement
Get the income statement for a given stock symbol.
| Parameter | Type | Description |
|---|---|---|
symbol * | string | Stock symbol in Yahoo Finance format. |
freq | string | Statement frequency. Defaults to "yearly". |
get_cashflow
Get the cashflow statement for a given stock symbol.
| Parameter | Type | Description |
|---|---|---|
symbol * | string | Stock symbol in Yahoo Finance format. |
freq | string | Statement frequency. Defaults to "yearly". |
get_earning_dates
Get recent and upcoming earnings dates.
| Parameter | Type | Description |
|---|---|---|
symbol * | string | Stock symbol in Yahoo Finance format. |
limit | integer | Maximum number of earnings dates, from 1 to 100. |
get_news
Get normalized, bounded news for a stock symbol.
| Parameter | Type | Description |
|---|---|---|
symbol * | string | Stock symbol in Yahoo Finance format. |
end_date | string | Include articles published on or before this YYYY-MM-DD date. |
limit | integer | Maximum number of articles, from 1 to 100. |
start_date | string | Include articles published on or after this YYYY-MM-DD date. |
get_recommendations
Get analyst recommendations for a given symbol.
| Parameter | Type | Description |
|---|---|---|
symbol * | string | Stock symbol in Yahoo Finance format. |
get_option_expiration_dates
Get available option expiration dates for a stock symbol.
| Parameter | Type | Description |
|---|---|---|
symbol * | string | Stock symbol in Yahoo Finance format. |
get_option_chain
Get a filtered, bounded option chain for one expiration date.
| Parameter | Type | Description |
|---|---|---|
expiration_date * | string | Expiration date in YYYY-MM-DD format. |
symbol * | string | Stock symbol in Yahoo Finance format. |
limit | integer | Maximum contracts returned per side, from 1 to 100. |
max_bid_ask_spread | number | Maximum ask minus bid spread, inclusive. |
max_strike | number | Maximum strike price, inclusive. |
min_open_interest | integer | Minimum open interest, inclusive. |
min_strike | number | Minimum strike price, inclusive. |
min_volume | integer | Minimum volume, inclusive. |
moneyness | string | Restrict results to in-the-money, out-of-the-money, or at-the-money contracts. |
option_type | string | Return calls, puts, or both. |
get_option_summary
Summarize option interest, volume, volatility, ratios, and max pain.
| Parameter | Type | Description |
|---|---|---|
expiration_date * | string | Expiration date in YYYY-MM-DD format. |
symbol * | string | Stock symbol in Yahoo Finance format. |
limit | integer | Maximum contracts considered per side, from 1 to 100. |