CanLII
Canadian case law and legislation metadata from CanLII, with your own API key
- Pricing
- Open source
- Platforms
- API, self-hosted, CLI
- Runs
- Remotely
- Version
- 0.1.1
- Listing updated
- today
Similar MCP servers
About CanLII
CanLII is an open-source MCP server for legal and government. It runs as a hosted remote server, so there is nothing to install locally.
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.
Install
Run in a terminal
claude mcp add --transport http canlii-mcp https://canlii-mcp.vaquill.ai/mcpAdd to Settings → Connectors → Add custom connector
https://canlii-mcp.vaquill.ai/mcpAdd to ~/.cursor/mcp.json
{
"mcpServers": {
"canlii-mcp": {
"url": "https://canlii-mcp.vaquill.ai/mcp"
}
}
}Add to .vscode/mcp.json
{
"servers": {
"canlii-mcp": {
"type": "http",
"url": "https://canlii-mcp.vaquill.ai/mcp"
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"canlii-mcp": {
"serverUrl": "https://canlii-mcp.vaquill.ai/mcp"
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"canlii-mcp": {
"type": "http",
"url": "https://canlii-mcp.vaquill.ai/mcp"
}
}
}Using several servers? Build one config file with the MCP config generator.
Tools this server provides (7)
Taken from the project documentation; the running server may differ.
- 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
What it does
- 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
Pricing
Open source
MIT licence; a CanLII API key is required
CanLII 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.
