yfinance-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@yfinance-mcpwhat's the current price of AAPL?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
Related MCP server: yfinance
追上游方式
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)This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server exposing the Backtest360 engine API as tools for AI agents.
Research-only MCP server: your AI as a quant research desk. 90 tools, no trades, no brokers.
MCP server for stocksense-ai documentation, generated by doc2mcp.
Finnhub MCP — wraps Finnhub Stock API (finnhub.io)
Related MCP Servers
- AlicenseAqualityAmaintenanceA simple MCP server for Yahoo Finance using yfinance. This server provides a set of tools to fetch stock data, news, and other financial information.15195MIT
- AlicenseAqualityCmaintenanceA Model Context Protocol (MCP) server that provides comprehensive access to Yahoo Finance data through 18 specialized tools for pricing, financials, options, holders, and news.1832 PyPI1MIT
- AlicenseAqualityCmaintenanceAn MCP server that exposes comprehensive Yahoo Finance data (quotes, financials, options, news, and more) to AI agents via the yfinance library, requiring no API key.24MIT
- FlicenseNot gradedqualityCmaintenanceFinancial MCP server providing 15 tools for stock quotes, financials, risk metrics, news sentiment, SEC filings, and session summaries via Yahoo Finance data.-