Skip to content
MCP server

Canli Validation

Test whether a backtest's Sharpe ratio survives the number of variants you tried

Install
Pricing
Open source
Platforms
CLI, API
Runs
Locally or Remotely
Version
0.16.0
Listing updated
2 days ago

About Canli Validation

Canli Validation is an open-source MCP server for finance and payments. It can run locally on your machine or as a hosted remote server.

Overfitting is the question here: is your best backtest real, or just the luckiest variant? The server applies standard corrections, including the deflated Sharpe ratio, the CSCV probability of backtest overfitting, data-snooping tests (Hansen's SPA, White's Reality Check, Romano-Wolf StepM), minimum track record length, the haircut Sharpe ratio and luck-equivalent trials.

The README's example: a Sharpe of 1.5 after 229 variants would be matched by 1.60 from luck alone, so the chance it beats zero drops from 98.1% to 44.4% once the search is counted. Every validation returns the sentences that say what it does not establish plus a signed receipt, so a number never arrives without its limits.

The package offers about twenty tools: nine validators, a combined audit, offline receipt verification, SEC-filing financial history, and six lab tools that backtest, stress-test and check for lookahead. It can compute locally with no key and nothing sent anywhere, or call the free keyed API, or connect through the hosted endpoint. It is MIT-licensed, and a verdict is not a forecast.

Install

Run in a terminal

claude mcp add --transport http canli-validation-mcp https://canlicapital.com/mcp

Add to Settings → Connectors → Add custom connector

https://canlicapital.com/mcp
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "canli-validation-mcp": {
      "url": "https://canlicapital.com/mcp"
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "canli-validation-mcp": {
      "type": "http",
      "url": "https://canlicapital.com/mcp"
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "canli-validation-mcp": {
      "serverUrl": "https://canlicapital.com/mcp"
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "canli-validation-mcp": {
      "type": "http",
      "url": "https://canlicapital.com/mcp"
    }
  }
}

Configuration

  • CANLI_KEY
  • CANLI_LOCAL
  • CANLI_API_BASE

Tools this server provides (1)

Taken from the project documentation; the running server may differ.

validate_deflated_sharpe
Computes the deflated Sharpe ratio for a Sharpe found after many variants.

What it does

Deflated Sharpe ratio
Adjusts a Sharpe ratio for the number of variants tried.
Overfitting probability
Computes CSCV-based probability of backtest overfitting.
Data-snooping tests
Runs SPA, Reality Check and Romano-Wolf StepM.
Signed receipts
Each answer carries a receipt that can be verified offline.
Local lab tools
Backtest a rule over a grid, stress-test returns and check a signal for lookahead.
Local or hosted
Run on your machine without a key, or use the free API.

Good for

  • Check if the best of many strategy variants is statistically real
  • Estimate the minimum track record needed to trust a Sharpe ratio
  • Audit one backtest with several validators in one call
  • Test a research pipeline on placebo data
  • Verify a validation receipt offline

Pricing

Open source

Free and MIT-licensed; free API key issued on first use

Prices change. Check canlicapital.com before you buy.

Canli Validation FAQ

Is it free?

The README says it is free and MIT-licensed; a free key is issued on first use.

Can it run without sending data anywhere?

Yes, with CANLI_LOCAL=1 the checks run on your machine.

Does a verdict predict returns?

No. The registry entry states a verdict is not a forecast or admission to anything.

Which transports exist?

stdio through npx and a hosted streamable HTTP endpoint.

Is Canli Validation free?

Yes. Canli Validation is open source, so you can use and self-host it for free.

How do I add Canli Validation to Claude Code?

Run this command in your terminal: claude mcp add --transport http canli-validation-mcp https://canlicapital.com/mcp

What are the best alternatives to Canli Validation?

The closest alternatives to Canli Validation are Agent-Native Analytics, Google Ads + Meta Ads + SEO/GEO MCP, Solana MCP by Vybe, Tapetide - Indian Stock Market MCP and World Monitor.

Alternatives to Canli Validation

  1. Open-source analytics app where an AI agent builds charts and dashboards from your data

    • Remote
    • Open source
    • 7.7K GitHub stars
    • Analytics and data
  2. Hosted MCP connector for managing Google Ads, Meta Ads, GA4 and Search Console from chat

    • 8 tools
    • Remote
    • Freemium
    • 8.1K GitHub stars
    • Marketing and SEO
  3. Remote MCP server exposing the Vybe Solana API to AI clients and code editors

    • 44 tools
    • Remote
    • 2.8K GitHub stars
    • Finance and payments
  4. Indian NSE and BSE stock market data for AI assistants through 48 MCP tools

    • 17 tools
    • Remote
    • Freemium
    • 150 GitHub stars
    • Finance and payments
  5. World Monitor

    MCP server

    Live geopolitical intelligence dashboard with an API and MCP server for agents

    • Remote
    • Freemium
    • Analytics and data
  6. Budget Tracker

    MCP server

    Local MCP expense ledger that logs receipts and mileage, splits VAT and prepares rebilling

    • 14 tools
    • Remote
    • Freemium
    • 2 GitHub stars
    • Finance and payments