Government
Data source: Stortinget (data.stortinget.no)
MCP Protocol
Endpoint
https://context.gnist.ai/mcp/stortinget/
claude_desktop_config.json
{
"mcpServers": {
"gnist-stortinget": {
"url": "https://context.gnist.ai/mcp/stortinget/",
"headers": {
"Gnist-API-Key": "YOUR_API_KEY"
}
}
}
}
Shell
curl -X POST "https://context.gnist.ai/mcp/stortinget/" \
-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": "get_representatives", "arguments": {"period_id": "example"}}}'
REST API
API Root
https://context.gnist.ai/rest/stortinget/
10 endpoints available:
GET /rest/stortinget/list_sessionsGET /rest/stortinget/get_current_representativesGET /rest/stortinget/get_representativesGET /rest/stortinget/list_partiesGET /rest/stortinget/list_committeesGET /rest/stortinget/get_casesGET /rest/stortinget/get_caseGET /rest/stortinget/get_votesGET /rest/stortinget/list_topicsGET /rest/stortinget/report_feedback
Shell
curl "https://context.gnist.ai/rest/stortinget/get_representatives?period_id=example" \ -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx
resp = httpx.get(
"https://context.gnist.ai/rest/stortinget/get_representatives",
headers={"Gnist-API-Key": "YOUR_API_KEY"},
params={
"period_id": "example"
},
)
print(resp.json())
Command Line
Command
gc stortinget
CLI documentation will be available when the GnistAI SDK is published.
Install
pip install gnistai
Available Tools (10)
list_sessionsList all parliamentary sessions in the Norwegian Storting.
get_current_representativesGet all current members of the Norwegian Parliament (Stortinget).
get_representativesGet representatives for a specific parliamentary period.
| Parameter | Type | Required | Description |
|---|---|---|---|
period_id | string | required | Parliamentary period (e.g. '2021-2025'). |
list_partiesList political parties in the Norwegian Parliament.
| Parameter | Type | Required | Description |
|---|---|---|---|
session_id | any | optional | Optional session (e.g. '2024-2025'). Omit for all parties. |
list_committeesList parliamentary committees for a given session.
| Parameter | Type | Required | Description |
|---|---|---|---|
session_id | string | required | Parliamentary session (e.g. '2024-2025'). |
get_casesGet all cases (bills, propositions, questions) for a parliamentary session.
| Parameter | Type | Required | Description |
|---|---|---|---|
session_id | string | required | Parliamentary session (e.g. '2024-2025'). |
get_caseGet detailed information about a specific parliamentary case.
| Parameter | Type | Required | Description |
|---|---|---|---|
case_id | integer | required | Numeric case ID (e.g. 103839). |
get_votesGet voting results for a parliamentary case.
| Parameter | Type | Required | Description |
|---|---|---|---|
case_id | integer | required | Numeric case ID (e.g. 103839). |
list_topicsList the parliamentary topic taxonomy.
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") |