OpenCaseLaw — Claude Code MCP server for Swiss law
Search Swiss court decisions and legislation, then trace citations between cases. Connect the server when an AI agent needs legal research across Swiss sources.
claude mcp add --transport http swiss-caselaw https://mcp.opencaselaw.ch/mcpWhat OpenCaseLaw — Swiss Caselaw, Statutes & Doctrine does
OpenCaseLaw gives an agent access to Swiss court decisions, federal and cantonal statutes, and material used to interpret the law. Search decisions in German, French, or Italian, and follow references from one case to another. The server exposes 42 tools.
Claude Code connects to the HTTP endpoint https://mcp.opencaselaw.ch/mcp. Add it with the command below; no account or API key is needed. MCP access is read-only, so it cannot alter records. Coverage depends on the source portals, some of which restrict access to their decisions.
What it helps with
- find Swiss federal and cantonal rulings on a legal question
- trace citations from one decision to another
- check whether a cited decision exists
- search Swiss statutes for legal research
Example prompts for the agent
- Find Swiss rulings about dismissal in retaliation for an employee claim.
- Trace decisions that cite BGE 136 III 513.
- Search federal and cantonal statutes relevant to this question.
How to install OpenCaseLaw — Swiss Caselaw, Statutes & Doctrine
Platform CLI: remote server
claude mcp add --transport http swiss-caselaw https://mcp.opencaselaw.ch/mcpPlatform CLI: remote server
codex mcp add opencaselaw-swiss-caselaw-statutes-doctrine --url https://mcp.opencaselaw.ch/mcpConfig file
{
"mcpServers": {
"opencaselaw-swiss-caselaw-statutes-doctrine": {
"url": "https://mcp.opencaselaw.ch/mcp"
}
}
}Config file
{
"servers": {
"opencaselaw-swiss-caselaw-statutes-doctrine": {
"type": "http",
"url": "https://mcp.opencaselaw.ch/mcp"
}
}
}Platform CLI: remote server
gemini mcp add -t http opencaselaw-swiss-caselaw-statutes-doctrine https://mcp.opencaselaw.ch/mcpStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about OpenCaseLaw — Swiss Caselaw, Statutes & Doctrine
How do I install OpenCaseLaw in Claude Code?
Run claude mcp add --transport http swiss-caselaw https://mcp.opencaselaw.ch/mcp to add the MCP server.
What does OpenCaseLaw do?
It lets an AI agent search Swiss case law and legislation, and follow citations between court decisions.
Which languages can I use to search court decisions?
The search covers decisions in German, French, and Italian.