yfinance-mcp
yfinance-mcp
Yahoo Finance MCP Server — 将 ranaroussi/yfinance (24.4k ⭐) 包装为共享 FastMCP 服务,所有 OpenClaw 用户通过 streamable-http 访问。 端口 8767。
上游
yfinance:
ranaroussi/yfinance(Apache 2.0), 通过requirements.txt锁定版本MCP 层: 自写
server.py(~300 行 FastMCP),不依赖第三方 MCP wrapper
追上游方式
requirements.txt: yfinance==1.5.1 ← Dependabot 每周检查 PyPI 新版本自动开 PR
CI 冒烟测试: 启动 server → 调 get_stock_info("AAPL") 不报错提供的 MCP Tools (24 个)
工具 | 说明 |
| 公司信息、财务指标 |
| 快速关键指标 |
| 历史 OHLCV 行情 |
| 批量下载多标的行情 |
| 利润表(年报/季报) |
| 资产负债表 |
| 现金流量表 |
| 分析师评级 |
| 分析师目标价 |
| 盈利预测/历史/趋势 |
| 持仓(机构/内部人) |
| 分红与拆股 |
| 期权到期日列表 |
| 期权链(calls/puts) |
| 近期新闻 |
| 财报日历 |
| 基金/ETF 持仓 |
| ESG 评分 |
| SEC 申报文件 |
| ISIN 代码 |
| Yahoo Finance 搜索 |
| 批量获取多标的信息 |
部署
CI push → ghcr.io/monaron/yfinance-mcp:latest + :<sha>
→ ArgoCD Image Updater 检测 digest 变动 → 写回 infrastructure values.yaml
→ ArgoCD 同步 → 滚动更新
架构
openclaw-{user} → yfinance-mcp.relay.svc:8767/mcp (streamable-http)Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/monaron/yfinance-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server