Skip to main content
MCP server CX Codex

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

Install into Claude Code · Platform CLI: remote server All methods and platforms ↓
claude mcp add --transport http canli-validation-mcp https://canlicapital.com/mcp
Open on GitHub

What 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/mcp

2Platform 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-mcp

Replace <…> 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.

Similar MCP servers

All MCP servers for Finance and business →

From the same set8

Canli Quant Canli Quant is an MCP server for Claude Code that runs quantitative finance calculations. It can assess strategies, portfolios, options, and time series. CX Codex +1 ★ 6repo stars Canli Paper Trading Canli Paper Trading — an MCP server that lets an agent trade an Alpaca paper account while keeping every order behind pre-trade checks. Your keys stay in your own environment. CX Codex +1 ★ 6repo stars Canli Markets Canli Markets connects AI coding assistants to primary financial filings, central bank rates and market data without mandatory API keys. Useful for rigorous equity research and fact-checking. CX Codex +1 ★ 6repo stars Canli Backtest The Canli Backtest server builds SEC-based factors and tests signals against your price data, accounting for trade delays and costs. Use it to inspect a strategy or compare a set of variants. CX Codex +1 ★ 6repo stars Canli Research Canli Research — an MCP server for Claude Code that reads Canli Capital's open research record through six read-only tools. Whether a hypothesis has already been tried here is one question away in chat. CX Codex +1 ★ 6repo stars Canli Capital Canli Capital is an MCP server for Claude Code with 345 finance tools and 50 prompts. It gives agents access to market data, company filings and quantitative research workflows. CX Codex +1 ★ 6repo stars Canli Fundamentals Canli Fundamentals feeds your AI assistant company fundamentals from SEC filings the way they stood when published, restatements included. CX Codex +1 ★ 6repo stars

Project sponsors

Companies that keep this analytics open