AgentIndex icon
AgentIndex
ToolsMCP ServersHOTCategoriesTrendingNewBest ListsCompareGuides
Submit Tool
ToolsMCP ServersHOTCategoriesTrendingNewBest ListsCompareGuides
Home/
RAG / Knowledge Base/
opencaselaw
opencaselaw logo

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
$ Install
$ git clone https://github.com/jonashertner/opencaselaw.git && cd opencaselaw && python3 -m venv .venv && source .venv/bin/activate && pip install mcp pydantic huggingface-hub pyarrow fastapi
↗ Visit site★ GitHub
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

⚡Top VS:
VScaselaw-repo-1★75→VSuk-legal-mcp★20→VSturk-hukuku-ictihat-mcp★15→VSdocfork★484→
caselaw-repo-1 logo
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
VSCompare→
uk-legal-mcp logo
uk-legal-mcp★ 20
UK legal research MCP server — case law, legislation, Hansard, bills, committees, HMRC, OSCOLA citations.
VSCompare→
turk-hukuku-ictihat-mcp logo
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.
VSCompare→
docfork logo
docfork★ 484
Docfork - Up-to-date Docs for AI Agents.
VSCompare→
stashbase logo
stashbase★ 1.1k
Turn local files into searchable context for AI agents.
VSCompare→
MisakaNet logo
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
VSCompare→
OnCo logo
OnCo★ 237
OnCo: total information dominance on cancer. A public, cited knowledge graph of oncology with a website, JSON API, MCP server and CLI: one page per cancer, treatment, target, trial, institution, person and idea, plain English first, solution and mechanism first.
VSCompare→
uteke logo
uteke★ 275
🧠 The Brain for Your AI — Local-first memory engine for AI agents. Store, recall, and search memories with semantic embeddings. Single Rust binary, zero config, fully offline.
VSCompare→
See all alternatives →

Comments

Log in to leave a comment

No comments yet. Be the first!

On this page
01Features02Compatibility03Quick start04Use cases05Alternatives
jonashertner /
opencaselaw
↗

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

75MIT
Last commitToday
StatusActive
CategoryRAG / Knowledge Base
Links
Documentation↗Discussion↗Issues↗Releases↗
Cloud Infrastructure
Ad

Deploy on DigitalOcean

Host your MCP servers, Docker containers, and AI agents with $200 free credit over 60 days.

Claim $200 Free Credit
© 2026 AgentIndex.app|Built by a 10-year iOS Developer.
Best by use caseAboutContactAdvertisePrivacy PolicyTerms of UseQYSGitHubBuy me a coffee ☕

Browse by Category

MCP ServersCode AssistantWorkflow AutomationRAG / Knowledge BaseMulti-AgentBrowser AutomationLLM InfraDev ToolingObservability

Not affiliated with Anthropic, OpenAI or Microsoft.