Skip to main content
Glama
Denmark Legal Research MCP Server

Denmark Legal Research MCP Server

by jurisatlas

Denmark Legal Research MCP Server (dk-legal-mcp)

Dansk | English Documentation


Juridisk MCP-server for Dansk Lovgivning og Retspraksis (dk-legal-mcp) — Dansk

Om dette arkiv

Dette arkiv indeholder en Model Context Protocol (MCP) server, der forbinder din AI-applikation (Claude Desktop, Cursor, Windsurf, VS Code / Copilot, Cline eller Antigravity) direkte til Retsinformation (retsinformation.dk) og Domsdatabasen (domsdatabasen.dk — byretterne, Sø- og Handelsretten, Østre og Vestre Landsret samt Højesteret).

Installation (Valg af AI-applikation)

  1. Download: Klik på <> Code -> Download ZIP øverst til højre og udpak mappen på din computer.

  2. Start installationen: Dobbeltklik på Click_Here_To_Install_Windows.bat (Windows) eller Click_Here_To_Install_Mac.command (macOS).

  3. Vælg AI-klient: Marker de AI-programmer du anvender (Claude, Cursor, Windsurf, VS Code, Antigravity), klik på installer og genstart din AI-applikation.

Sikkerhedsbemærkning: Installationsværktøjet arbejder udelukkende i skrivebeskyttet tilstand (read-only) og tilgår ingen personlige filer på din computer.

Domstolshierarki og officielle kilder

Instans

Omfattede domstole

1. instans (24 Byretter & Sø- og Handelsretten)

24 Byretter (District Courts) & Sø- og Handelsretten (Maritime and Commercial High Court)

2. instans (Østre Landsret & Vestre Landsret)

Østre Landsret (High Court of Eastern Denmark) & Vestre Landsret (High Court of Western Denmark)

3. instans (Højesteret)

Højesteret (Supreme Court of Denmark)

  • Retsinformation Open Data API (retsinformation.dk): https://www.retsinformation.dk (retsinformation.dk, ft.dk)

  • Domsdatabasen (domsdatabasen.dk — Byretter, Østre/Vestre Landsret, Sø- og Handelsretten & Højesteret): https://domsdatabasen.dk (domsdatabasen.dk, domstol.dk, hoejesteret.dk)


Related MCP server: dk-lov-mcp

English Documentation

Model Context Protocol (MCP) server providing live, read-only access to Denmark (DK) legislation, official gazettes, multi-tier judicial decisions (First Instance, Regional/Cantonal/Appellate, and Supreme/Constitutional courts, including HTML and PDF full-text extraction), and statutory citation verification across all major AI clients (ChatGPT Desktop, OpenAI Codex CLI, Claude Desktop, Claude Code CLI, Cursor, Windsurf, VS Code / GitHub Copilot / Cline / Roo Code, Google Antigravity / Gemini CLI, Perplexity, and Continue.dev).


Interactive Desktop Setup (Select Your AI Assistant)

This package includes a graphical installer for legal practitioners and non-technical users that lets you select which AI application(s) you use:

  1. Download: Click <> Code at the top right of this repository, select Download ZIP, and extract the folder to your computer.

  2. Run the Setup Utility:

    • Windows: Double-click Click_Here_To_Install_Windows.bat

    • macOS: Double-click Click_Here_To_Install_Mac.command

  3. Select Your AI Client(s) & Connect: Check the box(es) for the AI assistant(s) installed on your computer (ChatGPT Desktop & OpenAI Codex CLI, Claude Desktop & Claude Code CLI, Cursor, Windsurf, VS Code / GitHub Copilot / Cline / Roo Code, Google Antigravity / Gemini CLI, or Perplexity / Continue.dev), click Install to Selected AI Clients, and restart your selected AI application.

System Integrity Note: The setup utility operates strictly in read-only mode with respect to your personal files and documents. It installs an isolated Python runtime inside the extracted folder and registers the server entry only in the AI client configuration files you select.


Multi-Tier Judicial Hierarchy & Live Indexed National Archives

This server performs live queries across the full judicial hierarchy and official legal archives of Denmark, extracting full text from both HTML pages and official court/gazette PDF judgments:

Judicial Tier

Covered Courts & Tribunals

Tier 1 — First Instance

24 Byretter (District Courts) & Sø- og Handelsretten (Maritime and Commercial High Court)

Tier 2 — Regional / Cantonal / Appellate

Østre Landsret (High Court of Eastern Denmark) & Vestre Landsret (High Court of Western Denmark)

Tier 3 — Supreme & Constitutional

Højesteret (Supreme Court of Denmark)

Official Portals & Live Indexed Domains

  • National Legislation & Official Gazette: Retsinformation Open Data API (retsinformation.dk) — https://www.retsinformation.dk

    • Indexed Legislation Domains: retsinformation.dk, ft.dk

  • Court Decisions & Jurisprudence Archives: Domsdatabasen (domsdatabasen.dk — Byretter, Østre/Vestre Landsret, Sø- og Handelsretten & Højesteret) — https://domsdatabasen.dk

    • Indexed Judicial & Open Case Law Domains: domsdatabasen.dk, domstol.dk, hoejesteret.dk


Available MCP Tools

Tool

Description

search_legislation

Searches enacted statutes, codes, decrees, and official gazette publications in Denmark.

search_case_law

Searches national jurisprudence and open judicial archives for Denmark.

search_tiered_court_decisions

Filters case law specifically by judicial instance (first_instance, appellate_regional, supreme_constitutional) or specific regional/cantonal/district court.

list_court_hierarchy

Returns the complete 3-tier court structure and supported regional court filters for Denmark.

get_legal_document_markdown

Retrieves full statutory or judicial texts (both HTML and official .pdf court judgments) and converts them into clean Markdown.

verify_citation

Validates statutory and case law citations against official registries.


{
  "mcpServers": {
    "dk-legal-mcp": {
      "command": "uvx",
      "args": [
        "--from",
        "https://github.com/jurisatlas/dk-legal-mcp/archive/refs/heads/main.zip",
        "dk-legal-mcp"
      ]
    }
  }
}

Available Tools

6 tools
list_court_hierarchyList Court HierarchyA

Return the complete step-by-step multi-tier judicial hierarchy for Denmark (DK): Tier 1 (First Instance / Trial / Municipal / District Courts), Tier 2 (Regional / Cantonal / County / Appellate Courts), Tier 3 (Supreme / Cassation / Constitutional Courts), and all official court sub-portals.

Inputs: no named parameters. Returns: object

search_case_lawSearch Case LawA

Search Denmark (DK) court decisions and binding precedents via Domsdatabasen (domsdatabasen.dk) & Højesteret (domstol.dk) and open national judicial archives (Supported courts: Højesteret (Supreme Court), Landsretterne (Østre & Vestre), Sø- og Handelsretten).

Inputs: query (required), court, limit. Returns: object

search_legislationSearch LegislationC

Search Denmark (DK) national legislation (statutes, acts, codes, regulations, official gazette) via Retsinformation Open Data API (retsinformation.dk) and live national legal archives.

Inputs: query (required), year, limit. Returns: object

search_tiered_court_decisionsSearch Tiered Court DecisionsA

Search court decisions in Denmark (DK) filtered by specific judicial tier or regional/cantonal/appellate court. Supports Tier 1 (first_instance), Tier 2 (appellate_regional — including Cantonal/Regional/County/Circuit courts), and Tier 3 (supreme_constitutional), or a specific sub-portal key from list_court_hierarchy.

Inputs: query (required), tier, limit, sub_court. Returns: object

verify_citationVerify CitationA

No-Hallucination Citation Verifier for Denmark (DK). Validates format and live existence of legal citations (e.g., 'UfR 2024.123 H or LBK nr 100') against official Denmark and ECLI/ELI registries to prevent AI-hallucinated citations.

Inputs: citation (required). Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 6 tools

    Disambiguation4/5

    Most tools map to a distinct action+resource: searching case law, fetching a document, listing the court hierarchy, verifying a citation, and searching legislation. The one real overlap is search_case_law versus search_tiered_court_decisions, which both search case law and differ only by tier filtering, so an agent must read carefully to pick the right one.

    Naming Consistency5/5

    All six names are snake_case with a clean verb_noun pattern (search_, get_, list_, verify_). Naming is predictable and self-explanatory throughout.

    Tool Count5/5

    Six tools is well within the ideal 3-15 range and each maps to a distinct research task with no filler. The surface is tightly scoped to legal research.

    Completeness4/5

    The surface covers the core lifecycle: find cases, find statutes, fetch full text, verify citations, and orient via the court hierarchy. Minor gaps remain, such as a citator that finds decisions citing a given judgment, and no listing/browsing of legislation indexes, but agents can work around these via search.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables MCP clients to look up Danish legislation by name or free text from Retsinformation, retrieve verbatim section text with official ELI links, and inspect status and later amendments. It also flags historical documents and unconsolidated amendments so returned legal text can be verified.
      Apache 2.0
    • A
      license
      A
      quality
      B
      maintenance
      Enables direct, read-only legal research across EU and ECHR legislation and multi-tier judicial decisions, including full-text retrieval and statutory/case-law citation verification through MCP tools.
      6
      MIT