Yahoo Finance
About
Provides comprehensive financial data from Yahoo Finance, including historical prices, company info, financial statements, and market news.
Details
- Author
- atishayjn
- Categories
- Web Scraping, Finance, Other
Jump to
Setup
Install Yahoo Finance in your MCP client (Claude Desktop, Cursor, Windsurf, and others).
Repository: https://github.com/atishayjn/yfinance-mcp
Follow the installation instructions in the repository README, then restart your MCP client.
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:
With this MCP server, you can use Claude to:
- Price Analysis: "Show me the historical stock prices for AAPL over the last 6 months with daily intervals."
- Financial Health: "Get the quarterly balance sheet for Microsoft."
- Performance Metrics: "What are the key financial metrics for Tesla from the stock info?"
- Trend Analysis: "Compare the quarterly income statements of Amazon and Google."
- Cash Flow Analysis: "Show me the annual cash flow statement for NVIDIA."
- News Analysis: "Get the latest news articles about Meta Platforms."
- Institutional Activity: "Show me the institutional holders of Apple stock."
- Insider Trading: "What are the recent insider transactions for Tesla?"
- Options Analysis: "Get the options chain for SPY with expiration date 2024-06-21 for calls."
- Analyst Coverage: "What are the analyst recommendations for Amazon over the last 3 months?"
- "Create a comprehensive analysis of Microsoft's financial health using their latest quarterly financial statements."
- "Compare the dividend history and stock splits of Coca-Cola and PepsiCo."
- "Analyze the institutional ownership changes in Tesla over the past year."
- "Generate a report on the options market activity for Apple stock with expiration in 30 days."
- "Summarize the latest analyst upgrades and downgrades in the tech sector over the last 6 months."
- Python 3.11 or higher
- Dependencies as listed inpyproject.toml, including:
- mcp
- yfinance
- pandas
- pydantic
- and other packages for data processing
git clone https://github.com/Alex2Yang97/yahoo-finance-mcp.git cd yahoo-finance-mcp
Create and activate a virtual environment and install dependencies:
uv venv source .venv/bin/activate # On Windows: .venv\Scripts\activate uv pip install -e .
You can test the server with MCP Inspector by running:
This will start the server and allow you to test the available tools.
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 theclaude_desktop_config.jsonfile:
- MacOS:code ~/Library/Application\ Support/Claude/claude_desktop_config.json
- Windows:code $env:AppData\Claude\claude_desktop_config.json
Edit the Claude for Desktop config file, located at:
{ "mcpServers": { "yfinance": { "command": "uv", "args": [ "--directory", "/ABSOLUTE/PATH/TO/PARENT/FOLDER/yahoo-finance-mcp", "run", "server.py" ] } } }
{ "mcpServers": { "yfinance": { "command": "uv", "args": [ "--directory", "C:\\ABSOLUTE\\PATH\\TO\\PARENT\\FOLDER\\yahoo-finance-mcp", "run", "server.py" ] } } }
Note: You may need to put the full path to the uv executable in the command field. You can get this by runningwhich uvon MacOS/Linux orwhere uvon Windows.
Fetches USD and EUR prices from the Cuban parallel market via eltoque.com.
Stock prices, cryptocurrency data, exchange rates, and portfolio tracking
Provides real-time financial market data from Yahoo Finance.
Model Context Protocol Servers for Orlen Wholesale Price.
Interact with Yahoo Finance to get stock data, market news, and financial information using the yfinance Python library.
Fetch stock data, news, and financial information from Yahoo Finance.
Stock quotes, options chains, earnings data, and financial statements
Turn Claude into a personal Indian equity analyst powered by live Screener.in data.
Enable AI agents to get structured data from unstructured web with AgentQL.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.




