GnistAI GnistAI
Log in

Riksdagen (Swedish Parliament)

Swedish Parliament data — document search, committee reports, bills, motions, vote records, and member profiles.

Overview   |   MCP Docs   |   API Docs   |   OpenAPI   |   Playground   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 7 tools tools 7 7 Government

Data source: Riksdagen (data.riksdagen.se)

MCP 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"}}}'

API REST API

API Root https://context.gnist.ai/rest/riksdagen/

7 endpoints available:

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())

OpenAPI Spec  ·  Full API Docs

CLI Command Line

Command gc riksdagen

CLI documentation will be available when the GnistAI SDK is published.

Install
pip install gnistai

Available Tools (7)

search_documents
Search Swedish parliamentary documents — bills, motions, committee reports, and more.
ParameterTypeRequiredDescription
queryanyoptionalFree-text search term
doc_typeanyoptionalDocument type code: 'prop' (proposition/bill), 'mot' (motion), 'bet' (committee report), 'skr' (government communication), 'sou' (inquiry report)
committeeanyoptionalCommittee code: 'FiU' (Finance), 'AU' (Labour), 'JuU' (Justice), 'SoU' (Social), 'UU' (Foreign Affairs), etc.
sessionanyoptionalParliament session, e.g. '2025/26'. Format: YYYY/YY
pageintegeroptionalPage number (default 1) (default: 1)
get_document
Get full details for a specific Swedish parliamentary document.
ParameterTypeRequiredDescription
dok_idstringrequiredDocument ID from search results (e.g. 'HD01FiU1')
list_votes
List parliamentary votes in the Swedish Riksdagen.
ParameterTypeRequiredDescription
sessionanyoptionalParliament session, e.g. '2025/26'. Format: YYYY/YY
doc_idanyoptionalFilter votes for a specific document designation (e.g. 'FiU1')
get_vote_detail
Get full voting detail with individual member votes for a specific ballot.
ParameterTypeRequiredDescription
votering_idstringrequiredVote ID from vote list (e.g. '2025/26:FiU1:1')
search_members
Search members of the Swedish Parliament (Riksdagen).
ParameterTypeRequiredDescription
statusanyoptionalMember status: omit for current members, 'samtliga' for all historical members
partyanyoptionalParty code: 'S' (Social Democrats), 'M' (Moderates), 'SD' (Sweden Democrats), 'C' (Centre), 'V' (Left), 'KD' (Christian Democrats), 'L' (Liberals), 'MP' (Green)
limitintegeroptionalMax results to return (default 50) (default: 50)
get_member
Get full details for a specific member of the Swedish Parliament.
ParameterTypeRequiredDescription
person_idstringrequiredMember source ID from search results
report_feedback
Report a bug, feature request, or general feedback for this data source.
ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")

Related