landlordlaw
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
landlordlaw
What does the law ask of a landlord in England, at one address? landlordlaw is a small local forwarding client for the hosted Lettance MCP service: it serves the tool list from your own machine using the captured definitions, then sends each question upstream and hands the service's answer back exactly as it arrived.
Everything on the surface is read-only and works from published data. Given a postcode it reports whether a council property licence is needed and which schemes apply, when the landlord register window opens, and what the coming year of duties looks like as a dated plan. A cited catalogue of rules can be searched and read in full, two to four addresses can be set side by side, and typical local rents and sale prices come from dated ONS and HM Land Registry snapshots. landlordlaw stores nothing and computes nothing itself — it asks, and passes the answer through.
The tools
check_address— What applies to a rented home at one postcode: whether a council property licence is needed for the household type, the council's licensing schemes, the planned landlord register window, flood zone and conservation area, each with its source.postcodeis required;household(single,small_hmoorlarge_hmo) is optional.search_rules— Search the catalogue of landlord rules, each cited to legislation.gov.uk or GOV.UK, by keyword.queryis required. Returns matching rule ids with summaries.get_rule— One rule's full detail: the requirement, deadline, evidence to keep, penalty, legal basis and official guidance links.idis required, taken from asearch_rulesresult.council_licensing— Every licensing scheme for one council, with its wards, dates, fees and council sources.councilis required — a slug such assouthwarkor a name such asBirmingham.plan_rental— A twelve-month plan of duties for a rented home, computed from the postcode plus whatever the landlord knows about the tenancy: gas and electrical dates, the EPC rating, deposit handling, alarms and more. Onlypostcodeis required; every other argument sharpens the plan. Nothing is stored and nothing is submitted.compare_addresses— Two to four postcodes compared side by side: licence need, landlord register window, flood zone, conservation areas, Article 4 directions, average local rent and median sale price.postcodes(2–4 entries) is required;householdis optional.area_market— The ONS average monthly private rent for the local authority and the HM Land Registry median sale price for the postcode district, from a dated snapshot with its attribution.postcodeis required. Area figures only, never a valuation of one home.
Related MCP server: LandlordLaw MCP Server
Install and run
As an MCP server via npm:
npx -y @reneturcios/landlordlaw mcpMCP client configuration:
{
"mcpServers": {
"landlordlaw": {
"command": "npx",
"args": ["-y", "@reneturcios/landlordlaw", "mcp"]
}
}
}As a container:
docker run -i ghcr.io/cloudcorprecords/landlordlaw
docker run --rm ghcr.io/cloudcorprecords/landlordlaw area_market '{"postcode":"SE15 5BA"}'CLI
A single binary covers both the command line and the MCP server. Every tool is a subcommand whose one argument is a JSON string of that tool's inputs:
landlordlaw check_address '{"postcode":"SE15 5BA"}'
landlordlaw search_rules '{"query":"gas safety certificate"}'
landlordlaw get_rule '{"id":"gas-safety-annual-check"}'
landlordlaw council_licensing '{"council":"southwark"}'
landlordlaw plan_rental '{"postcode":"SW9 7AA","has_gas":"yes"}'
landlordlaw compare_addresses '{"postcodes":["SE15 5BA","SW6 1HS"]}'
landlordlaw area_market '{"postcode":"SE15 5BA"}'
landlordlaw --versionExit codes: 0 for a successful forwarded call, 1 when the result that comes back is an error, and 2 for usage mistakes like an unknown subcommand or a JSON argument that does not parse.
Configuration
LETTANCE_MCP_URL— Replaces the upstream endpoint. Defaults to the pinned hosted endpoint,https://lettance.com/mcp. (This override variable is a reconstruction introduced by this rebuild.)
The Lettance registry record lists no headers for its remote, so landlordlaw never attaches an authentication header — every question goes upstream keyless.
When the upstream cannot answer — it returns a JSON-RPC error, answers with a non-2xx status, sends a body that cannot be read, or the request itself fails — the caller receives an error result whose text begins with landlordlaw error:.
How forwarding works
The first question of a process opens a session against the upstream: an initialize request (protocol version 2025-03-26), a notifications/initialized notification, and then the tools/call. If the service issues an Mcp-Session-Id header during initialize, landlordlaw repeats it on subsequent requests and keeps reusing that one session until the process ends. Replies are understood in both plain JSON and server-sent-events framing. Successful results are passed through untouched, isError flag and any extra fields included.
Development
npm install
npm run build # tsc -> dist/ (dist/cli.js is the bin)
npm test # tsx --test test/*.test.ts — stubbed upstream, no network
npm run dev # run the CLI from sourceThe suite compares the served tool list against the captured surface tool for tool, walks the session handshake and its reuse, proves no Authorization header is sent under any environment, and confirms that arguments travel upstream unchanged and results return unchanged.
License
MIT — see LICENSE. Copyright (c) 2026 Rene Turcios.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Landlord rules for England by postcode: council licensing, the landlord register and the law, cited.
UK tenancy and employment rule checks: deposits, notice, rent increases, holiday and minimum wage.
Checks whether a property in England is in a council's selective or HMO licensing scheme
GDPR-clean property listings, rents, price stats, yields and below-market deals. UK, EU, US.
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
- FlicenseNot gradedqualityNot gradedmaintenanceProvides AI agents with instant access to jurisdiction-specific landlord-tenant law data and verified state statutes across five US states and major cities. It enables users to query legal rules for security deposits, eviction timelines, and habitability standards with sub-10ms local response times.-
- AlicenseAqualityBmaintenanceUK property data MCP server — Land Registry comps, EPC, Rightmove, rental yields, stamp duty, Companies House. 13 tools.1318MIT
- 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