by Alex2Yang97
This is a Model Context Protocol (MCP) server that provides comprehensive financial data from Yahoo Finance. It allows you to retrieve detailed information about stocks, including historical prices, company information, financial statements, options data, and market news.
# Add to your Claude Code skills
git clone https://github.com/Alex2Yang97/yahoo-finance-mcpGuides for using mcp servers skills like yahoo-finance-mcp.
yahoo-finance-mcp is an open-source mcp servers skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by Alex2Yang97. This is a Model Context Protocol (MCP) server that provides comprehensive financial data from Yahoo Finance. It allows you to retrieve detailed information about stocks, including historical prices, company information, financial statements, options data, and market news. It has 372 GitHub stars.
yahoo-finance-mcp's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/Alex2Yang97/yahoo-finance-mcp" and add it to your Claude Code skills directory (see the Installation section above).
yahoo-finance-mcp is primarily written in Python. It is open-source under Alex2Yang97 on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other MCP Servers skills you can browse and compare side by side. Open the MCP Servers category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh yahoo-finance-mcp against similar tools.
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
This is a Model Context Protocol (MCP) server that provides comprehensive financial data from Yahoo Finance. It allows you to retrieve detailed information about stocks, including historical prices, company information, financial statements, options data, and market news.

The server exposes the following tools through the Model Context Protocol:
| Tool | Description |
|---|---|
get_historical_stock_prices |
Get historical OHLCV data for a stock with customizable period and interval |
get_stock_info |
Get comprehensive stock data including price, metrics, and company details |
get_yahoo_finance_news |
Get latest news articles for a stock |
get_stock_actions |
Get stock dividends and splits history |
| Tool | Description |
|---|---|
get_financial_statement |
Get income statement, balance sheet, or cash flow statement (annual/quarterly) |
get_holder_info |
Get major holders, institutional holders, mutual funds, or insider transactions |
| Tool | Description |
|---|---|
get_option_expiration_dates |
Get available options expiration dates |
get_option_chain |
Get options chain for a specific expiration date and type (calls/puts) |
| Tool | Description |
|---|---|
get_recommendations |
Get analyst recommendations or upgrades/downgrades history |
With this MCP server, you can use Claude to:
pyproject.toml, including:
uvxRun the server directly from the repository without creating a local virtual environment:
uvx --from git+https://github.com/Alex2Yang97/yahoo-finance-mcp yahoo-finance-mcp
Clone this repository:
git clone https://github.com/Alex2Yang97/yahoo-finance-mcp.git
cd yahoo-finance-mcp
Create and activate a virtual environment and install dependencies:
uv sync
Run the packaged entrypoint with:
uvx --from git+https://github.com/Alex2Yang97/yahoo-finance-mcp yahoo-finance-mcp
For local changes in this checkout, use:
uvx --from . yahoo-finance-mcp
If you are working inside a local clone and want to run the source tree directly:
uv run server.py
To integrate this server with Claude for Desktop:
Install Claude for Desktop to your local machine.
Install VS Code to your local machine. Then run the following command to open the claude_desktop_config.json file:
code ~/Library/Application\ Support/Claude/claude_desktop_config.jsoncode $env:AppData\Claude\claude_desktop_config.jsonEdit the Claude for Desktop config file, located at:
macOS:
{
"mcpServers": {
"yfinance": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/Alex2Yang97/yahoo-finance-mcp",
"yahoo-finance-mcp"
]
}
}
}
Windows:
{
"mcpServers": {
"yfinance": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/Alex2Yang97/yahoo-finance-mcp",
"yahoo-finance-mcp"
]
}
}
}
Note: You may need to put the full path to the uv executable in the command field. You can get this by running which uv on MacOS/Linux or where uv on Windows.
Restart Claude for Desktop
MIT