FinLab AI
Lets your AI agent backtest Taiwan and U.S. stock strategies on real market data with the FinLab engine.
424 stars on GitHubby FinLabUpdated 22 days ago
How to install
This MCP is remote: it runs in the cloud.
Nothing to install. Copy the address and paste it into your AI app:
Server address
https://mcp.finlab.finance/mcp
- βΊClaude (site or app): Settings β Connectors β Add custom connector.
- βΊChatGPT: Settings β Apps β Create app (developer mode), and paste the address.
- βΊClaude Code, Cursor, VS Code and Windsurf: pick your app below.
Paste in the terminal:
claude mcp add --transport http finlab-ai https://mcp.finlab.finance/mcp
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Backtest a Taiwan stock strategy that buys the strongest monthly revenue growth.
Show me the list of FinLab example strategies and the code for one of them.
What it is
FinLab AI gives your agent market data and the FinLab backtest engine, so it can test stock strategies without you writing scraping or backtest code. A hosted read-only MCP server lists strategies, shows stock evidence and serves the docs. It also ships as a skill for Claude Code, Codex and Cursor.
What it can do
list_strategies: list example strategiesget_strategy: get a strategy with its Python codeget_stock_evidence: get evidence for a stockget_data_catalog: browse the available dataget_finlab_docs: read the FinLab docshow_to_start: get started guidance
When to use
- βΊWhen you want to test a Taiwan stock strategy such as buying the strongest monthly revenue growth
- βΊWhen you need data like adjusted prices, monthly revenue, financial reports and institutional trading
- βΊWhen you want example factor strategies to learn from
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
strategy-generateWrites, changes, and tests a quantitative trading strategy, from a plain description through backtest results and an honest review.trader-backtestHelps your agent test a trading strategy on past market data, check the results over time and record a signed result for review.vibe-tradingGives your agent a full finance research toolkit, covering backtests, factor analysis, options pricing and market data across many markets.Frequently asked questions
Is it official?
Yes. The README calls it an official product of FinLab.
Is it free?
You get a free account with a 7-day full trial and no credit card. The README does not describe later pricing.
How do I add the hosted MCP server?
Run claude mcp add --transport http finlab https://mcp.finlab.finance/mcp.
Is the hosted server read-only?
Yes. It is described as hosted and read-only.
Does it place real trades?
The skill documents broker order APIs and tells your AI to show a preview and wait for your confirmation before any real order.
Does my strategy code leave my machine?
The README says strategy code runs on your machine and nothing is uploaded unless you ask for it.
If it does not work
- βΊRun python -m finlab login to sign in through your browser.
- βΊInstall uv first, because the skill uses it to install the finlab package.
- βΊThe old finlab-ai.koreal6803.workers.dev endpoint is retired, so use mcp.finlab.finance.
5 new skills a week. 1 minute to read.