finlab-ai — Claude Code MCP server: use and install
Connects an agent to trading strategies, stock evidence, data catalogs, and backtesting references. Useful for quantitative research.
claude mcp add --transport http finlab-ai https://mcp.finlab.finance/mcpWhat finlab-ai does
finlab-ai connects Claude Code to a hosted MCP server over streamable HTTP. The service is read-only and exposes list_strategies, get_strategy, get_stock_evidence, get_data_catalog, get_finlab_docs, and how_to_start. The get_strategy tool can return Python code for a strategy.
Its documentation covers 900+ data columns across 80+ tables, the sim() API, resampling, metrics, and 60+ complete strategy examples. The hosted MCP server needs no local package installation; add its endpoint to the client instead. The catalog lists support for Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, and Zed.
Because the server is read-only, it cannot modify data or place trades. Claude Code can connect with one command.
What it helps with
- find available trading strategies
- retrieve Python code for a strategy
- inspect evidence for a stock
- search the data column catalog
- open quantitative trading documentation
Example prompts for the agent
- List the available trading strategies with
list_strategies. - Use
get_strategyto return Python code for a selected strategy and explain its logic. - Use
get_stock_evidenceto inspect evidence for a selected stock.
How to install finlab-ai
Platform CLI: remote server
claude mcp add --transport http finlab-ai https://mcp.finlab.finance/mcpPlatform CLI: remote server
codex mcp add finlab-ai --url https://mcp.finlab.finance/mcpConfig file
{
"mcpServers": {
"finlab-ai": {
"url": "https://mcp.finlab.finance/mcp"
}
}
}Config file
{
"servers": {
"finlab-ai": {
"type": "http",
"url": "https://mcp.finlab.finance/mcp"
}
}
}Platform CLI: remote server
gemini mcp add -t http finlab-ai https://mcp.finlab.finance/mcpStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about finlab-ai
How do I install finlab-ai in Claude Code?
Run claude mcp add --transport http finlab-ai https://mcp.finlab.finance/mcp. The server connects over HTTP and does not need a local installation.
What does finlab-ai do?
It gives an agent access to trading strategies, Python code, stock evidence, a data catalog, and FinLab documentation. It also provides guidance for getting started with quantitative analysis tools.
Can finlab-ai modify data?
No. The server is read-only, so its tools provide strategies, data references, and documentation without write access.