Full-text search across decisions from all federal courts and 26 cantons. Open, structured, updated daily.
| Court | Decisions | Languages |
|---|
| Court | Canton | Decisions |
|---|
| Court | Status | New | Skips | Duration |
|---|
Download the full dataset as Parquet files
from datasets import load_dataset
ds = load_dataset("voilaj/swiss-caselaw")
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
Query via HuggingFace Datasets Server API
GET /rows?dataset=voilaj/swiss-caselaw
&config=default&split=train
&offset=0&length=10