denmark-legislation-mcp-server

v0.3.1 pre-1.0

Search Danish legislation in Retsinformation, resolve citations, read provisions, trace amendments via MCP. STDIO or Streamable HTTP.

denmark-legislation.caseyjhand.com/mcp
claude mcp add --transport http denmark-legislation-mcp-server https://denmark-legislation.caseyjhand.com/mcp
codex mcp add denmark-legislation-mcp-server --url https://denmark-legislation.caseyjhand.com/mcp
{
  "mcpServers": {
    "denmark-legislation-mcp-server": {
      "url": "https://denmark-legislation.caseyjhand.com/mcp"
    }
  }
}
gemini mcp add --transport http denmark-legislation-mcp-server https://denmark-legislation.caseyjhand.com/mcp
{
  "mcpServers": {
    "denmark-legislation-mcp-server": {
      "command": "bunx",
      "args": [
        "mcp-remote",
        "https://denmark-legislation.caseyjhand.com/mcp"
      ]
    }
  }
}
{
  "mcpServers": {
    "denmark-legislation-mcp-server": {
      "type": "http",
      "url": "https://denmark-legislation.caseyjhand.com/mcp"
    }
  }
}
curl -X POST https://denmark-legislation.caseyjhand.com/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-11-25","capabilities":{},"clientInfo":{"name":"curl","version":"1.0.0"}}}'

Tools

8

dklaw_search_documents

open-world

Search Retsinformation using Danish terms, an exact popular title, document types, a ministry, a CELEX identifier, or dates. Results carry canonical ELI links for dklaw_get_document. Use dklaw_list_reference to find exact document types and ministries. Use dklaw_lookup_citation to resolve a known Danish citation.

read
invocation
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "dklaw_search_documents",
    "arguments": {}
  }
}
schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "query": {
      "description": "Danish full-text terms. Space-separated terms match any term by default. Use AND to require both terms, for example persondata AND behandling. See dklaw_list_reference with topic search_syntax. Parentheses, braces, brackets, exclamation marks, colons, carets, and backslashes are unsupported.",
      "type": "string"
    },
    "popular_title": {
      "description": "Exact Danish popular title, for example Databeskyttelsesloven.",
      "type": "string"
    },
    "document_types": {
      "description": "One or more document types. Intersects with classification when supplied.",
      "minItems": 1,
      "type": "array",
      "items": {
        "type": "string",
        "description": "Exact Danish name or row/routing code from dklaw_list_reference with topic document_types, or BEK for the executive-order family."
      }
    },
    "classification": {
      "description": "Filter to one document category. Intersects with document_types.",
      "type": "string",
      "enum": [
        "rules",
        "decisions",
        "folketing",
        "ombudsman"
      ]
    },
    "ministry": {
      "description": "Limit results to one ministry or authority from dklaw_list_reference with topic ministries.",
      "anyOf": [
        {
          "type": "string",
          "description": "Exact Danish ministry name or numeric ID from topic ministries."
        },
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991,
          "description": "Numeric website ministry ID from topic ministries."
        }
      ]
    },
    "celex": {
      "description": "EU document CELEX identifier, for example 32016R0679. A CELEX: prefix is accepted.",
      "type": "string"
    },
    "year_from": {
      "description": "First signing or parliamentary session year, inclusive (four digits).",
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "year_to": {
      "description": "Last signing or parliamentary session year, inclusive (four digits).",
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "published_from": {
      "description": "First publication date, inclusive, as YYYY-MM-DD in Copenhagen.",
      "type": "string"
    },
    "status": {
      "description": "Use current for published current text only or all to include historical versions. Defaults to current.",
      "default": "current",
      "type": "string",
      "enum": [
        "current",
        "all"
      ]
    },
    "order": {
      "description": "Order by relevance or newest publication date. Defaults to relevance.",
      "default": "relevance",
      "type": "string",
      "enum": [
        "relevance",
        "newest"
      ]
    },
    "page": {
      "default": 0,
      "description": "Zero-based page within the first 10,000 matches. Start at 0 and follow next_page.",
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "limit": {
      "default": 25,
      "description": "Rows per page. Defaults to 25. Values above 100 are reduced to 100.",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "status",
    "order",
    "page",
    "limit"
  ],
  "additionalProperties": false
}
view source ↗

dklaw_get_provisions

open-world

Read Danish provisions, chapters, annexes, or a body text page. Use Danish addresses such as § 1 a, stk. 2, nr. 1, litra a. For any returned selector, send it with the result’s canonical ELI as document and version as_given. Send next_offset as offset to continue a page. Check pending amendments and their commencement clauses separately.

read
invocation
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "dklaw_get_provisions",
    "arguments": {
      "document": "<document>"
    }
  }
}
schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "document": {
      "type": "string",
      "description": "ELI URL or path, accession number, dated Danish citation, or exact popular title."
    },
    "version": {
      "default": "current",
      "description": "Follow verified consolidation links or retain the cited revision. Defaults to current.",
      "type": "string",
      "enum": [
        "as_given",
        "current"
      ]
    },
    "provisions": {
      "description": "Ordered Danish addresses. Reads the first ten per call. Omit selector, offset, and limit when using addresses.",
      "minItems": 1,
      "type": "array",
      "items": {
        "type": "string",
        "description": "Danish § address, Kapitel number, or Bilag number."
      }
    },
    "selector": {
      "description": "Versioned selector from dklaw_get_document or dklaw_get_provisions. When addresses are omitted, a blank or omitted selector reads the first page of the body.",
      "type": "string"
    },
    "offset": {
      "description": "Zero-based Unicode code point offset, default zero. Use a versioned selector for nonzero offsets.",
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "limit": {
      "description": "Maximum Unicode code points in a selector page, default 12000.",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "document",
    "version"
  ],
  "additionalProperties": false
}
view source ↗

dklaw_get_document

open-world

Read Retsinformation metadata, source links, pending amendments, and section selectors. Request outline provisions for a page of exact provision selectors. Use the returned canonical ELI as document and version as_given to continue paging or read text with dklaw_get_provisions. Choose current to follow verified consolidation links and include bill_history to retrieve parliamentary steps when available.

read
invocation
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "dklaw_get_document",
    "arguments": {
      "document": "<document>"
    }
  }
}
schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "document": {
      "type": "string",
      "description": "ELI URL or path, accession number, dated Danish citation, or exact popular title."
    },
    "version": {
      "default": "as_given",
      "description": "Keep the cited revision or follow verified consolidation links to the current consolidation. Defaults to as_given.",
      "type": "string",
      "enum": [
        "as_given",
        "current"
      ]
    },
    "include": {
      "description": "Include website parliamentary history and the historical cause if reported.",
      "maxItems": 1,
      "type": "array",
      "items": {
        "type": "string",
        "const": "bill_history"
      }
    },
    "outline": {
      "default": "sections",
      "description": "Show section selectors by default, or page exact provision selectors. Provision mode includes sections only on the unscoped first page.",
      "type": "string",
      "enum": [
        "sections",
        "provisions"
      ]
    },
    "section_selector": {
      "description": "In provision mode, limit results to descendants of this revision’s section selector.",
      "type": "string"
    },
    "offset": {
      "description": "Zero-based provision row offset, default zero.",
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "limit": {
      "description": "Provision rows per page, default 25 and capped at 100.",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "document",
    "version",
    "outline"
  ],
  "additionalProperties": false
}
view source ↗

dklaw_list_versions

open-world

Trace a Danish law to its terminal consolidation and list the source timeline newest first, or list direct amendments to an executive order. Pending amendments are direct later links; read their commencement clauses before interpreting effective dates. Use next_offset to continue within the stated coverage.

read
invocation
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "dklaw_list_versions",
    "arguments": {
      "document": "<document>"
    }
  }
}
schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "document": {
      "type": "string",
      "description": "Canonical ELI path or URL, accession number, dated Danish citation, or exact popular title."
    },
    "offset": {
      "default": 0,
      "description": "Zero-based offset in the full filtered sequence.",
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "limit": {
      "default": 25,
      "description": "Requested rows per page, capped at 100.",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "document",
    "offset",
    "limit"
  ],
  "additionalProperties": false
}
view source ↗

dklaw_get_relations

open-world

Read amendment, consolidation, legal basis, decision, Ombudsman statement and follow-up, commencement, shared EU implementation, shared EU document reference, and publication exemption links for the document as supplied. Groups follow the order of the relation choices. Use status all to include historical subordinate rules and unclassified basis links, and next_offset to continue.

read
invocation
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "dklaw_get_relations",
    "arguments": {
      "document": "<document>"
    }
  }
}
schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "document": {
      "type": "string",
      "description": "Canonical ELI path or URL, accession number, dated Danish citation, or exact popular title."
    },
    "offset": {
      "default": 0,
      "description": "Zero-based offset in the full filtered sequence.",
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "limit": {
      "default": 25,
      "description": "Requested rows per page, capped at 100.",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "relation": {
      "description": "Return only this relationship kind. Omit to see all relationship groups.",
      "type": "string",
      "enum": [
        "changed_by",
        "consolidated_by",
        "consolidates",
        "changes",
        "subordinate",
        "decision",
        "ombudsman",
        "basis_for",
        "based_on",
        "commences",
        "commenced_by",
        "shares_eu_implementation",
        "publication_exemption_reference",
        "shares_eu_reference",
        "follows_up",
        "followed_up_by"
      ]
    },
    "status": {
      "default": "current",
      "description": "Current or all records for subordinate rules and unclassified basis links. Other groups retain historical records.",
      "type": "string",
      "enum": [
        "current",
        "all"
      ]
    }
  },
  "required": [
    "document",
    "offset",
    "limit",
    "status"
  ],
  "additionalProperties": false
}
view source ↗

dklaw_lookup_citation

open-world

Resolve Danish legal citations, ELI paths or URLs, accession numbers, and exact popular titles. Results preserve the cited version and supply any linked terminal consolidation. To read a returned provision address in the cited revision, call dklaw_get_provisions with the canonical ELI as document, version as_given, and the address in provisions.

read
invocation
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "dklaw_lookup_citation",
    "arguments": {
      "citations": "<citations>"
    }
  }
}
schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "citations": {
      "minItems": 1,
      "type": "array",
      "items": {
        "type": "string",
        "description": "ELI link, accession, Danish dated citation or exact popular title, optionally followed by a § address."
      },
      "description": "Ordered citation strings. Resolves the first 25 per call."
    }
  },
  "required": [
    "citations"
  ],
  "additionalProperties": false
}
view source ↗

dklaw_track_changes

open-world

List Danish publications or changes in an inclusive date window. Filter publications by ministry, classification, or document type. Changed documents come from the Atom feed, which records only the latest change per document. Use the returned coverage to interpret incomplete windows and next_offset to continue.

read
invocation
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "dklaw_track_changes",
    "arguments": {
      "from": "<from>",
      "to": "<to>"
    }
  }
}
schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "from": {
      "type": "string",
      "format": "date",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
      "description": "First Copenhagen date, inclusive (YYYY-MM-DD)."
    },
    "to": {
      "type": "string",
      "format": "date",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
      "description": "Last Copenhagen date, inclusive and no later than today."
    },
    "kind": {
      "default": "published",
      "description": "Use published for new publications, changed for the latest event retained per document.",
      "type": "string",
      "enum": [
        "published",
        "changed"
      ]
    },
    "medium": {
      "description": "ELI publication medium from topic media in dklaw_list_reference. Blank or omitted means all media.",
      "type": "string",
      "enum": [
        "lta",
        "ltb",
        "ltc",
        "mt",
        "retsinfo",
        "ft",
        "fob",
        "opo"
      ]
    },
    "document_types": {
      "description": "Filter publications by document type. See dklaw_list_reference.",
      "minItems": 1,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "description": "Result or routing code, exact Danish type name, or BEK for ordinary, amending and commencement orders."
      }
    },
    "classification": {
      "description": "Filter publications by category. Intersects with document_types.",
      "type": "string",
      "enum": [
        "rules",
        "decisions",
        "folketing",
        "ombudsman"
      ]
    },
    "reasons": {
      "description": "Filter changed documents. Default includes content changes and removals.",
      "minItems": 1,
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "Unknown",
          "DocumentMetadataChanged",
          "DocumentContentChanged",
          "DocumentMetadataChangedAndDocumentContentChanged",
          "NewDocument",
          "RemovedDocument"
        ],
        "description": "One Retsinformation change reason."
      }
    },
    "ministry": {
      "description": "Filter publications by one ministry or authority from dklaw_list_reference with topic ministries.",
      "anyOf": [
        {
          "type": "string",
          "description": "Exact Danish ministry name or numeric ID from topic ministries."
        },
        {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991,
          "description": "Numeric website ministry ID from topic ministries."
        }
      ]
    },
    "offset": {
      "default": 0,
      "description": "Zero-based offset within the filtered window.",
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "limit": {
      "default": 25,
      "description": "Requested rows per page, clamped to 100.",
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "from",
    "to",
    "kind",
    "offset",
    "limit"
  ],
  "additionalProperties": false
}
view source ↗

dklaw_list_reference

Look up document types, ministries, publication media, search syntax, citation and provision formats, source status, change reasons or corpus coverage. Use document_types and ministries to choose filters for dklaw_search_documents and dklaw_track_changes. Use search_syntax for full-text query operators.

read
invocation
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "dklaw_list_reference",
    "arguments": {
      "topic": "<topic>"
    }
  }
}
schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "topic": {
      "type": "string",
      "enum": [
        "document_types",
        "media",
        "ministries",
        "identifiers",
        "search_syntax",
        "provisions",
        "status",
        "change_reasons",
        "coverage"
      ],
      "description": "Reference topic to list."
    }
  },
  "required": [
    "topic"
  ],
  "additionalProperties": false
}
view source ↗

Extensions

1

io.modelcontextprotocol/skills

{
  "directoryRead": true
}