Switzerland Law
liveGovernmentLegalTechnologySwitzerland law -- Fedlex, the Swiss Confederation's publication platform for federal law (published by the Federal Chancellery): the Classified Compilation (SR, Systematische Rechtssammlung) and the Official Compilation (AS, Amtliche Sammlung).
Tools
ch_law_searchSearch 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
No parameters required.
Try it
ch_law_getFetch 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
No parameters required.
Try it
Test with curl
The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.
curl -X POST https://gateway.pipeworx.io/switzerland-law/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'curl -X POST https://gateway.pipeworx.io/switzerland-law/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"ch_law_search","arguments":{}}}'Use with the SDK
Install @pipeworx/sdk to call tools from any TypeScript/Node project.
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("ch_law_search", {});// Or ask in plain English:
const answer = await px.ask("switzerland law -- fedlex, the swiss confederation's publication platform for federal law (published by the federal chancellery): the classified compilation (sr, systematische rechtssammlung) and the official compilation (as, amtliche sammlung)");