MCP server exposing 6 tools for denmark-law.
This URL is a JSON-RPC 2.0 endpoint over HTTP. Issue POST requests with a JSON-RPC body. Browsers and search crawlers land here on GET.
POST https://gateway.pipeworx.io/denmark-law/mcp
Content-Type: application/json
{"jsonrpc":"2.0","id":1,"method":"tools/list"}
dk_law_search — Search Danish national legislation (Retsinformation) by title word or popular name, e.g. "databeskyttelsesloven" or "straffeloven" (Danish). By default searches acts (love) and consolidated acts (lovbekendtgoerelser) and returns only those in force; set document_type to "executive_order" for bekendtgoerelser, "act" or "consolidated_act" for one kind, and in_force_only=false for historic ones. Returns id (ELI path such as "lta/2024/289"), citation, title, popular name, type, ministry, status, title_match (the words appear in the title; later hits are text matches) and a link; 10 per page, use page to continue. Pair with dk_law_get for the text.dk_law_get — Fetch one Danish legal document by id from dk_law_search (an ELI path such as "lta/2024/289" for the current Data Protection Act consolidated act). Returns title, popular name, type, citation, ministry, publication, status (valid or historic), validity date and the text. Pass section (e.g. "6" or "10 a" for section 10 a) for one section only; without it the text is capped at max_chars with a contents list. Text is in Danish exactly as Retsinformation publishes it.dk_law_recent_changes — Danish legal documents changed recently, from the publisher's change feed for downstream users (Retsinformation, Civilstyrelsen): one row per changed document with accession number, document id, type (act, consolidated act, executive order, ...), the reason (new document, content changed, metadata changed, removed), the change date and the permanent address. days (1-4, default 1) counts back from today; date picks one day. THE FEED ONLY LOOKS BACK 10 DAYS, so every response states window_days and the earliest date it can see: it is not the history of Danish law. The publisher allows one call per 10 seconds and only 03:00-23:45 Danish time; calls are serialised here, so each extra day adds about 10 seconds, and outside opening hours the response says so instead of returning nothing. Pair a row with dk_law_lookup for the record.dk_law_lookup — Look up one Danish legal document by a stable identifier and return its record (title, popular name, type, citation, ministry, publication, status, validity dates, European-regulation references, permanent address) without the text. Accepts an ELI path or address ("lta/2024/289", "https://www.retsinformation.dk/eli/lta/2024/289"), or an accession number as listed by dk_law_recent_changes ("A20240028929"). Unknown identifiers return found false. Use dk_law_get for the text.dk_law_relations — Which Danish laws a document AMENDS and which laws AMEND it, read from the publisher's own document (Retsinformation, Civilstyrelsen), live per request. Pass an id from dk_law_search ("lta/2025/1294"), an ELI address or an accession number ("A20260026330"). amends: for an amending act (lov om aendring af ...), each act it changes as the act itself names it (section, name, the number and date of the version it points at, a derived id, the quoted sentence); a reference with no number is returned with confidence low and no id, never dropped. amended_by: the later amending acts the publisher lists in the document's record data (accession number, date, title). consolidates / incorporated_amendments: for a consolidated act (lovbekendtgoerelse), the base act and the amendments already folded into this text. Every relation carries its quote. A document that states no relations says so in empty_reason. amended_by covers only what the publisher records on THIS version: amendments folded into a newer consolidated act appear there, not here; nothing is inferred by searching other documents.dk_law_change_history — The history of changes to Danish legal documents, from a daily capture of the publisher's change feed (Retsinformation) kept since the capture began: one row per change with accession number, document type, reason (new, content_changed, metadata_changed, ...), change date, the time we captured it and a document_version (equal values = identical text). Use it to answer "what changed in this act between two dates" and "was this regulation amended since X" beyond the 10 days dk_law_recent_changes can see. from/to default to the last 7 captured days (at most 31 days per call); accession_number narrows to one document. data_as_of is the last complete captured day; the response lists days with no capture and says so if the capture is stale. Returns found false with a reason, never a silent empty list.Code samples (curl / TypeScript / one-click client install), schemas, and the live playground are on the pack page:
https://pipeworx.io/packs/denmark-law/
Pipeworx is an open MCP gateway connecting AI agents to live data. pipeworx.io