Quickstart

Danish public data in n8n

Point n8n's MCP nodes at Datavej and your workflows can look up addresses, buildings, valuations, companies, energy prices and more: 38 tools on official Danish registers. Connect in a few minutes, then import a template.

Before you start

  • A Datavej account. Sign up for free; no card needed.
  • n8n Cloud or a self-hosted n8n recent enough to have the MCP Client and MCP Client Tool nodes.
  • For the two AI templates: a chat-model credential, such as OpenAI. The lead-list template needs no model.

Connect Datavej

Pick one of the two ways in. The server URL is the same:

MCP server URL
https://datavej.dk/mcp

API key

Fastest. Best for server-side workflows and for one key per client.

  1. Create an API key in your dashboard. It starts with dv_live_ and is shown once.
  2. Add an MCP Client Tool node to an AI Agent, or an MCP Client node to call one tool directly. Set the endpoint to the URL above and the transport to HTTP Streamable.
  3. Set Authentication to Bearer Auth and create a credential with the key as the token. With Header Auth instead, use the name Authorization and the value Bearer dv_live_….

Sign in with OAuth

No key to copy: you sign in to Datavej and approve the connection.

  1. In the MCP node, set Authentication to MCP OAuth2 and create a new credential with the server URL above.
  2. Keep dynamic client registration on. n8n registers itself with its OAuth callback URL, shown in the credential; Datavej accepts it.
  3. Click Connect my account, sign in to Datavej and approve. Calls count against the account you signed in with.
Callback URL
# n8n Cloud
https://your-workspace.app.n8n.cloud/rest/oauth2-credential/callback
# Self-hosted
http://localhost:5678/rest/oauth2-credential/callback

Datavej accepts any https callback URL, and plain http only on localhost. A self-hosted instance on another plain-http address needs https, or an API key.

Templates

Download a workflow, then in n8n open a new workflow and choose ⋯ → Import from File (or paste the JSON onto the canvas). Pick your credentials on the nodes marked with a warning, and you're done.

Property brief for an address

An AI agent looks up the address, the buildings in BBR, the public valuation, planning rules, protected areas and soil contamination, and writes a short brief with sources.

Tools address_searchbuilding_infoproperty_valuationplanning_rulesprotected_areassoil_contamination

Try
Write a property brief for Prins Jørgens Gård 1, 1218 København K
Download template

B2B lead list from CVR

Searches CVR by industry and kommune, leaves out companies that opted out of direct marketing (reklamebeskyttelse), and returns up to 25 companies as CSV.

Tools company_search

Try
industry: tømrer, kommune: Aarhus, min_employees: 5
Download template

Electricity-cost assistant

Answers questions such as when power is cheapest, using spot prices, the grid company's tariffs and CO₂ data for DK1 or DK2.

Tools electricity_priceselectricity_tariffselectricity_co2place_lookup

Try
When is electricity cheapest in Copenhagen tomorrow, with Radius tariffs?
Download template

If something doesn't work

  • 401 Unauthorized: the key is missing, revoked or sent without Bearer in front. Check it in your dashboard.
  • No tools listed: check that the transport is HTTP Streamable and the URL ends in /mcp.
  • Out of credits: property, planning and company-search tools use monthly premium credits, and the error says when they reset. See pricing.

Building for clients?

Agencies and freelancers may build, run and sell solutions for their clients on Datavej. Use one API key per client to see each client's calls in the dashboard, and keep the source credits with the data. Read the terms.

Using Make instead? See the n8n quickstart.