The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Hemnet MCP listing page.
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.
npx hemnet-mcp just works.bostadsrätt
fees (avgift), energy class, and a mortgage model that follows Swedish
rules (amorteringskrav, ränteavdrag).| 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. |
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. |
Or pass a free-text location to any search tool and it resolves the top
hit for you.
All output records use numbers: price / final_price /
fee_monthly in SEK, living_area_sqm / land_area_sqm in m², rooms
as a number. A derived price_per_sqm is always included when price and
living area allow it (even when Hemnet omits it, common on houses). The
original Hemnet-formatted strings are kept alongside as *_formatted.
hemnet-mcp is also importable, so it can serve as a Hemnet portal source inside a larger project (e.g. a cross-portal realty orchestrator):
The library entry (import … from 'hemnet-mcp') re-exports the client,
the normalised record types, the pure derivations
(computeMarketStats, calculateSwedishMortgage, money/url helpers),
and every tool registrar (registerHemnetTools(server, client) to graft
the tools onto your own MCP server).
Tests drive every tool and the client through an in-memory fake
transport — no live hemnet.se calls. See CLAUDE.md for architecture,
the GraphQL quirks, and contribution conventions.
MIT