Hemnet MCP

An MCP server for hemnet.se,
Sweden's largest real-estate portal. Search for-sale listings, look up
sold prices (slutpriser), pull full listing detail and photos, compute
market statistics, resolve addresses, and run a Swedish mortgage
calculation — all from Claude.
⚠️ This project is built and maintained by AI (Claude). It reads
hemnet.se through its public GraphQL API. Use at your own discretion
and within hemnet.se's terms of service.
Highlights
- No configuration. Hemnet serves its read queries anonymously — no
login, no API key.
npx hemnet-mcp just works (a browser extension is
only needed if Hemnet serves a Cloudflare challenge — see below).
- Sold prices (slutpriser). Hemnet's signature dataset: achieved
final price, asking price, and over/under-asking percentage — the comps
an agent needs to value a home.
- Swedish-native. Money in SEK, areas in m², rooms,
bostadsrätt
fees (avgift), energy class, and a mortgage model that follows Swedish
rules (amorteringskrav, ränteavdrag).
- Embeddable. Ships as a standalone MCP server and as a library so
it can be composed into a larger multi-portal server.
Install
Claude Code / Claude Desktop (npx)
{
"mcpServers": {
"hemnet": {
"command": "npx",
"args": ["-y", "hemnet-mcp"]
}
}
}
If Hemnet serves a Cloudflare challenge
Hemnet sometimes fronts its GraphQL API with a Cloudflare bot challenge.
When that happens the server switches (under the default
HEMNET_TRANSPORT=auto) to a browser bridge that sends the same anonymous
queries from a www.hemnet.se tab in your own browser — no Hemnet login
needed. That needs the ContextMint Bridge extension, installed from
its releases:
in Chrome, unzip the chrome zip and load it unpacked, then approve the
pairing prompt the first time. Safari isn't available yet (it will ship
inside the ContextMint app, which has no public download), so use Chrome
for now.
ContextMint Bridge is the fetchproxy browser extension under its new name,
from the same maintainer — fetchproxy's own README
(https://github.com/chrischall/fetchproxy#extension) points to it. Its source
is public at https://github.com/nullnet-app/contextmint-bridge: build it
yourself, or check a release zip against the .sha256 file published beside
it (shasum -a 256 -c contextmint-bridge-chrome-<version>.zip.sha256).
From source
git clone https://github.com/chrischall/hemnet-mcp
cd hemnet-mcp
npm install
npm run build
node dist/index.js
Tools
| Tool | What it does |
|---|
hemnet_autocomplete_location | Resolve a place name ("Vasastan") to Hemnet location ids — the starting point for search. |
hemnet_search_listings | Search active for-sale listings by location + filters (price SEK, rooms, m², property type, keywords). |
hemnet_get_listing | Full detail for one listing (price, fee, running costs, m², rooms, tenure, energy class, broker, description, photos). |
hemnet_get_listing_photos | Just the gallery photo URLs. |
hemnet_search_sold | Search sold listings with final price, asking price, and over/under-asking %. |
hemnet_get_sold_listing | Full detail for one sold listing. |
hemnet_get_market_stats | Median/average final price and price-per-m² for a location, over the most recent max_sales sales (default 200). |
hemnet_compare_listings | Fetch several listings at once for side-by-side comparison. |
hemnet_get_by_address | Resolve a free-text street address to a live listing. |
hemnet_calculate_mortgage | Local Swedish monthly-cost calculator (interest + amortisation + fee, gross & after-tax). No network. |
hemnet_healthcheck | Verify the Hemnet GraphQL endpoint is reachable. Reports which transport served the probe (transport: direct fetch or the browser bridge, plus the configured HEMNET_TRANSPORT), the bridge's role/port/extension-link state (bridge, once a bridge exists), a classified error.kind (e.g. cloudflare_challenge, session_not_ready) and a next-step hint. |
Example flow