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

A Model Context Protocol server that provides financial data through Yahoo Finance API integration.
YFinance MCP Server is cataloged as an MCP server attributed to barvhaim. A Model Context Protocol server that provides financial data through Yahoo Finance API integration. 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.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for YFinance MCP 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.
Yes, invalid symbols return structured error messages.
README.md · 5e23e9cf05de · 采集于 2026-11-13 11:03:52 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
A comprehensive Model Context Protocol (MCP) server that provides financial data through Yahoo Finance API integration. This server enables AI agents to access real-time stock market data, historical prices, financial statements, and market analysis.
# Clone the repository
git clone https://github.com/barvhaim/yfinance-mcp-server.git
cd yfinance-mcp-server
# Install dependencies
uv sync
# Start the MCP server
uv run main.py
# The server will start and be ready to accept MCP client connections
Get comprehensive stock information including current price, market cap, and financial metrics.
Parameters:
symbol (str): Stock ticker symbol (e.g., 'AAPL', 'GOOGL')Returns: Stock information including price, market cap, P/E ratio, dividend yield, 52-week range, volume, beta, and company details.
Retrieve historical stock price data with flexible time periods and intervals.
Parameters:
symbol (str): Stock ticker symbolperiod (str): Time period (1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd, max)interval (str): Data interval (1m, 2m, 5m, 15m, 30m, 60m, 90m, 1h, 1d, 5d, 1wk, 1mo, 3mo)Returns: Historical OHLCV data with dates and volume information.
Get dividend payment history for a stock.
Parameters:
symbol (str): Stock ticker symbolReturns: List of dividend payments with dates and amounts.
Retrieve stock split history.
Parameters:
symbol (str): Stock ticker symbolReturns: List of stock splits with dates and split ratios.
Get comprehensive financial statements.
Parameters:
symbol (str): Stock ticker symbolquarterly (bool): Get quarterly data if True, annual if FalseReturns: Income statement, balance sheet, and cash flow statement data.
Retrieve earnings data for analysis.
Parameters:
symbol (str): Stock ticker symbolReturns: Annual and quarterly earnings data.
Get recent news articles related to a stock.
Parameters:
symbol (str): Stock ticker symbolcount (int): Number of articles to return (default: 10)Returns: List of news articles with titles, links, publishers, and timestamps.
Get analyst recommendations and ratings.
Parameters:
symbol (str): Stock ticker symbolReturns: List of analyst recommendations with firms, ratings, and actions.
Search for stocks by company name or ticker symbol.
Parameters:
query (str): Search query (company name or ticker)limit (int): Maximum results to return (default: 10)Returns: List of matching stocks with symbols, names, and exchange information.
Get current quotes for multiple stocks simultaneously.
Parameters:
symbols (List[str]): List of stock ticker symbolsReturns: Dictionary of stock quotes with current prices, changes, and basic metrics.
# Get Apple stock information
result = await get_stock_info("AAPL")
print(f"Current Price: ${result['current_price']}")
print(f"Market Cap: ${result['market_cap']:,}")
# Get 1-year daily data for Google
result = await get_historical_data("GOOGL", period="1y", interval="1d")
print(f"Retrieved {result['count']} data points")
# Get quotes for tech stocks
result = await get_multiple_quotes(["AAPL", "GOOGL", "MSFT", "AMZN"])
for symbol, quote in result['quotes'].items():
print(f"{symbol}: ${quote['current_price']}")
To connect this server with Claude Desktop:
Start the server in one terminal:
uv run main.py
Configure Claude Desktop by editing your MCP settings file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Add the server configuration:
{
"yfinance": {
"command": "uv",
"args": [
"--directory",
"/path/to/yfinance-mcp-server",
"run",
"main.py"
]
}
}
Update the cwd path to your actual project directory
Restart Claude Desktop to load the new server
Verify connection by asking Claude: "What financial data tools do you have available?"
For other MCP clients:
uv run main.py# Format code with black
uv run black .
# Check formatting
uv run black --check .
# Show formatting differences
uv run black --diff .
main.py@mcp.tool()Copy .env.sample to .env for any configuration needed:
cp .env.sample .env
All tools include comprehensive error handling:
This project is available under the MIT License.
For issues and questions:
CLAUDE.md file for development guidanceuv syncClaim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for YFinance MCP Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/yfinance-mcp-server-barvhaim)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

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

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.

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.