Skip to main content
Glama

Property Shared

property-shared MCP server

英国の不動産データを1つのパッケージにまとめました。Land Registryの売買記録、EPC証明書、Rightmoveのリスティング、賃貸利回り、印紙税計算、計画ポータルリンク、Companies Houseの記録を取得します。

Pythonライブラリ、CLI、HTTP API、またはMCPサーバーとして使用できます。

入手できるもの

データソース

返される内容

Land Registry PPD

売買価格、日付、物件タイプ、中央値/パーセンタイル付きのエリア比較

EPC (GOV.UK)

エネルギー評価、床面積、暖房費。イングランドとウェールズのみ。証明書検索と概要検索 — 下記のEPCに関する注意を参照

Rightmove

現在のリスティング(売買+賃貸)、価格、エージェント、リスティング詳細

Yield Analysis

PPD売買とRightmove賃貸を組み合わせた総利回り

Stamp Duty

2025年4月の税率帯、BTL追加税、FTB軽減を考慮したSDLT計算

Block Analyzer

建物ごとにフラット売買をグループ化して投資家の出口を特定

Planning

地方自治体の計画ポータル検索(検証済み99自治体、stdioのみ)

Companies House

会社名または番号による会社検索と照会

Related MCP server: UK Due Diligence

スキルとプラグイン

PropertyパックとLegalパックは近日公開予定です。英国の不動産投資、英国の不動産エージェント、不動産および権利移転に関する実務経験や専門知識をお持ちで、このプロジェクトの形成に協力したい方は、paul@bouch.devまでご連絡ください。

MCPサーバーとして使用

インストール不要 — MCPクライアントの設定にURLを貼り付けるだけです。

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]、HTTPサーバー用の[api]、テスト用の[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=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 with { "address": "10 Downing Street, SW1A 2AA" }

完全なエンドポイント一覧はUSER_GUIDE.mdにあります。

EPCに関する注意 (v1.14.0)

EPCサービスはGOV.UKのBearer APIに移行しました。EPC_API_TOKENを設定してください。以前のEPC_API_EMAIL/EPC_API_KEYのペアは廃止されたホストに対して認証されており、サポートされているフォールバックではありません。

新しいアップストリームがサポートするものと、サポートしないもの:

  • 証明書検索 — 証明書番号による検索で、1リクエストで完全な詳細を取得。

  • 概要検索 — 郵便番号による検索で、住所、UPRN(多くの場合欠落)、エネルギー帯、登録日、スキーマタイプを返します。エネルギースコア、床面積、物件タイプは返しません。これらは完全な証明書にのみ存在します。

  • 郵便番号はエリアを選択し、物件を選択することはありません。 1つの物件を特定するには、UPRNまたは証明書と完全に一致する住所(大文字小文字、句読点、先頭のFlat/Apartment指定子を除く)が必要です。それ以外(住所なし、一致なし、複数一致)は、最良の推測に解決されるのではなく拒否されます。CLIおよびRESTの表面についてはUSER_GUIDE.mdを参照してください。

  • エリア統計は、レコード数と、制限されたレスポンスにすべての一致する概要が含まれている場合の評価分布に限定されます。物件タイプの内訳と床面積の統計はNoneとして報告されます — ゼロではなく利用不可 — なぜなら、それらを生成するには証明書ごとに1リクエストが必要になるからです。

  • 対象はイングランドとウェールズです。 スコットランド、北アイルランド、チャンネル諸島では「証明書が見つかりません」が返されます。これは対象範囲の境界であり、物件に関する記述ではありません。

  • ページネーションは安定したスナップショットではありません。 レスポンスにはcomplete、duplicates_removed、unusable_rowsが含まれます。どの操作もエリアの完全な収集を主張しません。

  • 曖昧な住所一致は拒否され、任意の隣接証明書に解決されることはありません。

search_all_by_postcode()はサポートされていません — 候補の発見にはsearch_summaries()を使用し、必要なものにはget_certificate()を使用してください。

環境変数

リポジトリのルートに.envファイルを作成し(gitignoreされています)、必要な変数を設定してください。

オプションの変数は空に割り当てるのではなく、完全に省略してください。 KEY=は空文字列を設定しますが、これは未設定と同じではありません。os.getenv("KEY", "default")は""を返すため、デフォルトは適用されません。これによりEPCのライブテストが失敗しました。空の郵便番号をアップストリームに送信したためです。

主要な変数:

変数

必要な用途

説明

EPC_API_TOKEN

EPC検索

GOV.UK EPC dataからのBearerトークン

EPC_API_EMAIL

(非推奨)

廃止されたサービス。設定エラーを発生させるためだけに解析されます

EPC_API_KEY

(非推奨)

廃止されたサービス。サポートされているフォールバックではありません

COMPANIES_HOUSE_API_KEY

会社検索

Companies Houseからの無料キー

RIGHTMOVE_DELAY_SECONDS

不要(デフォルト0.6秒)

Rightmoveスクレイピングのレート制限遅延

OPENAI_API_KEY

計画スクレイパー

ビジョンガイドによる計画ポータルスクレイパー

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 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