# OpenCaseLaw — Swiss Caselaw, Statutes & Doctrine

Search Swiss court decisions and legislation, then trace citations between cases. Connect the server when an AI agent needs legal research across Swiss sources.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 75
- Author: jonashertner
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/jonashertner/opencaselaw
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/mcp/opencaselaw-swiss-caselaw-statutes-doctrine

## What it 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.

## Requirements
- Remote server: `https://mcp.opencaselaw.ch/mcp`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http swiss-caselaw https://mcp.opencaselaw.ch/mcp
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add opencaselaw-swiss-caselaw-statutes-doctrine --url https://mcp.opencaselaw.ch/mcp
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "opencaselaw-swiss-caselaw-statutes-doctrine": {
            "url": "https://mcp.opencaselaw.ch/mcp"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "opencaselaw-swiss-caselaw-statutes-doctrine": {
            "type": "http",
            "url": "https://mcp.opencaselaw.ch/mcp"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http opencaselaw-swiss-caselaw-statutes-doctrine https://mcp.opencaselaw.ch/mcp
```

## When to use it
- 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
- 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.

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 386989
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33918
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81115
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119160
- [Codebase Memory](https://affpapa.org/en/nevibecode/mcp/codebase-memory.md) — MCP server · ★ 47392
- [mcp-server](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — MCP server · ★ 43872

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
