About finlab-ai
FinLab AI is a quantitative trading toolkit from FinLab, offering over 900 data columns, backtesting and 60+ strategy examples. It is aimed at quant researchers and developers who build factor-based strategies, and it can be installed as an agent skill.
Key features
- 01900+ data columns across 80+ tables
- 02sim() backtesting API and performance metrics
- 0360+ complete factor strategy examples
- 04Machine learning feature engineering reference
- 05Hosted read-only MCP server over HTTP
Use cases
- 01Researching and testing stock selection factors
- 02Browsing strategy examples and retrieving Python strategy code
- 03Consulting quant data and backtesting docs from a coding agent
MCP support
The project offers a hosted, read-only MCP server over streamable HTTP that exposes tools for listing strategies, retrieving strategy code, browsing the data catalog and fetching docs.
Configuration
Remote servers need no local install. Pick your client, then copy the config or install in one click.
https://mcp.finlab.finance/mcpclaude mcp add --transport http koreal6803-finlab-ai https://mcp.finlab.finance/mcp{"mcpServers":{"koreal6803-finlab-ai":{"type":"http","url":"https://mcp.finlab.finance/mcp"}}}Open in Cursor{"servers":{"koreal6803-finlab-ai":{"type":"http","url":"https://mcp.finlab.finance/mcp"}}}Open in VS Code{"mcpServers":{"koreal6803-finlab-ai":{"type":"http","url":"https://mcp.finlab.finance/mcp"}}}{"mcpServers":{"koreal6803-finlab-ai":{"serverUrl":"https://mcp.finlab.finance/mcp"}}}Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.
Tools
6This tool takes no parameters.
Details
From the project READMEFinLab AI
Let AI discover your next alpha.
FinLab AI is an official product of FinLab. FinLab official website: https://finlab.finance
Installation
curl -sSf https://ai.finlab.finance/install.sh | sh
Auto-detects your CLI (Claude Code / Codex / Gemini), installs uv if needed, and sets up the skill.
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, three backtest-verified Taiwan-stock strategies, and an auto-trading walkthrough.
- 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
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.