1M+ Swiss court decisions, statutes & doctrine with citation graph (DE/FR/IT). CC0, free, 42 tools.
MCPpedia last refreshed this data
Swiss Caselaw MCP Server is an MCP server that 1M+ Swiss court decisions, statutes & doctrine with citation graph (DE/FR/IT). CC0, free, 42 tools. It exposes 3 tools over stdio, sse and http, requires no API key, and scores 88/100 on MCPpedia's security, maintenance and efficiency rubric.
Config is the same across clients - only the file and path differ.
{
"mcpServers": {
"swiss-caselaw": {
"args": [
"-y",
"mcp-remote",
"https://mcp.opencaselaw.ch"
],
"command": "npx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
1M+ Swiss court decisions, statutes & doctrine with citation graph (DE/FR/IT). CC0, free, 42 tools.
This server supports HTTP transport. Be the first to test it - help the community know if it works.
Five weighted categories - click any category to see the underlying evidence.
Model Context Protocol Python SDK: OAuth client could send credentials to an authorization server chosen by the MCP server
### Summary In affected versions, the SDK's OAuth client support (`mcp.client.auth`) let the MCP server a client connected to decide where the client's OAuth credentials were sent: - the authorization server metadata `issuer` was not validated on every discovery path, and - stored or pre-provisioned client credentials were not bound to the authorization server they belong to. A malicious or compromised MCP server could therefore direct them to a token endpoint of its choosing: - by naming its
Model Context Protocol Python SDK: Server bearer-token authentication accepts tokens issued for a different resource server
### Summary In affected versions, the SDK's server-side bearer authentication had no way to check that a token was issued for your server (its audience). Where one authorization server issues tokens for several services, a valid token for another service was also accepted by your MCP server. ### Am I affected? Yes, if your HTTP server uses the SDK's bearer authentication (`auth=AuthSettings(...)` with `token_verifier=`), its authorization server also issues tokens for other services, and your `
Model Context Protocol Python SDK: HTTP client transports followed cross-origin redirects carrying custom headers and bodies
### Summary In affected versions, the SDK's Streamable HTTP and SSE client transports followed HTTP redirects to any host. If the configured MCP endpoint answered with a redirect to a different origin: - custom headers set on the client (for example an `X-API-Key` credential) were sent to that origin, and - on a `307` or `308` redirect the request body was re-sent there too. The SDK's OAuth client providers followed redirects on their own discovery, registration and token requests in the same
Model Context Protocol Python SDK: Client fetched server-chosen $ref URLs while validating tool results against output schemas
### Summary In affected versions, when a connected MCP server declared an `outputSchema` for a tool, the SDK's client validated each `call_tool` result with `jsonschema`'s default resolver, which fetches any `$ref` it cannot resolve locally by opening the URL. A server could therefore put an `http://`, `https://` or `file://` reference in a tool's output schema and make the client: - request that URL, or read that local file, from the client's own network position on every call of the tool (the
MCP Python SDK: Unbounded Session Accumulation in StreamableHTTP Transport Enables Resource Exhaustion
### Summary In affected versions, a Streamable HTTP server in stateful mode (the default) never reclaimed session state: - sessions did not expire; - a client `DELETE` ended the session but left its entry registered; - a session whose first request was refused stayed registered with a running task. Each session also kept its parsed `initialize` parameters, and the number of sessions was unlimited. A client that could reach the endpoint could grow server memory without bound using ordinary shor
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience - it helps other developers decide.
Sign in to write a review.
Others in search / legal
The official MCP server implementation for the Perplexity API Platform
Unified real-time search engine skill for AI agents.
MCP server for enterprise local codebase indexing, semantic search, and code dependency graphs.
Korean law: statutes, precedents, ordinances, treaties and citation verification (법제처 API).
MCP Security Weekly
Get CVE alerts and security updates for Swiss Caselaw MCP Server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
Open Swiss case law and legislation for legal research and AI.
1M+ decisions · all 26 cantons · 1875–today · citation graph · MCP + REST + CLI + Parquet · CC0 data · MIT code
Try the search · Chat with your AI · Automate research · Download the dataset · API documentation
{
"mcpServers": {
"opencaselaw": {
"url": "https://mcp.opencaselaw.ch"
}
}
}
No sign-up, no API key, read-only. 45 tools; setup guides for individual clients are at opencaselaw.ch/mcp.
Using Anthropic's Claude for Legal plugin? A Swiss playbook that makes its contract-review and NDA-triage skills work under Swiss law, every article verified against the statute mirror, is at opencaselaw.ch/claude/legal.local.md; see the setup guide.
ocl is a small command-line client over the public research API, made for
two jobs a chat window does badly: checking the citations in a draft, and
keeping the evidence behind a memo in a folder you can share. It is on PyPI
as opencaselaw-cli:
pipx install opencaselaw-cli # or: uv tool install opencaselaw-cli
ocl citations resolve 'BGE 136 III 513' '4A_747/2012' 'BGE 999 III 1'
ocl bundle create 'Rachekündigung Art. 336 OR' --max-results 10 --passage 2 --law OR:336 --out evidence
The first prints, per reference, whether the decision exists, which one it
is, and whether a requested Erwägung exists. The second saves the selected
decisions, passages and statute articles into a folder with a plain-language
INDEX.md and a hashed manifest.json. Everything comes back from the
service unchanged: citation strings, passage text, source links. Search is
bounded, and a citation check establishes existence, not that an authority
supports a proposition. See the CLI guide.
Use MCP for conversations, the CLI or REST API for automation, and Parquet for corpus-scale analysis.
Question. When is a dismissal in retaliation for an employee asserting a claim abusive under Swiss law?
One call — search_decisions("missbräuchliche Kündigung Rachekündigung")
returns 129 decisions, the leading one first:
BGE 136 III 513 (7 October 2010)
Art. 336 OR; missbräuchliche Kündigung. Der Arbeitnehmer ist vor einer Rachekündigung nur geschützt (Art. 336 Abs. 1 lit. d OR), sofern er nach Treu und Glauben annehmen kann, dass die von ihm geltend gemachten Ansprüche berechtigt sind. Es ist nicht erforderlich, dass sie tatsächlich begründet sind.
The Regeste is returned verbatim from the stored official head-note, and the citation string comes from a stored field — tools never construct citations. That contract is what makes the answer checkable rather than plausible.
Reproduce it:
curl -sG https://mcp.opencaselaw.ch/api/decisions \
--data-urlencode "q=missbräuchliche Kündigung Rachekündigung" \
--data-urlencode "limit=3"
| Resource | Coverage |
|---|---|
| Court decisions | 1,040,000+ records, 137 court and source collections, |