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
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.data.regjeringen.no/mcp \
--header "Ocp-Apim-Subscription-Key: <your-key>"GitHub Copilot CLI
copilot mcp add --transport http regjeringen-open-data \
https://api.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.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://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.
Travel Information
list_travel_countries: List the countries with travel information from the Ministry of Foreign Affairs, with a short summary of each.get_travel_info: Read the travel information for one country, by ISO country code or Norwegian name (entry rules, security, health, contact information …) as plain text, in Norwegian as published.
Skills
New and changed tools and skills are listed in the changelog.