Data source: Lovdata (lovdata.no)
https://context.gnist.ai/mcp/lovdata/
AuthenticationAll requests require a Gnist-API-Key header (or api_key query parameter).
Free tier: 100 calls/day. Get your API key.
Tools (5)
search_legislationSearch Norwegian laws and regulations on Lovdata.
Lovdata is Norway's official source for legislation, including laws (lover),
regulations (forskrifter), and court decisions.
Args:
query: Search term — law name, topic, or keyword.
doc_type: Document type to search: 'lover' (laws, default) or 'forskrifter' (regulations).
max_results: Maximum results (1-50, default 20).
Returns:
Dict with 'query', 'count', and 'results' list.
Each result has: title, identifier, url, date, department.
| 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) |
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "search_legislation",
"arguments": {
"query": "example"
}
}
}get_lawGet an overview of a Norwegian law, including title, metadata, and table of contents.
Args:
law_path: 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).
Returns:
Dict with title, short_title, identifier, department, url, and chapters list.
Each chapter has: chapter_id, title, and sections list.
| 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). |
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "get_law",
"arguments": {
"law_path": "123456789"
}
}
}get_law_sectionGet the full text of a specific section (paragraph) of a Norwegian law.
Args:
law_path: The law's date-number identifier, e.g. '1997-06-13-44' for aksjeloven.
section: Section number, e.g. '1-1' or '3-4'. The § symbol is optional.
Returns:
Dict with section_id, title, content (full text), and url.
| 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. |
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "get_law_section",
"arguments": {
"law_path": "123456789",
"section": "123456789"
}
}
}get_regulationGet an overview of a Norwegian regulation (forskrift).
Args:
regulation_path: The regulation's date-number identifier,
e.g. '2019-12-09-1698' for a specific regulation.
Returns:
Dict with title, identifier, department, url, and chapters list.
| Parameter | Type | Required | Description |
|---|---|---|---|
regulation_path | string | required | The regulation's date-number identifier, e.g. '2019-12-09-1698' for a specific regulation. |
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "get_regulation",
"arguments": {
"regulation_path": "123456789"
}
}
}report_feedbackReport a bug, feature request, or general feedback for this data source.
Use this when something doesn't work as expected, when you'd like
a new feature, or when you have suggestions for improvement.
Args:
feedback: Describe the issue or suggestion.
feedback_type: One of 'bug', 'feature_request', or 'general'.
| Parameter | Type | Required | Description |
|---|---|---|---|
feedback | string | required | |
feedback_type | string | optional | (default: "general") |
{
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "report_feedback",
"arguments": {
"feedback": "example"
}
}
}Quick Start
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"}}}'
import httpx
resp = httpx.post(
"https://context.gnist.ai/mcp/lovdata/",
headers={"Gnist-API-Key": "YOUR_API_KEY", "Content-Type": "application/json"},
json={
"jsonrpc": "2.0",
"method": "tools/call",
"id": 1,
"params": {
"name": "search_legislation",
"arguments": {
"query": "example"
}
}
},
)
print(resp.json())