Be Eli Mcp

io.github.matematicsolutions由 GitHub 帳號 matematicsolutions 發布v0.2.4更新於 Oct 24, 2026

MCP server for Belgian legislation (Moniteur Belge): ELI identifiers and citations.

概覽

AI 產生的概覽

本機 MCP 伺服器,讓助理依 ELI 座標從比利時官方公報取得立法文本,並附可驗證的引註。

可以做什麼
依 ELI 座標(類型、年、月、日、numac)取得法案中繼資料,包括標題、發布機關、日期、目錄與引註約定,每次回應都帶原生 ELI URI 與可讀引註。以法文、荷蘭文或德文取得法案的逐字合併文本。依文件類型瀏覽某一年度的清單,以找出 NUMAC 座標。說明此連接器涵蓋與未涵蓋的範圍,並為每處缺口提供替代方案。
適用情境
當你已持有比利時 ELI 引註或 NUMAC 座標,需要引用官方中繼資料或全文並附可驗證引註時適用。不適合關鍵字檢索,因為未提供全文搜尋。
執行需求
以 Python 套件(be-eli-mcp)在本機執行,通常透過 uvx 或 Python 解譯器啟動。需要連線至 ejustice.just.fgov.be,該站點無需金鑰。選用環境變數 BE_ELI_BASE_URL、BE_ELI_CACHE_DIR 與 BE_ELI_AUDIT_DIR 可調整主機、快取與稽核記錄位置。
安裝前請注意
對官方來源僅供讀取,但會在本機寫入稽核記錄與磁碟快取。在啟用 Smart App Control 的 Windows 11 上,uvx.exe、pip.exe 等未簽署啟動器會被封鎖;README 建議改用 python 執行模組,而非關閉該保護。年度清單中的標題可能缺漏,應以法案查詢結果為準。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Be Eli Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

be-eli-mcp

An MCP server for Belgian legislation via [Moniteur Belge / Belgisch Staatsblad] (https://www.ejustice.just.fgov.be), the official gazette of the Belgian Federal Public Service Justice. It fetches act metadata and full text by ELI coordinates, with verifiable citations. Part of the eu-legal-mcp line of national legal connectors by MateMatic.

Belgian legislation is addressed by ELI coordinates - type / year / month / day / numac (the Belgian legislative numbering system) - at https://www.ejustice.just.fgov.be/eli/{type}/{yyyy}/{mm}/{dd}/{numac}/justel. Every response carries a native eli_uri, a human_readable_citation and a source_url.

Read-only. The server only queries ejustice.just.fgov.be and writes a local audit log. It never modifies official text.

Belgium is trilingual (French / Dutch / German). human_readable_citation defaults to the French form by LDH convention; use be_get_text(language=...) for Dutch (Belgisch Staatsblad) or German. See CONSTITUTION.md Art. 4 for the full caveat.

Tools

ToolWhat it does
be_get_act(doc_type, year, month, day, numac)Metadata for an act by its ELI coordinates. doc_type is one of loi, decret, ordonnance, arrete, constitution. Returns the native eli_uri, title, source authority, publication date, entry-into-force date, table of contents, and the citation contract.
be_get_text(doc_type, year, month, day, numac, language="fr")The verbatim consolidated text ("Texte"/"Tekst" section) in fr (default), nl or de.
be_list_year(doc_type, year)Browse a year's listing for one doc_type, to discover NUMAC coordinates. Titles in this listing are best-effort (may be None); call be_get_act for the authoritative title.
be_coverage()Declare what this connector covers, when each family was captured, and - explicitly - what it does NOT cover. Every gap carries a fallback.

There is no free-text search: ejustice.just.fgov.be exposes no keyword-search API. Discover acts by ELI coordinates (from a citation you already hold) or by browsing be_list_year.

Configuration

ejustice.just.fgov.be is keyless. Configuration is optional:

VariableMeaning
BE_ELI_BASE_URLejustice host (default https://www.ejustice.just.fgov.be).
BE_ELI_CACHE_DIRDisk cache dir (default ~/.matematic/cache/be-eli).
BE_ELI_AUDIT_DIRAudit log dir (default ~/.matematic/audit).

Copy .mcp.json.example to your MCP client config.

Install

bash
py -3.13 -m venv .venv.\.venv\Scripts\python.exe -m pip install -e ".[dev]"   # Windows# or: python -m pip install -e ".[dev]"                  # POSIX

Windows 11 with Smart App Control

Smart App Control blocks unsigned executables, which covers uvx.exe, pip.exe and the be-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:

bash
python -m pip install be-eli-mcppython -m be_eli_mcp

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 be_eli_mcp.

json
{ "mcpServers": { "be-eli-mcp": { "command": "python", "args": ["-m", "be_eli_mcp"] } } }

Do not turn Smart App Control off to work around this - it cannot be re-enabled without reinstalling Windows.

Tests

bash
pytest tests/test_instructions_drift.py tests/test_parse.py   # offlinepytest tests/test_smoke.py -v                                 # live, hits ejustice.just.fgov.be

Licence

Apache-2.0. Moniteur Belge / Belgisch Staatsblad content is © the Belgian federal state; this software only retrieves and cites it. See CONSTITUTION.md Art. 1 for a note on the licence status of the source data (widely described as CC0 by third-party catalogs; not independently re-verified against ejustice.just.fgov.be's own terms page in this project).

來源:README.md,提交 9d4f416

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.2.4最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分