Skip to main content

Model Context Protocol (MCP) server for the Homedata UK property data API - 29M UK addresses, EPC, planning, flood risk, demographics and more.

Project description

Homedata MCP Server

A Model Context Protocol server that exposes the Homedata UK property data API as native tools for AI coding assistants - Claude Desktop, Claude Code, Cursor, and any other MCP client.

29M UK addresses keyed by UPRN, with EPCs, sale history, planning, flood risk, council tax, demographics, crime, schools, broadband and transport - all queryable directly from your assistant chat.

Data is sourced from Home.co.uk's 30-year panel of partners, the Environment Agency, ONS Census 2021, the Valuation Office Agency, Ofcom, Ofsted, data.police.uk and HM Land Registry.


Install

Requires Python 3.10+.

pip install homedata-mcp

For local development from this repository:

git clone https://github.com/wehomemove/homedata-mcp.git
cd homedata-mcp
pip install -e .

You will need a Homedata API key. Sign up at homedata.co.uk/developer - the Free tier gives 100 calls / month with no card required.

export HOMEDATA_API_KEY=hd_live_xxx
homedata-mcp --help

Wire it into Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "homedata": {
      "command": "homedata-mcp",
      "env": {
        "HOMEDATA_API_KEY": "your_api_key_here"
      }
    }
  }
}

Restart Claude Desktop. You should see the 16 Homedata tools appear in the tool picker.

Cursor / Claude Code

Both Cursor and Claude Code accept the same MCP server spec. Add an entry pointing command at homedata-mcp and put your key in env.


Tools

All UPRN tools take a single 12-digit Unique Property Reference Number; all postcode tools accept any common UK postcode format.

# Tool Endpoint Inputs
1 lookup_property GET /api/properties/{uprn}/ uprn
2 lookup_epc GET /api/epc-checker/{uprn}/ uprn
3 lookup_flood_risk GET /api/flood-risk/?uprn= uprn
4 lookup_council_tax GET /api/council_tax_band/?uprn= uprn
5 search_property_listings GET /api/property_listings/?uprn= uprn
6 get_comparables GET /api/comparables/?uprn=&radius_m= uprn, radius_m (default 500)
7 get_planning_applications GET /api/planning/search/?uprn= uprn
8 get_demographics GET /api/demographics/?postcode= postcode
9 get_crime GET /api/crime/?postcode= postcode, date (YYYY-MM, optional)
10 get_schools GET /api/schools/?uprn=&radius_m= uprn, radius_m (default 1000)
11 get_broadband GET /api/broadband/?postcode= postcode
12 get_transport GET /api/transport/?uprn=&radius_m= uprn, radius_m (default 800)
13 get_postcode_profile GET /api/postcode-profile/?postcode= postcode
14 search_address GET /api/address/find/?q= query, postcode (optional)
15 get_property_sales GET /api/property_sales/?uprn= uprn
16 batch_property_lookup POST /api/property/batch/ uprns (list, max 50)

Typical workflow

  1. Resolve text → UPRN with search_address.
  2. Look up the property: lookup_property, lookup_epc, lookup_council_tax, lookup_flood_risk.
  3. Add market context: search_property_listings, get_property_sales, get_comparables.
  4. Add area context: get_postcode_profile (cheap one-shot), or call get_demographics / get_crime / get_schools / get_broadband / get_transport individually.

Configuration

Variable Required Default Notes
HOMEDATA_API_KEY yes - Your Homedata API key (Authorization: Api-Key ...).
HOMEDATA_BASE_URL no https://api.homedata.co.uk Override for staging or self-hosted.

Every tool returns either the parsed JSON body from the API, or {"error": "...", "status_code": N, "detail": ...} on failure - tools never raise exceptions out into the MCP protocol layer.


Pricing

Calls made via this MCP server count against your Homedata API plan exactly the same as any other API call. Plans (as of writing):

Plan Price Calls / month
Free £0 100
Starter £49 2,000
Growth £149 10,000
Pro £349 50,000
Scale £699 250,000

See homedata.co.uk/pricing for the current list.


Development

pip install -e ".[dev]"
HOMEDATA_API_KEY=hd_live_xxx pytest -v

Tests are skipped automatically when no API key is present, so the suite is safe to run in CI without secrets.

Project layout

homedata-mcp/
  pyproject.toml
  README.md
  homedata_mcp/
    __init__.py
    server.py           # FastMCP server + CLI entry point
    client.py           # httpx wrapper with auth + uniform error handling
    tools/
      __init__.py
      property.py       # lookup_property, batch_property_lookup
      epc.py            # lookup_epc
      risk.py           # lookup_flood_risk, lookup_council_tax
      listings.py       # search_property_listings, get_property_sales, get_comparables
      planning.py       # get_planning_applications
      local.py          # get_demographics, get_crime, get_schools, get_broadband, get_transport
      address.py        # search_address
      profile.py        # get_postcode_profile
  tests/
    test_tools.py

License

MIT - see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

homedata_mcp-0.1.0.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

homedata_mcp-0.1.0-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file homedata_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: homedata_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for homedata_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 df3ebd1033392d39931300f75f747475cf3e496e5fa985c56b4f8bdd538348e5
MD5 3e28764bbdfe42a2064a09fdb1cf29c5
BLAKE2b-256 92916ef691f996e7d1d82348b3757dd1b60db25f9607722e48f335a53989b57d

See more details on using hashes here.

Provenance

The following attestation bundles were made for homedata_mcp-0.1.0.tar.gz:

Publisher: release-homedata-mcp.yml on wehomemove/loki

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file homedata_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: homedata_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for homedata_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1c73eae9effbf8ae442dd89b372c4ac8721eeb9195e8ec8d61f3f3ce943b4a76
MD5 a30a32f426ab9f6b4e5d720b24687773
BLAKE2b-256 6e494a3351f608fb2aab1f504ee3762bb0f12b49b15aaff3f45a0f382789c185

See more details on using hashes here.

Provenance

The following attestation bundles were made for homedata_mcp-0.1.0-py3-none-any.whl:

Publisher: release-homedata-mcp.yml on wehomemove/loki

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page