Opencaselaw logo

Opencaselaw

Unclaimed

by jonashertner

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

Install

$claude mcp add swiss-caselaw --transport sse https://mcp.opencaselaw.ch

Set up this server

This server needs project-specific setup. Follow the project instructions; no reusable public launch command is available yet.

Project instructions
ai-agentscaselawcitation-graphdatasetlegal-datalegal-researchmcpmcp-servermodel-context-protocolopen-dataswiss-lawswitzerland

More in AI & ML

Browse the full directory

Unclaimed listing

Is this your MCP server?

This listing was auto-indexed from the public record. Claim it to edit the page, set compatibility and unlock growth tools. Takes under two minutes.

Claim this server

Security profile

Claimed and verified servers get a weekly static scan that shows what the code can reach: external services, environment variables, shell commands, agent configuration folders, plus any dependencies with known advisories. Claim this listing to get one. How the security profile works

21 of 21 tools

Documented tools (21)

From project documentation. A server handshake does not verify each tool’s description or behavior.

analyze_legal_trend

Year-by-year decision counts for a statute or topic

browse_legislation_changes

Recent-changes feed per canton or federal level (live LexFind API, no local mirror)

check_update_status

Check progress of a running database update (local only)

draft_mock_decision

Build a research-only mock decision outline from facts, grounded in caselaw + statute references; asks clarification questions before conclusion

find_appeal_chain

Trace the appeal chain (Instanzenzug) — prior and subsequent instances

find_citations

Show what a decision cites and what cites it, with confidence scores

find_leading_cases

Find the most-cited decisions for a topic or statute

generate_exam_question

Legal topic → real BGE fact pattern with hidden analysis for Fallbearbeitung practice

get_case_brief

Structured brief for any case — regeste, key Erwägungen, cited statutes, and citation authority

get_commentary

Scholarly commentary for a specific federal law article from OnlineKommentar.ch (CC-BY-4.0)

get_decision

Fetch a single decision by docket number or ID. Includes citation graph counts (cited by / cites).

get_doctrine

Statute article or legal concept → ranked leading cases + doctrine timeline

get_law

Look up a federal or cantonal Swiss law by SR number / abbreviation + optional canton. Returns full article text from the local mirror (Fedlex for federal; cantonallaws.db for cantonal — direct portal scrape for 22 cantons, LexFind PDF extraction for the remaining 4)

get_legislation

Full metadata + article text for any federal or cantonal law. Local-first (statutes.db → cantonallaws.db → LexFind API fallback)

get_statistics

Aggregate stats by court, canton, or year

list_courts

List all courts with decision counts

search_commentaries

Full-text search across 362 legal commentaries from OnlineKommentar.ch across 19 federal laws

search_decisions

Full-text search with filters (court, canton, language, date range, chamber)

search_laws

Unified federal + cantonal FTS5 search with BM25 rank interleaving. Filter by canton= for a specific jurisdiction, or jurisdiction='federal' / 'cantonal'

search_legislation

LexFind-backed discovery search across federal + cantonal legislation. fetchtopntexts=N enriches the top N results with full article text in a single call

update_database

Re-download latest Parquet files from HuggingFace and rebuild the local database (local only)

Tool change history

Compared across complete checks of the same configuration. Tools were listed, not invoked. Input-schema changes are not measured here.

No complete tool checks yet.

FAQ

Questions about Opencaselaw MCP Server

How do I connect Opencaselaw MCP Server to Claude?
The listing records `claude mcp add swiss-caselaw --transport sse https://mcp.opencaselaw.ch` as its setup step. Run it, then follow the repository's instructions for the client configuration; the listing names Claude Desktop, Claude Code, Cursor as compatible clients.
Is Opencaselaw MCP Server free?
The listed licence is MIT. Check the upstream terms for permitted use and commercial requirements; a public repository does not by itself mean the software is free or open source. Connected APIs and hosted services may have separate charges.
What can Opencaselaw MCP Server do?
Opencaselaw MCP Server documents 21 tools to the agent, including analyze_legal_trend, browse_legislation_changes, check_update_status. The descriptions above come from project documentation. A live handshake does not test individual tool behavior.