property-shared
Health Warn
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 5 GitHub stars
Code Pass
- Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Pass
- Permissions — No dangerous permissions requested
This package is an MCP server and Python library that aggregates UK property data from multiple public and third-party sources, including the Land Registry, EPC Register, Rightmove, and Companies House. It provides this data via CLI tools, a Python SDK, or an HTTP API.
Security Assessment
The overall security risk is Medium. The codebase was scanned and found to be clean, with no dangerous execution patterns, hardcoded secrets, or excessive system permissions. However, the tool inherently functions by making external network requests to various property APIs and web portals to gather its data. While it does not access your local sensitive files, developers should be aware that the queries and parameters you pass to it (like postcodes or company names) are transmitted over the network to external services.
Quality Assessment
The project demonstrates active maintenance, with its most recent push occurring today. It uses a permissive MIT license and includes a thorough, well-documented README. The main concern is its extremely low community visibility; having only 5 GitHub stars means the codebase has undergone very limited peer review. Additionally, the documentation notes that the MCP server is currently migrating to a new package, which indicates the installation and usage workflow is in a transitional state.
Verdict
Use with caution — the code itself appears safe and clean, but low community adoption and reliance on external network requests warrant standard security precautions.
UK property data MCP server — Land Registry comps, EPC, Rightmove, rental yields, stamp duty, Companies House. 13 tools.
Property Shared
UK property data in one package. Pulls Land Registry sales, EPC certificates, Rightmove listings, rental yields, stamp duty calculations, planning portal links, and Companies House records.
Use it as a Python library, CLI, or HTTP API.
MCP server moved: The MCP server is now
uk-property-mcp— install withpip install uk-property-mcp. The old endpointhttps://property-shared.fly.dev/mcpstill works via a proxy for now.
What You Get
| Data Source | What It Returns |
|---|---|
| Land Registry PPD | Sold prices, dates, property types, area comps with median/percentiles |
| EPC Register | Energy ratings, floor area, construction age, heating costs |
| Rightmove | Current listings (sale + rent), prices, agents, listing details |
| Yield Analysis | Gross yield from PPD sales + Rightmove rentals combined |
| Stamp Duty | SDLT calculation with April 2025 bands, BTL surcharge, FTB relief |
| Block Analyzer | Groups flat sales by building to spot investor exits |
| Planning | Local council planning portal lookup (99 verified councils) |
| Companies House | Company search and lookup by name or number |
Skills
Want structured property reports instead of raw data? Claude skills that chain these tools into investment summaries are available at bouch.dev/products.
Install
pip install property-shared
# or with uv
uv add property-shared
Extras: [cli] for CLI, [api] for HTTP server, [dev] for tests.
pip install property-shared[cli]
# or
uv add property-shared --extra cli
Use as a Python Library
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}%)")
All models are available at top level:
from property_core import (
PPDTransaction, PPDCompsResponse, EPCData,
RightmoveListing, RightmoveListingDetail,
PropertyReport, YieldAnalysis, RentalAnalysis,
BlockAnalysisResponse, CompanyRecord, StampDutyResult,
)
Interpretation helpers (core returns numbers, you decide how to label them):
from property_core import classify_yield, classify_data_quality, generate_insights
Use as 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
Add --api-url http://localhost:8000 to any command to route through the HTTP API instead of calling core directly.
Use as HTTP API
pip install property-shared[api] # or: uv add property-shared --extra api
property-api # starts on port 8000
Interactive docs at http://localhost:8000/docs.
Key endpoints:
GET /v1/ppd/comps?postcode=SW1A+1AA&property_type=F&enrich_epc=trueGET /v1/analysis/yield?postcode=NG1+1AA&property_type=FGET /v1/analysis/rental?postcode=NG1+1AA&purchase_price=200000GET /v1/rightmove/search-url?postcode=NG1+1AA&sort_by=newestGET /v1/calculators/stamp-duty?price=300000&additional_property=truePOST /v1/property/reportwith{ "address": "10 Downing Street, SW1A 2AA" }
Full endpoint list in USER_GUIDE.md.
Environment Variables
Copy .env.example to .env. Key variables:
| Variable | Required For | Description |
|---|---|---|
EPC_API_EMAIL |
EPC lookups | Free key from EPC Register |
EPC_API_KEY |
EPC lookups | Paired with email above |
COMPANIES_HOUSE_API_KEY |
Company search | Free key from Companies House |
RIGHTMOVE_DELAY_SECONDS |
No (default 0.6s) | Rate limit delay for Rightmove scraping |
OPENAI_API_KEY |
Planning scraper | Vision-guided planning portal scraper |
Land Registry PPD and Rightmove work without credentials.
Development
# 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
Architecture
Four-layer separation — core stays framework-agnostic:
property_core/ Pure Python library (all business logic)
app/ FastAPI wrapper (thin HTTP layer)
property_cli/ Typer CLI (thin CLI layer)
property_app/ MCP App with Prefab UI dashboards (propertydata.fly.dev/mcp)
All four consumers import directly from property_core. No adapter layers.
Deploy (Fly.io)
fly secrets set EPC_API_EMAIL=... EPC_API_KEY=...
fly deploy
Deployed at https://property-shared.fly.dev with API docs at /docs and MCP endpoint at /mcp.
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found