boligmcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@boligmcp Fetch property info for Skindergade 7, 1159 København K."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 belowThen 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.jsClaude 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 setupIt 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 --showshows 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.jsClaude Desktop (MCP bundle):
npx -y @anthropic-ai/mcpb packin your clone (afterpnpm build) makes a.mcpbfile. Installing it in Claude Desktop asks for the keys and masks them (seemanifest.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 |
| Free-text Danish address → DAR ids |
| Address id → BFE, cadastral ids, coordinate |
| BBR buildings and units |
| Matrikel parcels for a BFE, including fredskov, strandbeskyttelse and klitfredning |
| Official VUR values and history |
| Sale prices and dates from EJF (your own approved OAuth access; no names) |
| 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 |
| Public CVR data for a CVR number: name, status, form, address, industry, head count. Not a company's owners or management |
| Municipality, region, parish, court and police districts |
| Local plans, subareas, frameworks with building rights, zone, plan proposals |
| Heat supply, sewer, flood/erosion, groundwater, noise, livestock, planned roads/facilities, heritage |
| Soil contamination on the property vs nearby, coastal zone |
| SAVE value 1–9 and listed status (FBB) |
| Terrain height (DVR90), highest surface nearby, and whether the plot lies in a hollow |
| EBR location for a BFE: street address, or a text designation when there is no address |
| Spring orthophoto and a cropped skråfoto facade (needs a Dataforsyningen token) |
| Photorealistic 3D view of the property, also included as |
| Distance to nearest school, daycare, shop, doctor and sports hall (BBR) |
| Parish statistics and regional price index / average sale price |
| Watch properties and report what changed since the last check |
| Energimærke (needs EMOData) |
| Municipality statistics from DST |
| Combined report with investor flags (~4–8k tokens), including |
| Up to 25 addresses side by side |
| 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 |
| BFE chain, BBR, VUR, DAGI |
| Sale prices and owners from EJF, after Geodatastyrelsen approves your own request. Company owners by CVR; never names or CPR numbers of private people |
| Optional; defaults to |
| Energy labels |
|
|
|
|
| SQLite cache file (default |
| Override the credentials file path |
| Development only: load this |
Development
pnpm install
pnpm test
pnpm devAfter 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>"}}' byg057OpvarmningsmiddelIntrospection 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 | |
BBR | Bygnings- og Boligregistret | CC BY 4.0 | |
Matriklen, EBR | Geodatastyrelsen | CC BY 4.0 | |
Ejendomsvurdering (VUR) | Vurderingsstyrelsen | CC BY 4.0 | |
Ejerfortegnelsen (EJF), level 1 | Geodatastyrelsen | CC BY 4.0 | |
CVR | Erhvervsstyrelsen | CC BY 4.0. Reklamebeskyttede companies must be marked and not used for direct marketing | |
DAGI, Danmarks Højdemodel, GeoDanmark, orthophoto, skråfoto | Klimadatastyrelsen | CC BY 4.0 | |
Plandata.dk | Erhvervsstyrelsen | Open web services, no access constraints | |
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" | |
Fredede og bevaringsværdige bygninger (FBB) | Slots- og Kulturstyrelsen | Free use for most purposes | |
Danmarks Statistik | Danmarks Statistik | Free with credit (equivalent to CC BY 4.0) | |
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 |
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 fromEJF_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 toolsget_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
Scored across 13 tools
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.
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.
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.
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
Related MCP Connectors
Danish address & property lookup: BBR, Matriklen, DAR, CVR. A DAWA/Datafordeler-compatible source.
Property Records MCP — address-level US property records (sales history, assessed value, owner…
Norwegian property, company, land register and zoning plan data. Requires a Placepoint licence.
Market-value estimates, comparable sales and property tax for Danish homes, from public registers.
Related MCP Servers
- AlicenseAqualityBmaintenanceMCP 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.1914Apache 2.0
- FlicenseNot gradedqualityDmaintenanceMCP server for the Danish Address Web API (DAWA), enabling free-text address search, house number search, and detailed address lookup by ID.-
- AlicenseNot gradedqualityCmaintenanceEnables querying the Danish Central Business Register (CVR) for company data through an MCP server.5 npmMIT
- AlicenseAqualityBmaintenanceEnables 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.91MIT