About Opencaselaw
Opencaselaw is an MCP server in the Search category: 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
git clone https://github.com/jonashertner/opencaselawThis server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.
Tools (21)
analyze_legal_trendYear-by-year decision counts for a statute or topic
Parameters not published.
browse_legislation_changesRecent-changes feed per canton or federal level (live LexFind API, no local mirror)
Parameters not published.
check_update_statusCheck progress of a running database update *(local only)*
Parameters not published.
draft_mock_decisionBuild a research-only mock decision outline from facts, grounded in caselaw + statute references; asks clarification questions before conclusion
Parameters not published.
find_appeal_chainTrace the appeal chain (Instanzenzug) — prior and subsequent instances
Parameters not published.
find_citationsShow what a decision cites and what cites it, with confidence scores
Parameters not published.
find_leading_casesFind the most-cited decisions for a topic or statute
Parameters not published.
generate_exam_questionLegal topic → real BGE fact pattern with hidden analysis for Fallbearbeitung practice
Parameters not published.
get_case_briefStructured brief for any case — regeste, key Erwägungen, cited statutes, and citation authority
Parameters not published.
get_commentaryScholarly commentary for a specific federal law article from OnlineKommentar.ch (CC-BY-4.0)
Parameters not published.
Show all 21 tools
get_decisionFetch a single decision by docket number or ID. Includes citation graph counts (cited by / cites).
Parameters not published.
get_doctrineStatute article or legal concept → ranked leading cases + doctrine timeline
Parameters not published.
get_lawLook up a federal or cantonal Swiss law by SR number / abbreviation + optional canton. Returns full article text from the local mirror (Fedlex for federal; cantonal_laws.db for cantonal — direct portal scrape for 22 cantons, LexFind PDF extraction for the remaining 4)
Parameters not published.
get_legislationFull metadata + article text for any federal or cantonal law. Local-first (statutes.db → cantonal_laws.db → LexFind API fallback)
Parameters not published.
get_statisticsAggregate stats by court, canton, or year
Parameters not published.
list_courtsList all courts with decision counts
Parameters not published.
search_commentariesFull-text search across 362 legal commentaries from OnlineKommentar.ch across 19 federal laws
Parameters not published.
search_decisionsFull-text search with filters (court, canton, language, date range, chamber)
Parameters not published.
search_lawsUnified federal + cantonal FTS5 search with BM25 rank interleaving. Filter by `canton=` for a specific jurisdiction, or `jurisdiction='federal'` / `'cantonal'`
Parameters not published.
search_legislationLexFind-backed discovery search across federal + cantonal legislation. `fetch_top_n_texts=N` enriches the top N results with full article text in a single call
Parameters not published.
update_databaseRe-download latest Parquet files from HuggingFace and rebuild the local database *(local only)*
Parameters not published.
Ask AI
Ask AI about Opencaselaw
Powered by Claude · Grounded in docs
Security checks
6 checks have not been run yet.