Canlii (mohammadfarooqi) MCP Server

A Model Context Protocol (MCP) server for searching Canadian legal information via the CanLII API. Search cases, browse legislation, and check citations - all from Claude Desktop or Claude Code. Its 8 documented tools cover case, legislation, metadata, citator. It runs locally over stdio via the published package.

People connecting API integration tools to Claude, Cursor, VS Code, or another MCP client. The project is written in JavaScript.

VERIFIED ACTIVE

LAST COMMIT 2026-04-09 · ★ 4 · #175 OF 250 MAINTAINED API INTEGRATION · VERIFIED 2026-08-25

MIT · JavaScript servers · how we verify → /methodology

01 · Install Canlii (mohammadfarooqi)

before you install - you'll need

CANLII_API_KEY

Environment variables documented in the project's README - it lists which are required and which have defaults.

Claude Code

claude mcp add mohammadfarooqi-canlii-mcp -- npx -y canlii-mcp

Claude Desktop / Cursor / VS Code - add to config

{
  "mcpServers": {
    "mohammadfarooqi-canlii-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "canlii-mcp"
      ]
    }
  }
}

Same JSON for Cursor. For VS Code, rename the top-level key from `mcpServers` to `servers`.

Using another client? Same JSON, different key

Claude Desktop · mcpServers

Cursor · mcpServers

VS Code · servers

Windsurf · mcpServers

Zed · context_servers

Cline · mcpServers

Roo Code · mcpServers

Continue · mcpServers

LibreChat · mcpServers

Gemini CLI · mcpServers

Codex CLI · mcp_servers

Full setup guides: every client.

02 · Evidence

Security posture

What to check before giving this server access to your agent - from the registry, GitHub, and our own probes. We don't score safety; we show what's verifiable.

runs as local process (stdio) - runs on your machine with your user's permissions

repository a fork of another project - check the upstream repo before trusting releases

license MIT - declared in the repository

npm package canlii-mcp - unscoped; check the name against the project README before installing

registry namespace io.github.mohammadfarooqi is GitHub-verified and matches the repo owner

03 · What Canlii (mohammadfarooqi) can do

Prose above is summarized from the project's README and registry record - no invented capabilities.

What you can build

With this server connected, an agent can list all available court and tribunal databases. Returns database IDs needed by other tools, browse case law decisions from a specific court database, ordered by most recently added. Supports date filters, get full details for a specific case - citation, decision date, docket number, keywords, and CanLII URL for reading the full decision, and list all legislation databases. Ontario: ons (Statutes), onr (Regulations). Federal: cas (Statutes), car (Regulations).

Capability map

Tools grouped from the project's README - what Canlii (mohammadfarooqi) lets an agent do.

Case

4 tools - e.g. Browse case law decisions from a specific court database, ordered by most recently added. Supports date filters.; Get full details for a specific case - citation, decision date, docket number, keywords…

get_case_law_decisions · get_case_metadata · get_case_citator · get_case_citator_tease

Legislation

3 tools - e.g. List all legislation databases. Ontario: ons (Statutes), onr (Regulations). Federal: cas (Statutes), car (Regulations).; List legislation items within a specific database.; Get metadata for a specific…

get_legislation_databases · browse_legislation · get_legislation_regulation_metadata

read & search

1 tool - e.g. List all available court and tribunal databases. Returns database IDs needed by other tools.

get_courts_and_tribunals

Latest releases

v1.1.4 · 2026-04-09

Fix schema field name: dateSchema → dateScheme (matches CanLII API spec) · Read server version dynamically from package.json · Sanitize API key from network-level error messages · Expand Known Limitations with…

v1.1.2 · 2026-04-09

Add Features section to README · Add npm badges · Move Quick Start to top of README · Add audit step to publish workflow · Fix CI triggers

04 · Who maintains Canlii (mohammadfarooqi)

canlii is maintained by mohammadfarooqi. It's the only MCP server we track from this author; the repo dates to Apr 2026.

05 · Facts

category
API integration - ranked #175 of 250 actively-maintained API integration servers as of 2026-08-25.
registry
io.github.mohammadfarooqi/canlii (active, first published 2026-04-09 · 2 versions)
packages
npm:canlii-mcp

06 · Canlii (mohammadfarooqi) FAQ

Is Canlii (mohammadfarooqi) still maintained?

Yes - as of 2026-08-25, its last commit was 2026-04-09. We re-verify nightly.

What can Canlii (mohammadfarooqi) do?

With this server connected, an agent can list all available court and tribunal databases. Returns database IDs needed by other tools, browse case law decisions from a specific court database, ordered by most recently added. Supports date filters, get full details for a specific case - citation, decision date, docket number, keywords, and CanLII URL for reading the full decision, and list all legislation databases. Ontario: ons (Statutes), onr (Regulations). Federal: cas (Statutes), car (Regulations).

How do I install Canlii (mohammadfarooqi)?

Run `npx -y canlii-mcp`. The README documents one environment variable (CANLII_API_KEY) to set first. You can also paste the ready-made client config above.

Does Canlii (mohammadfarooqi) run locally?

Yes - it's a stdio server: it runs on your machine (via npx) with your user's permissions. Your data stays local unless the server itself calls external APIs.

07 · Alternatives to Canlii (mohammadfarooqi)

More API integration MCP servers · Gsc Indexer MCP · Allure Testops MCP · Tesla · Legislative Yuan · Swagger MCP Bridge

More JavaScript MCP servers · Lumnix · MITRE ATT&CK · iCloud MCP · Rippr MCP · Xendit MCP · see all