LegalTech Logo

LegalTech

← Back to blog

Published on by Miguel Gonzalez Herrera

Rättspraxis is the official case-law service of Domstolsverket, the Swedish National Courts Administration. It holds the precedents of Högsta domstolen (Supreme Court), Högsta förvaltningsdomstolen (Supreme Administrative Court), the courts of appeal (hovrätter and kammarrätter), the Labour Court (Arbetsdomstolen) and the specialist migration, environment and IP appeal courts. Each precedent lists the statutes applied with their SFS number, so you can search by statute. In this guide you will connect the legaltech/domstol-se connector to Claude or ChatGPT so you can search it from the chat, even when you ask in English.

✅ Why this instead of just asking the AI: if you ask Claude or ChatGPT about case law from memory, it may give you a convincing answer with made-up decisions. With the connector, the AI doesn’t answer from memory: it goes to the official source, searches it and brings back real decisions with their links so you can check them.

⚖️ What does the legaltech/domstol-se connector cover?

The legaltech/domstol-se connector queries the official Rättspraxis API and returns:

🔌 How to add Apify to Claude (5 minutes, first time only)

You don’t need to know how to code. You will copy one address and paste it into Claude’s settings. You do it once; after that you just ask your questions.

1. Create your free Apify account. Apify is the service that searches the official source for you. Sign up (you can use your Google account) and stay logged in in your browser. The free plan is enough to try it.

Create a free Apify account

2. Open Claude’s connectors.

3. Click “Add custom connector”. On the phone it is under the + in the top-right corner.

4. Fill in the form and click “Add”. There are only two fields:

https://mcp.apify.com/?tools=actors,docs,runs,storage,tasks,legaltech/domstol-se

Leave the other fields (the “OAuth” ones) empty.

5. Click “Connect”. An Apify window opens: click Allow and you will be back in Claude with the connector ready.

6. Try it. Open a new chat and paste the first prompt from the example below. The first time, Claude will ask for permission to use Apify: click Allow.

💡 Already have Apify in Claude? Don’t install it again: start your question with “Use the connector legaltech/domstol-se” and Claude will run it.

If you get stuck, the installation guide has a screenshot of every step. Using ChatGPT? The steps are different: follow the ChatGPT guide.

🧪 Worked example: defects in property sales (Jordabalken)

Defects in real property (fel i fastighet) are governed by chapter 4 of the Jordabalken (JB), the Land Code, SFS 1970:994. Instead of searching by text alone, we ask Claude to filter by that statute:

Use the connector legaltech/domstol-se and find Högsta domstolen precedents since 2015 that apply the Jordabalken and deal with defects

Claude combines the term with the statute’s SFS number:

{
  "searchTerms": ["fel"],
  "sfsNumbers": ["1970:994"],
  "courts": ["HDO"],
  "decisionTypes": ["PREJUDIKAT"],
  "dateFrom": "2015-01-01",
  "maxResults": 4,
  "passages": 1
}

Result of a real run (18 precedents found; these are the most recent):

ReportCaseDateProvisionsWhat it decides
NJA 2025 s. 1308FT 8543-2423 Dec 20254:19 JBThe seller is not liable for an estate agent’s wrong statement the seller neither knew nor should have known about
NJA 2024 s. 657Ö 873-2424 Oct 202412:11, 12:16 and 12:24 JBA commercial tenant has no duty to give notice (reklamera) of a defect in the premises
NJA 2024 s. 369T 1247-2313 Jun 20244:11 and 4:19 c JB; Consumer Services ActA seller who compensated the buyers for water damage can recover from the cleaning firm that caused it

The first is the most useful in practice. According to the passage the connector returns, the buyer paid SEK 200,000 for a plot in Vaggeryd to build a house and found it was not connected to the electricity grid. All contact went through the estate agent. The Supreme Court holds that the seller is not liable for the agent’s wrong statement, because the seller did not know and should not have known the agent had made it.

The second draws a contrast with sales: art. 4:19 a JB requires a buyer to give notice within a reasonable time, but chapter 12 places no such burden on a commercial tenant.

You can carry on:

💡 More prompt ideas

✅ Good practice

If you have questions or get stuck, write to us at legaltechnologybootcamp@gmail.com.

Written by Miguel Gonzalez Herrera

← Back to blog
Sources from: