MCP server for the Dutch consolidated legislation BWB (KOOP SRU) — fetch acts in force on a date with persistent identifiers and verifiable citations.
Project description
nl-eli-mcp
An MCP server for the Dutch consolidated legislation BWB (Basiswettenbestand), served by
KOOP over the official SRU API (zoekservice.overheid.nl, keyless). It gives an AI agent the
version of an act in force on a given date, with a verifiable citation: a persistent
identifier, a human-readable citation, and a link to the official source.
Part of the eu-legal-mcp line by MateMatic — one connector per EU member state, the same citation contract everywhere.
On ELI. The Netherlands does not publish native ELI (
/eli/) URIs on consolidated BWB. To keep the line's contract honest,eli_uricarries the official persistent identifier instead — thewetten.overheid.nl/idtoestand URI (e.g.http://wetten.overheid.nl/id/BWBR0005537/2026-06-04/0). The connector never fabricates an/eli/URI and says so in its tool instructions. SeeDISCOVERY.md.
Tools
| Tool | What it does |
|---|---|
nl_search(query, on_date=today) |
Find acts by words in the title that are in force on a date. Returns distinct acts, each with the citation contract. |
nl_get_act(bwb_id, on_date=today) |
Metadata for one act (e.g. BWBR0005537) — identifier, title, authority, version date. |
nl_get_text(bwb_id, on_date=today) |
The full consolidated XML (BWB toestand) of one act. |
nl_case_search(date_from, date_to, ...) |
List court decisions (Rechtspraak Open Data) by date range / court / subject. No free-text; each hit carries a native ecli. |
nl_get_decision(ecli) |
A court decision by its ECLI (e.g. ECLI:NL:HR:2020:1) — court, dates, zaaknummer and full text. |
Legislation comes from the BWB (KOOP SRU); case law comes from Rechtspraak Open Data
(data.rechtspraak.nl), keyed by native ECLI. Every response carries the citation contract:
eli_uri— the official persistent identifier (toestand URI; see the ELI note above).human_readable_citation— the official short title (citeertitel), e.g. Algemene wet bestuursrecht.source_url— the browsablewetten.overheid.nlpage for that version.
Versions and dates
Each act has many time-stamped versions. The tools default to the version in force today;
pass on_date (YYYY-MM-DD) to pin a historical or future version. An act with no version
valid on that date returns not_found — retry with another on_date.
Install
pip install -e ".[dev]"
Register it with your MCP client (see .mcp.json.example):
{
"mcpServers": {
"nl-eli-mcp": {
"command": "nl-eli-mcp",
"env": {
"NL_ELI_BASE_URL": "https://zoekservice.overheid.nl/sru/Search",
"NL_ELI_CACHE_DIR": "~/.matematic/cache/nl-eli",
"NL_ELI_AUDIT_DIR": "~/.matematic/audit"
}
}
}
}
Design
- Public data only. Read-only against the keyless KOOP SRU API and the official repository host; nothing is sent beyond the query / identifier and the date.
- Audit log. Every call appends one JSON line to
~/.matematic/audit/nl-eli-mcp.jsonl(AI Act art. 12 record-keeping). - Vendor-neutral. No LLM provider, no telemetry; own backoff + on-disk cache.
- No fabrication. Identifiers and titles are parsed from the source record. If KOOP's schema changes, the connector fails loudly rather than returning stale or invented data.
See CONSTITUTION.md (the 4 principles) and DISCOVERY.md (how the source was mapped).
Tests
pytest tests/test_instructions_drift.py tests/test_parse.py # offline
pytest tests/test_smoke.py # live KOOP API
Licence
Apache-2.0. The Dutch legislation served is official public data of the Kingdom of the Netherlands; this connector adds no rights over it.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nl_eli_mcp-0.2.0.tar.gz.
File metadata
- Download URL: nl_eli_mcp-0.2.0.tar.gz
- Upload date:
- Size: 31.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc03bd1be9d839aa3037feb00334c08a9dd55adc8e5f8aab19014624a72774d3
|
|
| MD5 |
5b3152e7091cbcccfde85037d2a38713
|
|
| BLAKE2b-256 |
f0324e133c92b7d88a8d305dd9c3291fb88c86fbf4dbed71108f7d59b93fe2ad
|
Provenance
The following attestation bundles were made for nl_eli_mcp-0.2.0.tar.gz:
Publisher:
release.yml on matematicsolutions/nl-eli-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nl_eli_mcp-0.2.0.tar.gz -
Subject digest:
cc03bd1be9d839aa3037feb00334c08a9dd55adc8e5f8aab19014624a72774d3 - Sigstore transparency entry: 1950138814
- Sigstore integration time:
-
Permalink:
matematicsolutions/nl-eli-mcp@14351f8211053346b29d8542fe9c428e00711f1d -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/matematicsolutions
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@14351f8211053346b29d8542fe9c428e00711f1d -
Trigger Event:
push
-
Statement type:
File details
Details for the file nl_eli_mcp-0.2.0-py3-none-any.whl.
File metadata
- Download URL: nl_eli_mcp-0.2.0-py3-none-any.whl
- Upload date:
- Size: 22.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86d198f2405c52cde7710f0e718a4313988f24bd3bbe2bbc86d21568f755b31a
|
|
| MD5 |
12cdb8541c4b666412b79d626fb0d0ac
|
|
| BLAKE2b-256 |
d61d6b9f618ede66c8d060629826d61c63a9f2258e651cfb39a298915acd8f6f
|
Provenance
The following attestation bundles were made for nl_eli_mcp-0.2.0-py3-none-any.whl:
Publisher:
release.yml on matematicsolutions/nl-eli-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nl_eli_mcp-0.2.0-py3-none-any.whl -
Subject digest:
86d198f2405c52cde7710f0e718a4313988f24bd3bbe2bbc86d21568f755b31a - Sigstore transparency entry: 1950139018
- Sigstore integration time:
-
Permalink:
matematicsolutions/nl-eli-mcp@14351f8211053346b29d8542fe9c428e00711f1d -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/matematicsolutions
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@14351f8211053346b29d8542fe9c428e00711f1d -
Trigger Event:
push
-
Statement type: