eu.ansvar/canadian-law-mcp
Canadian federal law database — PIPEDA, CASL, cybercrime, corporate law with full-text search
★ 0NOASSERTIONdatabases
Install
Config snippet generator goes here (5 client tabs)
README
# Canadian Law MCP Server
**The Justice Laws alternative for the AI age.**
[](https://www.npmjs.com/package/@ansvar/canadian-law-mcp)
[](https://registry.modelcontextprotocol.io)
[](https://opensource.org/licenses/Apache-2.0)
[](https://github.com/Ansvar-Systems/canadian-law-mcp)
[](https://github.com/Ansvar-Systems/canadian-law-mcp/actions/workflows/ci.yml)
[]()
Query **956 Canadian federal Acts** -- from PIPEDA and the Criminal Code to the Competition Act, Bank Act, Copyright Act, and more -- directly from Claude, Cursor, or any MCP-compatible client.
If you're building legal tech, compliance tools, or doing Canadian legal research, this is your verified reference database.
Built by [Ansvar Systems](https://ansvar.eu) -- Stockholm, Sweden
---
## Why This Exists
Canadian federal law research means navigating [laws-lois.justice.gc.ca](https://laws-lois.justice.gc.ca), downloading HTML pages across a bilingual site, and manually cross-referencing between Acts and sections. Whether you're:
- A **lawyer** validating citations in a brief or contract
- A **compliance officer** checking PIPEDA obligations or CASL requirements
- A **legal tech developer** building tools on Canadian law
- A **researcher** tracing legislative provisions across 956 federal Acts
...you shouldn't need dozens of browser tabs and manual cross-referencing. Ask Claude. Get the exact provision. With context.
This MCP server makes Canadian law **searchable, cross-referenceable, and AI-readable**.
---
## Quick Start
### Use Remotely (No Install Needed)
> Connect directly to the hosted version -- zero dependencies, nothing to install.
**Endpoint:** `https://canadian-law-mcp.vercel.app/mcp`
| Client | How to Connect |
|--------|---------------|
| **Claude.ai** | Settings > Connectors > Add Integration > paste URL |
| **Claude Code** | `claude mcp add canadian-law --transport http https://canadian-law-mcp.vercel.app/mcp` |
| **Claude Desktop** | Add to config (see below) |
| **GitHub Copilot** | Add to VS Code settings (see below) |
**Claude Desktop** -- add to `claude_desktop_config.json`:
```json
{
"mcpServers": {
"canadian-law": {
"type": "url",
"url": "https://canadian-law-mcp.vercel.app/mcp"
}
}
}
```
**GitHub Copilot** -- add to VS Code `settings.json`:
```json
{
"github.copilot.chat.mcp.servers": {
"canadian-law": {
"type": "http",
"url": "https://canadian-law-mcp.vercel.app/mcp"
}
}
}
```
### Use Locally (npm)
```bash
npx @ansvar/canadian-law-mcp
```
**Claude Desktop** -- add to `claude_desktop_config.json`:
**macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`
**Windows:** `%APPDATA%\Claude\claude_desktop_config.json`
```json
{
"mcpServers": {
"canadian-law": {
"command": "npx",
"args": ["-y", "@ansvar/canadian-law-mcp"]
}
}
}
```
**Cursor / VS Code:**
```json
{
"mcp.servers": {
"canadian-law": {
"command": "npx",
"args": ["-y", "@ansvar/canadian-law-mcp"]
}
}
}
```
---
## Example Queries
Once connected, just ask naturally:
- *"What does PIPEDA Section 7 say about consent exceptions?"*
- *"Is CASL still in force?"*
- *"Find provisions about personal information in Canadian law"*
- *"What EU laws does PIPEDA align with?"*
- *"What does Criminal Code s.342.1 say about unauthorized computer use?"*
- *"Search for data breach notification requirements across Canadian statutes"*
- *"Validate the citation 's. 5 PIPEDA'"*
- *"Build a legal stance on competition law enforcement in Canada"*
---
## What's Included
| Category | Count | Details |
|----------|-------|---------|
| **Federal Acts** | 956 statutes | Complete A-Z from Justice Laws Website |
| **Provisions** | 53,954 sections | Full-text searchable with FTS5 |
| **Legal Definitions** | 12,393 definitions | Extracted from all Acts |
| **Database Size** | ~82 MB | Optimized SQLite, portable |
| **Weekly Freshness Checks** | Automated | Drift detection against Justice Laws |
### Largest Acts by Provision Count
| Act | Provisions |
|-----|-----------|
| Criminal Code | 1,644 |
| Bank Act | 1,376 |
| Insurance Companies Act | 1,211 |
| Canada Elections Act | 1,102 |
| Income Tax Act | 760 |
| Excise Tax Act | 683 |
| National Defence Act | 666 |
### Largest Acts by Definition Count
| Act | Definitions |
|-----|------------|
| Income Tax Act | 1,621 |
| Excise Tax Act | 500 |
| Criminal Code | 309 |
| Global Minimum Tax Act | 247 |
| Bank Act | 239 |
**Verified data only** -- every citati