yfinance-mcp MCP server
What yfinance-mcp does
Summarised from the project README; check the repository for the latest details.
Features
- Stock Data — Company info, financials, valuation metrics, dividends, and trading data
- Analyst Data — Consensus targets, estimate/revision trends, recommendation history, and firm-level actions
- Financial Statements — Income statement and balance sheet with historical data (EBIT, Invested Capital, etc.)
- Financial News — Recent news articles and press releases for any ticker
- Search — Find stocks, ETFs, and news across Yahoo Finance
- Sector Rankings — Top ETFs, mutual funds, companies, growth leaders, and top performers by sector
Tools exposed (20+)
yfinance_get_ticker_infoParameter– Typesymbol– stringyfinance_get_analyst_price_targetsyfinance_get_analyst_estimatessections– arraymax_rows– numberyfinance_get_upgrades_downgradesGradeDate– Date and time of the analyst actionFirm– Analyst firm nameToGrade– and `FromGrade`: New and previous ratingsAction– Rating actionpriceTargetAction– Price-target action such as `Raises`, `Lowers`, or `Maintains`currentPriceTarget– and `priorPriceTarget`: New and previous price targetsyfinance_get_ticker_newsyfinance_searchquery– stringsearch_type– stringyfinance_get_topsector– string
Requirements
- Python ≥ 3.12
- uv package manager
- Python with uv (runs with uvx/uv)
Repository: narumiruna/yfinance-mcp
Stars: ★201
Language: Python
Last updated: 2026-10-11
financemcpmcp-serverpythonyahoo-finance
Stars: ★201
Language: Python
Last updated: 2026-10-11
financemcpmcp-serverpythonyahoo-finance
How to install yfinance-mcp MCP in Claude Desktop, Cursor and VS Code
Install
Taken from the project README (README mcpServers JSON). Check the README for required API keys before use.
Claude Code
Terminal (claude CLI)
claude mcp add --transport stdio yfmcp -- uvx yfmcp@latestClaude Desktop
claude_desktop_config.json
{
"mcpServers": {
"yfmcp": {
"command": "uvx",
"args": [
"yfmcp@latest"
]
}
}
}Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"yfmcp": {
"command": "uvx",
"args": [
"yfmcp@latest"
]
}
}
}VS Code
.vscode/mcp.json
{
"servers": {
"yfmcp": {
"type": "stdio",
"command": "uvx",
"args": [
"yfmcp@latest"
]
}
}
}Add to config generator – combine it with other servers, or get the Windsurf format.
Maintain this project? Get it featured for free during launch →
Related Finance & Crypto MCP servers
tradingview-mcp by atilaahmettaner · ★5060
TradingView MCP server — real-time market data, technical analysis, screeners & backtesting for Claude, ChatGPT, Cursor & any MCP client. St
Finance & Crypto
TradingView MCP server — real-time market data, technical analysis, screeners & backtesting for Claude, ChatGPT, Cursor & any MCP client. St
Finance & Crypto
solana-mcp-vybe by vybenetwork · ★1896
Public Solana MCP registry metadata for Vybe Solana API
Finance & Crypto
Public Solana MCP registry metadata for Vybe Solana API
Finance & Crypto
mcp-language-server by isaacphi · ★1609
mcp-language-server gives MCP enabled clients access semantic tools like get definition, references, rename, and diagnostics.
Finance & Crypto
mcp-language-server gives MCP enabled clients access semantic tools like get definition, references, rename, and diagnostics.
Finance & Crypto
ai-trader by whchien · ★1109
Backtrader-powered backtesting framework for algorithmic trading, featuring 20+ strategies, multi-market support, CLI tools, and an integrat
Finance & Crypto
Backtrader-powered backtesting framework for algorithmic trading, featuring 20+ strategies, multi-market support, CLI tools, and an integrat
Finance & Crypto
alpaca-mcp-server by alpacahq · ★1022
Alpaca’s official MCP Server lets you trade stocks, ETFs, crypto, and options, run data analysis, and build strategies in plain English dire
Finance & Crypto
Alpaca’s official MCP Server lets you trade stocks, ETFs, crypto, and options, run data analysis, and build strategies in plain English dire
Finance & Crypto
Weekly MCP digest – new and trending MCP servers in your inbox.