@pipeworx/switzerland-law
Connect: https://pipeworx.io/mcp — every tool in the catalog, including @pipeworx/switzerland-law’s. Install: one-click buttons
Connect to just the @pipeworx/switzerland-law pack
https://gateway.pipeworx.io/switzerland-law/mcp — only @pipeworx/switzerland-law’s own tools, nothing else in the catalog.
No MCP client? Skip the connection: POST https://gateway.pipeworx.io/v1/tools/search_packs {"query":"..."} to find a tool below, GET /v1/tools/<name> for its schema, POST the same URL with arguments for the data — see For AI agents.
Tools: 2
Swiss federal legislation from Fedlex, the Confederation’s publication platform (Federal Chancellery): search acts by title, abbreviation or Classified Compilation (SR) number, then read an act’s record and its consolidated text, whole or one article at a time. German, French, Italian, and English where an English version exists.
Tools
ch_law_search(query?, abbreviation?, sr_number?, lang?, in_force_only?, page?)— find federal acts by title words in the chosen language (for exampleDatenschutzinde,protection des donneesinfr), by short title (DSG,ZGB) or by SR number (235.1). Returns the SR number, the Official Compilation (AS) reference, short title, adoption and entry-into-force dates, status and a link. Only acts in force today unlessin_force_only=false. 25 per page;next_pagesays whether to continue.ch_law_get(id, article?, lang?, max_chars?)— one act by SR number (235.1) or AS reference (2022/491): title, short title, SR and AS references, dates, in-force status, the date of the consolidated version returned (the one applicable today) and the text.articlereturns one article (6,66a,7bis); otherwise the text is capped atmax_charswith a list of chapters.
Auth
Keyless.
Data sources
- Switzerland, Federal Chancellery, Fedlex — Classified Compilation of Federal Legislation (SR) and Official Compilation (AS): act records, consolidated texts and in-force status.
The consolidated text is the informative version; the legally binding text is
the one in the Official Compilation. Federal law only: no cantonal law, and EU
law is in the EUR-Lex pack. data_as_of is the date of the live read. Read
live on each call; nothing is copied. A search or lookup that finds nothing
returns empty_reason, not an empty success. Where one SR number has a
repealed act and its successor, the act in force is returned; if that is still
ambiguous the matches are listed and the AS reference picks one.
Tools
- ch_law_search — Search Swiss federal legislation (Fedlex, Federal Chancellery) by title word, abbreviation or SR number, in German, French, Italian or English: e.g. query “Datenschutz” lang “de”, query “protection de
- ch_law_get — Fetch one Swiss federal act: its record and consolidated text. id is an SR number from ch_law_search (e.g. “235.1” for the Federal Act on Data Protection) or an Official Compilation reference like “20
Tools
ch_law_get— Fetch one Swiss federal act: its record and consolidated text. id is an SR number from ch_law_search (e.g. 235.1 for the Federal Act on Data Protection) or an Official Compilation reference like 2022/ch_law_search— Search Swiss federal legislation (Fedlex, Federal Chancellery) by title word, abbreviation or SR number, in German, French, Italian or English: e.g. query Datenschutz lang de , query protection des do