Lu Eli Mcp

io.github.matematicsolutions由 GitHub 账号 matematicsolutions 发布v0.3.3更新于 Oct 24, 2026

MCP server for Luxembourg Legilux: ELI-native legislation and Akoma Ntoso with citations.

概览

AI 生成的概览

只读 MCP 服务器,让助手按 ELI 从 Legilux 获取卢森堡法规的元数据、Akoma Ntoso 全文和可核验的引证。

可以做什么
  • 按 ELI 查询法规元数据:标题、日期、生效状态、可用语言以及 cites/modifies/repeals 关联
  • 按指定语言和文件格式获取逐字全文(默认 Akoma Ntoso XML)
  • 报告该连接器的覆盖范围、采集时间以及明确未覆盖的部分和替代方案
  • 每次响应都附带原生 ELI URI、人类可读引证和可解析的来源链接
适用场景
适合需要回答卢森堡法律问题并引用 Legilux 官方来源的场景,或沿修订、废止关系追踪法规。不适合自由文本检索:Legilux 没有搜索接口,必须按 ELI 定位法规。
运行要求
以 stdio 在本地运行,通常通过 uvx 从 PyPI 包 lu-eli-mcp 启动(Python)。无需账号或 API 密钥,Legilux 无需密钥。可选环境变量可设置数据主机、缓存目录和审计日志目录。需要能访问 Legilux 数据主机的网络。在启用 Smart App Control 的 Windows 11 上,未签名启动器会被拦截,需通过已签名的 Python 解释器运行模块。
安装前请注意
只读:仅查询 Legilux 并写入本地审计日志,不会修改官方文本。默认会在用户主目录下写入磁盘缓存和审计日志。可选的基础 URL 变量可将请求指向其他主机。法规文本可能为法语或德语。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Lu Eli Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

lu-eli-mcp

Install (one command)

Published on PyPI + MCP Registry (io.github.matematicsolutions/lu-eli-mcp). Run without cloning:

bash
uvx lu-eli-mcp

Configure your MCP client (stdio):

json
{ "mcpServers": { "lu-eli-mcp": { "command": "uvx", "args": ["lu-eli-mcp"] } } }

Windows 11 with Smart App Control

Smart App Control blocks unsigned executables, which covers uvx.exe, pip.exe and the lu-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 lu-eli-mcppython -m lu_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 lu_eli_mcp.

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

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

Building from source: see Install.

An MCP server for Luxembourg legislation via Legilux open data (data.legilux.public.lu). It fetches act metadata and full Akoma Ntoso text with verifiable citations. Part of the eu-legal-mcp line of national legal connectors by MateMatic.

Legilux is genuinely ELI-native: every act is addressed by its ELI and described as jolux RDF over a FRBR model (Work / Expression / Manifestation), with full text as Akoma Ntoso XML. Every response carries a native eli_uri, a human_readable_citation and a resolvable source_url.

Read-only. The server only queries Legilux and writes a local audit log. It never modifies official text.

Tools

ToolWhat it does
lu_get_act(eli)Metadata for an act by its ELI (full URI or bare eli/... path). Returns the native eli_uri, title, dates, in-force status, available languages / manifestations, and the act's cites / modifies / repeals links.
lu_get_text(eli, language, file_format)Verbatim text in one language (default fr) and file_format (default xml, Akoma Ntoso).
lu_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: Legilux exposes no HTTP search endpoint. Discover acts by ELI coordinates (from legilux.public.lu) or by following the cites / modifies / repeals ELIs that lu_get_act returns. Luxembourg is multilingual, so titles and text may be French or German; the languages field shows what exists for a given act.

Configuration

Legilux is keyless. Configuration is optional:

VariableMeaning
LU_ELI_BASE_URLLegilux data host (default https://data.legilux.public.lu).
LU_ELI_CACHE_DIRDisk cache dir (default ~/.matematic/cache/lu-eli).
LU_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

Tests

bash
pytest tests/test_instructions_drift.py tests/test_parse.py   # offlinepytest tests/test_smoke.py -v                                 # live, hits Legilux

Licence

Apache-2.0. Legilux content is © the Grand Duchy of Luxembourg; this software only retrieves and cites it.

来源:README.md,提交 14a9017

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

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

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分