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.
Strongest · Setup experience 13/20 Weakest · Reliability 5/20
Static review · not runListed 2026-08-07
Read the FMRS scoring method →Runtime:Hosted (no local runtime) · Node.js 18+ · Python 3.10+
GEMINI_API_KEY
Optional: API key for using Google Gemini in the local Web UI; get it at aistudio.google.com/apikey
OPENAI_API_KEY
Optional: API key for using OpenAI (or Ollama's OpenAI-compatible API) in the local Web UI; get it at platform.openai.com
ANTHROPIC_API_KEY
Optional: API key for using Claude in the local Web UI; get it at console.anthropic.com (a Claude subscription does not include an API key)
SWISS_CASELAW_GRAPH_DB
Optional: path to the reference_graph.db citation graph database to enable citation-graph reranking
SWISS_CASELAW_STATUTES_DB
Optional: path to statutes.db for federal law lookup via get_law / search_laws
SWISS_CASELAW_GRAPH_SIGNALS
Optional: set to 0 to disable citation-graph signal reranking
SWISS_CASELAW_FEDLEX_CACHE
Optional: file path where draft_mock_decision caches fetched Fedlex statute excerpts
SWISS_CASELAW_DIR
Optional: local data directory (default ~/.swiss-caselaw), used by the SQLite snapshot bootstrap script
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"
]
}
}
}
Shown for Claude Desktop. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.
{
"servers": {
"swiss-caselaw": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.opencaselaw.ch"
]
}
}
}
Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).
claude mcp add swiss-caselaw -- npx -y mcp-remote https://mcp.opencaselaw.ch
Run it in a terminal; replace any <…> placeholders with your own values first.
After adding the connector https://mcp.opencaselaw.ch in Claude Desktop (or running claude mcp add), check that tools like search_decisions appear in the client's tool list, or ask "list all courts with decision counts" to confirm the connection.
Once connected, you can ask your AI assistant things like:
No matching tools
Listed from the project's documentation, not tested by this site.
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.
Manage your Hevy workout data from AI assistants via MCP.
Firecrawl's official MCP server for web search, scraping, and structured extraction for AI agents
One binary. One grammar. Evidence from the biomedical sources you already trust.
Encrypted, fully offline long-term memory for AI agents
Source revision 4f7c774222d0 Data synced 2026-10-19 Read the FMRS scoring method