Skip to main content
Glama

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

配置

克劳德桌面

将其添加到您的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

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

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

  1. 安装
    1. 使用 pip
    2. 使用 Git
  2. 配置
    1. 克劳德桌面
    2. VSCode
  3. 问题示例
    1. 建造
      1. 使用 MCP Inspector 进行测试

        Related MCP Servers

        • -
          security
          A
          license
          -
          quality
          A Model Context Protocol server providing real-time stock data and options analysis through Yahoo Finance, enabling LLMs to access market data, analyze stocks, and evaluate options strategies.
          Last updated -
          4
          Python
          MIT License
        • -
          security
          -
          license
          -
          quality
          A Model Context Protocol server that enhances LLM capabilities by connecting to Wikipedia, internet search (Tavily), and financial data (Yahoo Finance) tools, enabling contextual responses to user queries.
          Last updated -
          Python
        • A
          security
          A
          license
          A
          quality
          A Model Context Protocol server providing tools for querying A-share stock market data, including historical prices, financial reports, market indices, and macroeconomic indicators.
          Last updated -
          28
          178
          Python
          MIT License
        • -
          security
          -
          license
          -
          quality
          A Model Context Protocol server that provides tools for interacting with Yahoo Finance, allowing users to retrieve stock prices, company information, and perform financial data comparisons.
          Last updated -
          Python
          MIT License

        View all related MCP servers

        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