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"] } } }

(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.0.tar.gz (23.8 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.0-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lu_eli_mcp-0.2.0.tar.gz
  • Upload date:
  • Size: 23.8 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.0.tar.gz
Algorithm Hash digest
SHA256 25a23d054e917921fa5e2b71b8f8fd319651790f8d9e8005f0c8c3b260bf29f3
MD5 3b087e1faa9335d1181a88cde4b27909
BLAKE2b-256 9cb9f40a3317c630e42a9dc3ea7dc2d091226985cc17e0731e3bcf19ad0af2f3

See more details on using hashes here.

Provenance

The following attestation bundles were made for lu_eli_mcp-0.2.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: lu_eli_mcp-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 19.0 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5c2990c0d82071b633232e24e1fbd065e611390a2167f33900de08e660ca130a
MD5 e1e0c14289190bf039f519374f96a8a7
BLAKE2b-256 1f72211eac8018155443dfce3211a98a72f21ae86941deb4b9c1c20e83ff3cb1

See more details on using hashes here.

Provenance

The following attestation bundles were made for lu_eli_mcp-0.2.0-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