opencaselaw.ch
972’880 published Swiss court decisions

Every published Swiss court decision, every federal article, every cited authority — accessible to AI in one URL.

mcp.opencaselaw.ch · works in Claude, ChatGPT, Cursor, Gemini and Copilot Studio · also via REST and bulk download.

Corpus snapshot

Legislation

+0 24h
laws locally indexed
Federal (Fedlex mirror)
Cantonal (22 portals + LexFind, 26 cantons)
Articles indexed
  • Fedlex SPARQL · 19 cantonal portals · LexFind fallback · FTS5 local

Graph & doctrine

+0 24h
resolved case-citation edges
Statute links
Scholarly commentaries
Languages DE · FR · IT
  • OnlineKommentar.ch
New since yesterday

Verifiable, not just searchable

Citing an authority that doesn't exist — or doesn't say what's claimed — is the central failure mode of AI in legal work. The MCP server is built so every citation an AI writes resolves to a real, clickable source.

1

Canonical citations

Every result carries a server-built citation_string_de/fr/it + canonical_url against a deterministic decision_id. The LLM copies the string verbatim — it never formats a citation itself.

2

Active verification

check_claim_support and attest_response run a second model family over every reference + quoted text before the response leaves the server. Citations and pinpoints are checked against the corpus; quoted substrings must appear verbatim in the cited source.

3

Click-through

Every reference is a Markdown link to mcp.opencaselaw.ch/entscheid/<id>. The Word add-in turns it into a Word hyperlink. The document stays verifiable after handoff.

Connect

Pick your AI client. Paste the URL. Done.

  1. Open Claude.ai or Claude Desktop → SettingsConnectorsAdd custom connector.
  2. Paste this URL:
https://mcp.opencaselaw.ch
  1. Click Add. The 33 tools appear immediately.

Then ask: "Find Federal Supreme Court decisions on Art. 41 OR with the keyword Schadenersatz."

Pro / Max / Team / Enterprise plan needed for the Connectors UI. Free Claude users: see the Claude Code tab.

  1. SettingsAppsAdvanced settings → enable Developer mode.
  2. Click Create app, name it "Swiss Caselaw", paste this URL (auth: None):
https://mcp.opencaselaw.ch/sse
  1. In any chat: +Developer mode → select Swiss Caselaw.

Plus / Pro / Team / Enterprise / Edu plans. Best with GPT-5.3 (5.4 currently does not invoke MCP tools).

Add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "swiss-caselaw": { "url": "https://mcp.opencaselaw.ch" }
  }
}

Restart Cursor. The 33 tools appear under swiss-caselaw.

Add to ~/.gemini/settings.json:

{
  "mcpServers": {
    "swiss-caselaw": { "url": "https://mcp.opencaselaw.ch" }
  }
}

Restart Gemini CLI. Free — no plan required.

Single CLI command (works on the Claude Code free tier):

claude mcp add swiss-caselaw --transport sse https://mcp.opencaselaw.ch

No restart needed. The 33 tools are immediately invocable.

  1. Open Microsoft Copilot Studio → your agent → ToolsAdd a toolNew toolCustom connector.
  2. In Power Apps "New custom connector" → Import an OpenAPI from URL, paste:
https://mcp.opencaselaw.ch/api/openapi.json
  1. Authentication: No authentication. Save → Update connector.
  2. Back in Copilot Studio: Add tool → pick the new Swiss Case Law connector. The 30 REST routes (search, decisions, legislation, citations, doctrine, …) are now callable from your agent.

Spec is OpenAPI 3.0.3, WADL-converter clean (validated 2026-04-25 with LALIVE). M365 Copilot agents and Power Platform flows can both use the same connector.

30-route REST API. OpenAPI 3.0.3 spec at:

https://mcp.opencaselaw.ch/api/openapi.json

Interactive Swagger UI →

Or call directly:

curl -X POST https://mcp.opencaselaw.ch/api/search_decisions \
  -H "Content-Type: application/json" \
  -d '{"query":"Art. 41 OR Schadenersatz","limit":5}'

Practitioner toolkit

Beyond the AI clients above: every decision is exportable as Word, BibTeX, or RIS. Every court has an Atom feed. The whole corpus is on Hugging Face. Everything CC0.

Latest

Recent Federal Supreme Court decisions

View all →

    Upcoming federal statute revisions

    View all →

      Notable

      Eight facts intrinsic to the published Swiss legal corpus — independent of when we scraped them.

      Most-cited decision

      Most-cited statute article

      ECHR rulings on Switzerland

      Oldest decision in the corpus

      Verbatim Federal Council Botschaften

      Three-language coverage

      Citation graph size

      Head-note coverage

      Live from the corpus

      Concrete examples of what your AI agent sees when it hits the MCP server.

      Tool call
      get_doctrine(
        query="Art. 41 OR"
      )
      Response

      Art. 41 OR — Ausservertragliche Haftung

      Statute text (DE/FR/IT) plus 12 authority-ranked BGEs spanning 1957–2024 and a doctrinal timeline.

      Commentary excerpt:
      „Die Tatbestandsvoraussetzungen der ausservertraglichen Haftung umfassen Schaden, Kausalität, Widerrechtlichkeit und Verschulden…“

      Source: OnlineKommentar.ch · CC-BY-4.0