CAT
/MCP
SkillsMCPMarketplacesDigestToolsAdvertise

This week in Claude

Every Monday: Claude Code, Agent SDK, MCP, and the Anthropic platform moves worth your time.

Skills by Category
Frontend DevelopmentBackend & APIsTesting & QASecurityDevOps & CI/CDGit & Pull RequestsDocumentationCode Review & QualityAI & Agent BuildingSkill Development
MCP Servers by Category
Sales & MarketingWeb & Browser AutomationDatabasesAI & LLM ToolsCloud & InfrastructureCommunication & MessagingDeveloper ToolsDesign & CreativeDocuments & KnowledgeSearch & Web Crawling
Marketplaces by Category
AI Agents & OrchestrationLLM IntegrationDevelopment ToolsFrontend & UIBackend & APIsDatabasesTesting & Code QualityDevOps & CloudSecurity & ComplianceGit & Version Control

Cross AI Tools

Discover Claude Code plugins, extensions, and tools. Automatically updated directory of Anthropic Claude AI marketplaces with development tools, productivity plugins, and integrations.

Resources

  • Browse Skills
  • Browse MCP Servers
  • Browse Marketplaces
  • Plugins Reference

Community

  • About
  • Tools
  • Feedback
  • Privacy Policy
  • Advertise

Built for the Claude Code community with Claude Code by @mertduzgun

Independent project, not affiliated with Anthropic

Canlii

mohammadfarooqi/canlii-mcp
1authSTDIOregistry active
Summary

Connects Claude to the CanLII API for Canadian legal research. Exposes nine tools including full-text search across cases and legislation, case citators to check if precedents are still good law, and metadata retrieval for building citation chains. Built with automatic rate limiting (2 req/sec, 5000/day) and input validation. Search returns case titles and citations but not full text, so you'll need to follow CanLII URLs to read actual decisions. Citator shows what cases cite a decision but doesn't indicate treatment like "followed" or "distinguished". Useful when you need to verify Ontario or federal case law, check citation relationships, or browse legislation databases without leaving Claude.

CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
Keep your Mac awake
Keep your Mac awake
Keep your Mac awake while Claude Code and 40+ AI agents run. Sleeps when they're idle.
One time payment $9 →
Context.devContext.dev
Context.dev
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Make money from your Skills
Make money from your Skills
On Capafy, your Skill runs online 24/7 as an agent product, and you get paid every time someone uses it.
Start earning →
AppSignal
AppSignal
Monitor with ease. Code with confidence.
Start Free Trial →
CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
Keep your Mac awake
Keep your Mac awake
Keep your Mac awake while Claude Code and 40+ AI agents run. Sleeps when they're idle.
One time payment $9 →
Context.devContext.dev
Context.dev
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Make money from your Skills
Make money from your Skills
On Capafy, your Skill runs online 24/7 as an agent product, and you get paid every time someone uses it.
Start earning →
AppSignal
AppSignal
Monitor with ease. Code with confidence.
Start Free Trial →

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.

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):

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

Restart Claude Desktop after saving.

Claude Code:

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

From source (for development):

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.

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.

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.

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.

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.

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.

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

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

Project Structure

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.

Featured
CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
Keep your Mac awake
Keep your Mac awake
Keep your Mac awake while Claude Code and 40+ AI agents run. Sleeps when they're idle.
One time payment $9 →
Context.devContext.dev
Context.dev
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Make money from your Skills
Make money from your Skills
On Capafy, your Skill runs online 24/7 as an agent product, and you get paid every time someone uses it.
Start earning →
AppSignal
AppSignal
Monitor with ease. Code with confidence.
Start Free Trial →

Configuration

CANLII_API_KEY*secret

Your CanLII API key (request free at canlii.org/en/feedback/feedback.html)

Categories
Search & Web Crawling
Registryactive
Packagecanlii-mcp
TransportSTDIO
AuthRequired
UpdatedApr 9, 2026
View on GitHub

Related Search & Web Crawling MCP Servers

View all →
Google Search

com.mcparmory/google-search

Scrape Google search results with SERP data, ads, and knowledge panels
25
Brave Search

io.github.pipeworx-io/brave-search

Brave Search MCP — independent web index (no Google/Bing dependency)
Serper Search and Scrape

marcopesani/mcp-server-serper

Serper MCP Server supporting search and webpage scraping
154
Brave Search Mcp Server

brave/brave-search-mcp-server

Brave Search MCP Server: web results, images, videos, rich results, AI summaries, and more.
1.2k
Google Search Console

com.mcparmory/google-search-console

Query search analytics, manage sitemaps, and inspect site URLs and status
25
Google Search Console

acamolese/google-search-console-mcp

Google Search Console MCP server: SEO audits, performance queries, URL inspection, indexing checks.
3