MCPVault

update_database

MCP tool from Opencaselaw by jonashertner

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

How to use it

update_database is exposed by the Opencaselaw MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the update_database tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.

Install Opencaselaw

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

Other tools in Opencaselaw (20)

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