Be Eli Mcp

io.github.matematicsolutionsPublished by GitHub account matematicsolutionsv0.2.4Updated Oct 24, 2026

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

Overview

AI-generated overview

A local MCP server that lets an assistant fetch Belgian legislation from the official gazette by ELI coordinates, with verifiable citations.

What you can do
Retrieve an act's metadata by ELI coordinates (type, year, month, day, numac), including title, authority, dates, table of contents and citation contract, with a native ELI URI and human-readable citation in every response. Fetch the verbatim consolidated text of an act in French, Dutch or German. Browse a year's listing for one document type to discover NUMAC coordinates. Report what the connector covers and does not cover, with a fallback for each gap.
When to use it
Useful when you already hold a Belgian ELI citation or NUMAC coordinates and want the official metadata or full text quoted with a verifiable citation. Not suitable for keyword discovery, since no free-text search is offered.
Requirements
Runs locally as a Python package (be-eli-mcp), typically via uvx or the Python interpreter. Network access to ejustice.just.fgov.be, which is keyless. Optional environment variables BE_ELI_BASE_URL, BE_ELI_CACHE_DIR and BE_ELI_AUDIT_DIR adjust the host, cache and audit log locations.
Before you install
Read-only against the official source, but it writes a local audit log and a disk cache. On Windows 11 with Smart App Control, unsigned launchers such as uvx.exe and pip.exe are blocked; the README advises running the module through python instead of disabling that protection. Titles in year listings may be missing, so confirm with the act lookup.

Installation

In SourceWeft

  1. Open Be Eli Mcp in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

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

Source: README.md at commit 9d4f416

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v0.2.4LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts