hemnet-mcp MCP Server
Hemnet.se real estate for Claude: search, sold prices, listings & market stats
hemnet-mcp scores 71 (Good), licensed MIT and written in TypeScript. It installs as a local process. It declares 11 tools. Filed under Search. GitHub shows 1 stars. Package registries report about 269 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
71 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade A
90/100 for listing completeness. Lost points: short summary, no docs link.
How quality is graded
Where the 71 comes from
22 + 20 + 5 + 10 + 4 + 10 = 71. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 5 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "chrischall-hemnet-mcp": { "command": "npx", "args": [ "-y", "hemnet-mcp@1.2.0" ], "env": { "HEMNET_TRANSPORT": "", "HEMNET_WS_PORT": "", "FETCHPROXY_WS_HOST": "", "FETCHPROXY_IDENTITY_DIR": "" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
HEMNET_TRANSPORT | Optional | Transport mode: `auto` (default) tries a direct anonymous fetch and switches to the ContextMint Bridge browser bridge when Hemnet serves a Cloudflare challenge; `direct` fails hard when walled; `fetchproxy` always uses the bridge. |
HEMNET_WS_PORT | Optional | Localhost port of the fetchproxy concentrator the ContextMint Bridge extension connects to (default 37149). Every MCP on one machine shares it, so move it for all of them or not at all. |
FETCHPROXY_WS_HOST | Optional | Bind interface for the fetchproxy concentrator, a literal IP only (default 127.0.0.1). Keep on loopback; it exists for hosted deployments that run each MCP in its own network namespace. |
FETCHPROXY_IDENTITY_DIR | Optional | Absolute path where the fetchproxy long-term identity keypair is stored (default ~/.fetchproxy/identity/). |
Tools11Tool docs quality grade C
All capabilitiesResolve a place name ("Vasastan") to Hemnet location ids — the starting point for search.
Local Swedish monthly-cost calculator (interest + amortisation + fee, gross & after-tax). No network.
Fetch several listings at once for side-by-side comparison.
Resolve a free-text street address to a live listing.
Full detail for one listing (price, fee, running costs, m², rooms, tenure, energy class, broker, description, photos).
Just the gallery photo URLs.
Median/average final price and price-per-m² for a location, over the most recent maxsales sales (default 200).
Full detail for one sold listing.
Verify the Hemnet GraphQL endpoint is reachable. Reports which transport served the probe (transport: direct fetch or the browser bridge, plus the configured HEMNETTRANSPORT), the bridge's role/port/extension-link state (bridge, once a brid
Search active for-sale listings by location + filters (price SEK, rooms, m², property type, keywords).
Search sold listings with final price, asking price, and over/under-asking %.
About
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-mcpjust 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ättfees (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
1. hemnet_autocomplete_location { query: "Vasastan" }
→ location_id 925970
2. hemnet_search_listings { location_ids: ["925970"], rooms_min: 2, price_max: 6000000 }
→ listing summaries
3. hemnet_get_market_stats { location_ids: ["925970"], housing_form_groups: ["APARTMENTS"] }
→ median final price, price-per-m²
4. hemnet_calculate_mortgage { price: 4695000, interest_rate: 3.9, monthly_fee: 2800 }
→ monthly cost, gross and after-tax
Or pass a free-text location to any search tool and it resolves the top
hit for you.
Money & units
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.
Library use
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):
import { createHemnetClient, computeMarketStats } from 'hemnet-mcp';
const hemnet = createHemnetClient();
const { cards } = await hemnet.searchSales({ locationIds: ['925970'] }, { limit: 50 });
const stats = computeMarketStats(cards.map(formatSaleCard));
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).
Development
npm test # vitest (mocked transport, no network)
npm run test:coverage # 100% coverage enforced on src/**
npm run typecheck
npm run build
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.
License
MIT
Frequently asked questions
What is hemnet-mcp MCP Server?
Hemnet.se real estate for Claude: search, sold prices, listings & market stats
How do I install hemnet-mcp MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. hemnet-mcp MCP Server runs locally from the npm package hemnet-mcp with the command npx -y hemnet-mcp@1.2.0.
Is hemnet-mcp MCP Server free and open source?
Yes. hemnet-mcp MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does hemnet-mcp MCP Server support remote (HTTP) connections?
No remote endpoint is listed for hemnet-mcp MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does hemnet-mcp MCP Server provide?
hemnet-mcp MCP Server provides 11 tools, including hemnet_autocomplete_location, hemnet_calculate_mortgage, hemnet_compare_listings, and hemnet_get_by_address. See the full tool list for descriptions and parameters.
How is hemnet-mcp MCP Server's trust score calculated?
hemnet-mcp MCP Server scores 71 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.