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 分