MCP Catalogs
首页

mcp-yfinance

by 9nate-drake·19·综合分 34

通过 yfinance API 向 Claude Desktop 提供 Yahoo 金融数据的 MCP 服务器。

financeai-llm
5
Forks
3
活跃 Issue
18 个月前
最近提交
2 天前
收录于

概述

mcp-yfinance 是一个专门的 Model Context Protocol 实现,通过 yfinance Python 库将 Claude Desktop 与 Yahoo 金融数据连接起来。它使 Claude 能够直接在对话中访问实时股价、历史表现数据、机构所有权信息和分析师价格目标。该服务器将金融查询转换为 API 调用,并返回结构化数据供 Claude 用于分析和报告。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:获取各公司的当前股价和市场数据
:分析自定义时间段的历史股票表现
:检索机构所有权和分析师价格目标信息
:如何使用 yfinance MCP 服务器?
:我在哪里可以找到 server.py 文件?

什么时候选它

当您需要在 Claude Desktop 中直接获取金融数据而不必在不同应用间切换时选择它。

什么时候不要选它

如果您需要高度专业的金融分析工具或 Yahoo Finance 之外的数据源,请不要选择它。

此 server 暴露的工具

从 README 抽取出 4 个工具
  • get_current_stock_price

    Get the current stock price for a given ticker symbol

  • get_historical_data

    Retrieve historical stock price data for analysis

  • check_ownership

    Check institutional ownership information for a stock

  • check_analyst_targets

    Retrieve analyst price target information for a stock

说明:Tool names inferred from example queries in the README as no explicit tool section was provided

可对比工具

alpha-vantage-mcpfinancial-modeling-prep-mcppython-yfinance-direct

安装

安装

要求

  • Python 3.10 或更高版本
  • Claude Desktop

安装步骤

  1. 克隆此仓库:
git clone https://github.com/9nate-drake/mcp-yfinance
  1. 安装所需的包:
pip install mcp yfinance

配置

将以下内容添加到 Claude Desktop 配置文件 claude_desktop_config.json 中:

{
  "mcpServers": {
    "yfinance": {
      "command": "python",
      "args": [
        "/path/to/finance_server/server.py"
      ]
    }
  }
}

FAQ

如何使用 yfinance MCP 服务器?
安装和配置后,重新启动 Claude Desktop。然后您可以使用自然语言查询,如'获取 MSFT 的当前股价'或'分析苹果股票最近 3 个月的表现'。
我在哪里可以找到 server.py 文件?
server.py 文件位于克隆仓库的 finance_server 目录中。您需要在 Claude Desktop 配置中提供此文件的完整路径。

mcp-yfinance 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。