Legal
Data source: Lovdata (lovdata.no)
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"}}}'
REST API
API Root
https://context.gnist.ai/rest/lovdata/
5 endpoints available:
GET /rest/lovdata/search_legislationGET /rest/lovdata/get_lawGET /rest/lovdata/get_law_sectionGET /rest/lovdata/get_regulationGET /rest/lovdata/report_feedback
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())
Command Line
Command
gc lovdata
CLI documentation will be available when the GnistAI SDK is published.
Install
pip install gnistai
Available Tools (5)
search_legislationSearch Norwegian laws and regulations on Lovdata.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | required | Search term — law name, topic, or keyword. |
doc_type | any | optional | Document type to search: 'lover' (laws, default) or 'forskrifter' (regulations). (default: "lover") |
max_results | integer | optional | Maximum results (1-50, default 20). (default: 20) |
get_lawGet an overview of a Norwegian law, including title, metadata, and table of contents.
| Parameter | Type | Required | Description |
|---|---|---|---|
law_path | string | required | The 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_sectionGet the full text of a specific section (paragraph) of a Norwegian law.
| Parameter | Type | Required | Description |
|---|---|---|---|
law_path | string | required | The law's date-number identifier, e.g. '1997-06-13-44' for aksjeloven. |
section | string | required | Section number, e.g. '1-1' or '3-4'. The § symbol is optional. |
get_regulationGet an overview of a Norwegian regulation (forskrift).
| Parameter | Type | Required | Description |
|---|---|---|---|
regulation_path | string | required | The regulation's date-number identifier, e.g. '2019-12-09-1698' for a specific regulation. |
report_feedbackReport a bug, feature request, or general feedback for this data source.
| Parameter | Type | Required | Description |
|---|---|---|---|
feedback | string | required | |
feedback_type | string | optional | (default: "general") |