MCP server exposing 2 tools for switzerland-law.
This URL is a JSON-RPC 2.0 endpoint over HTTP. Issue POST requests with a JSON-RPC body. Browsers and search crawlers land here on GET.
POST https://gateway.pipeworx.io/switzerland-law/mcp
Content-Type: application/json
{"jsonrpc":"2.0","id":1,"method":"tools/list"}
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 donnees" lang "fr", abbreviation "DSG", or sr_number "235.1" (the Classified Compilation number). By default only acts in force today are returned (in_force_only=false adds repealed and not-yet-in-force acts). Returns id (the SR number, usable in ch_law_get), title, short title, SR number, AS (Official Compilation) reference, entry-into-force date, status and link; 25 per page, use page to continue. Federal law only, no cantonal law and no EU law.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/491". Returns title, short title, SR number, AS reference, adoption and entry-into-force dates, in-force status, the date of the consolidated version returned (the version applicable today) and the text. Pass article (e.g. "6", "66a") for one article only; without it the text is capped at max_chars with a list of chapters. lang picks the language (de, fr, it, en when available). The consolidated text is informative as published; the legal force lies with the Official Compilation.Code samples (curl / TypeScript / one-click client install), schemas, and the live playground are on the pack page:
https://pipeworx.io/packs/switzerland-law/
Pipeworx is an open MCP gateway connecting AI agents to live data. pipeworx.io