{"id":51576144,"url":"https://github.com/matematicsolutions/dk-eli-mcp","last_synced_at":"2026-07-11T00:31:50.666Z","repository":{"id":368579982,"uuid":"1283986014","full_name":"matematicsolutions/dk-eli-mcp","owner":"matematicsolutions","description":"MCP server for the Danish Retsinformation legal database (retsinformation.dk) - Danish legislation as LexDania XML with native ELI identifiers and verifiable citations. Part of the MateMatic eu-legal-mcp line.","archived":false,"fork":false,"pushed_at":"2026-07-01T07:17:18.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-01T09:14:46.177Z","etag":null,"topics":["denmark","eli","law","legaltech","mcp","mcp-server","model-context-protocol"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/matematicsolutions.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-29T12:21:05.000Z","updated_at":"2026-07-01T07:17:22.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/matematicsolutions/dk-eli-mcp","commit_stats":null,"previous_names":["matematicsolutions/dk-eli-mcp"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/matematicsolutions/dk-eli-mcp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matematicsolutions%2Fdk-eli-mcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matematicsolutions%2Fdk-eli-mcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matematicsolutions%2Fdk-eli-mcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matematicsolutions%2Fdk-eli-mcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matematicsolutions","download_url":"https://codeload.github.com/matematicsolutions/dk-eli-mcp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matematicsolutions%2Fdk-eli-mcp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35347554,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-10T02:00:06.465Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["denmark","eli","law","legaltech","mcp","mcp-server","model-context-protocol"],"created_at":"2026-07-11T00:31:49.585Z","updated_at":"2026-07-11T00:31:50.623Z","avatar_url":"https://github.com/matematicsolutions.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dk-eli-mcp\n\n\u003c!-- mcp-name: io.github.matematicsolutions/dk-eli-mcp --\u003e\n\nAn MCP server for the Danish **Retsinformation** legal database (`retsinformation.dk`). It\nfetches Danish legislation as LexDania 2.1 XML behind native ELI URIs, with verifiable\ncitations.\n\nPart of the MateMatic `eu-legal-mcp` production line - after PL, DE, AT, ES, FI, IE, NL, SE, FR\nand LU. Same citation contract, Retsinformation source. Denmark is ELI-native: every document\nhas a stable `data.europa.eu/eli`-typed identifier exposed as a `retsinformation.dk/eli/...` URL.\n\n\u003e **Scope.** This MVP grounds Danish documents by ELI coordinate (`year` + `number` in the `lta`\n\u003e collection = Lovtidende A) or by accession number, and lists documents changed on a date. The\n\u003e API is path-based, not keyword search. It covers laws (LOV), consolidated laws (LBK), executive\n\u003e orders (BEK), circulars (CIR) and guidelines (VEJ). Language: Danish. Every response carries a\n\u003e `dataset_note`.\n\u003e\n\u003e **Licence of the data.** Danish legislation in Retsinformation is official public information\n\u003e published as Open Data (keyless). This connector relays it with attribution and a `source_url`.\n\n## The tools\n\n| Tool | What it does |\n|---|---|\n| `dk_get_act` | Metadata for a document by year + number, or by accession. |\n| `dk_get_text` | Full LexDania XML of a document (verbatim official text). |\n| `dk_recent_changes` | Documents changed on a given date (harvest API). |\n\nEvery response carries the contract: `eli_uri` (a full ELI URL, e.g.\n`https://www.retsinformation.dk/eli/lta/2018/502`), `human_readable_citation`\n(e.g. `Databeskyttelsesloven (LOV nr. 502 af 23/05/2018)`), and `source_url`.\n\n## Install\n\nRun it with no install step (once published to PyPI):\n\n```bash\nuvx dk-eli-mcp\n```\n\nOr from source:\n\n```bash\ncd dk-eli-mcp\npip install -e .\n```\n\n## Configure (Claude Code / any MCP client)\n\n```json\n{\n  \"mcpServers\": {\n    \"dk-eli-mcp\": { \"command\": \"dk-eli-mcp\" }\n  }\n}\n```\n\nEnvironment:\n\n- `DK_ELI_BASE_URL` - default `https://www.retsinformation.dk`\n- `DK_ELI_API_URL` - default `https://api.retsinformation.dk` (harvest API)\n- `DK_ELI_CACHE_DIR` - default `~/.matematic/cache/dk-eli`\n- `DK_ELI_AUDIT_DIR` - default `~/.matematic/audit`\n\nNo API key. Retsinformation open data is keyless.\n\n\u003e The harvest API behind `dk_recent_changes` is only available 03:00-23:45 Danish time. Outside\n\u003e that window the tool returns an `upstream_error`; an empty list during the window means nothing\n\u003e changed on that date.\n\n## Governance\n\n- **Public data only** - read-only against Retsinformation; no client data leaves the machine.\n- **Audit log** - every tool call appends one JSON line to `~/.matematic/audit/dk-eli-mcp.jsonl`.\n- **Vendor-neutral** - talks only to `retsinformation.dk`; no LLM provider, no telemetry.\n- **Verifiable citations** - every response is independently checkable via `source_url`.\n\nSee `CONSTITUTION.md` and `DISCOVERY.md`.\n\n## Tests\n\n```bash\npip install -e \".[dev]\"\npytest tests/test_instructions_drift.py tests/test_parse.py -v   # offline\npytest tests/test_smoke.py -v                                    # hits live Retsinformation\n```\n\n## Licence\n\nApache-2.0. © Matematic Solutions / Wieslaw Mazur.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatematicsolutions%2Fdk-eli-mcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatematicsolutions%2Fdk-eli-mcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatematicsolutions%2Fdk-eli-mcp/lists"}