Skip to main content
Glama

Sweden Legal Research MCP Server (se-legal-mcp)

Svenska | English Documentation


Rättslig MCP-server för lagstiftning och rättspraxis (se-legal-mcp) — Svenska

Om detta arkiv

Detta arkiv innehåller en Model Context Protocol (MCP) server som ansluter din AI-applikation (Claude Desktop, Cursor, Windsurf, VS Code / Copilot, Cline eller Antigravity) direkt till officiella författningssamlingar och rättsfallsdatabaser för Sweden (första instans, hovrätter/kammarrätter samt högsta domstolar).

Installation (Val av AI-applikation)

  1. Ladda ner: Klicka på <> Code -> Download ZIP uppe till höger och packa upp mappen på din dator.

  2. Starta installationsguiden: Dubbelklicka på Click_Here_To_Install_Windows.bat (Windows) eller Click_Here_To_Install_Mac.command (macOS).

  3. Välj AI-klient: Markera de AI-program du använder (Claude, Cursor, Windsurf, VS Code, Antigravity), klicka på installera och starta om din AI-applikation.

Säkerhetsinformation: Installationsprogrammet arbetar i skrivskyddat läge (read-only) och läser eller ändrar inga personliga filer på din dator.

Domstolshierarki och officiella källor

Instans

Domstolar som omfattas

1:a instans (Underrätter)

48 Tingsrätter (District Courts), 12 Förvaltningsrätter (Administrative Courts) & Mark- och miljödomstolar

2:a instans (Överrätter / Appellationsdomstolar)

6 Hovrätter (Svea, Göta, Skåne och Blekinge, Västra Sverige, Nedre Norrland, Övre Norrland) & 4 Kammarrätter (Stockholm, Göteborg, Sundsvall, Jönköping)

Högsta instans (Högsta domstolar)

Högsta domstolen (HD), Högsta förvaltningsdomstolen (HFD), Arbetsdomstolen & Mark- och miljööverdomstolen

  • Riksdagen Open Data JSON API (data.riksdagen.se - Svensk författningssamling SFS): https://www.riksdagen.se (riksdagen.se, lagrummet.se, regeringen.se)

  • Domstolsverket Vägledande avgöranden (rattspraxis.etjanst.domstol.se — HD, HFD, Hovrätter & Kammarrätter): https://rattspraxis.etjanst.domstol.se (domstol.se, hogstadomstolen.se, lagrummet.se)


Related MCP server: be-legal-mcp

English Documentation

Model Context Protocol (MCP) server providing live, read-only access to Sweden (SE) 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 Sweden, extracting full text from both HTML pages and official court/gazette PDF judgments:

Judicial Tier

Covered Courts & Tribunals

Tier 1 — First Instance

48 Tingsrätter (District Courts), 12 Förvaltningsrätter (Administrative Courts) & Mark- och miljödomstolar

Tier 2 — Regional / Cantonal / Appellate

6 Hovrätter (Svea, Göta, Skåne och Blekinge, Västra Sverige, Nedre Norrland, Övre Norrland) & 4 Kammarrätter (Stockholm, Göteborg, Sundsvall, Jönköping)

Tier 3 — Supreme & Constitutional

Högsta domstolen (HD), Högsta förvaltningsdomstolen (HFD), Arbetsdomstolen & Mark- och miljööverdomstolen

Official Portals & Live Indexed Domains

  • National Legislation & Official Gazette: Riksdagen Open Data JSON API (data.riksdagen.se - Svensk författningssamling SFS) — https://www.riksdagen.se

    • Indexed Legislation Domains: riksdagen.se, lagrummet.se, regeringen.se

  • Court Decisions & Jurisprudence Archives: Domstolsverket Vägledande avgöranden (rattspraxis.etjanst.domstol.se — HD, HFD, Hovrätter & Kammarrätter) — https://rattspraxis.etjanst.domstol.se

    • Indexed Judicial & Open Case Law Domains: domstol.se, hogstadomstolen.se, lagrummet.se


Available MCP Tools

Tool

Description

search_legislation

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

search_case_law

Searches national jurisprudence and open judicial archives for Sweden.

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 Sweden.

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": {
    "se-legal-mcp": {
      "command": "uvx",
      "args": [
        "--from",
        "https://github.com/jurisatlas/se-legal-mcp/archive/refs/heads/main.zip",
        "se-legal-mcp"
      ]
    }
  }
}

Available Tools

6 tools
list_court_hierarchyList Court HierarchyA

Return the complete step-by-step multi-tier judicial hierarchy for Sweden (SE): 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 LawB

Search Sweden (SE) court decisions and binding precedents via Domstolsverket (domstol.se / Lagrummet Rättsfallsdatabas) and open national judicial archives (Supported courts: Högsta domstolen (HD), Högsta förvaltningsdomstolen (HFD), Hovrätterna).

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

search_legislationSearch LegislationB

Search Sweden (SE) national legislation (statutes, acts, codes, regulations, official gazette) via Riksdagen Open Data JSON API (data.riksdagen.se - Svensk författningssamling SFS) and live national legal archives.

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

search_tiered_court_decisionsSearch Tiered Court DecisionsB

Search court decisions in Sweden (SE) 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 Sweden (SE). Validates format and live existence of legal citations (e.g., 'NJA 2024 s. 10 or SFS 2024:12') against official Sweden 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.7/5.0

    Scored across 6 tools

    Disambiguation4/5

    Most tools target distinct resources: legislation search, case law search, document retrieval, court hierarchy, and citation verification. The only real overlap is search_case_law vs search_tiered_court_decisions, where the latter is essentially a tier-filtered variant of the former, but the descriptions make the distinction (filter by judicial tier / sub-portal key) workable.

    Naming Consistency5/5

    All names follow a consistent snake_case verb_noun pattern: search_legislation, search_case_law, get_legal_document_markdown, list_court_hierarchy, search_tiered_court_decisions, verify_citation. Verbs correctly map to the operation type (search/get/list/verify).

    Tool Count5/5

    Six tools is well-scoped for a national legal research server: two search entry points, one retrieval, one structural reference, one filtered search, and one verification utility. Each tool earns its place with no evident redundancy.

    Completeness4/5

    The surface covers the core legal research lifecycle: find legislation, find case law, fetch full text, understand the court structure, and verify citations against hallucination. Minor gaps remain, such as no way to browse or list legislation by SFS year/consolidation metadata, and no citation-graph or cross-reference discovery beyond verification.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Enables read-only search and retrieval of Austrian legislation and multi-tier court decisions, conversion of legal documents to Markdown, and verification of statutory and case-law citations against official registries.
      6
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables read-only search and retrieval of Belgian legislation and multi-tier court decisions, filtering case law by judicial instance, converting legal texts to Markdown, and verifying statutory and case-law citations against official registries.
      6
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      Provides read-only access to Swiss legislation and multi-tier court decisions, enabling searches, full-text retrieval as Markdown, court hierarchy listing, and statutory or case-law citation verification across official registries.
      6
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables read-only search and retrieval of Finnish legislation and multi-tier court decisions from official sources, with citation verification and Markdown conversion of legal documents.
      6
      MIT