MCP Yahoo Finance server

MCP Yahoo Finance server

mcp-yahoo-finance•bymaxscheijen

This is a Model Context Protocol server that provides Yahoo Finance data, including stock prices, company profiles, historical prices, financial statements, news, analyst recommendations, earnings, dividends, and options.

License: Not specified•Runtime: Awaiting documentation review•Category: finance crypto

WHAT IT DOES

  • •Provides tools to retrieve current stock prices, rich quotes with trading range and market status, and company overview profiles.
  • •Returns historical stock prices, dividends, stock splits, and capital gains data.
  • •Offers options data tools for expiration dates, option chains, and option summaries with implied volatility and put/call ratios.
  • •Provides Yahoo Finance news retrieval with optional start and end date filters, returning up to 100 articles.

BEST FOR

  • •Answering questions about current stock prices and company overviews for specific tickers.
  • •Comparing stock performance and price changes across multiple companies or date ranges.
  • •Exploring call and put options for a stock by expiration date.

ABOUT MCP-YAHOO-FINANCE

MCP Yahoo Finance server is cataloged as an MCP server attributed to maxscheijen. This is a Model Context Protocol server that provides Yahoo Finance data, including stock prices, company profiles, historical prices, financial statements, news, analyst recommendations, earnings, dividends, and options. It is categorized under finance crypto. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP Yahoo Finance server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What format do the tools return?

Tools return data in JSON format, and errors use the same format across all tools with an error code and message.

Does the server return adjusted historical prices?

Historical price tools return adjusted prices by default, including stock split and dividend changes; set `adjusted` to `false` to get unadjusted prices.

Does the project provide investment advice?

No. The project does not give investment advice and warns that Yahoo Finance data may be late, incomplete, or unavailable.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 9bb8f4c52d05 · 采集于 2026-11-13 09:52:40 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

MCP Yahoo Finance

PyPI - Version PyPI - Python Version PyPI - License

MCP Yahoo Finance is a Model Context Protocol (MCP) server. It gets data from Yahoo Finance. You can use it to get stock prices, company data, past prices, financial reports, news, analyst ratings, earnings dates, dividends, and options data.

This project is in early development. Tool names and response fields can change between releases.

Install

You can run mcp-yahoo-finance without a separate install. Use uvx.

Use pip

pip install mcp-yahoo-finance

Use Git

Clone the repository. Then install the development environment:

git clone git@github.com:maxscheijen/mcp-yahoo-finance.git
cd mcp-yahoo-finance
uv sync

Configure

Claude Desktop

Add this entry to your claude_desktop_config.json file:

{
    "mcpServers": {
        "yahoo-finance": {
            "command": "uvx",
            "args": ["mcp-yahoo-finance"]
        }
    }
}

You can also use Docker. Replace IMAGE with the Docker image name:

{
    "mcpServers": {
        "yahoo-finance": {
            "command": "docker",
            "args": ["run", "-i", "--rm", "IMAGE"]
        }
    }
}

VS Code

Add this entry to your .vscode/mcp.json file:

{
    "servers": {
        "yahoo-finance": {
            "command": "uvx",
            "args": ["mcp-yahoo-finance"]
        }
    }
}

Example questions

You can ask questions like these:

  1. "What is the stock price of Apple?"
  2. "Give me a rich quote for AAPL with the previous close, intraday range, and market status."
  3. "Show me the company overview for Nvidia."
  4. "What is the difference in stock price between Apple and Google?"
  5. "How much did the stock price of Apple change between 2024-01-01 and 2025-01-01?"
  6. "What are the available options expiration dates for AAPL?"
  7. "Show me the options chain for AAPL expiring on 2024-01-19."
  8. "What are the call and put options for Tesla?"

Response data

Tools return data in JSON format. This is an example of a rich quote:

{
  "symbol": "AAPL",
  "currentPrice": 243.5822,
  "previousClose": 241.33,
  "absoluteChange": 2.2522,
  "percentChange": 0.9331,
  "open": 242.1,
  "dayHigh": 244.2,
  "dayLow": 241.9,
  "volume": 45678901,
  "marketStatus": "REGULAR",
  "currency": "USD",
  "exchange": "NMS",
  "timestamp": "2025-01-02T15:30:00+00:00",
  "source": {
    "provider": "Yahoo Finance",
    "endpoint": "info",
    "fetchedAt": "2025-01-02T15:30:01+00:00"
  }
}

Errors use the same format for all tools. An error includes an error code and a message:

{
  "error": {
    "code": "NO_DATA",
    "message": "No historical data found for AAPL"
  }
}

Historical and table results keep the column names from the data source. Dates use the YYYY-MM-DD format. The server does not show the time zone used by Yahoo Finance.

Historical price tools return adjusted prices by default. Adjusted prices include changes from stock splits and dividends. To get prices without these changes, set adjusted to false in get_historical_stock_prices.

Date searches include both the start date and the end date. If a date is a weekend or market holiday, there may be no price data for that date. In that case, the tool returns a NO_DATA error.

If quote or company data is missing, its value is null. The news tool returns 10 articles by default. It can return up to 100 articles. It includes the title, URL, publisher, thumbnail, related stock symbols, and publish time. The publish time uses UTC and the ISO 8601 format. You can set start_date and end_date to filter news. The filter includes both dates.

Recommendation, earnings, dividend, financial report, and options tools use a top-level symbol field. They return data from Yahoo Finance when that data is available.

Available tools

Use Yahoo Finance ticker symbols for symbol values. Examples are AAPL and MSFT.

ToolPurpose
get_current_stock_priceGets the current stock price and quote data.
get_rich_quoteGets a quote with price, price change, trading range, market status, and source data.
get_company_overviewGets a company profile with its sector, industry, market value, website, employee count, description, and source data.
get_symbol_comparisonCompares current quotes for up to 20 symbols.
get_performance_analysisCompares returns, moving averages, volatility, drawdown, benchmark returns, and correlation for multiple symbols.
get_portfolio_analysisCalculates position values and allocations from quantities, weighted portfolio returns from weights, or per-symbol watchlist metrics without sizing.
get_stock_price_by_dateGets the adjusted closing price for one trading date.
get_stock_price_date_rangeGets adjusted closing prices for a date range.
get_historical_stock_pricesGets past prices for a period and time interval.
get_dividendsGets past dividend payments.
get_stock_splitsGets past stock splits.
get_capital_gainsGets capital-gains payments.
get_upcoming_dividendsGets future dividend dates and rates.
get_earnings_analyticsGets earnings results and estimates.
get_income_statementGets an income statement by year, quarter, or trailing period.
get_cashflowGets a cash flow statement by period.
get_earning_datesGets past and future earnings dates.
get_newsGets Yahoo Finance news. You can set date filters.
get_recommendationsGets analyst recommendations.
get_option_expiration_datesGets available option expiration dates.
get_option_chainGets calls and puts for one expiration date. You can filter by strike price, moneyness, liquidity, spread, type, and number of results.
get_option_summaryGets implied volatility, open interest, volume, put/call ratios, and max pain for one expiration date.

Performance calculations

Performance analysis uses closing prices adjusted for stock splits and dividends.

Total return is (last close / first close) - 1.

Annual volatility is the standard deviation of daily returns multiplied by sqrt(252).

Maximum drawdown is the largest fall from a previous high.

The tool calculates correlation from daily returns on dates shared by the symbols. This lets it compare symbols that have different trading calendars.

get_portfolio_analysis accepts symbols, start_date, and end_date, plus either quantities, weights, or neither. Quantities report current market value and value-based allocations. Weights are normalized and applied to daily adjusted returns. Omitting both quantities and weights selects watchlist mode and returns per-symbol metrics without portfolio totals. Historical performance uses adjusted close prices; current market values use Yahoo's current quote. Portfolio totals require every available position to report the same currency. Missing history or quotes are omitted and described in errors. Unequal trading calendars use forward-filled closes for aggregate daily returns.

Develop locally

Run uv sync to install the locked development environment. Then run these commands:

uv run pytest
uv run ruff check .
uv run ruff format --check .
uv build

You can also use these Makefile commands:

make test
make lint
make docker-build

The tests use mock Yahoo Finance data. They do not make live requests to Yahoo Finance.

Build the Docker image

Run this command:

docker build -t mcp-yahoo-finance .

Test with MCP Inspector

Run this command:

npx @modelcontextprotocol/inspector uv run mcp-yahoo-finance

Yahoo Finance limits

Yahoo Finance is a third-party data source. Its data can be late, incomplete, or unavailable. This project does not give investment advice. It does not guarantee that the data is correct, complete, or up to date. Check important data with an authoritative source before you use it.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP Yahoo Finance server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-yahoo-finance)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related finance crypto MCP Servers

Alternative and complementary servers in the same category

View all in finance crypto →
USA Spending MCP Server
usaspending-mcp-server•thsmale

A stateless streamable HTTP MCP server for interacting with the official source of government spending data.

Repository stats unavailable
Finance & Analytics
Fortnox MCP server — More AI
more-ai-chatgpt-claude-mcp-fortnox•amor3

A hosted, remote MCP server for Fortnox that lets AI assistants answer questions from a company's bookkeeping and propose changes for approval before writing them.

0
Finance & Analytics

OptimistFi is a read-only remote MCP server that provides perpetual futures market data, perps prop firm rules and pricing, and US equity investment research.

Repository stats unavailable
Finance & Analytics