Government
Data source: eInnsyn (einnsyn.no)
MCP Protocol
Endpoint
https://context.gnist.ai/mcp/einnsyn/
claude_desktop_config.json
{
"mcpServers": {
"gnist-einnsyn": {
"url": "https://context.gnist.ai/mcp/einnsyn/",
"headers": {
"Gnist-API-Key": "YOUR_API_KEY"
}
}
}
}
Shell
curl -X POST "https://context.gnist.ai/mcp/einnsyn/" \
-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_records", "arguments": {"query": "example"}}}'
REST API
API Root
https://context.gnist.ai/rest/einnsyn/
6 endpoints available:
GET /rest/einnsyn/search_recordsGET /rest/einnsyn/get_journal_entryGET /rest/einnsyn/get_case_folderGET /rest/einnsyn/list_organizationsGET /rest/einnsyn/get_publication_statisticsGET /rest/einnsyn/report_feedback
Shell
curl "https://context.gnist.ai/rest/einnsyn/search_records?query=example" \ -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx
resp = httpx.get(
"https://context.gnist.ai/rest/einnsyn/search_records",
headers={"Gnist-API-Key": "YOUR_API_KEY"},
params={
"query": "example"
},
)
print(resp.json())
Command Line
Command
gc einnsyn
CLI documentation will be available when the GnistAI SDK is published.
Install
pip install gnistai
Available Tools (6)
search_recordsSearch Norwegian public records — journal entries, case folders, and meeting documents.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | required | Free-text search. Supports exact match with quotes, exclusion with minus. |
entity | any | optional | Filter by type: 'Journalpost', 'Saksmappe', 'Moetemappe', or 'Moetesak'. |
limit | integer | optional | Results per page (1-100, default 25). (default: 25) |
journal_date_from | any | optional | Filter by journal date start (ISO date, e.g. '2025-01-01'). |
journal_date_to | any | optional | Filter by journal date end (ISO date). |
journalpost_type | any | optional | Filter journal type: 'inngaaende_dokument', 'utgaaende_dokument', 'organinternt_dokument_uten_oppfoelging', 'organinternt_dokument_for_oppfoelging'. |
sort_by | string | optional | Sort order (default 'score'). Options: 'score', 'journaldato', 'publisertDato', 'tittel', 'administrativEnhetNavn'. (default: "score") |
get_journal_entryGet a specific journal entry (journalpost) from eInnsyn.
| Parameter | Type | Required | Description |
|---|---|---|---|
journalpost_id | string | required | The journal entry ID (e.g. 'jp_...' or a UUID). |
get_case_folderGet a case folder (saksmappe) from eInnsyn.
| Parameter | Type | Required | Description |
|---|---|---|---|
saksmappe_id | string | required | The case folder ID (e.g. 'sm_...' or a UUID). |
list_organizationsList government organizations registered in eInnsyn.
| Parameter | Type | Required | Description |
|---|---|---|---|
limit | integer | optional | Number of organizations to return (1-100, default 25). (default: 25) |
get_publication_statisticsGet aggregate publication statistics for eInnsyn records.
| Parameter | Type | Required | Description |
|---|---|---|---|
interval | string | optional | Aggregation interval: 'hour', 'day', 'week', 'month', 'year'. (default: "month") |
date_from | any | optional | Start date (ISO, e.g. '2025-01-01'). Defaults to one year ago. |
date_to | any | optional | End date (ISO). Defaults to today. |
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") |