GnistAI GnistAI
Log in

Lovdata (Norwegian Law)

Norwegian laws (lover) and regulations (forskrifter) — search legislation, read law text, browse sections.

Overview   |   MCP Docs   |   API Docs   |   OpenAPI   |   Playground   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 5 tools tools 5 5 Legal

Data source: Lovdata (lovdata.no)

MCP MCP Protocol

Endpoint https://context.gnist.ai/mcp/lovdata/
claude_desktop_config.json
{
  "mcpServers": {
    "gnist-lovdata": {
      "url": "https://context.gnist.ai/mcp/lovdata/",
      "headers": {
        "Gnist-API-Key": "YOUR_API_KEY"
      }
    }
  }
}
Shell
curl -X POST "https://context.gnist.ai/mcp/lovdata/" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "search_legislation", "arguments": {"query": "example"}}}'

API REST API

API Root https://context.gnist.ai/rest/lovdata/

5 endpoints available:

Shell
curl "https://context.gnist.ai/rest/lovdata/search_legislation?query=example" \
  -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx

resp = httpx.get(
    "https://context.gnist.ai/rest/lovdata/search_legislation",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    params={
        "query": "example"
},
)
print(resp.json())

OpenAPI Spec  ·  Full API Docs

CLI Command Line

Command gc lovdata

CLI documentation will be available when the GnistAI SDK is published.

Install
pip install gnistai

Available Tools (5)

search_legislation
Search Norwegian laws and regulations on Lovdata.
ParameterTypeRequiredDescription
querystringrequiredSearch term — law name, topic, or keyword.
doc_typeanyoptionalDocument type to search: 'lover' (laws, default) or 'forskrifter' (regulations). (default: "lover")
max_resultsintegeroptionalMaximum results (1-50, default 20). (default: 20)
get_law
Get an overview of a Norwegian law, including title, metadata, and table of contents.
ParameterTypeRequiredDescription
law_pathstringrequiredThe law's date-number identifier, e.g. '1997-06-13-44' for aksjeloven (Company Act) or '2005-06-17-62' for arbeidsmiljøloven (Working Environment Act).
get_law_section
Get the full text of a specific section (paragraph) of a Norwegian law.
ParameterTypeRequiredDescription
law_pathstringrequiredThe law's date-number identifier, e.g. '1997-06-13-44' for aksjeloven.
sectionstringrequiredSection number, e.g. '1-1' or '3-4'. The § symbol is optional.
get_regulation
Get an overview of a Norwegian regulation (forskrift).
ParameterTypeRequiredDescription
regulation_pathstringrequiredThe regulation's date-number identifier, e.g. '2019-12-09-1698' for a specific regulation.
report_feedback
Report a bug, feature request, or general feedback for this data source.
ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")

Related