Token导航 LogoToken导航TokenDH.com
Yfinance MCP Server logo
搜索检索stdio官方级别未说明来源级核验

Yfinance MCP Server

MCP Server

Unofficial MCP server for Yahoo Finance stock data.

工具数

0

提示词数

0

GitHub Stars

4

资源数

0
金融数据JavaScriptTypeScript本地部署

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

onori

提供方

onori

最后核验

2026/5/18 02:53

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

yfinance mcp服务器

日本语版

重要提示:这是一个非官方的MCP服务器。

用于访问雅虎财经数据的消息控制协议(MCP)服务器。该服务器提供了一个简单的界面,通过yfinance检索股票市场数据。

特性

  • 使用可定制的周期和间隔获取历史库存数据
  • 易于与任何MCP客户端一起使用
  • 使用TypeScript构建,实现类型安全和更好的开发人员体验

用法

光标MCP客户端示例。

{
  "mcpServers": {
    "yfinance": {
      "command": "npx",
      "args": [
        "@onori/yfinance-mcp-server"
      ]
    }
  }
}

getStockHistory

检索给定交易品种的历史股票数据。

参数:

  • symbol (必需):股票符号(例如,Apple股份有限公司的“AAPL”)
  • period (必填):获取数据的时间段(例如,“1d”、“5d”、“1mo”、“3mo”、”6mo“、”1y“、”2y“、“5y”、“10y”、”ytd“、”max“)
  • interval (可选):数据间隔(“1d”、“1wk”、“1mo”)

MCP请求示例:

> (Request) 
Please use the `getStockHistory` tool to fetch the daily stock data for AAPL for the past week (`period`='1w', `interval`='1d'). Then, render the results as a markdown table.

> (Response Example)
I'll help you fetch Apple's stock data and format it nicely as a markdown table.
First, I'll call the getStockHistory tool to fetch the data:

Let me format this data into a more readable markdown table:

| Date | Open | High | Low | Close | Volume |
|------|------|------|-----|-------|---------|
| Mar 31, 2025 | $217.01 | $225.62 | $216.23 | $222.13 | 65.30M |
| Apr 1, 2025 | $219.81 | $223.68 | $218.90 | $223.19 | 36.41M |
| Apr 2, 2025 | $221.32 | $225.19 | $221.02 | $223.89 | 35.91M |
| Apr 3, 2025 | $205.54 | $207.49 | $201.25 | $203.19 | 103.42M |
| Apr 4, 2025 | $193.89 | $199.88 | $187.34 | $188.38 | 125.57M |

Some notable observations from this data:
- The stock showed significant volatility over this period
- There was a sharp decline in the last two trading days
- Trading volume increased substantially during the declining days, with the highest volume (125.57M shares) on April 4th
- The stock price range was from a high of $225.62 to a low of $187.34 during this period
Would you like any specific analysis of this data or would you like to see different metrics?

发展

设置开发环境:

  1. 克隆存储库
  2. 安装依赖项:
npm install
  1. 启动开发服务器:
npm run dev

贡献

欢迎投稿!请随时提交拉取请求。

许可证

ISC许可证(ISC)

目录标签

目录标签

金融数据JavaScriptTypeScript本地部署research-and-data股票数据金融分析MCP服务器

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

none

工具数量(toolCount,工具数)

0

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdionone部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

仍需确认:installCommand

来源信息

继续浏览同类 MCP