MCP Yahoo Finance

by maxscheijen
Verified

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Enables installation of the MCP server from the GitHub repository

MCP 雅虎财经

用于与雅虎财经互动的模型上下文协议 (MCP) 服务器。该服务器提供获取定价、公司信息等的工具。

请注意, mcp-yahoo-finance目前处于早期开发阶段。随着我不断开发和改进服务器,其功能和可用工具可能会有所变更和扩展。

安装

如果你使用uv ,则无需手动安装mcp-yahoo-finance 。我们将使用uvx直接运行mcp-yahoo-finance

如果您只是想使用 MCP 服务器,我建议您使用此方法。

使用 pip

使用pip

pip install mcp-yahoo-finance

使用 Git

您也可以将存储库克隆到您的机器后安装该包。

git clone git@github.com:maxscheijen/mcp-yahoo-finance.git cd mcp-yahoo-finance uv sync

配置

克劳德桌面

将其添加到您的claude_desktop_config.json中:

{ "mcpServers": { "yahoo-finance": { "command": "uvx", "args": ["mcp-yahoo-finance"] } } }

VSCode

将其添加到您的.vscode/mcp.json

{ "servers": { "yahoo-finance": { "command": "uvx", "args": ["mcp-yahoo-finance"] } } }

问题示例

  1. “苹果的股价是多少?”
  2. “苹果和谷歌的股价有什么区别?”
  3. “2024 年 1 月 1 日至 2025 年 1 月 1 日,苹果公司的股价变化了多少?”

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

模型上下文协议服务器,可与雅虎财经进行交互,通过自然语言查询检索股票价格、公司信息和历史财务数据。

  1. Installation
    1. Using pip
    2. Using Git
  2. Configuration
    1. Claude Desktop
    2. VSCode
  3. Examples of Questions
    ID: bhl2739o18