compare_stocks
Compare Stocks
Compare key metrics across multiple stocks. Returns: Comparison table of price, market cap, P/E, dividend yield, and returns
tickers必填
io.github.lkcair由 GitHub 账号 lkcair 发布v5.0.5更新于 Oct 29, 2026
Yahoo Finance in 68 tools: stocks, crypto, forex, commodities, funds, options, analysts, calendars.
发布方自己的服务:Finance Foundation
本地 MCP 服务器,提供 68 个只读的 Yahoo Finance 工具,让助手查询股票、基金、加密货币、外汇和商品市场数据。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
参照 仓库 中的启动说明。
World's first AI-powered Yahoo Finance integration: 68 tools for stocks, ETFs, mutual funds, crypto, forex and commodities, in one Python file.
🚀 Thousands of downloads on ClawHub and OpenWebUI
Prices and history, financial statements, ratios and valuation history, analyst estimates and price targets, earnings, dividends, options, holders and insiders, funds and ETFs, market movers, sectors and industries, and earnings, IPO, economic and split calendars.
Needs uv. No API key.
Claude Code:
VS Code:
Claude Desktop, Cursor, Windsurf and other clients, in the client's MCP config file:
@latest picks up new releases when the client starts. Without uv: pip install yfinance-ai, then use "command": "yfinance-ai" with no args.
Listed in the MCP Registry as io.github.lkcair/yfinance-ai. Every tool is read-only.
The server runs over stdio with uvx yfinance-ai@latest, so any framework with MCP support can load all its tools.
LangChain: pip install "langchain[mcp]" langchain-anthropic
Google ADK: pip install "google-adk[mcp]"
Strands Agents: pip install strands-agents
MIT. Data comes from Yahoo Finance through yfinance and may be delayed. Not affiliated with Yahoo. For research and education, not investment advice.
来源:README.md,提交 2477fa8
Compare Stocks
Compare key metrics across multiple stocks. Returns: Comparison table of price, market cap, P/E, dividend yield, and returns
tickers必填Download Multiple Tickers
Download historical data for multiple tickers at once (bulk operation). Returns: Summary of downloaded data for all tickers
periodtickers必填intervalAnalyst Estimates
Get analyst estimates for earnings, revenue, and EPS. Returns: Comprehensive analyst estimates and forecasts
ticker必填Analyst Price Targets
Get detailed analyst price targets for a stock. Returns: Comprehensive price target data including current, low, mean, median, high targets and the number of analysts covering the stock
ticker必填Analyst Recommendations
Get analyst recommendations and ratings. Returns: Analyst buy/hold/sell recommendations, consensus, and recent upgrades/downgrades
ticker必填API Status
Get API status and usage information. Returns: Current API usage statistics and configuration
无需输入参数。
Balance Sheet
Get balance sheet data. Returns: Balance sheet with assets, liabilities, and equity
periodticker必填Capital Gains
Get capital gains distributions (primarily for funds/ETFs). Returns: Capital gains distribution history
ticker必填Cash Flow
Get cash flow statement data. Returns: Cash flow statement with operating, investing, and financing activities
periodticker必填Commodity Price
Get commodity/futures price data. Returns: Current price, day change, and key market data
commodity必填Company Info
Get detailed company information and business description. Returns: Company overview including sector, industry, employees, website, and business summary
ticker必填Company Officers
Get company officers and key management. Returns: List of company officers with titles and compensation
ticker必填Company Overview
Get a beautiful, insightful company overview with context for every metric. Perfect for quick overviews and basic questions about a company. Returns: Beautifully formatted company overview with insights and context
ticker必填Complete Analysis
Run a complete analysis of a stock by calling ALL available functions. This is the most comprehensive analysis available - use when user asks for "everything about" or "complete analysis of" a company. Returns: Comprehensive analysis with results from all applicable functions
peersticker必填Corporate Actions
Get all corporate actions (dividends + splits combined). Returns: Combined history of dividends and stock splits
ticker必填Crypto Price
Get cryptocurrency price and market data. Returns: Current price, 24h change, market cap, volume, and key metrics
symbol必填Dividends
Get dividend payment history and current metrics. Returns: Dividend history and current dividend metrics
periodticker必填Earnings Calendar
Get earnings calendar including next earnings date and dividend dates. Returns: Upcoming earnings dates, ex-dividend dates, and dividend payment dates
ticker必填Earnings Dates
Get upcoming and past earnings dates with estimates. Returns: Earnings calendar with dates, estimates, and actual results
ticker必填Earnings History
Get historical earnings data with annual and quarterly figures. Returns: Historical earnings by year and quarter
ticker必填Economic Calendar
Get upcoming economic events (CPI, jobs, GDP, rate decisions) with expected and prior values. Returns: Table of economic events by region and time
dayslimitEPS Revisions
Get EPS revision data showing analyst estimate changes. Returns: EPS revisions showing up/down estimate changes by analysts
ticker必填EPS Trend
Get EPS (Earnings Per Share) trend data showing how estimates have changed. Returns: EPS trend data showing estimate changes over different time periods
ticker必填Fast Info
Get fast-access ticker information (lightweight, quick response). Returns: Quick summary with most recent price, market cap, and basic metrics
ticker必填Financial Summary
Get a comprehensive one-page financial summary of a stock. Returns: Comprehensive summary including price, valuation, financials, and analyst data
ticker必填Forex Rate
Get foreign exchange (forex) rate for a currency pair. Returns: Current exchange rate, bid/ask, day range, and recent changes
pair必填Fund Holdings
Get top holdings for an ETF or mutual fund. Returns: List of top holdings with weights and values
limitticker必填Fund Overview
Get overview data for an ETF or mutual fund. Returns: Fund category, family, total assets, expense ratio, and other key metrics
ticker必填Fund Sector Weights
Get sector allocation/weights for an ETF or mutual fund. Returns: Sector allocation percentages for the fund
ticker必填Growth Estimates
Get analyst growth estimates. Returns: Growth rate estimates for various periods
ticker必填Historical Comparison
Compare historical price performance of multiple stocks. Returns: Performance comparison showing % returns for each ticker
periodtickers必填Historical Data
Get historical price data for a stock. Returns: Historical price data summary with statistics and returns
periodticker必填intervalHistorical Price on Date
Get historical price for a specific date. Returns: Price on that date (or closest trading day)
date必填ticker必填Income Statement
Get income statement data. Returns: Income statement with revenue, expenses, and net income
periodticker必填Industry Overview
Get an industry overview: largest, best-performing and fastest-growing companies. Returns: Industry summary with top companies by size, YTD performance and growth
industryInsider Purchases
Get insider purchases only (filtered for buys). Returns: Recent insider purchase transactions
ticker必填Insider Roster Holders
Get insider roster (list of company insiders). Returns: List of company insiders and their positions
ticker必填Insider Transactions
Get recent insider trading activity. Returns: Recent insider buy/sell transactions
ticker必填Institutional Holders
Get major institutional holders and their ownership. Returns: List of institutional holders with shares owned and percentage ownership
ticker必填IPO Calendar
Get upcoming IPOs (exchange, expected date, price range, shares). Returns: Table of upcoming IPOs
dayslimitISIN
Get International Securities Identification Number (ISIN) for a ticker. Returns: ISIN code and related identification information
ticker必填Key Ratios
Get key financial ratios and valuation metrics. Returns: Comprehensive ratios including P/E, P/B, ROE, ROA, profit margins, debt ratios
ticker必填Major Holders
Get major holders summary (institutions, insiders, public float). Returns: Summary of insider vs institutional ownership percentages
ticker必填Market Indices
Get current prices for major market indices. Returns: Current values and changes for S&P 500, Nasdaq, Dow Jones, and other major indices
无需输入参数。
Market Movers
Get today's market movers from Yahoo Finance screeners. Returns: Table of tickers with price, change %, volume and market cap
countcategoryMarket Status
Check if US stock markets are currently open. Returns: Market status (open/closed), current time, and market hours
无需输入参数。
Market Summary
Get a market overview for a region: open/closed status plus main indices, futures, bonds and FX. Returns: Market status and a table of the region's headline instruments
regionMutual Fund Holders
Get mutual fund holders. Returns: List of mutual funds holding the stock
ticker必填Options Chain
Get options chain data (calls and puts). Returns: Options chain with top calls and puts by volume
ticker必填expirationOptions Expirations
Get all available options expiration dates. Returns: List of all available options expiration dates
ticker必填Peer Comparison
Compare a stock with its peers on key metrics. Returns: Comparison table of key metrics across stocks
peersticker必填SEC Filings
Get recent SEC filings (10-K, 10-Q, 8-K, etc.). Returns: Recent SEC filings with types and dates
ticker必填Sector Overview
Get a sector overview: size, weight, largest companies, industries and sector ETFs. Returns: Sector summary with top companies and its industries
sectorSector Performance
Get performance of major market sectors. Returns: Performance data for major S&P 500 sectors
无需输入参数。
Shares History
Get shares outstanding over time (dilution or buybacks). Returns: Shares outstanding at several points and the total change
yearsticker必填Splits Calendar
Get upcoming stock splits. Returns: Table of upcoming splits with ratios
dayslimitStock News
Get recent news articles about a stock. Returns: Recent news headlines, sources, and links
limitticker必填Stock Price
Get current stock price and key metrics for a ticker symbol. Returns: Formatted string with current price, market cap, P/E ratio, and other key metrics
ticker必填Stock Quote
Get detailed quote with bid/ask, day range, and trading info. Returns: Detailed quote information including bid/ask spreads and intraday trading data
ticker必填Stock Splits
Get stock split history. Returns: Complete stock split history with dates and ratios
ticker必填Trending Tickers
Get today's most active (trending) US tickers. Returns: List of trending tickers with basic info
countTTM Financials
Get trailing-twelve-month (TTM) income statement and cash flow. Returns: Key TTM lines: revenue, gross profit, operating income, net income, EBITDA, EPS, cash flows
ticker必填Upcoming Earnings
Get the market-wide earnings calendar (which companies report in the next N days). Returns: Companies with report date, timing and EPS estimate
dayslimitUpgrades and Downgrades
Get detailed analyst upgrades and downgrades history. Returns: Recent analyst rating changes including firm, action, and grade changes
limitticker必填Valuation History
Get valuation measures now and for the last quarters (market cap, EV, P/E, PEG, P/S, P/B, EV/EBITDA). Returns: Table of valuation measures by quarter
ticker必填Self-Test
Run comprehensive self-test of the yfinance-ai tools (64 checks). This function is designed to be called by AI assistants to verify that all tools are working correctly. It tests each tool category, reports success/failure status, and shows sample data from each test. Returns: Comprehensive test report with pass/fail status and sample data for all tools
tickerSearch Ticker
Search for ticker symbols by company name or keyword. Returns: List of matching tickers
query必填Validate Ticker
Validate if a ticker symbol exists and is tradeable. Returns: Validation result with ticker details if valid
ticker必填已满足适用检查项的 90%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
foundation.finance官方发布者
远程 MCP 服务器,提供开放金融参考数据:查询公司、市场、基金与资产,解析标识符,遍历知识图谱并读取定期刷新的参考序列。
fyi.fyn官方发布者
面向AI代理的只读个人财务工具:预算、收据、净资产、账单。OAuth 2.1。AI 翻译

由 GitHub 账号 hs85-newbie 发布
核对韩国财经文章中的数字,与DART、韩国银行ECOS和美国财政部数据进行比对AI 翻译

由 GitHub 账号 nafadza14 发布
Apizie Finance 是一个远程 MCP 服务器,让助手访问 SEC EDGAR、FRED、ECB、美国财政部、GLEIF 和世界银行的官方金融与经济数据,并附带引用来源。

由 GitHub 账号 aowang-ai 发布
托管型 MCP 服务器,让助手发现、查看并调用金融数据工具,覆盖美股、SEC 文件、宏观数据、加密货币与预测市场。
claude mcp add yfinance-ai -- uvx yfinance-ai@latestcode --add-mcp '{"name":"yfinance-ai","type":"stdio","command":"uvx","args":["yfinance-ai@latest"]}'{ "mcpServers": { "yfinance-ai": { "command": "uvx", "args": [ "yfinance-ai@latest" ] } }}import asynciofrom langchain.agents import create_agentfrom langchain.mcp import MCPAdapter
async def main(): config = {"mcpServers": {"yfinance-ai": { "command": "uvx", "args": ["yfinance-ai@latest"], }}} async with MCPAdapter(config) as adapter: tools = await adapter.list_tools() agent = create_agent("claude-sonnet-5", tools) result = await agent.ainvoke({"messages": [{"role": "user", "content": "What is Apple's P/E, and how does it compare with Microsoft and Google?"}]}) print(result["messages"][-1].content)
asyncio.run(main())from google.adk.agents import LlmAgentfrom google.adk.tools.mcp_tool import McpToolsetfrom google.adk.tools.mcp_tool.mcp_session_manager import StdioConnectionParamsfrom mcp import StdioServerParameters
root_agent = LlmAgent( model="gemini-flash-latest", name="yfinance_ai", instruction="Answer with the yfinance-ai tools.", tools=[McpToolset(connection_params=StdioConnectionParams( server_params=StdioServerParameters(command="uvx", args=["yfinance-ai@latest"]), timeout=60, ))],)from mcp import stdio_client, StdioServerParametersfrom strands import Agentfrom strands.tools.mcp import MCPClient
yfinance_ai = MCPClient(lambda: stdio_client(StdioServerParameters( command="uvx", args=["yfinance-ai@latest"],)))agent = Agent(tools=[yfinance_ai])agent("What is Apple's P/E, and how does it compare with Microsoft and Google?")