se-legal-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@se-legal-mcp verify SFS 2024:12 and retrieve its full text in Markdown"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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)
Ladda ner: Klicka på
<> Code->Download ZIPuppe till höger och packa upp mappen på din dator.Starta installationsguiden: Dubbelklicka på
Click_Here_To_Install_Windows.bat(Windows) ellerClick_Here_To_Install_Mac.command(macOS).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:
Download: Click
<> Codeat the top right of this repository, selectDownload ZIP, and extract the folder to your computer.Run the Setup Utility:
Windows: Double-click
Click_Here_To_Install_Windows.batmacOS: Double-click
Click_Here_To_Install_Mac.command
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 |
| Searches enacted statutes, codes, decrees, and official gazette publications in Sweden. |
| Searches national jurisprudence and open judicial archives for Sweden. |
| Filters case law specifically by judicial instance ( |
| Returns the complete 3-tier court structure and supported regional court filters for Sweden. |
| Retrieves full statutory or judicial texts (both HTML and official |
| 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 toolsget_legal_document_markdownGet Legal Document MarkdownA
Retrieve full Markdown text of a legislation document or court judgment (HTML or PDF) from Sweden (SE) by its URL or official identifier.
Inputs: document_id_or_url (required), page. Returns: object
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
Scored across 6 tools
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.
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).
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.
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
Related MCP Connectors
Resolve, search and verify legal citations against the official sources, with provenance.
Search and cite official European legislation and court decisions, by article. Read-only.
Polish legal data for AI assistants: full-text search across 2.94M+ court rulings (common courts, Supreme Court, Constitutional Tribunal, KIO, NSA/WSA), statute text and version history from the official ELI register (164k+ acts), rulings citing a provision and citations between rulings, a citation verifier for case numbers, case-outcome and duration statistics, KIS tax interpretations, CJEU rulings applied in Poland, UODO decisions, KRS company lookup, court competence, official bank accounts and legal calculators. Works without an API key (daily limit).
Korean law: statutes, precedents, ordinances, treaties and citation verification (법제처 API).
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables 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.6MIT
- AlicenseAqualityBmaintenanceEnables 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.6MIT
- AlicenseBqualityBmaintenanceProvides 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.6MIT
- AlicenseAqualityBmaintenanceEnables 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.6MIT