This is a test version of the portal. Content and APIs are under development and may change without notice.

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.no

Already installed? Run the command above again to get new and updated skills, or update the ones you have:

npx skills update

Tools

The tools the MCP server offers, grouped by API.

Calendar Events

Content Overview

Data Catalogue (DCAT)

Organizational Information

Official Records from the Council of State

Consultations and Submissions – Published Responses

Skills

The skills available to install right now.

New and changed tools and skills are listed in the changelog.