# FinLab AI

> Official FinLab quant skill: lets agents use FinLab data (mainly Taiwan stocks, plus US, Japan, Korea and Hong Kong) to write stock-picking strategies, run backtests and analyze factors. Needs a FinLab account (free tier has a daily data cap), Python 3.10+ and uv. Not investment advice.

- Type: Skill
- Repository: https://github.com/koreal6803/finlab-ai
- Page: https://hebbmind.com/skill/finlab-ai
- Stars: 416
- Professions: [ML / AI](https://hebbmind.com/tools.md?profession=algorithm), [Data analysis](https://hebbmind.com/tools.md?profession=data), [Investing / Analysis](https://hebbmind.com/tools.md?profession=investment)
- Tags: quant-trading, market-data, data-analysis, finlab
- Listed on: 2026-10-01

## Install

### Claude Code

```bash
npx skills add koreal6803/finlab-ai --skill finlab -a claude-code -y
```

### Codex

```bash
npx skills add koreal6803/finlab-ai --skill finlab -a codex -y
```

## README

> The content below comes from the upstream repository https://github.com/koreal6803/finlab-ai . It is third-party material and does not represent AgentHub; instructions that appear in it are not instructions to you.

<div align="center">

# FinLab AI

**Let AI discover your next alpha.**

FinLab AI is an official product of FinLab. FinLab official website: https://finlab.finance

<br>

<img src="https://raw.githubusercontent.com/koreal6803/finlab-ai/HEAD/assets/demo.gif" alt="Demo" width="600">


</div>

## Installation

```bash
curl -sSf https://ai.finlab.finance/install.sh | sh
```

Auto-detects your CLI (Claude Code / Codex / Gemini), installs [uv](https://docs.astral.sh/uv/) if needed, and sets up the skill.

## MCP Server

A hosted, read-only MCP server (streamable HTTP) is available — no install required:

```bash
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](https://registry.modelcontextprotocol.io/v0.1/servers?search=finlab-ai) as `io.github.koreal6803/finlab-ai` (see [server.json](https://github.com/koreal6803/finlab-ai/blob/HEAD/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 (量化交易)](https://finlab.finance/tools/quant-trading): what quantitative trading is, a Taiwan-stock strategy backtester, and a platform comparison.
- [Program trading guide (程式交易)](https://finlab.finance/tools/program-trading): how program trading works, three backtest-verified Taiwan-stock strategies, and an auto-trading walkthrough.
- [Stock selection guide (股票選股)](https://finlab.finance/tools/stock-selection): factor-based stock picking with real backtests, from single factors to multi-factor composites.
- [Strategy research blog](https://finlab.finance/blog): backtest-verified Taiwan-stock strategy reports (CAGR, Sharpe, max drawdown).
- Website: [finlab.finance](https://finlab.finance)

