llms.txt Content
# OpenCaseLaw
> An open, machine-readable corpus of Swiss federal and cantonal court
> decisions, federal and cantonal legislation, and scholarly commentary —
> with a verification architecture designed to eliminate AI hallucination
> of Swiss case references. Data CC0, code MIT. Updated daily.
OpenCaseLaw is the public infrastructure project at <https://opencaselaw.ch>.
It serves three audiences: legal practitioners who need verifiable
references, researchers who need a reproducible corpus, and AI systems
that need a trustworthy data source for Swiss-law questions.
The two canonical hosts:
- opencaselaw.ch — landing site, dataset card, public docs
- mcp.opencaselaw.ch — live MCP / REST endpoint, per-decision pages,
decision-export endpoints, scraper-health API
Everything below links to the most useful entry-points for a language
model that wants to answer a Swiss-law query, ground its answer in the
authoritative source, and emit clickable verification links to the user.
## Corpus & coverage
- [Hugging Face dataset (Parquet, CC0)](https://huggingface.co/datasets/voilaj/swiss-caselaw): 969,000+ decisions across all Swiss federal and cantonal courts, 1875–today, dreisprachig (DE/FR/IT). Daily refresh.
- [Per-court coverage transparency](https://opencaselaw.ch/coverage/): live scraper-health table — which sources updated when, what gaps remain, sortable + filterable.
- [Statistics endpoint](https://mcp.opencaselaw.ch/api/statistics): aggregate counts by court, canton, year.
## How to query the corpus
- [Live MCP endpoint](https://mcp.opencaselaw.ch): single URL — paste into Claude / ChatGPT / Cursor / Gemini / Copilot Studio. 31 specialised tools cover full-text search, citation graph traversal, statute lookup, doctrinal timelines, leading-case discovery, scholarly commentary, legislative materials, exam-question generation.
- [REST API (OpenAPI 3.0.3)](https://mcp.opencaselaw.ch/api/docs): every MCP capabi