ch-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., "@ch-legal-mcp Search Swiss case law on tenancy termination and verify BGE 149 III 12"
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.
Switzerland Legal Research MCP Server (ch-legal-mcp)
Deutsch | Français | Italiano | English Documentation
Rechts- und Rechtsprechungs-MCP-Server (ch-legal-mcp) — Deutsch
Über dieses Repository
Dieses Repository stellt einen Model Context Protocol (MCP) Server bereit, der Ihre KI-Anwendung (Claude Desktop, Cursor, Windsurf, VS Code / Copilot, Cline, Continue.dev oder Antigravity) direkt mit den amtlichen Gesetzesportalen und den mehrstufigen Rechtsprechungsdatenbanken für Switzerland (1. Instanz, Berufungs-/Kantons-/Oberlandesgerichte sowie Höchst- und Verfassungsgerichte) verbindet.
Installation (Auswahl Ihrer KI-Anwendung)
Herunterladen: Klicken Sie oben rechts auf
<> Code->Download ZIPund entpacken Sie das Archiv auf Ihrem Computer.Installationsassistent starten: Doppelklicken Sie auf
Click_Here_To_Install_Windows.bat(Windows) oderClick_Here_To_Install_Mac.command(macOS).KI-Programm auswählen: Wählen Sie im Fenster die von Ihnen genutzten KI-Programme aus (Claude, Cursor, Windsurf, VS Code, Antigravity), klicken Sie auf Installieren und starten Sie Ihre KI-Anwendung neu.
Sicherheitshinweis: Das Installationsprogramm arbeitet vollständig im Nur-Lese-Modus (Read-Only) und greift auf keinerlei persönliche Dateien auf Ihrem System zu.
Gerichtsinstanzen und amtliche Datenquellen
Instanz | Abgedeckte Gerichte |
1. Instanz (Eingangsgerichte) | Bezirksgerichte / Tribunaux de district / Preture & First-Instance Administrative Authorities across 26 Cantons |
2. Instanz (Kantons-, Ober- und Berufungsgerichte) | 26 Cantonal Supreme & Appellate Courts (Obergerichte / Kantonsgerichte / Tribunaux cantonaux) & Federal Courts (BVGer, BStGer, BPatGer) |
3. Instanz (Höchst- und Verfassungsgerichte) | Schweizerisches Bundesgericht / Tribunal fédéral / Tribunale federale (BGer / TF — bger.ch) |
Fedlex - Swiss Federal Legislation API (fedlex.admin.ch): https://www.fedlex.admin.ch (
fedlex.admin.ch,admin.ch)Entscheidsuche.ch Unified Federal & 26-Canton Case Law Aggregator + BGer Eurospider: https://entscheidsuche.ch (
bger.ch,entscheidsuche.ch,bvger.ch,bstger.ch)
Related MCP server: Iceland Legal Research MCP Server
Serveur MCP de Législation et Jurisprudence (ch-legal-mcp) — Français
À propos de ce dépôt
Ce dépôt fournit un serveur Model Context Protocol (MCP) reliant directement votre application d'intelligence artificielle (Claude Desktop, Cursor, Windsurf, VS Code / Copilot, Cline, Continue.dev ou Antigravity) aux portails législatifs officiels et aux bases de jurisprudence multi-niveaux pour Switzerland (juridictions de première instance, tribunaux cantonaux / cours d'appel et juridictions suprêmes ou constitutionnelles).
Installation rapide (Sélection de votre client IA)
Téléchargement : Cliquez sur
<> Code->Download ZIPen haut à droite et extrayez le dossier sur votre ordinateur.Lancement de l'assistant : Double-cliquez sur
Click_Here_To_Install_Windows.bat(Windows) ouClick_Here_To_Install_Mac.command(macOS).Choix de l'application IA : Cochez les applications IA que vous utilisez (Claude, Cursor, Windsurf, VS Code, Antigravity), lancez l'installation automatique et redémarrez votre application IA.
Note de sécurité : L'utilitaire fonctionne exclusivement en lecture seule (read-only) et n'accède à aucun fichier personnel sur votre ordinateur.
Hiérarchie juridictionnelle et sources officielles
Degré de juridiction | Juridictions couvertes |
1er degré (Première instance) | Bezirksgerichte / Tribunaux de district / Preture & First-Instance Administrative Authorities across 26 Cantons |
2nd degré (Juridictions cantonales, régionales et cours d'appel) | 26 Cantonal Supreme & Appellate Courts (Obergerichte / Kantonsgerichte / Tribunaux cantonaux) & Federal Courts (BVGer, BStGer, BPatGer) |
Juridictions suprêmes et constitutionnelles | Schweizerisches Bundesgericht / Tribunal fédéral / Tribunale federale (BGer / TF — bger.ch) |
Fedlex - Swiss Federal Legislation API (fedlex.admin.ch): https://www.fedlex.admin.ch (
fedlex.admin.ch,admin.ch)Entscheidsuche.ch Unified Federal & 26-Canton Case Law Aggregator + BGer Eurospider: https://entscheidsuche.ch (
bger.ch,entscheidsuche.ch,bvger.ch,bstger.ch)
Server MCP di Legislazione e Giurisprudenza (ch-legal-mcp) — Italiano
Informazioni su questo repository
Questo repository fornisce un server Model Context Protocol (MCP) che collega la vostra applicazione IA (Claude Desktop, Cursor, Windsurf, VS Code / Copilot, Cline, Continue.dev o Antigravity) direttamente ai portali legislativi ufficiali e alle banche dati giurisprudenziali per Switzerland (tribunali di primo grado, tribunali cantonali / corti d'appello e corti supreme o costituzionali).
Installazione rapida (Selezione del client IA)
Download: Fare clic su
<> Code->Download ZIPed estrarre la cartella sul computer.Avvio: Fare doppio clic su
Click_Here_To_Install_Windows.bat(Windows) oClick_Here_To_Install_Mac.command(macOS).Scelta dell'applicazione IA: Selezionare i programmi IA utilizzati (Claude, Cursor, Windsurf, VS Code, Antigravity), avviare l'installazione e riavviare il client IA selezionato.
Nota sulla sicurezza: Lo strumento opera esclusivamente in sola lettura e non accede ai file personali presenti sul computer.
Gradi di giudizio e fonti ufficiali
Grado di giudizio | Organi giudiziari coperti |
Primo grado (Tribunali di prima istanza) | Bezirksgerichte / Tribunaux de district / Preture & First-Instance Administrative Authorities across 26 Cantons |
Secondo grado (Tribunali cantonali / Corti d'Appello) | 26 Cantonal Supreme & Appellate Courts (Obergerichte / Kantonsgerichte / Tribunaux cantonaux) & Federal Courts (BVGer, BStGer, BPatGer) |
Corti Supreme e Costituzionali | Schweizerisches Bundesgericht / Tribunal fédéral / Tribunale federale (BGer / TF — bger.ch) |
Fedlex - Swiss Federal Legislation API (fedlex.admin.ch): https://www.fedlex.admin.ch (
fedlex.admin.ch,admin.ch)Entscheidsuche.ch Unified Federal & 26-Canton Case Law Aggregator + BGer Eurospider: https://entscheidsuche.ch (
bger.ch,entscheidsuche.ch,bvger.ch,bstger.ch)
English Documentation
Model Context Protocol (MCP) server providing live, read-only access to Switzerland (CH) 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 Switzerland, extracting full text from both HTML pages and official court/gazette PDF judgments:
Judicial Tier | Covered Courts & Tribunals |
Tier 1 — First Instance | Bezirksgerichte / Tribunaux de district / Preture & First-Instance Administrative Authorities across 26 Cantons |
Tier 2 — Regional / Cantonal / Appellate | 26 Cantonal Supreme & Appellate Courts (Obergerichte / Kantonsgerichte / Tribunaux cantonaux) & Federal Courts (BVGer, BStGer, BPatGer) |
Tier 3 — Supreme & Constitutional | Schweizerisches Bundesgericht / Tribunal fédéral / Tribunale federale (BGer / TF — bger.ch) |
Official Portals & Live Indexed Domains
National Legislation & Official Gazette: Fedlex - Swiss Federal Legislation API (fedlex.admin.ch) — https://www.fedlex.admin.ch
Indexed Legislation Domains:
fedlex.admin.ch,admin.ch
Court Decisions & Jurisprudence Archives: Entscheidsuche.ch Unified Federal & 26-Canton Case Law Aggregator + BGer Eurospider — https://entscheidsuche.ch
Indexed Judicial & Open Case Law Domains:
bger.ch,entscheidsuche.ch,bvger.ch,bstger.ch
Available MCP Tools
Tool | Description |
| Searches enacted statutes, codes, decrees, and official gazette publications in Switzerland. |
| Searches national jurisprudence and open judicial archives for Switzerland. |
| Filters case law specifically by judicial instance ( |
| Returns the complete 3-tier court structure and supported regional court filters for Switzerland. |
| Retrieves full statutory or judicial texts (both HTML and official |
| Validates statutory and case law citations against official registries. |
{
"mcpServers": {
"ch-legal-mcp": {
"command": "uvx",
"args": [
"--from",
"https://github.com/jurisatlas/ch-legal-mcp/archive/refs/heads/main.zip",
"ch-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 Switzerland (CH) 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 Switzerland (CH): 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 LawC
Search Switzerland (CH) court decisions and binding precedents via Entscheidsuche.ch Official MCP & Search Engine (mcp.entscheidsuche.ch / entscheidsuche.ch) & Bundesgericht (bger.ch) and open national judicial archives (Supported courts: BGer / TF (Federal Supreme Court), BVGer (Federal Administrative Court), BStGer, Cantonal Courts (26 Cantons)).
Inputs: query (required), court, limit. Returns: object
search_legislationSearch LegislationA
Search Switzerland (CH) national legislation (statutes, acts, codes, regulations, official gazette) via Fedlex - Swiss Federal Legislation API (fedlex.admin.ch) and live national legal archives.
Inputs: query (required), year, limit. Returns: object
search_tiered_court_decisionsSearch Tiered Court DecisionsA
Search court decisions in Switzerland (CH) 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 Switzerland (CH). Validates format and live existence of legal citations (e.g., 'BGE 149 III 12 or SR 220 (OR/CO)') against official Switzerland 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
Two pairs overlap heavily: search_case_law (general Swiss court decisions via Entscheidsuche) and search_tiered_court_decisions (the same domain filtered by judicial tier) are hard to distinguish without reading carefully, and search_legislation vs get_legal_document_markdown both retrieve legislation content but differ by query vs identifier. verify_citation and list_court_hierarchy are clearly distinct.
All names are snake_case with a predictable verb_noun structure (get_, search_, verify_, list_). Minor deviation: search_case_law and search_tiered_court_decisions are both search-prefixed but name the same concept differently, though overall consistency is good.
Six tools is a reasonable, well-scoped set for a legal research server covering search, retrieval, verification, and hierarchy listing. It is slightly thin—no tools for listing recent decisions or date filtering—but each tool earns its place.
Core retrieval, search, and verification are covered, but there are notable gaps: no way to fetch a decision directly by ECLI/official identifier (only URL), no citation formatting/export, and no tool for browsing cantonal legislation subsites. Workable but missing lifecycle conveniences.
Related MCP Connectors
Resolve, search and verify legal citations against the official sources, with provenance.
Swiss federal law (Fedlex) and political data (LINDAS) for agents, every answer with sources
Search Swiss federal legislation: laws, articles, amendments via the Fedlex SPARQL endpoint.
Search and cite official European legislation and court decisions, by article. Read-only.
Related MCP Servers
- 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
- AlicenseAqualityBmaintenanceEnables read-only access to national legislation, multi-tier court decisions, and citation verification against official registries, including full-text retrieval in Markdown.6MIT
- AlicenseAqualityBmaintenanceEnables read-only search and retrieval of Liechtenstein legislation and multi-tier court decisions, including filtering by judicial instance and verifying statutory and case-law citations against official registries.6MIT
- AlicenseAqualityBmaintenanceEnables read-only search of Romanian legislation and multi-tier court decisions (first instance, appellate, supreme/constitutional), retrieval of full texts as Markdown, and verification of statutory and case law citations against official registries.6MIT