Skip to main content
Glama

Property Shared

property-shared MCP server

UK-Immobiliendaten in einem Paket. Ruft Land Registry-Verkäufe, EPC-Zertifikate, Rightmove-Listings, Mietrenditen, Stempelsteuerberechnungen, Planungsportal-Links und Companies House-Aufzeichnungen ab.

Verwenden Sie es als Python-Bibliothek, CLI, HTTP-API oder MCP-Server.

Was Sie erhalten

Datenquelle

Was zurückgegeben wird

Land Registry PPD

Verkaufspreise, Daten, Immobilientypen, Gebietsvergleiche mit Median/Perzentilen

EPC (GOV.UK)

Energieeffizienzklassen, Wohnfläche, Heizkosten. Nur England & Wales. Zertifikatssuche und Zusammenfassungssuche – siehe EPC-Hinweise unten

Rightmove

Aktuelle Listings (Kauf + Miete), Preise, Makler, Listungsdetails

Yield Analysis

Bruttorendite aus PPD-Verkäufen + Rightmove-Mieten kombiniert

Stamp Duty

SDLT-Berechnung mit April-2025-Bändern, BTL-Zuschlag, FTB-Erleichterung

Block Analyzer

Gruppiert Wohnungsverkäufe nach Gebäude, um Investorenausstiege zu erkennen

Planning

Suche im Planungsportal des örtlichen Rats (99 verifizierte Räte, nur stdio)

Companies House

Unternehmenssuche und -abfrage nach Name oder Nummer

Related MCP server: UK Due Diligence

Fähigkeiten & Plugins

Property- und Legal-Pakete folgen in Kürze. Bitte kontaktieren Sie uns, wenn Sie praktische Erfahrung oder Expertenwissen in UK-Immobilieninvestitionen, UK-Immobilienmaklern, Immobilien und Grundstücksübertragung haben und mithelfen möchten, dies zu gestalten. paul@bouch.dev

Verwendung als MCP-Server

Keine Installation erforderlich – fügen Sie die URL in Ihre MCP-Client-Konfiguration ein und los geht's.

Claude Code, Cursor, jeder MCP-Client:

{
  "mcpServers": {
    "property-shared": {
      "type": "http",
      "url": "https://property-shared.fly.dev/mcp"
    }
  }
}

Installation

pip install property-shared

# or with uv
uv add property-shared

Extras: [cli] für CLI, [api] für HTTP-Server, [dev] für Tests.

pip install property-shared[cli]
# or
uv add property-shared --extra cli

Verwendung als Python-Bibliothek

from property_core import PPDService, calculate_yield, calculate_stamp_duty

# Get comparable sales for a postcode
comps = PPDService().comps("SW1A 1AA", months=24, property_type="F")
print(f"Median flat price: {comps.median:,}")

# Calculate rental yield
import asyncio
result = asyncio.run(calculate_yield("NG1 1AA", property_type="F"))
print(f"Gross yield: {result.gross_yield_pct}%")

# Stamp duty
sdlt = calculate_stamp_duty(250000, additional_property=True)
print(f"SDLT: {sdlt.total_sdlt:,.0f} ({sdlt.effective_rate}%)")

Alle Modelle sind auf oberster Ebene verfügbar:

from property_core import (
    PPDTransaction, PPDCompsResponse, EPCData,
    RightmoveListing, RightmoveListingDetail,
    PropertyReport, YieldAnalysis, RentalAnalysis,
    BlockAnalysisResponse, CompanyRecord, StampDutyResult,
)

Interpretationshilfen (der Kern liefert Zahlen, Sie entscheiden, wie Sie sie beschriften):

from property_core import classify_yield, classify_data_quality, generate_insights

Verwendung als CLI

pip install property-shared[cli]  # or: uv add property-shared --extra cli

# Comparable sales
property-cli ppd comps "SW1A 1AA" --months 24 --property-type F

# Rental yield
property-cli analysis yield "NG1 1AA" --property-type F

# Stamp duty
property-cli calc stamp-duty 300000

# Rightmove search (with sort)
property-cli rightmove search-url "NG1 1AA" --sort-by most_reduced

# Full property report
property-cli report generate "10 Downing Street, SW1A 2AA" --property-type F

Fügen Sie --api-url http://localhost:8000 zu jedem Befehl hinzu, um über die HTTP-API statt direkt über den Kern zu routen.

Verwendung als HTTP-API

pip install property-shared[api]  # or: uv add property-shared --extra api
property-api  # starts on port 8000

Interaktive Dokumentation unter http://localhost:8000/docs.

Wichtige Endpunkte:

  • GET /v1/ppd/comps?postcode=SW1A+1AA&property_type=F&enrich_epc=true

  • GET /v1/analysis/yield?postcode=NG1+1AA&property_type=F

  • GET /v1/analysis/rental?postcode=NG1+1AA&purchase_price=200000

  • GET /v1/rightmove/search-url?postcode=NG1+1AA&sort_by=newest

  • GET /v1/calculators/stamp-duty?price=300000&additional_property=true

  • POST /v1/property/report mit { "address": "10 Downing Street, SW1A 2AA" }

Vollständige Endpunktliste in USER_GUIDE.md.

EPC-Hinweise (v1.14.0)

Der EPC-Dienst ist auf eine GOV.UK-Bearer-API umgestellt. Setzen Sie EPC_API_TOKEN; das alte Paar EPC_API_EMAIL/EPC_API_KEY authentifizierte sich gegen einen eingestellten Host und ist kein unterstützter Fallback.

Was das neue Upstream unterstützt und was nicht:

  • Zertifikatssuche nach Zertifikatsnummer – vollständige Details, eine Anfrage.

  • Zusammenfassungssuche nach Postleitzahl – liefert Adresse, UPRN (oft fehlend), Energieeffizienzklasse, Registrierungsdatum und Schematyp. Sie liefert nicht den Energieverbrauchswert, die Wohnfläche oder den Immobilientyp; diese existieren nur in einem vollständigen Zertifikat.

  • Eine Postleitzahl wählt ein Gebiet, niemals eine Immobilie. Um eine einzelne Immobilie zu identifizieren, benötigt man eine UPRN oder eine Adresse, die exakt mit einem Zertifikat übereinstimmt (abgesehen von Groß-/Kleinschreibung, Interpunktion und einem führenden Flat/Apartment-Kennzeichen). Alles weniger – keine Adresse, keine Übereinstimmung oder mehrere Übereinstimmungen – wird abgelehnt, anstatt auf eine beste Vermutung aufgelöst zu werden. Siehe USER_GUIDE.md für die CLI- und REST-Oberflächen.

  • Gebietsstatistiken sind auf die Anzahl der Datensätze beschränkt und, wenn die begrenzte Antwort alle passenden Zusammenfassungen enthält, auf die Verteilung der Bewertungen. Die Aufschlüsselung nach Immobilientyp und Wohnflächenstatistiken werden als None gemeldet – nicht verfügbar, nicht null –, weil deren Erstellung eine Anfrage pro Zertifikat bedeuten würde.

  • Die Abdeckung umfasst England und Wales. Schottland, Nordirland und die Kanalinseln liefern „keine Zertifikate gefunden“: eine Abdeckungsgrenze, keine Aussage über eine Immobilie.

  • Die Paginierung ist keine stabile Momentaufnahme. Antworten enthalten complete, duplicates_removed und unusable_rows; keine Operation beansprucht eine vollständige Erfassung eines Gebiets.

  • Mehrdeutige Adressübereinstimmungen werden abgelehnt, anstatt auf ein beliebiges benachbartes Zertifikat aufgelöst zu werden.

search_all_by_postcode() wird nicht unterstützt – verwenden Sie search_summaries() zur Kandidatensuche und dann get_certificate() für das benötigte Zertifikat.

Umgebungsvariablen

Erstellen Sie eine .env-Datei im Repository-Stammverzeichnis (sie ist gitignored) mit den benötigten Variablen.

Lassen Sie optionale Variablen vollständig weg, anstatt sie leer zuzuweisen. KEY= setzt einen leeren String, was nicht dasselbe ist wie nicht gesetzt: os.getenv("KEY", "default") gibt "" zurück, sodass der Standardwert nie greift. Das hat die EPC-Live-Tests gebissen, die eine leere Postleitzahl an das Upstream gesendet haben.

Wichtige Variablen:

Variable

Erforderlich für

Beschreibung

EPC_API_TOKEN

EPC-Abfragen

Bearer-Token von GOV.UK EPC data

EPC_API_EMAIL

(veraltet)

Eingestellter Dienst; wird nur geparst, um einen Konfigurationsfehler auszulösen

EPC_API_KEY

(veraltet)

Eingestellter Dienst; kein unterstützter Fallback

COMPANIES_HOUSE_API_KEY

Unternehmenssuche

Kostenloser Schlüssel von Companies House

RIGHTMOVE_DELAY_SECONDS

Nein (Standard 0,6s)

Verzögerung zur Ratenbegrenzung für Rightmove-Scraping

OPENAI_API_KEY

Planungs-Scraper

Visiongesteuerter Planungsportal-Scraper

Land Registry PPD und Rightmove funktionieren ohne Anmeldeinformationen.

Entwicklung

# Install with dev extras
uv sync --extra dev

# Run API with reload
uv run uvicorn app.main:app --reload

# Run tests (mocked, no network)
uv run --extra dev pytest -v

# Run live integration tests (real network calls)
RUN_LIVE_TESTS=1 uv run --extra dev pytest -v

Bereitgestellt unter https://property-shared.fly.dev mit API-Dokumentation unter /docs und MCP-Endpunkt unter /mcp.

Available Tools

13 tools
company_profileAInspect

Get the full Companies House record for a company by number.

Returns registered address, status, incorporation date, officers, and filing history. Use company_search to find a company number by name.

Inputs: company_number (required).

ppd_transactionsAInspect

Search Land Registry transactions by postcode, address, date range, or price.

Use for specific property history ("what has 10 Downing Street sold for?") or filtered market queries ("all sales over 500k in SW1 last year").

Inputs: postcode, street, town, paon, +6 more.

property_blocksBInspect

Find buildings with multiple flat sales — block buying opportunities.

Groups Land Registry transactions by building to identify blocks being sold off, investor exits, and bulk-buy opportunities.

Inputs: postcode (required), months, min_transactions.

property_compsBInspect

Comparable property sales from Land Registry Price Paid Data.

Auto-escalates to wider search area if fewer than 5 results found. EPC enrichment adds floor area, price/sqft, and EPC rating to each comp, plus area-level median price/sqft and EPC match rate.

Inputs: postcode (required), months, limit, search_level, +4 more.

property_epcAInspect

EPC certificate data for a UK property or postcode area.

With address: returns the matched certificate for that property — energy rating, score, floor area, construction age, heating costs.

Without address: returns all certificates at the postcode with area-level aggregation (rating distribution, floor area range, property type breakdown). Use this for area analysis rather than a single-property lookup.

Inputs: postcode (required), address.

property_reportAInspect

Full data pull for a UK property in one call.

Returns sale history, area comps, EPC rating, rental market listings, current sales market listings, rental yield calculation, and price range from area median.

Requires a street address + postcode for subject property identification. Postcode-only (e.g. "NG1 2NS") returns area-level data without a subject property — use property_comps or property_yield for postcode-only queries.

Inputs: address (required), include_rentals, include_sales_market, ppd_months, +2 more.

property_yieldBInspect

Calculate rental yield for a UK postcode.

Combines Land Registry sales data with Rightmove rental listings to produce a gross yield figure.

Inputs: postcode (required), months, search_level, property_type, +1 more.

rental_analysisAInspect

Rental market analysis for a UK postcode.

Returns median/average rent, listing count, and rent range. Optionally calculates gross yield from a given purchase price. Auto-escalates search radius if local listings are sparse (thin market).

Inputs: postcode (required), radius, purchase_price, auto_escalate, +1 more.

rightmove_listingAInspect

Fetch full details for a Rightmove listing by ID or URL.

Returns price, tenure, lease years remaining, service charge, ground rent, council tax band, floor area, key features, nearest stations, and floorplan URLs.

Inputs: property_id (required).

stamp_dutyBInspect

Calculate UK Stamp Duty Land Tax (SDLT) for a residential property.

Inputs: price (required), additional_property, first_time_buyer, non_resident.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 13 tools

    Disambiguation5/5

    Each tool targets a distinct aspect of UK property data: company records, planning portals, transactions, blocks, comps, EPC, full reports, yield, rental analysis, Rightmove listings, and stamp duty. No two tools have overlapping purposes.

    Naming Consistency5/5

    All tool names use a consistent snake_case pattern with descriptive noun_verb or adjective_noun structure (e.g., company_profile, rightmove_search, stamp_duty). No mixing of conventions.

    Tool Count5/5

    With 13 tools covering the full spectrum of UK property data (companies, planning, transactions, EPC, rental, yield, stamp duty), the count is well-scoped and neither too sparse nor too heavy.

    Completeness5/5

    The tool surface covers the major needs for UK property analysis: company info, planning, transactional data, comparables, EPC, rental market, yields, listings, and stamp duty. The aggregate property_report tool fills gaps by combining multiple data sources.

    Maintenance

    ActivityMaintained
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables users to search UK property prices by postcode, street, or city using the HM Land Registry's SPARQL endpoint. It also provides tools for resolving postcodes and finding nearby locations through Ordnance Survey data.
      2
      2
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      French building permits MCP server: 1.2M Sitadel permits (2014-2026, daily refresh), DVF transactions, cadastre DGFiP, PLU zoning, BRGM risks, and property-dealer opportunity scoring through 11 MCP tools. Free tier 500 req/month, no credit card.
      11
      3
      MIT