Finance Toolkit
500+ transparent financial methods calculated from raw statements, not third-party endpoints.
作者提供的说明(英文原文)
Yahoo Finance in 68 tools: stocks, crypto, forex, commodities, funds, options, analysts, calendars.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"yfinance-ai": {
"command": "uvx",
"args": [
"yfinance-ai"
]
}
}
}在终端中运行这条命令
claude mcp add yfinance-ai -- uvx yfinance-ai粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"yfinance-ai": {
"command": "uvx",
"args": [
"yfinance-ai"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"yfinance-ai": {
"type": "stdio",
"command": "uvx",
"args": [
"yfinance-ai"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
注册名称已通过 GitHub 账户 lkcair 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(5.0.5)于18天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
同一分类中有:Finance Toolkit, SolidInvoice, Korea Tax Calculator
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
500+ transparent financial methods calculated from raw statements, not third-party endpoints.
Create and send invoices and quotes, manage clients, and track payments in SolidInvoice.
Korean tax calculation and tax-audit judgment MCP: 96 tools with statutory citations.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
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.
| Use it in | Install | Repo |
|---|---|---|
| Claude, Cursor, VS Code, LangChain, Google ADK, Strands Agents and other MCP clients | uvx yfinance-ai@latest | yfinance-ai-mcp |
| ClawHub skill for OpenClaw 🚀 Thousands of downloads | openclaw skills install @lkcair/stocks | yfinance-ai-skill |
| OpenWebUI tool 🚀 Thousands of downloads | Get it on openwebui.com | yfinance-ai |
| Python | from yfinance_ai import Tools | yfinance-ai |
Needs uv. No API key.
Claude Code:
claude mcp add yfinance-ai -- uvx yfinance-ai@latest
VS Code:
code --add-mcp '{"name":"yfinance-ai","type":"stdio","command":"uvx","args":["yfinance-ai@latest"]}'
Claude Desktop, Cursor, Windsurf and other clients, in the client's MCP config file:
{
"mcpServers": { "yfinance-ai": { "command": "uvx", "args": [ "yfinance-ai@latest" ] } } }
@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
import asyncio
from langchain.agents import create_agent from 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".content)
asyncio.run(main())
Google ADK: pip install "google-adk[mcp]"
from google.adk.agents import LlmAgent
from google.adk.tools.mcp_tool import McpToolset from google.adk.tools.mcp_tool.mcp_session_manager import StdioConnectionParams from 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, ))], )
Strands Agents: pip install strands-agents
from mcp import stdio_client, StdioServerParameters
from strands import Agent from 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?")
| Tool | Parameters | Description |
|---|---|---|
get_stock_price | ticker | Get current stock price and key metrics for a ticker symbol |
get_stock_quote | ticker | Get detailed quote with bid/ask, day range, and trading info |
get_fast_info | ticker | Get fast-access ticker information (lightweight, quick response) |
get_historical_data | ticker, period="1y", interval="1d" | Get historical price data for a stock |
get_historical_price_on_date | ticker, date | Get historical price for a specific date |
download_multiple_tickers | tickers, period="1mo", interval="1d" | Historical data for several tickers at once |
| Tool | Parameters | Description |
|---|---|---|
get_company_info | ticker | Get detailed company information and business description |
get_company_overview | ticker | Company overview with context for every metric |
get_company_officers | ticker | Get company officers and key management |
get_isin | ticker | Get International Securities Identification Number (ISIN) for a ticker |
| Tool | Parameters | Description |
|---|---|---|
get_income_statement | ticker, period="annual" | Get income statement data |
get_balance_sheet | ticker, period="annual" | Get balance sheet data |
get_cash_flow | ticker, period="annual" | Get cash flow statement data |
get_ttm_financials | ticker | Get trailing-twelve-month (TTM) income statement and cash flow |
get_key_ratios | ticker | Get key financial ratios and valuation metrics |
get_valuation_history | ticker | Get valuation measures now and for the last quarters (market cap, EV, P/E, PEG, P/S, P/B, EV/EBITDA) |
get_financial_summary | ticker | Get a comprehensive one-page financial summary of a stock |
get_shares_history | ticker, years=3 | Get shares outstanding over time (dilution or buybacks) |
| Tool | Parameters | Description |
|---|---|---|
get_earnings_dates | ticker | Get upcoming and past earnings dates with estimates |
get_earnings_history | ticker | Get historical earnings data with annual and quarterly figures |
get_earnings_calendar | ticker | Get earnings calendar including next earnings date and dividend dates |
get_analyst_estimates | ticker | Get analyst estimates for earnings, revenue, and EPS |
get_growth_estimates | ticker | Get analyst growth estimates |
get_eps_trend | ticker | Get EPS (Earnings Per Share) trend data showing how estimates have changed |
get_eps_revisions | ticker | Get EPS revision data showing analyst estimate changes |
| Tool | Parameters | Description |
|---|---|---|
get_analyst_recommendations | ticker | Get analyst recommendations and ratings |
get_analyst_price_targets | ticker | Get detailed analyst price targets for a stock |
get_upgrades_downgrades | ticker, limit=20 | Get detailed analyst upgrades and downgrades history |
| Tool | Parameters | Description |
|---|---|---|
get_institutional_holders | ticker | Get major institutional holders and their ownership |
get_major_holders | ticker | Get major holders summary (institutions, insiders, public float) |
get_mutualfund_holders | ticker | Get mutual fund holders |
get_insider_transactions | ticker | Get recent insider trading activity |
get_insider_purchases | ticker | Get insider purchases only (filtered for buys) |
get_insider_roster_holders | ticker | Get insider roster (list of company insiders) |
| Tool | Parameters | Description |
|---|---|---|
get_dividends | ticker, period="5y" | Get dividend payment history and current metrics |
get_stock_splits | ticker | Get stock split history |
get_corporate_actions | ticker | Get all corporate actions (dividends + splits combined) |
get_capital_gains | ticker | Get capital gains distributions (primarily for funds/ETFs) |
| Tool | Parameters | Description |
|---|---|---|
get_options_chain | ticker, expiration="" | Get options chain data (calls and puts) |
get_options_expirations | ticker | Get all available options expiration dates |
| Tool | Parameters | Description |
|---|---|---|
get_market_status | Check if US stock markets are currently open | |
get_market_summary | region="US" | Get a market overview for a region: open/closed status plus main indices, futures, bonds and FX |
get_market_indices | Get current prices for major market indices | |
get_market_movers | category="day_gainers", count=10 | Get today's market movers from Yahoo Finance screeners |
get_trending_tickers | count=10 | Get today's most active (trending) US tickers |
get_sector_performance | Get performance of major market sectors | |
get_sector_overview | sector="technology" | Get a sector overview: size, weight, largest companies, industries and sector ETFs |
get_industry_overview | industry="semiconductors" | Get an industry overview: largest, best-performing and fastest-growing companies |
| Tool | Parameters | Description |
|---|---|---|
get_upcoming_earnings | days=7, limit=25 | Get the market-wide earnings calendar (which companies report in the next N days) |
get_ipo_calendar | days=14, limit=25 | Get upcoming IPOs (exchange, expected date, price range, shares) |
get_economic_calendar | days=7, limit=30 | Get upcoming economic events (CPI, jobs, GDP, rate decisions) with expected and prior values |
get_splits_calendar | days=14, limit=25 | Get upcoming stock splits |
| Tool | Parameters | Description |
|---|---|---|
get_fund_overview | ticker | Get overview data for an ETF or mutual fund |
get_fund_holdings | ticker, limit=25 | Get top holdings for an ETF or mutual fund |
get_fund_sector_weights | ticker | Get sector allocation/weights for an ETF or mutual fund |
| Tool | Parameters | Description |
|---|---|---|
get_crypto_price | symbol | Get cryptocurrency price and market data |
get_forex_rate | pair | Get foreign exchange (forex) rate for a currency pair |
get_commodity_price | commodity | Get commodity/futures price data |
| Tool | Parameters | Description |
|---|---|---|
compare_stocks | tickers | Compare key metrics across multiple stocks |
get_peer_comparison | ticker, peers=null | Compare a stock with its peers on key metrics |
get_historical_comparison | tickers, period="1y" | Compare historical price performance of multiple stocks |
get_complete_analysis | ticker, peers="" | Complete analysis of a stock, calling every relevant tool |
| Tool | Parameters | Description |
|---|---|---|
get_stock_news | ticker, limit=10 | Get recent news articles about a stock |
get_sec_filings | ticker | Get recent SEC filings (10-K, 10-Q, 8-K, etc.) |
| Tool | Parameters | Description |
|---|---|---|
search_ticker | query | Search for ticker symbols by company name or keyword |
| validate_ticker | ticker | Validate if a ticker symbol e
只显示了开头部分;其余内容请在仓库中阅读