Best for
- Legal researchers and academics
- Lawyers and legal assistants
- Law students and educators
- Developers building Swiss law applications
OpenCaseLaw is an excellent open data source for Swiss law, offering a vast database of decisions and powerful citation analysis tools. Its high-quality search (MRR@10=0.647) and rich toolset make it valuable for legal research and AI applications. Data is freely available and code is open source, making it a significant resource for Swiss legal domain.
OpenCaseLaw provides 1M+ Swiss court decisions, federal and cantonal laws, and a citation graph (DE/FR/IT). Data is CC0 public domain, code MIT-licensed, free, no sign-up. Offers 43 MCP tools (41 remote in public mode + 2 local-only) usable from Claude, ChatGPT, Cursor, Gemini, etc.
Remote server (recommended): In Claude Desktop, add a custom connector with https://mcp.opencaselaw.ch; or in Claude Code, run claude mcp add swiss-caselaw --transport sse https://mcp.opencaselaw.ch. For ChatGPT, create an app in settings and paste the SSE URL. For Gemini CLI, edit settings.json to add {"url": "https://mcp.opencaselaw.ch"}. Local server: clone the repo, create a Python venv, install dependencies, and register with claude mcp add swiss-caselaw -- /path/to/python /path/to/mcp_server.py. First run downloads ~7GB data and builds an ~58GB index.
{
"mcpServers": {
"swiss-caselaw": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.opencaselaw.ch"
]
}
}
}