opencaselaw
Active·★ 75·MIT·Updated 2026-10-22
OpenCaseLaw provides a comprehensive, free, and open-source archive of Swiss court decisions and legislation, spanning over a million records from 1875 to today. It offers an AI-ready platform with an MCP server, REST API, and bulk data download, enabling advanced legal research and grounding for language models.
#Legal AI#Case Law#Legislation#Knowledge Base#RAG System#Citation Graph#NLP Dataset#API
01
Features
01Over 1 million Swiss court decisions and all federal/cantonal laws, updated daily.
02Comprehensive citation graph with nearly 10 million resolved decision-to-decision edges and statute references.
0344 MCP tools for natural-language search, statute lookup, legal trend analysis, and education via LLMs.
04Multiple access paths including remote/local MCP server, REST API, and bulk Parquet dataset via HuggingFace.
05Advanced anti-hallucination toolkit for verifying LLM-generated legal citations and claims.
02
Compatibility
Python
Runtime
Verified via docs
Claude
AI Client
Verified via docs
ChatGPT
AI Client
Verified via docs
Gemini
AI Client
Verified via docs
Ollama
Local LLM
Verified via docs
Microsoft Word
Add-in
Verified via docs
03
Quick start
1
$ git clone https://github.com/jonashertner/opencaselaw.git
2
$ cd opencaselaw
3
$ python3 -m venv .venv
4
$ source .venv/bin/activate
5
$ pip install mcp pydantic huggingface-hub pyarrow fastapi
04
Use cases
↳Legal scholars and researchers tracing citations, analyzing jurisprudence evolution, and downloading datasets for NLP.
↳Law students practicing exam questions, understanding legal doctrines, and structuring case briefs.
↳Developers building AI clients or agents for Swiss legal research using natural language queries.
↳Legal practitioners drafting documents, searching for cases, and inserting correctly-formatted citations directly in Word.
↳Data scientists and NLP researchers building machine learning models for legal text analysis and retrieval.
05
Alternatives
caselaw-repo-1★ 75
Open Swiss legal corpus + MCP server: 1M+ court decisions (1875–today), 21k laws, 10M-edge citation graph, 42 MCP tools. CC0 data, MIT code. Live at mcp.opencaselaw.ch
uk-legal-mcp★ 20
UK legal research MCP server — case law, legislation, Hansard, bills, committees, HMRC, OSCOLA citations.
turk-hukuku-ictihat-mcp★ 15
Türk yargı kararlarını (Yargıtay/Bölge Adliye, Danıştay, AYM bireysel başvuru) resmî karar bankalarından yapay zekâ araçlarına açan MCP sunucusu. Claude Code / Codex / Gemini CLI uyumlu.
MisakaNet★ 544
📚 A zero-dependency, git-backed micro-lesson library for AI Agents to asynchronously share and search verified debugging experience. Python stdlib only. | https://misakanet.org
Comments
Log in to leave a comment
No comments yet. Be the first!