Government
Data source: Riksdagen (data.riksdagen.se)
MCP Protocol
Endpoint
https://context.gnist.ai/mcp/riksdagen/
claude_desktop_config.json
{
"mcpServers": {
"gnist-riksdagen": {
"url": "https://context.gnist.ai/mcp/riksdagen/",
"headers": {
"Gnist-API-Key": "YOUR_API_KEY"
}
}
}
}
Shell
curl -X POST "https://context.gnist.ai/mcp/riksdagen/" \
-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_document", "arguments": {"dok_id": "example"}}}'
REST API
API Root
https://context.gnist.ai/rest/riksdagen/
7 endpoints available:
GET /rest/riksdagen/search_documentsGET /rest/riksdagen/get_documentGET /rest/riksdagen/list_votesGET /rest/riksdagen/get_vote_detailGET /rest/riksdagen/search_membersGET /rest/riksdagen/get_memberGET /rest/riksdagen/report_feedback
Shell
curl "https://context.gnist.ai/rest/riksdagen/get_document?dok_id=example" \ -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx
resp = httpx.get(
"https://context.gnist.ai/rest/riksdagen/get_document",
headers={"Gnist-API-Key": "YOUR_API_KEY"},
params={
"dok_id": "example"
},
)
print(resp.json())
Command Line
Command
gc riksdagen
CLI documentation will be available when the GnistAI SDK is published.
Install
pip install gnistai
Available Tools (7)
search_documentsSearch Swedish parliamentary documents — bills, motions, committee reports, and more.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | any | optional | Free-text search term |
doc_type | any | optional | Document type code: 'prop' (proposition/bill), 'mot' (motion), 'bet' (committee report), 'skr' (government communication), 'sou' (inquiry report) |
committee | any | optional | Committee code: 'FiU' (Finance), 'AU' (Labour), 'JuU' (Justice), 'SoU' (Social), 'UU' (Foreign Affairs), etc. |
session | any | optional | Parliament session, e.g. '2025/26'. Format: YYYY/YY |
page | integer | optional | Page number (default 1) (default: 1) |
get_documentGet full details for a specific Swedish parliamentary document.
| Parameter | Type | Required | Description |
|---|---|---|---|
dok_id | string | required | Document ID from search results (e.g. 'HD01FiU1') |
list_votesList parliamentary votes in the Swedish Riksdagen.
| Parameter | Type | Required | Description |
|---|---|---|---|
session | any | optional | Parliament session, e.g. '2025/26'. Format: YYYY/YY |
doc_id | any | optional | Filter votes for a specific document designation (e.g. 'FiU1') |
get_vote_detailGet full voting detail with individual member votes for a specific ballot.
| Parameter | Type | Required | Description |
|---|---|---|---|
votering_id | string | required | Vote ID from vote list (e.g. '2025/26:FiU1:1') |
search_membersSearch members of the Swedish Parliament (Riksdagen).
| Parameter | Type | Required | Description |
|---|---|---|---|
status | any | optional | Member status: omit for current members, 'samtliga' for all historical members |
party | any | optional | Party code: 'S' (Social Democrats), 'M' (Moderates), 'SD' (Sweden Democrats), 'C' (Centre), 'V' (Left), 'KD' (Christian Democrats), 'L' (Liberals), 'MP' (Green) |
limit | integer | optional | Max results to return (default 50) (default: 50) |
get_memberGet full details for a specific member of the Swedish Parliament.
| Parameter | Type | Required | Description |
|---|---|---|---|
person_id | string | required | Member source ID from search results |
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") |