
这是一个模型上下文协议(MCP)服务器,提供来自雅虎财经的全面财务数据。
概览
这是一个模型上下文协议(MCP)服务器,提供来自雅虎财经的全面财务数据。它允许您获取股票的详细信息,包括历史价格、公司信息、财务报表、期权数据和市场新闻。 服务器通过模型上下文协议(Model Context Protocol)暴露以下工具: 通过这个MCP服务器,你可以用Claude来: - :“给我看过去六个月AAPL的历史股价,并按日间隔显示。”- :“获取Microsoft的季度资产负债表。”- :“从股票信息中,特斯拉的主要财务指标有哪些?”- :“比较亚马逊和谷歌的季度损益表。”- :“给我看NVIDIA的年度现金流量表。” - : “获取关于Meta Platforms的最新新闻报道。” - : “给我看苹果股票的机构持有者。” - : : “特斯拉最近的内幕交易有哪些?” - : “获取SPY期权链,到期日为2024-06-21,用于看涨期权。
概述(AI 翻译)
英文 |中文
这是一个模型上下文协议(MCP)服务器,提供来自雅虎财经的全面财务数据。它允许您获取股票的详细信息,包括历史价格、公司信息、财务报表、期权数据和市场新闻。
演示
MCP工具
服务器通过模型上下文协议(Model Context Protocol)暴露以下工具:
股票信息
| 工具 | 描述 |
|---|---|
get_historical_stock_prices |
获取可自定义周期和区间的股票历史OHLCV数据 |
get_stock_info |
获取包括价格、指标和公司详情在内的全面股票数据 |
get_yahoo_finance_news |
获取股票的最新新闻报道 |
get_stock_actions |
获取股票股息和拆股历史 |
财务报表
| 工具 | 描述 |
|---|---|
get_financial_statement |
获取损益表、资产负债表或现金流量表(年/季度) |
get_holder_info |
获取主要持有人、机构持有人、共同基金或内幕交易 |
期权数据
| 工具 | 描述 |
|---|
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Yahoo Finance MCP Server
This is a Model Context Protocol (MCP) server that provides comprehensive financial data from Yahoo Finance. It allows you to retrieve detailed information about stocks, including historical prices, company information, financial statements, options data, and market news.
Demo
MCP Tools
The server exposes the following tools through the Model Context Protocol:
Stock Information
| Tool | Description |
|---|---|
get_historical_stock_prices |
Get historical OHLCV data for a stock with customizable period and interval |
get_stock_info |
Get comprehensive stock data including price, metrics, and company details |
get_yahoo_finance_news |
Get latest news articles for a stock |
get_stock_actions |
Get stock dividends and splits history |
Financial Statements
| Tool | Description |
|---|---|
get_financial_statement |
Get income statement, balance sheet, or cash flow statement (annual/quarterly) |
get_holder_info |
Get major holders, institutional holders, mutual funds, or insider transactions |
Options Data
| Tool | Description |
|---|---|
get_option_expiration_dates |
Get available options expiration dates |
get_option_chain |
Get options chain for a specific expiration date and type (calls/puts) |
Analyst Information
| Tool | Description |
|---|---|
get_recommendations |
Get analyst recommendations or upgrades/downgrades history |
Real-World Use Cases
With this MCP server, you can use Claude to:
Stock Analysis
- Price Analysis: “Show me the historical stock prices for NOW over the last 6 months with daily intervals.”
- Financial Health: “Get the quarterly balance sheet for Intuit.”
- Performance Metrics: “What are the key financial metrics for Intuit from the stock info?”
- Trend Analysis: “Compare the quarterly income statements of ServiceNow and Intuit.”
- Cash Flow Analysis: “Show me the annual cash flow statement for ServiceNow.”
Market Research
- News Analysis: “Get the latest news articles about Intuit.”
- Institutional Activity: “Show me the institutional holders of NOW stock.”
- Insider Trading: “What are the recent insider transactions for ServiceNow?”
- Options Analysis: “Get the options chain for INTU with expiration date 2026-01-30 for calls.”
- Analyst Coverage: “What are the analyst recommendations for Intuit over the last 3 months?”
Investment Research
- “Create a comprehensive analysis of Intuit’s financial health using their latest quarterly financial statements.”
- “Compare the dividend history and stock splits of Coca-Cola and PepsiCo.”
安装
uvx --from git+https://github.com/Alex2Yang97/yahoo-finance-mcp yahoo-finance-mcp配置
{
"mcpServers": {
"yfinance": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/Alex2Yang97/yahoo-finance-mcp",
"yahoo-finance-mcp"
]
}
}
}