Skip to main content
Glama

Yahoo Finance MCP Server

雅虎财经 MCP 服务器

使用yfinance为雅虎财经搭建的简单 MCP 服务器。该服务器提供了一套工具来获取股票数据、新闻和其他财经信息。

工具

  • 获取股票信息
    • 检索股票数据,包括公司信息、财务、交易指标和治理数据。
    • 输入:
      • symbol (字符串):股票代码。
  • 获取新闻
    • 获取与特定股票代码相关的最新新闻文章,包括标题、内容和来源详细信息。
    • 输入:
      • symbol (字符串):股票代码。
  • 搜索
    • 获取并组织来自雅虎财经的搜索结果,包括股票报价和新闻文章。
    • 输入:
      • query (字符串):搜索查询(股票代码或公司名称)。
      • search_type (字符串):要检索的搜索结果类型(选项:“全部”、“引述”、“新闻”)。
  • 获取顶部
    • 获取某个行业的顶级实体(ETF、共同基金、公司、成长型公司或表现良好的公司)。
    • 输入:
      • sector (字符串):要获取的部门。
      • top_type (字符串):要检索的顶级公司类型(选项:“top_etfs”、“top_mutual_funds”、“top_companies”、“top_growth_companies”、“top_performing_companies”)。
      • top_n (数字,可选):要检索的顶级实体的数量(默认为 10)。
  • 获取价格历史记录
    • 获取指定股票代码在指定时间段和间隔内的历史价格数据。
    • 输入:
      • symbol (字符串):股票代码。
      • period (字符串,可选):用于检索数据的时间段(例如“1d”、“1mo”、“1y”)。默认值为“1mo”。
      • interval (字符串,可选):数据间隔频率(例如“1d”、“1h”、“1m”)。默认为“1d”。

用法

您可以通过 uv(Python 包安装程序)或 Docker 使用此 MCP 服务器。

通过紫外线

  1. 安装 uv
  2. 将以下配置添加到您的 MCP 服务器配置文件:
{ "mcpServers": { "yfmcp": { "command": "uvx", "args": ["yfmcp@latest"] } } }

通过 Docker

将以下配置添加到您的 MCP 服务器配置文件:

{ "mcpServers": { "yfmcp": { "command": "docker", "args": ["run", "-i", "--rm", "narumi/yfinance-mcp"] } } }

You must be authenticated.

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

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.

一个使用 yfinance 的雅虎财经简易 MCP 服务器。该服务器提供了一套工具来获取股票数据、新闻和其他财经信息。

  1. 工具
    1. 用法
      1. 通过紫外线
      2. 通过 Docker

    Related MCP Servers

    • -
      security
      F
      license
      -
      quality
      An MCP server implementation that integrates with Angle One APIs to provide standardized access to financial market data, trading operations, and portfolio management.
      Last updated -
      Python
    • -
      security
      A
      license
      -
      quality
      An MCP server that integrates with the AlphaVantage financial data API, providing access to stock market data, technical indicators, and fundamental financial information.
      Last updated -
      Python
      MIT License
      • Linux
      • Apple
    • -
      security
      F
      license
      -
      quality
      A TypeScript-based MCP server that fetches real-time stock market data and company financial information through the Alpha Vantage API.
      Last updated -
      JavaScript
      • Apple
    • A
      security
      F
      license
      A
      quality
      An MCP server that provides real-time financial data integration with Alpha Vantage's API, enabling access to stock market data, cryptocurrency prices, forex rates, and technical indicators.
      Last updated -
      7
      2
      JavaScript

    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/narumiruna/yfinance-mcp'

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