Law & official gazettes OpenCaseLaw (Jonas Hertner)
OpenCaseLaw MCP & API (Swiss court decisions and laws)
Search Swiss legal material through an independent service offering both MCP tools and an HTTP API.
Source review: 2026-10-30 · Imported: 1 November 2026
A practical starting point
What could you build?
A research assistant can locate potentially relevant Swiss decisions and follow citations to the issuing court.
Before you connect
Use it for discovery and verify the authoritative text. Decision data and commentary can have different reuse licences.
Capabilities & requirements
Dated specifications from the licensed source dataset. “Not published” indicates missing information, rather than confirmed absence.
| Capability | Details and source |
|---|---|
| Status | Not published No beta, GA or version label on the site or API docs and no SLA; the MCP server reports version 1.27.0. Run by one person. Source (external) · Not published by vendor: checked 2026-10-30 on https://opencaselaw.ch/ueber/ |
| API key required | No key Keyless MCP initialize, tools/list and search_decisions, and a keyless GET /api/decisions, all succeeded on 2026-10-30. Source (external) · Verified 2026-10-30 by test request to https://mcp.opencaselaw.ch/api/decisions?q=Mietzins |
| Free tier | Free The REST API page says the research endpoints are free and need no API key; only the separate Word add-in has a paid Pro tier. Source (external) · Verified 2026-10-30 on https://opencaselaw.ch/api/ |
| Rate limit | Not published The MCP page says nginx rate limiting is used and the OpenAPI spec says REST tools share the same limits, but no number is published and responses carry no rate-limit headers. Source (external) · Not published by vendor: checked 2026-10-30 on https://opencaselaw.ch/mcp/ |
| Official MCP server | Yes, mcp.opencaselaw.ch/mcp 42 read-only tools in public mode (tools/list on 2026-10-30), Streamable HTTP and SSE, no auth. Source (external) · Verified 2026-10-30 by test request to https://mcp.opencaselaw.ch/mcp |
| Official SDK | Python CLI (opencaselaw-cli) A small read-only research client on PyPI (v0.10.0 on 2026-10-30); no other language SDKs, OpenAPI 3.0.3 spec published. Source (external) · Verified 2026-10-30 on https://pypi.org/project/opencaselaw-cli/ |
| Data license / terms | CC0 data; MIT code Decisions are CC0 1.0; commentary excerpts are CC BY 4.0 or CC BY-SA. Attribution not required but appreciated. Source (external) · Verified 2026-10-30 on https://opencaselaw.ch/ueber/ |
| Commercial use allowed | Allowed (CC0 data) CC0 decision data can be used commercially; commentary needs attribution. No separate API terms of service were found. Source (external) · Verified 2026-10-30 on https://opencaselaw.ch/ueber/ |
| CORS / browser use | Access-Control-Allow-Origin: * GET responses carried ACAO *; an OPTIONS preflight returned 204 with * and allowed GET, POST, DELETE, OPTIONS. Source (external) · Verified 2026-10-30 by test request to https://mcp.opencaselaw.ch/api/decisions?q=Mietzins |
| Freshness / coverage | Rebuilt daily; 1,053,732 decisions Index rebuilt every day; 1,053,732 decisions from 1875 to today on 2026-10-30 by GET /api/statistics. Source (external) · Verified 2026-10-30 by test request to https://mcp.opencaselaw.ch/api/statistics |
Operational reference
Additional facts and qualifications retained from AgentAPIList’s CC BY 4.0 dataset, with provider references.
Price
Free. The REST API page says the research endpoints are free, need no API key and support CORS. A separate Word add-in has a Pro tier (CHF 5 a month) for its AI tools; the MCP server and REST API need no plan.
Provider reference (external)API key / auth
None. The README says “No sign-up, no API key, read-only.” Our keyless MCP initialize, tools/list (42 tools) and search_decisions calls and our keyless GET /api/decisions all succeeded on 2026-10-30.
Provider reference (external)Rate limit
Not published as a number. The MCP page says the server uses nginx rate limiting, and the OpenAPI spec says the REST tool endpoints share the same rate limits, but no requests-per-minute or daily figure is given and our responses carried no rate-limit headers.
Provider reference (external)License / terms
Decision data is CC0 1.0 (public domain) and the code is MIT. Commentary excerpts are CC BY 4.0 (OnlineKommentar.ch), and one commentary text is CC BY-SA. Attribution is not required but appreciated: “Source: OpenCaseLaw.ch”. We found no separate terms of service for the API.
Provider reference (external)Coverage
1,053,732 decisions on 2026-10-30 by GET /api/statistics, from 1875 to today, mostly in French and German with some Italian and English. The OpenAPI spec also lists 5,525 federal laws and 15,600 cantonal acts.
Provider reference (external)MCP tools
42 tools in public mode (tools/list on 2026-10-30), over Streamable HTTP at /mcp and SSE at /sse; the server reported itself as swiss-caselaw 1.27.0.
Provider reference (external)Search limits
Relevance search ranks a bounded candidate pool, so total can be a lower bound (total_is_lower_bound) and running out of pages does not prove you found everything; use filters or the Parquet dataset for complete enumeration.
Provider reference (external)Setup references
HTTP request example
Adapted from the attributed source dataset. Review before running; these examples were not executed by Tech in General.
curl -sG "https://mcp.opencaselaw.ch/api/decisions" \
--data-urlencode "q=missbräuchliche Kündigung Rachekündigung" \
--data-urlencode "limit=2"Agent connection example
Adapted from the attributed source dataset. Review before running; these examples were not executed by Tech in General.
// Claude Desktop, Cursor or any MCP client config
{
"mcpServers": {
"opencaselaw": {
"url": "https://mcp.opencaselaw.ch/mcp"
}
}
}
// Claude Code:
// claude mcp add --transport http opencaselaw https://mcp.opencaselaw.ch/mcp
// No MCP client? Call the REST API instead:
// GET https://mcp.opencaselaw.ch/api/decisions?q=...&limit=10
// GET https://mcp.opencaselaw.ch/api/laws/OR?article=41
// POST https://mcp.opencaselaw.ch/api/tool/{tool_name} (JSON arguments)A tool schema needs an HTTP implementation; it does not by itself install an MCP server. Keep credentials out of browser code.
Other connections to explore
Back to the full directory →Source & reuse
Download the complete licensed source snapshot (JSON), including the original source’s caveats, alternative notes and examples.