Skip to main content
Glama
maxscheijen

MCP Yahoo Finance

by maxscheijen

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

Related MCP server: MCP Yahoo Finance

配置

克劳德桌面

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

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

您还可以使用 docker:

{
    "mcpServers": {
        "yahoo-finance": {
            "command": "docker",
            "args": ["run", "-i", "--rm", "IMAGE"]
        }
    }
}

VSCode

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

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

问题示例

  1. “苹果的股价是多少?”

  2. “苹果和谷歌的股价有什么区别?”

  3. “2024 年 1 月 1 日至 2025 年 1 月 1 日,苹果公司的股价变化了多少?”

建造

Docker:

docker build -t [IMAGE] .

使用 MCP Inspector 进行测试

npx @modelcontextprotocol/inspector uv run mcp-yahoo-finance
Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

Resources

Looking for Admin?

Admins can modify the Dockerfile, update the server description, and track usage metrics. If you are the server author, to access the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/maxscheijen/mcp-yahoo-finance'

If you have feedback or need assistance with the MCP directory API, please join our Discord server