MCP server exposing 2 tools for sweden-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/sweden-law/mcp
Content-Type: application/json
{"jsonrpc":"2.0","id":1,"method":"tools/list"}
se_law_search — Search Swedish national legislation (Svensk forfattningssamling, SFS: laws, ordinances and balkar) by word, in Swedish, e.g. "dataskydd" or "arbetsmiljo". Matches the whole text of each statute, ranked by relevance, so a word in the title ranks first. By default only statutes not marked repealed; set include_repealed=true to see repealed ones. Optional year_from / year_to narrow by year of issue. Returns up to 10 matches with id ("2018:218" = year:number, the SFS number), title, issue date, issuing ministry, repealed flag, how far it is amended and link. Pair with se_law_get for the text.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, SFS citation, issue date, ministry, whether the Riksdag marks it repealed (with repeal date and the repealing act) and how far it is amended, then the text in Swedish. Pass section (e.g. "5", "3 a", or "2:1" for chapter 2 section 1, since chapters restart section numbers) for one section only; without it the text is capped at max_chars with a chapter list. A section with scheduled changes returns each version with the Riksdag's own marker line.Code samples (curl / TypeScript / one-click client install), schemas, and the live playground are on the pack page:
https://pipeworx.io/packs/sweden-law/
Pipeworx is an open MCP gateway connecting AI agents to live data. pipeworx.io