+ Swiss Case Law Open Dataset

Full-text search across decisions from all federal courts and 26 cantons. Open, structured, updated daily.

Loading
Download
Full dataset as Parquet files on HuggingFace
Search
MCP server for Claude and other AI tools
API
REST queries via HuggingFace Datasets Server

Decisions per Year

Language Distribution

Federal Courts

Court Decisions From To Languages

Cantonal Courts

Court Canton Decisions From To

Cantons

Browse

Scraper Health

Court Status New Skips Duration Total Known JSONL Last Data

Access the Data

HuggingFace

Download the full dataset as Parquet files

from datasets import load_dataset ds = load_dataset("voilaj/swiss-caselaw")

MCP Server

Local full-text search via Claude Code or any MCP client. Downloads ~5 GB from HuggingFace, builds a ~48 GB search index on your machine. Setup guide →

git clone github.com/jonashertner/caselaw-repo-1 cd caselaw-repo-1 python3 -m venv .venv .venv/bin/pip install mcp pydantic \ huggingface-hub pyarrow claude mcp add swiss-caselaw \ -- .venv/bin/python3 mcp_server.py

REST API

Query via HuggingFace Datasets Server API

GET /rows?dataset=voilaj/swiss-caselaw &config=default&split=train &offset=0&length=10