lovspor
Current

Connect

One guide for every client: Claude and ChatGPT with the steps we have run, Claude Code, the clients we have not tested, three questions to start with and help when it does not work.

lovverk is an MCP server that lets your AI tool look up Norwegian statutes and regulations. The hosted service has one address:

https://lovspor.no/mcp

One click selects the whole address or command; copy it with Ctrl+C (⌘C on a Mac). You sign in inside the client, there is nothing to paste beyond the address, and it costs nothing.

Claude

Run from claude.ai against the hosted service on 2026-09-30.

  1. Add a custom connector.
  2. Enter the address https://lovspor.no/mcp.
  3. Choose Sign in now.
  4. Under client registration, choose Register automatically.
  5. Sign in on the page that opens. Back in the conversation, the tools answer.

In Claude Desktop the same choices are what count, but we have run the steps from claude.ai only. Signing in and troubleshooting are in the full Claude guide.

ChatGPT

Run in ChatGPT against the hosted service on 2026-09-30.

  1. Turn on developer mode in ChatGPT.
  2. Create a connector with the address https://lovspor.no/mcp.
  3. Choose OAuth as the authentication.
  4. Sign in on the page that opens. Back in the conversation, the tools answer.

Which ChatGPT subscriptions have developer mode we have not checked, so it is not stated here. Signing in and troubleshooting are in the full ChatGPT guide.

Claude Code

Local copy, no account

The server fetches the corpus to your machine and talks to Claude Code over stdio:

uvx lovspor fetch-corpus
claude mcp add lovverk -- uvx lovspor mcp

Every tool except semantic_search then reads only files and git on your own machine. Claude Desktop as a local copy: see the Claude guide.

The hosted service

Run in Claude Code against the hosted service on 2026-10-30.

Add the server:

claude mcp add --transport http lovverk https://lovspor.no/mcp
  1. Start Claude Code in the same project. In the session, type /mcp, choose lovverk, then Authenticate. The browser opens.
  2. Sign in with email or Google.
  3. Choose Allow access. The page warns that the redirect points to an unverified application on your machine; that application is Claude Code.
  4. The page says Authentication successful. Back in the session, the tools answer.

If the browser does not open, Claude Code shows the link to copy. If the page after Allow access shows a connection error, paste the address from the browser where Claude Code asks for it. If you already have the local copy, give this one another name, such as lovverk-hosted.

Other clients

No tested procedure for Cursor, VS Code and Codex. We have not run the setup in these clients ourselves, so we do not make up the steps or the configuration files.

What a client needs to use the hosted service:

Where this goes differs from client to client. If your client cannot sign in, you can run the server yourself, as in the local copy above.

Start here

Three questions that exercise the tools. Ask them in a new conversation; the corpus is Norwegian, so ask in Norwegian.

«Hvor lenge må jeg ha jobbet for å få sykepenger fra arbeidsgiveren?» (How long must I have worked to get sick pay from my employer?)

The answer should rest on folketrygdloven § 8-18 (the National Insurance Act) and quote it. Then ask about folketrygdloven § 8-99 — the tool should answer that the section does not exist.

«Hvor høyt må taket være i et rom for varig opphold i en bolig?» (How high must the ceiling be in a habitable room in a dwelling?)

The answer should rest on byggteknisk forskrift (TEK17) § 12-7, a regulation rather than a statute.

«Når ble arbeidsmiljøloven sist endret, og hva ble endret?» (When was the Working Environment Act last changed, and what changed?)

The answer should rest on the change history in the corpus, not on the model's memory.

Help

The engine is open source under AGPL-3.0: github.com/bartoszkobylinski/lovspor. Questions: kontakt@lovspor.no.