UK Property Data
Property Shared
Данные о недвижимости Великобритании в одном пакете. Получает данные о продажах из Land Registry, сертификаты EPC, объявления Rightmove, доходность аренды, расчёты гербового сбора, ссылки на порталы планирования и записи Companies House.
Используйте его как Python-библиотеку, CLI, HTTP API или MCP-сервер.
Что вы получаете
Источник данных | Что возвращает |
Land Registry PPD | Цены продаж, даты, типы недвижимости, сравнение по районам с медианой/процентилями |
EPC (GOV.UK) | Энергетические рейтинги, площадь пола, расходы на отопление. Только Англия и Уэльс. Поиск сертификатов и сводный поиск — см. примечания по EPC ниже |
Rightmove | Текущие объявления (продажа + аренда), цены, агенты, детали объявлений |
Анализ доходности | Валовая доходность из продаж PPD + аренды Rightmove |
Гербовый сбор | Расчёт SDLT с тарифами апреля 2025, надбавкой для BTL, льготой для FTB |
Анализатор блоков | Группирует продажи квартир по зданиям для выявления выходов инвесторов |
Планирование | Поиск на портале планирования местного совета (99 проверенных советов, только stdio) |
Companies House | Поиск компаний и просмотр по названию или номеру |
Related MCP server: UK Due Diligence
Навыки и плагины
Пакеты для недвижимости и юридических вопросов скоро появятся. Пожалуйста, свяжитесь с нами, если у вас есть практический опыт или экспертные знания в инвестировании в недвижимость Великобритании, работе с агентами по недвижимости, недвижимостью и юридическим сопровождением, и вы хотели бы помочь в этом. paul@bouch.dev
Использование в качестве MCP-сервера
Установка не требуется — вставьте URL в конфигурацию вашего MCP-клиента и работайте.
Claude Code, Cursor, любой MCP-клиент:
{
"mcpServers": {
"property-shared": {
"type": "http",
"url": "https://property-shared.fly.dev/mcp"
}
}
}Установка
pip install property-shared
# or with uv
uv add property-sharedДополнительно: [cli] для CLI, [api] для HTTP-сервера, [dev] для тестов.
pip install property-shared[cli]
# or
uv add property-shared --extra cliИспользование в качестве Python-библиотеки
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}%)")Все модели доступны на верхнем уровне:
from property_core import (
PPDTransaction, PPDCompsResponse, EPCData,
RightmoveListing, RightmoveListingDetail,
PropertyReport, YieldAnalysis, RentalAnalysis,
BlockAnalysisResponse, CompanyRecord, StampDutyResult,
)Вспомогательные функции интерпретации (ядро возвращает числа, вы решаете, как их обозначать):
from property_core import classify_yield, classify_data_quality, generate_insightsИспользование в качестве 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Добавьте --api-url http://localhost:8000 к любой команде, чтобы направлять запросы через HTTP API вместо прямого вызова ядра.
Использование в качестве HTTP API
pip install property-shared[api] # or: uv add property-shared --extra api
property-api # starts on port 8000Интерактивная документация по адресу http://localhost:8000/docs.
Ключевые конечные точки:
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/reportс{ "address": "10 Downing Street, SW1A 2AA" }
Полный список конечных точек в USER_GUIDE.md.
Примечания по EPC (v1.14.0)
Сервис EPC перешёл на Bearer API GOV.UK. Установите EPC_API_TOKEN; старая пара EPC_API_EMAIL/EPC_API_KEY аутентифицировалась на выведенном из эксплуатации хосте и не поддерживается как запасной вариант.
Что поддерживает новый вышестоящий сервис, а что нет:
Поиск сертификата по номеру сертификата — полная информация, один запрос.
Сводный поиск по почтовому индексу — возвращает адрес, UPRN (часто отсутствует), энергетический класс, дату регистрации и тип схемы. Он не возвращает энергетический балл, площадь пола или тип недвижимости; они есть только в полном сертификате.
Почтовый индекс выбирает район, а не объект недвижимости. Идентификация конкретного объекта требует UPRN или точного совпадения адреса с сертификатом (за исключением регистра, пунктуации и ведущего обозначения
Flat/Apartment). Всё, что меньше — нет адреса, нет совпадения или несколько совпадений — отклоняется, а не разрешается в предположение. См. USER_GUIDE.md для CLI и REST-интерфейсов.Статистика по районам ограничена количеством записей и, когда ограниченный ответ содержит все совпадающие сводки, распределением рейтингов. Разбивка по типам недвижимости и статистика площади пола возвращаются как
None— недоступно, а не ноль — потому что их получение потребовало бы одного запроса на каждый сертификат.Покрытие — Англия и Уэльс. Шотландия, Северная Ирландия и Нормандские острова возвращают «сертификаты не найдены»: это граница покрытия, а не утверждение о недвижимости.
Пагинация не является стабильным снимком. Ответы содержат
complete,duplicates_removedиunusable_rows; ни одна операция не претендует на полный сбор данных по району.Неоднозначные совпадения адресов отклоняются, а не разрешаются в произвольный соседний сертификат.
search_all_by_postcode() не поддерживается — используйте search_summaries() для поиска кандидатов, затем get_certificate() для нужного.
Переменные окружения
Создайте файл .env в корне репозитория (он игнорируется git) с нужными переменными.
Оставляйте необязательные переменные полностью неустановленными, а не присваивайте им пустое значение.
KEY=задаёт пустую строку, что не то же самое, что отсутствие переменной:os.getenv("KEY", "default")вернёт"", поэтому значение по умолчанию не применится. Это затронуло живые тесты EPC, которые отправляли пустой почтовый индекс вышестоящему сервису.
Ключевые переменные:
Переменная | Требуется для | Описание |
| Поиск EPC | Bearer-токен с GOV.UK EPC data |
| (устарело) | Выведенный из эксплуатации сервис; анализируется только для вызова ошибки конфигурации |
| (устарело) | Выведенный из эксплуатации сервис; не поддерживается как запасной вариант |
| Поиск компаний | Бесплатный ключ с Companies House |
| Нет (по умолчанию 0.6с) | Задержка ограничения скорости для скрейпинга Rightmove |
| Скрейпер планирования | Скрейпер портала планирования с визуальным управлением |
Land Registry PPD и Rightmove работают без учётных данных.
Разработка
# 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Развёрнуто на https://property-shared.fly.dev с документацией API по адресу /docs и конечной точкой MCP по адресу /mcp.
Available Tools
13 toolscompany_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).
company_searchAInspect
Search Companies House by company name. Returns a list of matches.
For a direct lookup by company number, use the company://{company_number} resource instead (e.g. read_resource("company://00445790")).
Inputs: query (required).
planning_searchAInspect
Find the planning portal URL for a UK postcode.
Returns the council name, planning system type, and a direct URL to open in a browser. Does NOT return planning application data — scraping is blocked by council portals. Use the returned search_urls.direct_search link to browse applications manually.
Inputs: postcode (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).
rightmove_searchAInspect
Search Rightmove property listings for sale or rent near a postcode.
Returns prices, addresses, bedrooms, agent details, and listing URLs.
Inputs: postcode (required), property_type, building_type, min_price, +6 more.
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
Scored across 13 tools
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.
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.
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.
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
Related MCP Connectors
UK property MCP: Land Registry prices, company charges, House Price Index. x402 USDC on Base.
UK property research tools - crime stats, schools, demographics, valuations for AI.
UK property data: EPC, flood risk, planning, sale prices, MEES 2030 checks and grants.
Property Records MCP — address-level US property records (sales history, assessed value, owner…
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables 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.22MIT
- AlicenseAqualityBmaintenanceUK due diligence MCP server — Companies House, corporate research, compliance checks18401 PyPI3MIT
- AlicenseNot gradedqualityDmaintenanceUK property data MCP server for AI hosts (Claude, ChatGPT). Wraps Land Registry, Rightmove, EPC, rental yields, stamp duty, and Companies House into 13 tools.2MIT
- AlicenseAqualityCmaintenanceFrench 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.113MIT