Skip to content
MCP server

Canlii

Search Canadian case law, browse legislation, and check citations via the CanLII API.

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
1.1.4
Listing updated
5 days ago

About Canlii

Canlii is an open-source MCP server. It runs locally on your machine and is started by your AI client.

Install

Run in a terminal

claude mcp add canlii --env CANLII_API_KEY='<CANLII_API_KEY>' -- npx -y canlii-mcp

Add to claude_desktop_config.json

{
  "mcpServers": {
    "canlii": {
      "command": "npx",
      "args": [
        "-y",
        "canlii-mcp"
      ],
      "env": {
        "CANLII_API_KEY": "<CANLII_API_KEY>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "canlii": {
      "command": "npx",
      "args": [
        "-y",
        "canlii-mcp"
      ],
      "env": {
        "CANLII_API_KEY": "<CANLII_API_KEY>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "canlii": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "canlii-mcp"
      ],
      "env": {
        "CANLII_API_KEY": "<CANLII_API_KEY>"
      }
    }
  }
}

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

{
  "mcpServers": {
    "canlii": {
      "command": "npx",
      "args": [
        "-y",
        "canlii-mcp"
      ],
      "env": {
        "CANLII_API_KEY": "<CANLII_API_KEY>"
      }
    }
  }
}

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

{
  "mcpServers": {
    "canlii": {
      "command": "npx",
      "args": [
        "-y",
        "canlii-mcp"
      ],
      "env": {
        "CANLII_API_KEY": "<CANLII_API_KEY>"
      }
    }
  }
}

Using several servers? Build one config file with the MCP config generator.

Configuration

  • CANLII_API_KEYYour CanLII API key (request free at canlii.org/en/feedback/feedback.html)Required

Pricing

Open source

Canlii FAQ

Is Canlii free?

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

How do I add Canlii to Claude Code?

Run this command in your terminal: claude mcp add canlii --env CANLII_API_KEY='<CANLII_API_KEY>' -- npx -y canlii-mcp

Where this comes from

  • Description: from the official MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers