MCP server for Canadian federal legislation (Justice Laws Website) with verifiable citations.
Project description
ca-eli-mcp
MCP server for Canadian federal legislation via the Justice Laws Website (laws-lois.justice.gc.ca), the Department of Justice Canada's official source for consolidated Acts and regulations. Bilingual (English/French).
What this is not
- No free-text search - the Justice Laws Website has no search API of
its own. This connector is by-code only (the same limitation as
ie-eli-mcpfor Ireland): you need to already know the code (e.g."C-46"for the Criminal Code) or a short title to look one up. - Federal only - provincial and territorial legislation is out of scope.
- No case law - CanLII's terms of service forbid bulk redistribution and its content API requires a per-identity key, which breaks the zero-cloud pattern this connector otherwise follows. Not attempted here.
Tools
| Tool | Purpose |
|---|---|
ca_get_document |
Metadata (title, in-force status, last-consolidated date) for one act or regulation |
ca_get_text |
Full consolidated XML text of the same document |
Every response carries lex_uri (the XML source), source_url (the public
HTML page), and human_readable_citation (e.g. "Criminal Code (C-46)").
Install
pip install ca-eli-mcp
Configuration
| Env var | Default |
|---|---|
CA_ELI_CACHE_DIR |
~/.matematic/cache/ca-eli |
CA_ELI_AUDIT_DIR |
~/.matematic/audit |
CA_ELI_BASE_URL |
https://laws-lois.justice.gc.ca |
License
Apache-2.0 (code). Justice Laws Website content is Government of Canada material (see SOURCES.md).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ca_eli_mcp-0.1.0.tar.gz.
File metadata
- Download URL: ca_eli_mcp-0.1.0.tar.gz
- Upload date:
- Size: 14.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49334eeec8bfd5c8da701167992634f3fe29f3c5d28b6eaf3c72497fce5e318f
|
|
| MD5 |
84abef48be20e3c16f6a8bd6d3f3c0ea
|
|
| BLAKE2b-256 |
b3c7b442473c15d70de1a0e53b734f4c7fc4a40b8c793302c9fe818e83145744
|
File details
Details for the file ca_eli_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ca_eli_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 14.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
327be2b2fc3acab92b38d0b95643c2ca31b4beb154686d36c7a55042c8548813
|
|
| MD5 |
13eb4889ed6ae667f03371804e54853c
|
|
| BLAKE2b-256 |
c45bb2a33adc1c4017766e1fcde7207737f5b0125612986fc3d122f1df6b9d92
|