AI agents
Use open data from regjeringen.no in AI agents such as GitHub Copilot, Claude and Cursor.
What are the MCP server and the skills?
The MCP server gives your agent tools to search and read data from our APIs, such as consultations, calendar events and Official Records from the Council of State. MCP (Model Context Protocol) is an open standard for connecting AI agents to data sources.
Skills are ready-made instructions that teach your agent when and how to use the tools, for example to find the right dataset or research a consultation.
Get started in three steps
These addresses point to the test environment. Test keys only work there.
1. Get an API key
Every tool needs an API key, including the dataset catalogue. Get an API key on the front page.
2. Install the MCP server
Choose your agent. The MCP server requires the key on every request, so each setup below includes it. The key goes into your agent, not into files you share.
The VS Code and Cursor buttons open the app on your computer. VS Code asks for the key and stores it securely. Cursor reads the key from the REGJERINGEN_API_KEY environment variable. GitHub Copilot CLI doesn't use the key VS Code stores, not even in Copilot CLI sessions inside VS Code. Add the server with the Copilot CLI command.
Claude Code
claude mcp add --transport http --scope user regjeringen-open-data \
https://api.test.data.regjeringen.no/mcp \
--header "Ocp-Apim-Subscription-Key: <your-key>"GitHub Copilot CLI
copilot mcp add --transport http regjeringen-open-data \
https://api.test.data.regjeringen.no/mcp \
--header "Ocp-Apim-Subscription-Key: <your-key>"mcp.json (VS Code)
{
"inputs": [
{
"type": "promptString",
"id": "regjeringen-subscription-key",
"description": "data.regjeringen.no Subscription Key",
"password": true
}
],
"servers": {
"regjeringen-open-data": {
"type": "http",
"url": "https://api.test.data.regjeringen.no/mcp",
"headers": {
"Ocp-Apim-Subscription-Key": "${input:regjeringen-subscription-key}"
}
}
}
}3. Add the skills
Run this command in your project to install the skills in your agent:
npx skills add https://test.data.regjeringen.noAlready installed? Run the command above again to get new and updated skills, or update the ones you have:
npx skills updateTools
The tools the MCP server offers, grouped by API.
Calendar Events
list_calendar_events: List events from the government calendar: visits, meetings and speeches by ministers, with time, place, ministry, owners and participants.
Content Overview
search_documents: Search content published on regjeringen.no (press releases, white papers, propositions, NOUs, speeches …) by date, content type, owner and publisher.list_document_filters: List the valid content types, owners and publishers to filter search_documents by.
Data Catalogue (DCAT)
list_datasets: List the datasets in the regjeringen.no open-data dcat catalogue, with keywords, access rights and the REST API endpoint of each.
Organizational Information
list_ministries: List the ministries (departementer) with their departments, to resolve ministry names and short names.
Official Records from the Council of State
list_council_announcements: List "Offisielt fra statsråd" announcements, the official record of each Council of State meeting, newest first.get_statsrad_announcement: Read one "Offisielt fra statsråd" announcement with its decisions as plain text, in Norwegian as published.
Consultations and Submissions – Published Responses
search_hearings: Search public consultations (høringer) and submissions (innspill), with their Document state and response deadline.get_hearing: Read one consultation: ministry, case number, deadline, and the hearing letter, memo and consultation bodies as plain text.list_hearing_responses: List the published responses (høringssvar) to one consultation: sender, sender type, response type and when it was last changed.get_hearing_response: Read one published response to a consultation as plain text, with attachment links.
Skills
The skills available to install right now.
connect: Connect an AI agent (VS Code / GitHub Copilot, Claude Code, Cursor) to the regjeringen.no open-data Custom MCP server and add a Subscription Key. Use when the Developer wants to set up, install or troubleshoot the regjeringen.no MCP server, get an API key (Instant key), or asks why a tool says a Subscription Key is missing or rejected. Developers may ask in Norwegian (e.g. "koble til", "API-nøkkel").discover-datasets: Find which regjeringen.no open-data dataset and REST API can answer a question, using the dcat catalogue ("Regjeringens åpne data") on the regjeringen.no Custom MCP server. Use when the Developer asks what data the Norwegian government publishes, where to find hearings (høringer), calendar events, decisions from the Council of State (statsråd), government content or ministry information, or which API to call. Developers may ask in Norwegian.government-calendar: Follow what the Norwegian government does and decides with the regjeringen.no Custom MCP server - the government calendar ("Kalenderhendelser" - ministers' visits, meetings and speeches) and the decisions of the Council of State ("Offisielt fra statsråd" - laws sanctioned and their entry into force, regulations, appointments), plus ministry names from "Departementsinformasjon". Use when the Developer asks what a minister or ministry is doing on a date, what was decided in statsråd, when a law enters into force (ikrafttredelse) or who was appointed (utnevnelser). Needs a Subscription Key. Developers may ask in Norwegian.research-documents: Research documents published on regjeringen.no with the regjeringen.no Custom MCP server - government content ("Innhold fra regjeringen" - press releases, white papers, propositions, NOUs, speeches), filtered by date, content type, owner and publisher. Use when the Developer asks what the government has published on a topic or in a date range. For public consultations (høringer) and høringssvar, use the research-hearings Skill. Needs a Subscription Key. Developers may ask in Norwegian.research-hearings: Research public consultations on regjeringen.no with the regjeringen.no Custom MCP server - høringer and innspill ("Høringer og innspill – publiserte svar"), their hearing letters (høringsbrev), memos (høringsnotat), consultation bodies (høringsinstanser) and the published responses (høringssvar). Use when the Developer asks about a høring or consultation, its Document state, its deadline (svarfrist), who was invited, who answered or what a response said. Needs a Subscription Key. Developers may ask in Norwegian.
New and changed tools and skills are listed in the changelog.