OpenCaseLaw - Swiss Caselaw, Statutes & Doctrine MCP Server

Open Swiss case law and legislation for legal research and AI. 1M+ decisions · all 26 cantons · 1875–today · citation graph · MCP + REST + Parquet · CC0 data · MIT code. Its 21 documented tools cover legislation, decision. It is available as a remote MCP endpoint.

Teams that want a hosted endpoint instead of running a local process. The project is written in Python.

VERIFIED ACTIVE

LAST COMMIT 2026-08-23 · ★ 56 · #466 OF 848 MAINTAINED OTHER · VERIFIED 2026-08-25

MIT · Python servers · how we verify → /methodology

01 · Install OpenCaseLaw - Swiss Caselaw, Statutes & Doctrine

before you install - you'll need

The README does not document required environment variables for a basic install.

Claude Code

claude mcp add jonashertner-caselaw-repo-1 --transport http https://mcp.opencaselaw.ch/mcp

Claude Desktop / Cursor / VS Code - add to config

{
  "mcpServers": {
    "jonashertner-caselaw-repo-1": {
      "url": "https://mcp.opencaselaw.ch/mcp"
    }
  }
}

Same JSON for Cursor. For VS Code, rename the top-level key from `mcpServers` to `servers`.

Using another client? Same JSON, different key

Claude Desktop · mcpServers

Cursor · mcpServers

VS Code · servers

Windsurf · mcpServers

Zed · context_servers

Cline · mcpServers

Roo Code · mcpServers

Continue · mcpServers

LibreChat · mcpServers

Gemini CLI · mcpServers

Codex CLI · mcp_servers

Full setup guides: every client.

02 · Evidence

https://mcp.opencaselaw.ch/mcp

transport: streamable-http

endpoint alive - responded to MCP initialize · probed 2026-08-25

Security posture

What to check before giving this server access to your agent - from the registry, GitHub, and our own probes. We don't score safety; we show what's verifiable.

runs as remote - your agent's requests go to mcp.opencaselaw.ch

endpoint auth accepted our unauthenticated MCP initialize - no credentials needed to connect

license MIT - declared in the repository

registry vendor namespace ch.opencaselaw - domain-verified with the official MCP registry

03 · What OpenCaseLaw - Swiss Caselaw, Statutes & Doctrine can do

Prose above is summarized from the project's README and registry record - no invented capabilities.

What you can build

With this server connected, an agent can fetch a single decision by docket number or ID. Includes citation graph counts (cited by / cites), list all courts with decision counts, find the most-cited decisions for a topic or statute, and check progress of a running database update (local only).

Capability map

Tools grouped from the project's README - what OpenCaseLaw - Swiss Caselaw, Statutes & Doctrine lets an agent do.

read & search

15 tools - e.g. Full-text search with filters (court, canton, language, date range, chamber); Fetch a single decision by docket number or ID. Includes citation graph counts (cited by / cites).; List all courts with…

search_decisions · get_decision · list_courts · get_statistics · find_citations · find_appeal_chain…

Analyze

1 tool - e.g. Year-by-year decision counts for a statute or topic

analyze_legal_trend

Draft

1 tool - e.g. Build a research-only mock decision outline from facts, grounded in caselaw + statute references; asks clarification questions before conclusion

draft_mock_decision

Generate

1 tool - e.g. Legal topic → real BGE fact pattern with hidden analysis for Fallbearbeitung practice

generate_exam_question

Browse

1 tool - e.g. Recent-changes feed per canton or federal level (live LexFind API, no local mirror)

browse_legislation_changes

update

1 tool - e.g. Re-download latest Parquet files from HuggingFace and rebuild the local database (local only)

update_database

Check

1 tool - e.g. Check progress of a running database update (local only)

check_update_status

Latest releases

opencaselaw-paper-2026-03-20 · 2026-03-20

Frozen paper release bundle for the March 20, 2026 arXiv submission. Contains manifest, stats snapshot, benchmark golden set, release-matched benchmark report, checksums, and paper text.

04 · Who maintains OpenCaseLaw - Swiss Caselaw, Statutes & Doctrine

OpenCaseLaw - Swiss Caselaw, Statutes & Doctrine is maintained by jonashertner. It's the only MCP server we track from this author; the repo dates to Feb 2026.

05 · Facts

category
other - ranked #466 of 848 actively-maintained other servers as of 2026-08-25.
registry
ch.opencaselaw/swiss-caselaw (active, first published 2026-03-10 · 2 versions)

06 · OpenCaseLaw - Swiss Caselaw, Statutes & Doctrine FAQ

Is OpenCaseLaw - Swiss Caselaw, Statutes & Doctrine still maintained?

Yes - as of 2026-08-25, its last commit was 2026-08-23. We re-verify nightly.

What can OpenCaseLaw - Swiss Caselaw, Statutes & Doctrine do?

With this server connected, an agent can fetch a single decision by docket number or ID. Includes citation graph counts (cited by / cites), list all courts with decision counts, find the most-cited decisions for a topic or statute, and check progress of a running database update (local only).

How do I install OpenCaseLaw - Swiss Caselaw, Statutes & Doctrine?

Run `claude mcp add jonashertner-caselaw-repo-1 --transport http https://mcp.opencaselaw.ch/mcp`. The README does not document required environment variables for a basic install. You can also paste the ready-made client config above.

Does OpenCaseLaw - Swiss Caselaw, Statutes & Doctrine require authentication?

No - the endpoint accepted our unauthenticated MCP initialize when probed on 2026-08-25; you can connect without credentials.

07 · Alternatives to OpenCaseLaw - Swiss Caselaw, Statutes & Doctrine