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?")