
yahoo-finance-mcp
by Alex2Yang97·★ 286·综合分 49
功能全面的 Yahoo Finance MCP 服务器,提供股票数据、财务报表、期权和新闻信息。
概述
这个 MCP 服务器通过结构良好的接口访问 Yahoo Finance 的全面金融数据。它提供检索历史股价、公司信息、财务报表、期权数据和新闻的工具。该服务器最近有更新提交,并包含与 Claude Desktop 集成的清晰文档。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
如果您需要通过 MCP 获取 Yahoo Finance 的全面金融数据进行股票分析、市场研究或投资研究,请选择此 MCP 服务器。
什么时候不要选它
如果您需要实时数据(Yahoo Finance 有一定延迟)、需要 Yahoo Finance 之外的数据源,或需要身份验证/企业功能,则不太适合。
此 server 暴露的工具
从 README 抽取出 9 个工具get_historical_stock_pricesGet historical OHLCV data for a stock with customizable period and interval
get_stock_infoGet comprehensive stock data including price, metrics, and company details
get_yahoo_finance_newsGet latest news articles for a stock
get_stock_actionsGet stock dividends and splits history
get_financial_statementGet income statement, balance sheet, or cash flow statement (annual/quarterly)
get_holder_infoGet major holders, institutional holders, mutual funds, or insider transactions
get_option_expiration_datesGet available options expiration dates
get_option_chainGet options chain for a specific expiration date and type (calls/puts)
get_recommendationsGet analyst recommendations or upgrades/downgrades history
可对比工具
安装
推荐方式:使用 uvx 运行
直接从仓库运行服务器:
uvx --from git+https://github.com/Alex2Yang97/yahoo-finance-mcp yahoo-finance-mcpClaude Desktop 集成
- 编辑 Claude Desktop 配置文件:
**macOS:**
{
"mcpServers": {
"yfinance": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/Alex2Yang97/yahoo-finance-mcp",
"yahoo-finance-mcp"
]
}
}
}**Windows:**
{
"mcpServers": {
"yfinance": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/Alex2Yang97/yahoo-finance-mcp",
"yahoo-finance-mcp"
]
}
}
}- 重启 Claude Desktop
FAQ
- 这个 MCP 服务器使用什么数据源?
- 服务器主要使用 Yahoo Finance 作为数据源,通过 yfinance 库获取信息。
- 我能使用此服务器获取实时股价吗?
- 服务器提供历史股价和当前市场数据,但实时价格可能存在轻微延迟,因为数据来自 Yahoo Finance。
yahoo-finance-mcp 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。