Skip to main content
Glama

Bolig-MCP

MCP server that takes a Danish address and gathers public property data from official registers.

It does not use DAWA (dawa.aws.dk closes 1 October 2026). Address search goes through Adressevælgeren; register lookups go through Datafordeleren GraphQL.

Data about private people is never requested. See Privacy.

Install

Bolig-MCP is not on npm yet, so install it from source. You need Node.js 20 or newer and pnpm.

The easiest way: clone the repo, open it in Claude Code (or another coding agent) and ask it to set Bolig-MCP up. AGENTS.md walks it through every step, and you enter the keys yourself in your own terminal.

git clone https://github.com/flyngaa/boligmcp.git
cd boligmcp
pnpm install
pnpm build
node dist/index.js setup   # add your own keys, see below

Then point your MCP client at the built server, using the full path to your clone:

  • Claude Code:

    claude mcp add --scope user boligmcp -- node /path/to/boligmcp/dist/index.js
  • Claude Desktop, Cursor and other clients: add it to the client's MCP config, e.g. claude_desktop_config.json:

    { "mcpServers": { "boligmcp": { "command": "node", "args": ["/path/to/boligmcp/dist/index.js"] } } }

Restart the client and ask about a Danish address, e.g. "Lav en rapport om Egeskovvej 41, 8800 Viborg".

Once Bolig-MCP is published to npm, npx -y boligmcp replaces the clone and the path. The tools' messages already say npx -y boligmcp setup; from source, run node dist/index.js setup in your clone instead.

Credentials: bring your own

Bolig-MCP never ships with keys. Each user adds their own, outside the chat:

  • Any client: run once in a terminal, in your clone:

    node dist/index.js setup

    It asks for each key with hidden input, checks the Datafordeleren key against the API and saves it to ~/.config/boligmcp/credentials.json (mode 600). node dist/index.js setup --show shows what is set, masked.

  • Or set env vars in the client config. Env wins over the credentials file.

    claude mcp add --scope user boligmcp -e DATAFORDELER_API_KEY=<your key> -- node /path/to/boligmcp/dist/index.js
  • Claude Desktop (MCP bundle): npx -y @anthropic-ai/mcpb pack in your clone (after pnpm build) makes a .mcpb file. Installing it in Claude Desktop asks for the keys and masks them (see manifest.json).

When a key is missing, the tools say which source is affected and how to get access, and the server instructs the model never to ask for keys in the chat. A .env file is only read when BOLIGMCP_ENV_FILE points to it (used by pnpm dev). The cache lives in ~/.cache/boligmcp/ unless CACHE_PATH is set.

Related MCP server: mcp-dawa

Tools

Tool

When to use

search_address

Free-text Danish address → DAR ids

resolve_property

Address id → BFE, cadastral ids, coordinate

get_buildings

BBR buildings and units

get_parcel

Matrikel parcels for a BFE, including fredskov, strandbeskyttelse and klitfredning

get_valuation

Official VUR values and history

get_trades

Sale prices and dates from EJF (your own approved OAuth access; no names)

get_owners

Current owners: a company by CVR with its company data, a private person only as "privatperson" and a share (your own approved EJF access to CustomEjerskabBegraenset)

get_company

Public CVR data for a CVR number: name, status, form, address, industry, head count. Not a company's owners or management

get_admin_areas

Municipality, region, parish, court and police districts

get_plans

Local plans, subareas, frameworks with building rights, zone, plan proposals

get_site_conditions

Heat supply, sewer, flood/erosion, groundwater, noise, livestock, planned roads/facilities, heritage

get_environment

Soil contamination on the property vs nearby, coastal zone

get_heritage

SAVE value 1–9 and listed status (FBB)

get_terrain

Terrain height (DVR90), highest surface nearby, and whether the plot lies in a hollow

get_property_location

EBR location for a BFE: street address, or a text designation when there is no address

get_aerial_photo

Spring orthophoto and a cropped skråfoto facade (needs a Dataforsyningen token)

get_map

Photorealistic 3D view of the property, also included as property_report.map. Embed the localhost URL in an HTML report; do not fetch the page

get_nearby_services

Distance to nearest school, daycare, shop, doctor and sports hall (BBR)

get_local_statistics

Parish statistics and regional price index / average sale price

watch_property / check_watchlist / list_watchlist / unwatch_property

Watch properties and report what changed since the last check

get_energy_label

Energimærke (needs EMOData)

get_area_stats

Municipality statistics from DST

property_report

Combined report with investor flags (~4–8k tokens), including map for the 3D view

screen_properties

Up to 25 addresses side by side

list_sources

Which sources are configured

BBR labels come from the official Danish code lists (pnpm codes:update regenerates them). Plans and overlays are looked up at the main building's BBR coordinate, which lies inside the plot, not at the address point by the road.

Investor flags

property_report and screen_properties add flags, each with severity (high, medium, info), a Danish title and detail, and the sources behind it. They are signals for further checks, not advice. The building rights headroom is an estimate: it compares BBR floor area (basement and outbuildings excluded) with the framework's max plot ratio for the matching usage.

Every tool returns a SourceResult: either { status: "ok", source, fetchedAt, data } or { status: "unavailable", source, reason, detail }.

Access tiers

Tier

Meaning

Examples

T0

Open

Adressevælgeren, Plandata, Miljøportal, FBB, DST

T1

Free key

Datafordeleren GraphQL, Dataforsyningen

T2

Agreement

EMOData energy labels

T3 / X

Not built

Tingbog; private owner names

See docs/credentials.md for how to get each key.

Environment

Variable

Required for

DATAFORDELER_API_KEY

BFE chain, BBR, VUR, DAGI

DATAFORDELER_OAUTH_CLIENT_ID / _SECRET

Sale prices and owners from EJF, after Geodatastyrelsen approves your own request. Company owners by CVR; never names or CPR numbers of private people

ADRESSEVAELGER_TOKEN

Optional; defaults to adressevaelger123

EMODATA_USER / EMODATA_PASSWORD

Energy labels

DATAFORSYNINGEN_TOKEN

get_aerial_photo

GOOGLE_MAPS_API_KEY

get_map and property_report.map (Maps JavaScript API; allow http://127.0.0.1:47321/* if the key is website-restricted)

CACHE_PATH

SQLite cache file (default ~/.cache/boligmcp/cache.db)

BOLIGMCP_CREDENTIALS_FILE

Override the credentials file path

BOLIGMCP_ENV_FILE

Development only: load this .env file

Development

pnpm install
pnpm test
pnpm dev

After you have a Datafordeleren key:

pnpm smoke "Egeskovvej 41, 8800 Viborg"   # live property_report
pnpm live                                  # live regression suite (docs/test-plan.md); pnpm live resolve_property, pnpm live --group core
pnpm exec tsx scripts/probe-fields.ts BBR BBR_Bygning '{"id_lokalId":{"eq":"<id>"}}' byg057Opvarmningsmiddel

Introspection is disabled on Datafordeleren, so probe-fields.ts asks for one field at a time and reports which exist.

Data sources and licences

All data comes from public Danish registers, fetched live with your own access. Bolig-MCP does not store or redistribute a copy. Every result carries an attribution, and property_report and screen_properties list them in sources. The licences require crediting the source wherever its data is shown, so keep those credits in reports and files you build from the data.

Source

Owner

Licence

Terms

DAR (addresses), via Adressevælgeren and Datafordeleren

Klimadatastyrelsen

CC BY 4.0

Datafordeler

BBR

Bygnings- og Boligregistret

CC BY 4.0

Datafordeler

Matriklen, EBR

Geodatastyrelsen

CC BY 4.0

Datafordeler

Ejendomsvurdering (VUR)

Vurderingsstyrelsen

CC BY 4.0

Datafordeler

Ejerfortegnelsen (EJF), level 1

Geodatastyrelsen

CC BY 4.0

Datafordeler

CVR

Erhvervsstyrelsen

CC BY 4.0. Reklamebeskyttede companies must be marked and not used for direct marketing

Datafordeler

DAGI, Danmarks Højdemodel, GeoDanmark, orthophoto, skråfoto

Klimadatastyrelsen

CC BY 4.0

Datafordeler

Plandata.dk

Erhvervsstyrelsen

Open web services, no access constraints

Plandata.dk

Soil contamination (DKJord)

Danske Regioner, via Danmarks Miljøportal

CC0 1.0. Miljøportal's terms ask for the notice "Indeholder data, som benyttes i henhold til vilkår for brug af danske offentlige data"

Miljøportal

Fredede og bevaringsværdige bygninger (FBB)

Slots- og Kulturstyrelsen

Free use for most purposes

SLKS

Danmarks Statistik

Danmarks Statistik

Free with credit (equivalent to CC BY 4.0)

DST

Energy labels (EMOData)

Energistyrelsen

Your own EMOData agreement

Your agreement

3D map

Google Maps Platform

Your own key and Google's terms; Google's logo and credits stay on the map

Google

Never used: Tingbogen, and the EJF and CVR data about private people (see Privacy).

Privacy

Bolig-MCP is about properties, not people. It never reads the names, CPR numbers or other details of private people, not even to filter them out afterwards:

  • Owners: a company owner is shown by CVR number and company data. A private owner is only "privatperson" with a share. Owners come from EJFCustom_EjerskabBegraenset, the service private actors may be granted, never from EJF_Ejerskab, which carries CPR numbers.

  • CVR: people in CVR (CVRPerson) are confidential. A company's fully liable participants are shown when they are companies; people are only counted.

  • Sale prices: dates and prices, never the names of buyers or sellers.

This is enforced in code, not only by convention. Every Datafordeleren query goes through one function that refuses person entities and CPR fields before anything is sent (assertNoPersonData in client.ts), and tests/privacy.test.ts guards it. The server also tells the agent never to try to identify a private owner by other means. Contributors and their coding agents follow the same rules: see AGENTS.md.

Licence

MIT, for the code. The data keeps the licences above.

Available Tools

13 tools
get_admin_areasB

Get municipality, region, parish, court and police districts for an address.

Inputs: addressId (required).

get_area_statsB

Get municipality-level population, income and dwelling statistics from Danmarks Statistik.

Inputs: addressId (required).

get_buildingsB

Get BBR buildings and units for a BFE or address-id.

Inputs: bfe, addressId.

get_energy_labelC

Get the official energy label (energimærke) when EMOData credentials are configured.

Inputs: query, addressId.

get_environmentB

Get soil contamination, §3 nature, conservation and coastal/forest protection overlays at the address.

Inputs: addressId (required).

get_parcelA

Get cadastral parcels (matrikel) for a BFE number.

Inputs: bfe (required).

get_plansC

Get local plans, municipal plan frameworks and zone status from Plandata.dk at the address coordinate.

Inputs: addressId (required).

get_tradesC

Get non-protected ownership type and recorded trade prices (EJF). Never returns private owner names.

Inputs: bfe (required).

get_valuationB

Get official property and land valuation (VUR) for a BFE, including history.

Inputs: bfe (required).

list_sourcesA

List official Danish property data sources, their access tier, and whether credentials are configured.

Inputs: no named parameters.

property_reportA

Build a compact combined report for a Danish address. Calls all sources in parallel and marks missing ones.

Inputs: query, addressId.

resolve_propertyC

Resolve a Danish address to DAR IDs, coordinates, cadastral IDs and BFE. Requires Datafordeleren for BFE.

Inputs: query, addressId.

search_addressB

Search Danish addresses by free text using Adressevælgeren (DAWA replacement). Use before any property lookup.

Inputs: query (required), limit.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 13 tools

    Disambiguation5/5

    Each tool targets a distinct data source or action: search_address finds addresses, resolve_property converts them to IDs, and get_* tools each pull a specific type of property data (buildings, parcels, valuation, trades, etc.). property_report aggregates them without overlapping. No two tools have ambiguous boundaries.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern using snake_case, e.g., list_sources, search_address, get_buildings, property_report. The verbs vary appropriately (list, search, resolve, get, build) but the structure is uniform and highly predictable.

    Tool Count5/5

    With 13 tools, the set is well-scoped for a Danish property data server. Each tool covers a distinct aspect of property information, from address lookup to energy labels and area statistics, without unnecessary redundancy or overwhelming breadth.

    Completeness5/5

    The tool surface covers the complete lifecycle of property data queries: address search, ID resolution, buildings, parcels, valuation, trades, administrative areas, plans, environment, energy, and statistics. The property_report tool even aggregates all sources, ensuring no dead ends or missing operations for the stated purpose.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      MCP server for Nordic company registries. Verify companies, check board members, signing authority, and financial data across Norway, Denmark, Finland, and Sweden using official public APIs. 23 tools covering search, details, roles, and batch lookups.
      19
      14
      Apache 2.0
    • F
      license
      Not graded
      quality
      D
      maintenance
      MCP server for the Danish Address Web API (DAWA), enabling free-text address search, house number search, and detailed address lookup by ID.
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables querying the Danish Central Business Register (CVR) for company data through an MCP server.
      5 npm
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to query the Swiss Federal Register of Buildings and Dwellings (GWR/RegBL) — including building lookups, address geocoding, construction statistics, and housing pipeline analysis — through MCP tools.
      9
      1
      MIT