Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog
Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

AllMCPs on GitHub (opens in a new tab)
Launched onTiny Startupstinystartups.com
Explore
  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Random discovery New
  • Submit a server
  • Pricing & Boost Boost
Learn
  • Guides hub
  • What is MCP?
  • Install guide
  • Build an MCP server
  • Deploy an MCP server
  • Security guide
  • Troubleshooting
  • MCP for SEO & AEO
  • Protocol versioning
  • Blog & updates
Tools
  • All developer tools
  • Config generator
  • Config validator
  • Config auditor
  • MCP playground
  • Token calculator
  • OpenAPI → MCP
  • Badge generator
For agents
  • REST API docs
  • Trust & traffic Live
  • Remote MCP server SSE ↗ (opens in a new tab)
  • llms.txt ↗ (opens in a new tab)
  • Catalog JSON ↗ (opens in a new tab)
Company
  • About
  • Advertise Sponsor
  • Contact
  • GitHub ↗ (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZoneAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZone
© 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. ⚖️ Legal
  3. Canlii
Canlii logo
Health: ActiveRecent health check succeeded.Last checked 9/7/2026, 10:49:18 PM

Canlii

User RatingsBe the first to rate and review this MCP server! Enrichment pendingWe haven’t run our AI enrichment pass on this listing yet, so the overview, use cases, and FAQ below may be sparse or missing. We work through the catalog over time — check back soon.
View Repository5 GitHub StarsTotal stargazers on GitHub for the source repository (5 stars).Visit Website

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

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.

Add to CursorAdd to VS Code
Not yet automatically verified

We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag — we're steadily working through the catalog.

Manual Client & Custom JSON ConfigExpand JSON ▾

Client Config & Setup

Choose your client or environment
Target File:~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "canlii": {
      "command": "npx",
      "args": [
        "-y",
        "canlii-mcp"
      ]
    }
  }
}

💡 Paste the JSON block into your client's configuration file under mcpServers, then restart the application.

Install Directory Badge Claim listing Alternatives⚖️ More in Legal

Documentation Overview

CanLII MCP Server

npm version License: MIT

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.

Terminal
npx canlii-mcp

Features

  • Full-text search — search across all of CanLII by keyword, case name, or legal concept
  • Case citator — check if a case is still good law by finding what later cases cite it
  • Legislation browsing — browse statutes and regulations by jurisdiction
  • Bilingual — English and French support across all tools including the citator
  • 9 tools — search, browse courts, browse cases, case metadata, full citator, citator preview, legislation databases, browse legislation, legislation metadata
  • Built-in rate limiting — serialized request queue respects CanLII's API limits (2 req/sec, 1 concurrent, 5,000/day)
  • Input validation — all parameters regex-validated and URI-encoded to prevent injection
  • Minimal footprint — 2 runtime dependencies, ~500 lines of code, runs locally as a stdio process
  • Security-first — no file system access, no shell execution, only connects to api.canlii.org

Quick Start

Prerequisites: Node.js 18+ and a CanLII API key (free for research use).

Claude Desktop — add to your config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

config.json
{
  "mcpServers": {
    "canlii": {
      "command": "npx",
      "args": ["-y", "canlii-mcp"],
      "env": {
        "CANLII_API_KEY": "your_api_key_here"
      }
    }
  }
}

Restart Claude Desktop after saving.

Claude Code:

Terminal
claude mcp add canlii -e CANLII_API_KEY=your_key -- npx -y canlii-mcp

From source (for development):

bash
git clone https://github.com/mohammadfarooqi/canlii-mcp.git
cd canlii-mcp
npm install && npm run build

Available Tools (9)

search

Full-text keyword search across all of CanLII — cases, legislation, and commentary. This is the primary entry point for legal research.

Code
search({ query: "material change in circumstances Ontario", resultCount: 10 })

get_courts_and_tribunals

List all available court and tribunal databases. Returns database IDs needed by other tools.

Key Ontario databases: onsc (Superior Court), onca (Court of Appeal), oncj (Court of Justice), csc-scc (Supreme Court of Canada).

get_case_law_decisions

Browse case law decisions from a specific court database, ordered by most recently added. Supports date filters.

Code
get_case_law_decisions({ databaseId: "onsc", resultCount: 20 })

get_case_metadata

Get full details for a specific case — citation, decision date, docket number, keywords, and CanLII URL for reading the full decision.

Code
get_case_metadata({ databaseId: "onsc", caseId: "2021onsc8582" })

get_case_citator

Look up citation relationships for a case. Use citingCases to check if a case is still good law.

Code
get_case_citator({ databaseId: "csc-scc", caseId: "1996canlii190", metadataType: "citingCases" })

get_case_citator_tease

Quick citation preview returning max 5 results. Faster than the full citator for a quick check.

Code
get_case_citator_tease({ databaseId: "csc-scc", caseId: "1996canlii190", metadataType: "citingCases" })

get_legislation_databases

List all legislation databases. Ontario: ons (Statutes), onr (Regulations). Federal: cas (Statutes), car (Regulations).

browse_legislation

List legislation items within a specific database.

Code
browse_legislation({ databaseId: "ons" })

get_legislation_regulation_metadata

Get metadata for a specific statute or regulation, including its CanLII URL.

Typical Research Workflow

  1. Search — search({ query: "gatekeeping parenting time" }) to find relevant cases
  2. Get details — get_case_metadata(...) to get the full citation and CanLII URL
  3. Check citations — get_case_citator(..., metadataType: "citingCases") to verify the case is still good law
  4. Read the decision — Click the CanLII URL to read the full text on canlii.org

API Rate Limits

Per CanLII's API terms:

  • 5,000 queries per day
  • 2 requests per second
  • 1 request at a time
  • Metadata access only — full document text is not available via the API

The server enforces these limits automatically with a built-in rate limiter.

Development

Terminal
npm run build    # Compile TypeScript
npm run start    # Run the server (needs CANLII_API_KEY env var)

Project Structure

Code
src/
  index.ts     # MCP server — tools, rate limiter, stdio transport
  schema.ts    # Zod schemas for CanLII API responses

Contributing

Contributions are welcome! This project aims to make Canadian legal research more accessible through AI tooling.

Ways to contribute:

  • Report bugs or unexpected API behavior — open an issue
  • Suggest new tools or improvements — start a discussion
  • Submit a PR with fixes or new features

To submit a PR:

  1. Fork this repository
  2. Create a feature branch (git checkout -b feature/my-improvement)
  3. Make your changes and test locally (npm run build && CANLII_API_KEY=your_key npm run start)
  4. Commit and push to your fork
  5. Open a pull request with a description of what you changed and why

If you find issues with the CanLII API responses, schema mismatches, or have ideas for new tools that would help legal researchers, please open an issue — even if you're not sure how to fix it. We'll investigate together.

Security

This server is designed to be transparent and minimal:

  • Only connects to api.canlii.org — no other network calls, no telemetry, no analytics
  • API key stays local — passed via environment variable, never logged or included in responses
  • All inputs validated — database IDs, case IDs, and dates are regex-validated before use; path segments are URI-encoded
  • All API responses validated — parsed through Zod schemas before being returned
  • No file system access — the server only makes HTTPS calls to CanLII
  • No shell execution — no child_process, exec, or spawn
  • 2 runtime dependencies — @modelcontextprotocol/sdk (official Anthropic MCP SDK) and zod (schema validation)
  • Rate limiter built in — serialized request queue prevents API abuse
  • MIT licensed, fully open source — read every line at src/index.ts (~350 lines) and src/schema.ts (~140 lines)

If you discover a security issue, please see SECURITY.md.

Known Limitations

  • No decision body text — full-text search works (searching across case titles, citations, and content), but the API cannot return the full text of a decision. You must click the CanLII URL to read the decision on canlii.org. Paragraph numbers and direct quotes need to be verified by reading the source.
  • Search is keyword-based, not semantic — queries like "mother gatekeeping sole decision-making" may return mixed results. Refine queries and check case titles before drilling into metadata.
  • Search results don't include case details — search returns only citations and titles. You need to call get_case_metadata separately for each case to get keywords, topics, decision date, and the CanLII URL.
  • No treatment indicators — the citator shows what cases cite a decision, but does not indicate whether it was followed, distinguished, or overturned. You need to read the citing cases to determine treatment.
  • Citator tease caps at 5 results — use get_case_citator (full version) for comprehensive citation analysis.
  • Search has no database/jurisdiction filter — you cannot limit search results to a specific court or province server-side; add jurisdiction keywords to your query instead (e.g., "custody Ontario" instead of just "custody").
  • Search endpoint is undocumented — it works but is not in CanLII's official API docs, so it could change without notice.
  • Rate limits are strict — 5,000 queries/day, 2 req/sec, 1 concurrent request (enforced automatically by the built-in rate limiter).

License

MIT — see LICENSE.

Read the full README →View source on GitHub →

Related MCP Servers

View all in Legal View all alternatives
  • LibreJustice logoLibreJustice

    Search French and European case law and French legal texts (codes, statutes, treaties).

    ⚖️ Legal1 views
    Compare vs LibreJustice →
  • D
    DirectCase Legal Search

    Search national and EU case law, legislation and regulation, with citations you can verify.

    ⚖️ Legal0 views
    Compare vs DirectCase Legal Search →
  • Eur Lex MCP Server logoEur Lex MCP Server

    Search EU legislation, CJEU case law, and treaties; traverse CELLAR graph; browse EuroVoc concepts.

    ⚖️ Legal0 views
    Compare vs Eur Lex MCP Server →
  • Legal Data Hunter logoLegal Data Hunter

    Search 18M+ legal documents worldwide — case law, legislation, and doctrine across 110+ countries.

    ⚖️ Legal0 views
    Compare vs Legal Data Hunter →

Reviews

No reviews yet — be the first to share how this listing worked for you.

Frequently Asked Questions about Canlii

Add the following block to your claude_desktop_config.json under mcpServers: "mcpServers": { "canlii": { "command": "npx", "args": ["-y", "canlii"] } }

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewCanlii AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/canlii?style=directory)](https://allmcps.com/mcp/canlii)
HTML Embed
<a href="https://allmcps.com/mcp/canlii"><img src="https://allmcps.com/api/badge/canlii?style=directory" alt="Canlii on AllMCPs" /></a>

Technical Specs & Signals

Category⚖️Legal
More technical detailsExpand ▾
TransportSTDIO
RuntimeNode.js
Last updatedSep 7, 2026
Views0
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
GitHub stars5
GitHub Star CountTotal stargazers on GitHub representing community popularity (5 stars).
37Quality signal: Fair · 37/100How this signal is calculated ▾
Server availabilityNot measured

Not scored for repo-hosted servers — we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership10/20
Documentation & tools16/30
Adoption & activity2/15
Community engagement0/10

A guidance signal from public completeness & health data — not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

★ Spotlight Slot

Feature Your MCP Server

Get maximum visibility for your server across our directory, search results, and detail pages.

Spotlight Your Server

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to unlock edit access and the Official badge — proof is checked automatically, then reviewed by our team.

Free dofollow backlink: add your website and place the AllMCPs badge on it — no claim needed. We detect it automatically and keep it verified as long as the badge stays live.

Claim & get free dofollow

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in ⚖️ Legal →Best MCP servers for Legal →Alternatives to Canlii →Install in Claude DesktopInstall in CursorInstall in VS Code