opencaselaw MCP Server Security Report
Open Swiss legal corpus + MCP server: 1M+ court decisions (1875–today), 21k laws, 10M-edge citation graph, 42 MCP tools. CC0 data, MIT code. Live at mcp.opencaselaw.ch
Run it securely
Host jonashertner/opencaselaw in a governed environment — SSO in front, every tool call attributed and audited.
Are you the maintainer?
Verify with GitHub to get alerted whenever jonashertner/opencaselaw changes score — and claim the badge for your README.
Claim this serverThe short answer
- Is opencaselaw safe to use?
- opencaselaw scores 92/100 (grade A) on the Canopii Trust Index — strong posture. It passes 16 of the 21 security controls that apply to it, with no confirmed security failures.
- How reliable is the security score for opencaselaw?
- We could evaluate 90% of the controls that apply to opencaselaw. Scores are deterministic — the same source always produces the same score — and a partially-scannable server cannot present a high one, because confidence caps the result. The scanner is open source, so this score can be reproduced independently.
- How was opencaselaw scored?
- Its published source was scanned against a fixed catalog of weighted security controls covering code safety, committed secrets, dependency vulnerabilities, tool-description integrity, authentication and transport, and maintenance. A confirmed flaw caps the score outright regardless of what else passes. The full rubric is published.
Security controlslatest scored version vmain@37690bd
Each control is evaluated deterministically with evidence. The score is earned from passing controls; a failed guard caps it.
Security controlslatest scored version vmain@37690bd
Each control is evaluated deterministically with evidence. The score is earned from passing controls; a failed guard caps it.
Model–MCP Runtime Guardrails
- PassIndirect Prompt Injection (IPI) Defensesguardno injection markers
Tool/prompt/resource text is free of hidden instructions that could hijack the agent.
- PassStrict JSON Schema EnforcementadditionalProperties:false present
Tool inputs are constrained (additionalProperties:false), so unexpected arguments can't be smuggled in.
- PassTool Definition Integrityguardtool definitions stable; no risky changes in version history
Every consecutive version pair is diffed for new injection markers or destructive scope — a risky diff anywhere in history is a rug-pull (fail, durable); benign description drift warns.
- PassUser-in-the-Loop / Approval Scopeguardno destructive tool scope
No over-broad or destructive tools (arbitrary shell, bulk-delete) that warrant human approval.
Application Security Checks
- WarnNo path traversalguard2 occurrences
Naive path checks let tools read/write outside intended directories (EscapeRoute-class).
agentic-research-desk-mvp/server.js:79agentic-research-desk-mvp/server.js:194Fix: Resolve to a canonical path and verify containment; reject ../ and symlinks.
- WarnNo SSRF sinksguard10 occurrences
Fetching tool-supplied URLs can pivot into internal networks and metadata services.
agentic-research-desk-mvp/public/app.js:28agentic-research-desk-mvp/src/opencaselaw-client.js:117audit_source_urls.py:80backfill_bstger_urls.py:114Fix: Allow-list destinations; reject arbitrary/loopback/link-local URLs.
- PassNo command-injection sinksguardno sinks found
Untrusted tool input reaching a shell yields remote code execution.
- PassNo dynamic code executionguardno sinks found
eval()/exec()/Function() on tool-derived strings allows arbitrary code execution.
- PassNo unsafe deserializationguardno sinks found
pickle/yaml.load/etc. on untrusted data can execute code.
- PassNo committed secretsguardno secrets found
Hardcoded keys/tokens in published source are live credentials an attacker can use.
- PassCredentials sourced from environmentreads credentials from environment
Reading secrets from env/secret stores avoids hardcoding them.
- PassDependencies pinned (lockfile)lockfile present
A lockfile makes installs reproducible and resistant to silent dependency swaps.
- PassActively maintainedrecent commits
Unmaintained servers don't receive security fixes.
- PassRepository not archivedguardactive
Archived repositories will never be patched.
- PassDeclares a licenseMIT
A clear license is required for legal enterprise use.
- PassHas a security policySECURITY.md present
A SECURITY.md gives a private path to report vulnerabilities.
- PassAdoption & popularityestablished adoption
A small, capped nudge from stars/downloads — widely-used servers get more eyes on bugs. It can never offset a real security failure.
- Not checkedNo known-vulnerable dependenciesno lockfile found
Runtime dependencies (parsed from the lockfile) are scanned against OSV.dev for published CVEs. Advisory: flagged dependencies lower the score but don't hard-cap it, since transitive reachability is unproven.
- Not checkedSigned releasesnot evaluated
Signed releases let consumers verify artifacts weren't tampered with.
- N/ANo install/post-install scriptsguardno published package
install hooks run arbitrary code on every consumer at install time.
- N/APackage name not typosquattingguardno published package
Names mimicking popular packages are a common malware delivery vector.
- N/APublished with provenanceno published package
Build provenance attests the artifact was built from the claimed source by CI.
- N/AEstablished maintainerno published package
Brand-new / single anonymous maintainers raise takeover and malware risk.
Transport & Trust Model
- WarnExecution Sandboxingruns natively (no container image)
A container/sandbox image limits blast radius; a server that runs natively has full host access.
Fix: Ship a Dockerfile/Containerfile (or document a sandboxed run) so the server runs isolated.
- PassNetwork Exposureno bind-all detected
Binding 0.0.0.0 or exposing debug inspectors widens the attack surface.
- N/ATransport Encryption (TLS)guardno remote endpoints
Plaintext HTTP exposes traffic and bearer tokens to interception.
- N/AIAM / Authentication Scopingno remote endpoints
OAuth 2.1 / Protected Resource Metadata gates who can invoke tools.
- N/ALive Endpoint Reachablenot dynamically scanned
A dynamic scan connected to the declared remote endpoint and it responded — verified live, not a dead URL.
- N/AAuthentication Enforced (live)not dynamically scanned
If the server declares auth is required, it must actually reject anonymous clients. Serving tools to unauthenticated callers is a real exposure.
Embed this score
Add the live badge to your README — it updates automatically on every rescan.
[](https://index.canopii.dev/server/jonashertner/opencaselaw)<a href="https://index.canopii.dev/server/jonashertner/opencaselaw"><img src="https://index.canopii.dev/api/badge/jonashertner/opencaselaw" alt="Canopii Trust Score" /></a>Versions
| Version | Score | Status | Published |
|---|---|---|---|
| vmain@6a98109 | 87B | scored | 9/24/2026 |
| vmain@5b85b53 | 87B | scored | 9/23/2026 |
| vmain@1670dc3 | 87B | scored | 9/22/2026 |
| vmain@8523191 | 87B | scored | 9/21/2026 |
| vmain@94b7bc5 | 87B | scored | 9/20/2026 |
| vmain@b12c1ca | 87B | scored | 9/19/2026 |
| vmain@89b0464 | 87B | scored | 9/18/2026 |
| vmain@18ab195 | 87B | scored | 9/17/2026 |
| vmain@6c668bd | 87B | scored | 9/16/2026 |
| vmain@dfeb2bb | 87B | scored | 9/15/2026 |
| vmain@c107e87 | 87B | scored | 9/14/2026 |
| vmain@6b3f151 | 87B | scored | 9/13/2026 |
| vmain@eec92e0 | 87B | scored | 9/12/2026 |
| vmain@e6eceb3 | 87B | scored | 9/10/2026 |
| vmain@a28f4e2 | 87B | scored | 9/10/2026 |
| vmain@c58bc85 | 87B | scored | 9/8/2026 |
| vmain@5b7314f | 87B | scored | 9/8/2026 |
| vmain@77fda23 | 87B | scored | 9/6/2026 |
| vmain@4297f93 | 87B | scored | 9/5/2026 |
| vmain@0f8d0db | 87B | scored | 9/4/2026 |
| vmain@ff7d353 | 87B | scored | 9/3/2026 |
| vmain@e8cc714 | 90A | scored | 9/2/2026 |
| vmain@0ee3edb | 92A | scored | 9/1/2026 |
| vmain@e4a9f77 | 92A | scored | 8/31/2026 |
| vmain@b19cb42 | 92A | scored | 8/30/2026 |
| vmain@763d885 | 92A | scored | 8/29/2026 |
| vmain@851b63c | 92A | scored | 8/28/2026 |
| vmain@5cf9818 | 92A | scored | 8/27/2026 |
| vmain@4ec92ae | 92A | scored | 8/26/2026 |
| vmain@907e6e2 | 92A | scored | 8/25/2026 |
| vmain@17365ce | 92A | scored | 8/24/2026 |
| vmain@55e88d4 | 92A | scored | 8/23/2026 |
| vmain@576a1f2 | 92A | scored | 8/22/2026 |
| vmain@46d8a51 | 92A | scored | 8/20/2026 |
| vmain@37df2d8 | 92A | scored | 8/20/2026 |
| vmain@3ba97bb | 92A | scored | 8/19/2026 |
| vmain@37690bdlatest | 92A | scored | 8/18/2026 |
| vmain@ba9da21 | 92A | scored | 8/17/2026 |
| vmain@d652e5c | 92A | scored | 8/16/2026 |
| vmain@af4b489 | 92A | scored | 8/15/2026 |
| vmain@8dba4ff | 92A | scored | 8/14/2026 |
| vmain@95ba3cd | 92A | scored | 8/13/2026 |
| vmain@1ee3702 | 92A | scored | 8/12/2026 |
| vmain@b0031e2 | 91A | scored | 8/11/2026 |
Wondering how this compares? The MCP Security Index tracks grade distribution, committed secrets, and missing authentication across the whole ecosystem, refreshed monthly.