
FinLab AI
SkillFinLab 官方量化技能:让 agent 调用 FinLab 数据(以台股为主,也覆盖美、日、韩、港股)写选股策略、跑回测、做因子分析。需要 FinLab 账号(免费版每日数据流量有上限)以及 Python 3.10+ 和 uv;回测结果不构成投资建议,需专业人员复核。
FinLab AI
Let AI discover your next alpha.
FinLab AI is an official product of FinLab. FinLab official website: https://finlab.finance
Backtest Taiwan and U.S. stocks from Claude Code, Codex or Gemini CLI: your AI gets real market data and the FinLab backtest engine, with no scraping or backtest code of your own.
用 Claude Code、Codex 回測台股:AI 直接讀還原股價、月營收、財報、三大法人資料,用 FinLab 回測引擎驗證策略。
Installation
npx skills add koreal6803/finlab-ai --skill finlab -g -y
This installs the skill for Claude Code, Codex, Cursor and other tools that read Agent Skills, for every project on this machine. Already have the finlab package (2.3.9+)? python -m finlab skill install does the same without Node.js. Or use your tool's own plugin command:
| Tool | Command |
|---|---|
| Claude Code | /plugin install finlab-plugin --marketplace koreal6803/finlab-ai |
| Codex | codex plugin marketplace add koreal6803/finlab-ai, then codex plugin add finlab-plugin@finlab-ai |
| Cursor | Customize > From GitHub Repository > koreal6803/finlab-ai |
Then ask your AI: "Backtest a Taiwan stock strategy that buys the strongest monthly revenue growth." The first run asks you to sign in to FinLab once in your browser, which creates a free account with a 7-day full trial, no credit card needed.
What it does on your machine
The skill is documentation: it has no hooks and no bundled programs. It tells your AI tool to install the finlab Python package with uv, sign in with python -m finlab login, which opens your browser, and download market data from FinLab. Strategy code runs on your machine, and nothing is uploaded unless you ask for it.
MCP Server
A hosted, read-only MCP server (streamable HTTP) is available — no install required:
claude mcp add --transport http finlab https://mcp.finlab.finance/mcp
Tools: list_strategies, get_strategy (with Python code), get_stock_evidence, get_data_catalog, get_finlab_docs (this skill's docs, always in sync with main), how_to_start. Listed on the MCP Registry as io.github.koreal6803/finlab-ai (see server.json). The old finlab-ai.koreal6803.workers.dev endpoint is retired.
Documentation
| Document | Content |
|---|---|
| Data Reference | 900+ columns across 80+ tables |
| Backtesting Reference | sim() API, resampling, metrics |
| Factor Examples | 60+ complete strategy examples |
| Best Practices | Patterns, anti-patterns, tips |
| ML Reference | Feature engineering, labels |
Learn more
- Quant trading guide (量化交易): what quantitative trading is, a Taiwan-stock strategy backtester, and a platform comparison.
- Program trading guide (程式交易): how program trading works and three backtest-verified Taiwan-stock strategies.
- Stock selection guide (股票選股): factor-based stock picking with real backtests, from single factors to multi-factor composites.
- Strategy research blog: backtest-verified Taiwan-stock strategy reports (CAGR, Sharpe, max drawdown).
- Website: finlab.finance
相關資源

Vibe-Trading
MCP港大 HKUDS 开源的交易研究 agent,MCP 服务有 70 余个工具,覆盖 A 股、港美股与加密货币的行情、财报、回测和投研分析。需本地装 Python,港美股与加密研究免 API Key;结果仅供研究,投资决策需专业人员复核。
HKUDS/Vibe-Trading39.4k
a-stock-data
Skill让 agent 写代码获取 A 股及相关市场数据:行情 K 线、研报、资金流、龙虎榜、公告、宏观利率、期货与可转债等,整合 34 个公开数据源,除 iwencai 外无需密钥;需要安装 Python 依赖。
simonlin1212/a-stock-data12.1k
Quantitative Trading
Pluginwshobson/agents 市场里的量化交易插件:含量化分析师和风险经理两个子代理,以及回测框架、风险指标计算两个技能,帮投资分析人员做策略回测、组合优化和 VaR、夏普比率、最大回撤等风险评估。需本地 Python 环境;结果不构成投资建议,需专业人员复核。
wshobson/agents43.1k
hithink-finance(同花顺金融数据服务)
Skill同花顺官方金融取数技能:用自然语言查询 A 股行情、财报、估值、指数板块、公募基金与期货期权数据,自动选用 CLI、MCP 或 REST 接口,大批量结果落盘到本地。需在同花顺金融数据服务官网用同花顺 App 扫码登录并创建 API Key;分析结果不构成投资建议,需专业人员复核。
HiThink-Tech/Financial-API4.7k
Awesome Finance Skills
Skill面向 A 股、港股、美股的金融技能合集:聚合财联社、华尔街见闻等 10 多个来源的财经新闻,查个股行情与基本面,做情绪分析、时序预测和投资信号追踪,并生成传导链路图与分析报告。需要本地 Python 环境,部分技能要下载 PyTorch 模型;结果仅供参考,不构成投资建议。
RKiding/Awesome-finance-skills3.1k
Claude Trading Skills (AGIPro)
Skill68 个交易与量化技能,以加密货币和 DeFi 为主:行情与链上数据、技术指标、回测、仓位与风控、预测市场,以及成本计算、洗售识别等税务记账。多数需本机 Python 和数据平台的 API Key(多有免费档);结果需专业人员复核。
agiprolabs/claude-trading-skills611