Yahoo Finance
Lets your AI agent get stock data, news, financials, options, analyst ratings and charts from Yahoo Finance.
207 stars on GitHubby narumirunaLicense MITUpdated 22 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add yfinance -- uvx yfmcp
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Show me Apple's income statement and balance sheet for the last four years.
Draw a candlestick chart with volume for MSFT over six months.
What it is
This server gives your AI assistant access to Yahoo Finance data through the yfinance library. You can ask about companies, prices, financial statements, news and holders. It can also run screeners and draw candlestick, VWAP and volume profile charts.
What it can do
yfinance_get_ticker_info: company info, valuation and trading datayfinance_get_price_history: price history as a table or chartyfinance_get_financials: income statement, balance sheet and cash flowyfinance_get_analyst_price_targets: analyst consensus targetsyfinance_get_ticker_news: recent news for a stockyfinance_search: search stocks, ETFs and newsyfinance_screen: run Yahoo screenersyfinance_get_holders: major, institutional and insider holders
When to use
- βΊWhen you want a quick summary of a company's financials and valuation.
- βΊWhen you want a candlestick or VWAP chart for a ticker.
- βΊWhen you want to scan for stocks that gapped up or find top ETFs in a sector.
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
yfinancePulls free stock, ETF, and index data from Yahoo Finance for US, Hong Kong, and Canadian markets, with no API key needed.stocksLets your agent check stock and crypto prices, search for tickers, pull price history, and compare companies, using Yahoo Finance data.earnings-revisionHelps your agent track how analysts change their earnings forecasts, read company guidance shifts and measure how stock prices drift after earnings news.Frequently asked questions
Is it free and open source?
It is MIT licensed. The readme does not mention any price or API key.
Where does the data come from?
From Yahoo Finance through the yfinance library.
What kind of charts can it make?
Candlestick with volume, VWAP and volume profile charts, returned as WebP images.
Can it screen stocks?
Yes. It supports predefined Yahoo screeners, custom equity, fund and ETF queries and a gappers screener.
Are there result limits?
Screeners return up to 250 rows. Some tools have row limits you can change, such as max_rows.
Does a ticker format matter?
Yes. Symbols may use letters, digits and . - ^ = & _. Examples are BRK.B, 2330.TW, ^GSPC, EURUSD=X and BTC-USD.
If it does not work
- βΊIf a ticker is rejected with INVALID_PARAMS, check the symbol format; it only accepts letters, digits and . - ^ = & _.
- βΊAnalyst and holder data can be missing for some symbols; this is normal.
- βΊCheck that Python is installed and that the package can be started by your client.
5 new skills a week. 1 minute to read.