# CanLII

> CanLII is an open-source MCP server for legal and government. Canadian case law and legislation metadata from CanLII, with your own API key. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** API, self-hosted, CLI
- **Repository:** https://github.com/vaquill-ai/canlii-mcp
- **MCP Registry name:** io.github.Vaquill-AI/canlii-mcp
- **Categories:** [legal and government](https://ai-powered.com/categories/legal-and-government)
- **Listing updated:** 2026-11-18

## About

CanLII's API returns metadata only: titles, citations, dates, keywords and citation relationships. Full decision text is not available through it. This server, a fork of tomilashy/canlii-mcp from Vaquill, adds bring-your-own-key authentication, a health route and a hosted endpoint, with the tools unchanged.

On the hosted endpoint you pass your CanLII key in an X-CanLII-Token header, or as a token URL parameter for clients that cannot send headers. No Vaquill token is needed, nothing is stored, and there is no fallback key, so every call counts against your own quota. Rate limits mirror CanLII's: one request at a time, two per second and 5,000 per day per key.

You can also self-host with Node.js 22 over stdio or HTTP, in Docker, or on Cloudflare Workers.

## Features

- **Case browsing:** List courts and tribunals and browse decisions.
- **Citation graph:** Find cases cited by, citing or referencing legislation.
- **Legislation lookup:** Browse statutes and regulations.
- **Bring your own key:** Each caller uses their own CanLII key and quota.
- **Self-host options:** Docker, Workers, stdio and HTTP.

## Good for

- Find a case's citation and date
- See which later cases cite a decision
- Browse Alberta statute databases
- Add Canadian case metadata to a legal research assistant

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http canlii-mcp https://canlii-mcp.vaquill.ai/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://canlii-mcp.vaquill.ai/mcp
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "canlii-mcp": {
      "url": "https://canlii-mcp.vaquill.ai/mcp"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "canlii-mcp": {
      "type": "http",
      "url": "https://canlii-mcp.vaquill.ai/mcp"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "canlii-mcp": {
      "serverUrl": "https://canlii-mcp.vaquill.ai/mcp"
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "canlii-mcp": {
      "type": "http",
      "url": "https://canlii-mcp.vaquill.ai/mcp"
    }
  }
}
```

## Tools

- `list_case_databases`: List courts and tribunals in the CanLII collection
- `list_cases`: Browse decisions from a court or tribunal database
- `get_case`: Metadata for one case
- `get_case_citations`: Cases cited by or citing a case, or legislation it references
- `list_legislation_databases`: List statute and regulation databases
- `list_legislation`: Browse statutes or regulations in a database
- `get_legislation`: Metadata for one piece of legislation

## FAQ

### Does it return full case text?

No. Only metadata, per the README.

### Where do I get a key?

Apply through CanLII's API request form.

### What are the limits?

One concurrent request, 2 per second, 5,000 per day per key.

### What licence?

MIT.

### 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 --transport http canlii-mcp https://canlii-mcp.vaquill.ai/mcp

### What are the best alternatives to CanLII?

The closest alternatives to CanLII are Cipo, Data Ny, Datos Gob Es, Datos Cl and Data Govt Nz.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Cipo](https://ai-powered.com/mcp/cipo): Cipo is a freemium MCP server for legal and government.
- [Data Ny](https://ai-powered.com/mcp/data-ny): Data Ny is a freemium MCP server for legal and government.
- [Datos Gob Es](https://ai-powered.com/mcp/datos-gob-es): Datos Gob Es is a freemium MCP server for legal and government.
- [Datos Cl](https://ai-powered.com/mcp/datos-cl): Datos Cl is a freemium MCP server for legal and government.
- [Data Govt Nz](https://ai-powered.com/mcp/data-govt-nz): Data Govt Nz is a freemium MCP server for legal and government.
- [Data Cityofchicago](https://ai-powered.com/mcp/data-cityofchicago): Data Cityofchicago is a freemium MCP server for legal and government.
- [Data Europa](https://ai-powered.com/mcp/data-europa): Data Europa is a freemium MCP server for legal and government.
- [Licenses](https://ai-powered.com/mcp/licenses): Licenses is a freemium MCP server for legal and government.

---
Source: https://ai-powered.com/mcp/canlii-2
