Sweden Law

liveLegalDeveloper

Sweden law -- Svensk forfattningssamling (SFS, the Swedish Code of Statutes), as published by the Riksdag in its open data.

2tools
0msauth
free tier50 calls/day

Tools

se_law_get

Fetch one Swedish statute by its SFS number "year:number", e.g. "2018:218" (the Act with supplementary provisions to the EU Data Protection Regulation); "SFS 2018:218" is accepted too. Returns title,

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.

List available tools
bash
curl -X POST https://gateway.pipeworx.io/sweden-law/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
Call a tool
bash
curl -X POST https://gateway.pipeworx.io/sweden-law/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"se_law_search","arguments":{}}}'

Use with the SDK

Install @pipeworx/sdk to call tools from any TypeScript/Node project.

TypeScript
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("se_law_search", {});
ask_pipeworx
// Or ask in plain English:
const answer = await px.ask("sweden law -- svensk forfattningssamling (sfs, the swedish code of statutes), as published by the riksdag in its open data");