Skip to main content

lu-eli-mcp

Instalacja (jedna komenda)

Opublikowany na PyPI + MCP Registry (io.github.matematicsolutions/lu-eli-mcp). Uruchomienie bez klonowania:

uvx lu-eli-mcp

Konfiguracja klienta MCP (stdio):

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

Windows 11 ze Smart App Control

Smart App Control blokuje niepodpisane pliki wykonywalne, a uvx.exe, pip.exe i generowany przy instalacji lu-eli-mcp.exe podpisane nie sa. python.exe z python.org jest podpisany przez Python Software Foundation, wiec uruchomienie przez modul omija blokade:

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

Nie wylaczaj Smart App Control, zeby to obejsc - wylaczenia nie da sie cofnac bez ponownej instalacji systemu.

(Budowanie ze źródeł — niżej.)

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

Tool What 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).

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:

Variable Meaning
LU_ELI_BASE_URL Legilux data host (default https://data.legilux.public.lu).
LU_ELI_CACHE_DIR Disk cache dir (default ~/.matematic/cache/lu-eli).
LU_ELI_AUDIT_DIR Audit log dir (default ~/.matematic/audit).

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

Install

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

pytest tests/test_instructions_drift.py tests/test_parse.py   # offline
pytest 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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lu_eli_mcp-0.2.1.tar.gz (24.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lu_eli_mcp-0.2.1-py3-none-any.whl (19.7 kB view details)

Uploaded Python 3

File details

Details for the file lu_eli_mcp-0.2.1.tar.gz.

File metadata

  • Download URL: lu_eli_mcp-0.2.1.tar.gz
  • Upload date:
  • Size: 24.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for lu_eli_mcp-0.2.1.tar.gz
Algorithm Hash digest
SHA256 e63553a98e2c315c4683c1fde557a58c99eb1abb7e11645bcdaf117e56650e8a
MD5 f721f5a9376a04cbd5ac3bb197d312ba
BLAKE2b-256 9f58b98fea6032487045f027e2cf1b1a0a75b0a10efd8a3c49cdfcfbc0e40080

See more details on using hashes here.

Provenance

The following attestation bundles were made for lu_eli_mcp-0.2.1.tar.gz:

Publisher: release.yml on matematicsolutions/lu-eli-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lu_eli_mcp-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: lu_eli_mcp-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 19.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for lu_eli_mcp-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cbef791cd7bf0b9474e519bb180fb52c03f522c089953d2c6d3bff4bcfce2d38
MD5 36b09db1fe9de131a51eb5af68aca057
BLAKE2b-256 eb8d932c9efed2587c5c1a24a3fdad0b2ca4be4fc014154dd18519892e41bb27

See more details on using hashes here.

Provenance

The following attestation bundles were made for lu_eli_mcp-0.2.1-py3-none-any.whl:

Publisher: release.yml on matematicsolutions/lu-eli-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page