
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 分