mcp-yahoo-finance

v0.2.0
mcp-yahoo-finance Checked 3 days ago Published 2 months ago

A 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.

ParameterTypeDescription
symbol *stringStock symbol in Yahoo Finance format.

get_rich_quote

Get a normalized quote snapshot for one stock symbol.

ParameterTypeDescription
symbol *stringStock symbol in Yahoo Finance format.

get_company_overview

Get a normalized company overview for one stock symbol.

ParameterTypeDescription
symbol *stringStock symbol in Yahoo Finance format.

get_symbol_comparison

Compare current quote data for multiple stock symbols.

ParameterTypeDescription
symbols *arrayOne to 20 Yahoo Finance symbols to compare.

get_performance_analysis

Analyze adjusted performance for multiple symbols over a date range.

ParameterTypeDescription
end_date *stringInclusive end date in YYYY-MM-DD format.
start_date *stringInclusive start date in YYYY-MM-DD format.
symbols *arrayOne to 10 Yahoo Finance symbols to analyze.
benchmark_symbolstringOptional symbol used for relative return and correlation.
limitintegerMaximum 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.

ParameterTypeDescription
date *stringThe date in YYYY-MM-DD format.
symbol *stringStock symbol in Yahoo Finance format.

get_stock_price_date_range

Get stock prices for a symbol over an inclusive date range.

ParameterTypeDescription
end_date *stringThe end date in YYYY-MM-DD format.
start_date *stringThe start date in YYYY-MM-DD format.
symbol *stringStock symbol in Yahoo Finance format.

get_historical_stock_prices

Get historical stock prices for a given stock symbol.

ParameterTypeDescription
symbol *stringStock symbol in Yahoo Finance format.
adjustedbooleanReturn split- and dividend-adjusted prices. Defaults to True.
intervalstringThe interval between data points.
periodstringThe period for historical data.

get_dividends

Get normalized dividend history for a given stock symbol.

ParameterTypeDescription
symbol *stringStock symbol in Yahoo Finance format.

get_stock_splits

Get normalized stock split history for a symbol.

ParameterTypeDescription
symbol *stringStock symbol in Yahoo Finance format.

get_capital_gains

Get normalized capital-gains distributions for a symbol.

ParameterTypeDescription
symbol *stringStock symbol in Yahoo Finance format.

get_upcoming_dividends

Get upcoming dividend dates and rates when Yahoo provides them.

ParameterTypeDescription
symbol *stringStock symbol in Yahoo Finance format.

get_earnings_analytics

Get earnings surprise history and analyst estimate history.

ParameterTypeDescription
symbol *stringStock symbol in Yahoo Finance format.
limitintegerMaximum rows returned for each history, from 1 to 100.

get_income_statement

Get the income statement for a given stock symbol.

ParameterTypeDescription
symbol *stringStock symbol in Yahoo Finance format.
freqstringStatement frequency. Defaults to "yearly".

get_cashflow

Get the cashflow statement for a given stock symbol.

ParameterTypeDescription
symbol *stringStock symbol in Yahoo Finance format.
freqstringStatement frequency. Defaults to "yearly".

get_earning_dates

Get recent and upcoming earnings dates.

ParameterTypeDescription
symbol *stringStock symbol in Yahoo Finance format.
limitintegerMaximum number of earnings dates, from 1 to 100.

get_news

Get normalized, bounded news for a stock symbol.

ParameterTypeDescription
symbol *stringStock symbol in Yahoo Finance format.
end_datestringInclude articles published on or before this YYYY-MM-DD date.
limitintegerMaximum number of articles, from 1 to 100.
start_datestringInclude articles published on or after this YYYY-MM-DD date.

get_recommendations

Get analyst recommendations for a given symbol.

ParameterTypeDescription
symbol *stringStock symbol in Yahoo Finance format.

get_option_expiration_dates

Get available option expiration dates for a stock symbol.

ParameterTypeDescription
symbol *stringStock symbol in Yahoo Finance format.

get_option_chain

Get a filtered, bounded option chain for one expiration date.

ParameterTypeDescription
expiration_date *stringExpiration date in YYYY-MM-DD format.
symbol *stringStock symbol in Yahoo Finance format.
limitintegerMaximum contracts returned per side, from 1 to 100.
max_bid_ask_spreadnumberMaximum ask minus bid spread, inclusive.
max_strikenumberMaximum strike price, inclusive.
min_open_interestintegerMinimum open interest, inclusive.
min_strikenumberMinimum strike price, inclusive.
min_volumeintegerMinimum volume, inclusive.
moneynessstringRestrict results to in-the-money, out-of-the-money, or at-the-money contracts.
option_typestringReturn calls, puts, or both.

get_option_summary

Summarize option interest, volume, volatility, ratios, and max pain.

ParameterTypeDescription
expiration_date *stringExpiration date in YYYY-MM-DD format.
symbol *stringStock symbol in Yahoo Finance format.
limitintegerMaximum contracts considered per side, from 1 to 100.