DY

danishashko/yahoo-finance-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

23 stars 6 forks 质量 78 趋势 18MIT

Claude 的友好雅虎财经 MCP 服务器。获取实时股票数据、图表、财务数据、分析师评级,并比较多家公司。

概览

Claude Desktop 及任何兼容 MCP 客户端的实时股市数据,由 Yahoo Finance 提供支持。获取报价、历史价格、公司简介、财务报表、分析师评级和多只股票比较,全部通过自然语言实现。 yahoo-finance-mcp-server  ·  danishashko/yahoo-finance-mcp。仓库名称比包名更短;两者都指该项目。 - 📊 包含完整市场数据 - 📈 (OHLCV)及摘要统计 - 🏢 , 高管及关键统计 - 💰 (收益、资产负债表、现金流) - 🎯 价格目标及近期推荐趋势 - ⚖️ 并列 - 📰 逐股票代码 - 🧾 (看涨/看跌、行权价、IV、未平合约) - 🏦 - 机构、共同基金及内部活动 - 💵 - 🔮 (价格目标、每股收益/收入、增长)- 🔎 按公司名称或关键词 - 🕒 (开盘/收盘)及指数摘要 每个工具默认返回人类可读,或按要求结构化(response_format:“json”)。

概述(AI 翻译)

Claude Desktop 及任何兼容 MCP 客户端的实时股市数据,由 Yahoo Finance 提供支持。获取报价、历史价格、公司简介、财务报表、分析师评级和多只股票比较,全部通过自然语言实现。

npm package: yahoo-finance-mcp-server  ·  GitHub 仓库: danishashko/yahoo-finance-mcp。仓库名称比包名更短;两者都指该项目。

🎯 你得到了什么

  • 📊 实时股票报价,包含完整市场数据
  • 📈 历史价格(OHLCV)及汇总统计
  • 🏢 公司简介、高管及关键统计数据
  • 💰 财务报表(收益表、资产负债表、现金流)
  • 🎯 **分析师评级、价格目标及近期推荐趋势
  • ⚖️ 多股对比并列
  • 📰 按跑马栏查看最新财经新闻
  • 🧾 期权链(看涨/看跌期权、行权权、IV、未平倉合约)
  • 🏦 所有权数据 — 机构、共同基金及内部活动
  • 💵 股息与分割历史
  • 🔮 前瞻性分析师估计(价格目标、每股收益/收入、增长)
  • 🔎 按公司名称或关键词进行符号搜索

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Yahoo Finance MCP Server 📈

Real-time stock market data for Claude Desktop and any MCP-compatible client, powered by Yahoo Finance. Get quotes, historical prices, company profiles, financial statements, analyst ratings, and multi-stock comparisons, all from natural language.

npm package: yahoo-finance-mcp-server  ·  GitHub repo: danishashko/yahoo-finance-mcp. The repo name is shorter than the package name; both refer to this project.

🎯 What You Get

  • 📊 Real-time stock quotes with full market data
  • 📈 Historical prices (OHLCV) with summary statistics
  • 🏢 Company profiles, officers, and key statistics
  • 💰 Financial statements (income, balance sheet, cash flow)
  • 🎯 Analyst ratings, price targets, and the recent recommendation trend
  • ⚖️ Multi-stock comparisons side by side
  • 📰 Latest financial news per ticker
  • 🧾 Options chains (calls/puts, strikes, IV, open interest)
  • 🏦 Ownership data — institutional, mutual fund, and insider activity
  • 💵 Dividend & split history
  • 🔮 Forward analyst estimates (price targets, EPS/revenue, growth)
  • 🔎 Symbol search by company name or keyword
  • 🕒 Market status (open/closed) and index summary

Every tool returns human-readable markdown by default, or structured JSON on request (response_format: "json"). Requests share a single browser-impersonating HTTP session to reduce Yahoo Finance rate-limiting.

🚀 Quick Start

Add this to your Claude Desktop config and restart Claude:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "yahoo-finance": {
      "command": "npx",
      "args": ["-y", "yahoo-finance-mcp-server"]
    }
  }
}

That is it. On first launch the npx wrapper creates an isolated Python environment and installs the dependencies for you (a one-time step that can take a minute). You only need Python 3.10+ and Node.js 16+ on your machine.

Prefer a global install?

npm install -g yahoo-finance-mcp-server
{
  "mcpServers": {
    "yahoo-finance": {
      "command": "yahoo-finance-mcp-server"
    }
  }
}

🌐 HTTP mode (n8n, remote agents, anything that connects to a URL)

Some clients spawn an MCP server as a child process and talk to it over stdio;

在 GitHub 查看完整 README

安装

npx -y yahoo-finance-mcp-server
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "yahoo-finance": { "command": "npx", "args": ["-y", "yahoo-finance-mcp-server"] } } }