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): 972,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. 38 specialised tools cover full-text search, citation graph traversal, statute lookup, doctrinal timelines, leading-case discovery, scholarly commentary, legislative materials, open-access scholarship search, exam-question generation.
- [REST API (OpenAPI 3.0.3)](https://mcp.opencasela
OpenAPI Spec (preview)
{"openapi":"3.0.3","info":{"title":"OpenCaseLaw API","description":"Swiss court decisions, statutes, commentaries, scholarship, and citation graph. 974,000+ published decisions from Swiss federal, cantonal, and regulatory bodies, 5,516 federal laws, 15,722 cantonal acts, 1,058 commentaries, 26,000+ OA scholarship records.","version":"1.0.0"},"paths":{"/decisions":{"get":{"tags":["Case Law"],"summary":"Search court decisions","description":"Full-text search across 956k Swiss court decisions. Supp