
Ca Eli Mcp
io.github.matematicsolutions由 GitHub 账号 matematicsolutions 发布v0.3.3更新于 Oct 24, 2026
MCP server for Canadian federal legislation (Justice Laws Website), verifiable citations.
概览
让助手按代码或简称从官方法律网站获取加拿大联邦法案与法规,并提供可核验的引用。
- 可以做什么
- 提供三个工具处理加拿大联邦立法:ca_get_document 返回某一法案或法规的元数据,如标题、生效状态和最后合并日期;ca_get_text 返回同一文档的完整合并 XML 文本;ca_coverage 说明该连接器覆盖的范围、各法族的采集时间,以及明确不覆盖的内容。每个响应都带有 lex_uri、source_url 和人类可读的引用。内容为英法双语。
- 适用场景
- 适合助手需要引用或核验加拿大联邦立法,且用户已知法案代码(例如《刑法典》的 C-46)或简称的场景。它不是搜索工具:没有全文检索,不包含省和地区立法,也不包含判例法。
- 运行要求
- 需要本地 Python 运行环境;软件包从 PyPI 安装(pip install ca-eli-mcp)并以模块方式运行,例如 python -m ca_eli_mcp。需要访问法律网站的网络连接。可选环境变量 CA_ELI_CACHE_DIR、CA_ELI_AUDIT_DIR 和 CA_ELI_BASE_URL 分别设置缓存目录、审计目录和基础网址。未声明任何身份验证。
安装
在 SourceWeft 中
- 打开 控制台中的 Ca Eli Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
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
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
Windows 11 with Smart App Control
Smart App Control blocks unsigned executables, which covers uvx.exe, pip.exe
and the ca-eli-mcp.exe launcher that pip writes at install time. The python.exe and
py.exe from the python.org installer are signed by the Python Software
Foundation, so running the module through the interpreter works:
pip.exe is blocked for the same reason, so install with python -m pip, not
pip install. If python is not on PATH, use the Windows launcher: py -3 -m ca_eli_mcp.
Do not turn Smart App Control off to work around this - it cannot be re-enabled without reinstalling Windows.
Configuration
License
Apache-2.0 (code). Justice Laws Website content is Government of Canada material (see SOURCES.md).
来源:README.md,提交 2f54e6c
工具
0版本历史
1- v0.3.3最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分