Canli Validation — Claude Code MCP server: what it does, install
Canli Validation — an MCP server for trading strategy validation via deflated Sharpe ratio, CSCV overfitting probability and data-snooping tests, with signed receipts.
MIT ★ 6 updated 2026-10-24
claude mcp add --transport http canli-validation-mcp https://canlicapital.com/mcpWhat Canli Validation does
The server exposes twenty tools: deflated Sharpe ratio accounting for the number of trials, CSCV overfitting probability, data-snooping tests (Hansen's SPA, White's Reality Check, Romano-Wolf StepM), minimum track record length, haircut Sharpe, and luck-equivalent trials. Each result includes a signed receipt verifiable offline.
Runs in three modes: over the public HTTP endpoint at https://canlicapital.com/mcp, locally via npx with CANLI_LOCAL=1 (computes on your machine, no key needed), or through the free API with stored receipts (a key is issued on first request). For data-snooping tests, a matrix file is read from disk and sent as numbers.
What it helps with
- determine whether the best result out of hundreds of parameter trials is genuine or lucky noise
- compute the deflated Sharpe ratio correcting for multiple testing
- calculate the minimum backtest length required for a claimed Sharpe ratio
- obtain a signed validation receipt verifiable offline
Example prompts for the agent
- I tested 229 strategy variants; the best one had an annualized Sharpe of 1.5 over 730 daily returns (365 per year), skew -0.5, kurtosis 5, with Sharpe ratios spread by 0.57 across variants. Is it real?
- Calculate deflated Sharpe: 156 trials, final Sharpe 1.8, 500 observations, skewness -0.3.
- Verify the validation receipt with id
a1b2c3d4— is the signature valid?
How to install Canli Validation
1Platform CLI: remote server
claude mcp add --transport http canli-validation-mcp https://canlicapital.com/mcp2Platform CLI
claude mcp add --env CANLI_KEY=<CANLI_KEY> --env CANLI_LOCAL=<CANLI_LOCAL> --env CANLI_API_BASE=<CANLI_API_BASE> --transport stdio mcp -- npx -y canli-validation-mcpReplace <…> with your own values
1Platform CLI: remote server
codex mcp add mcp --url https://canlicapital.com/mcp2Platform CLI
codex mcp add mcp --env CANLI_KEY=<CANLI_KEY> --env CANLI_LOCAL=<CANLI_LOCAL> --env CANLI_API_BASE=<CANLI_API_BASE> -- npx -y canli-validation-mcpReplace <…> with your own values
Config file
{
"mcpServers": {
"mcp": {
"url": "https://canlicapital.com/mcp"
}
}
}{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"-y",
"canli-validation-mcp"
],
"env": {
"CANLI_KEY": "<CANLI_KEY>",
"CANLI_LOCAL": "<CANLI_LOCAL>",
"CANLI_API_BASE": "<CANLI_API_BASE>"
}
}
}
}Replace <…> with your own values
Config file
{
"servers": {
"mcp": {
"type": "http",
"url": "https://canlicapital.com/mcp"
}
}
}{
"servers": {
"mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"canli-validation-mcp"
],
"env": {
"CANLI_KEY": "<CANLI_KEY>",
"CANLI_LOCAL": "<CANLI_LOCAL>",
"CANLI_API_BASE": "<CANLI_API_BASE>"
}
}
}
}Replace <…> with your own values
1Platform CLI: remote server
gemini mcp add -t http mcp https://canlicapital.com/mcp2Platform CLI
gemini mcp add -e CANLI_KEY=<CANLI_KEY> -e CANLI_LOCAL=<CANLI_LOCAL> -e CANLI_API_BASE=<CANLI_API_BASE> mcp npx -y canli-validation-mcpReplace <…> with your own values
Step 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 Canli Validation
How do I install Canli Validation in Claude Code?
Run claude mcp add --transport http canli-validation-mcp https://canlicapital.com/mcp for the public endpoint, or `claude mcp add --env CANLI_KEY=<CANLI_KEY> --env CANLI_LOCAL=<CANLI_LOCAL> --env CANLI_API_BASE=<CANLI_API_BASE> --transport stdio mcp -- npx -y canli-validation-mcp` for local mode.
What does Canli Validation do?
It validates trading strategy backtests using deflated Sharpe ratio, CSCV overfitting probability, data-snooping tests, and other metrics that account for parameter search. Every calculation returns a signed receipt.
Does Canli Validation require an API key?
It depends on the mode. The public HTTP endpoint and receipt verification work without a key. The free API with stored receipts issues a key on first use. Local mode (CANLI_LOCAL=1) computes on your machine and needs no key.