Property Price Search MCP Server
UK Property Price Search MCP Server
joemclo
README
Property Price Search MCP Server
A Model Context Protocol (MCP) server that allows users to search for property prices by postcode using the HM Land Registry's SPARQL endpoint.
Features
- Search property prices by postcode or street/city combination
- Filter results by price range, property type, and date range
- Connect to HM Land Registry's public SPARQL endpoint
- Implements MCP stdio transport for IDE integration
- TypeScript implementation with full type safety
- Comprehensive test suite
- CLI interface for direct usage
Prerequisites
- Node.js >= 18
- npm >= 7
Installation
Global Installation
npm install -g property-prices-mcp
Local Installation
npm install property-prices-mcp
Usage
Command Line Interface
property-prices-mcp
As a Library
import { McpClient } from '@modelcontextprotocol/sdk/client';
const client = new McpClient();
const result = await client.resource('property-prices').query({
postcode: 'SW1A 1AA',
minPrice: 1000000,
propertyType: 'flat',
limit: 5,
});
console.log(result);
Search Parameters
The server accepts the following search parameters:
Parameter | Type | Description | Default |
---|---|---|---|
postcode | string | UK postcode to search | - |
street | string | Street name | - |
city | string | City name | - |
minPrice | number | Minimum property price | - |
maxPrice | number | Maximum property price | - |
propertyType | string | One of: detached, semi-detached, terraced, flat, other | - |
fromDate | string | Start date (YYYY-MM-DD) | - |
toDate | string | End date (YYYY-MM-DD) | - |
limit | number | Maximum number of results | 10 |
offset | number | Number of results to skip | 0 |
sortBy | string | Sort by 'date' or 'price' | 'date' |
sortOrder | string | Sort order 'asc' or 'desc' | 'desc' |
Response Format
The API returns results in the following format:
interface PropertyPrice {
price: number;
date: string;
propertyType: string;
newBuild: boolean;
tenure: string;
paon: string;
saon?: string;
street: string;
locality?: string;
town: string;
district: string;
county: string;
postcode: string;
}
interface SearchResponse {
results: PropertyPrice[];
total: number;
offset: number;
limit: number;
}
Error Handling
The server returns standard HTTP status codes:
- 200: Successful request
- 400: Invalid parameters
- 404: No results found
- 500: Server error
Error responses include a message explaining the error:
{
"error": "Invalid postcode format"
}
Development
-
Clone the repository:
git clone https://github.com/joemclo/property-prices-mcp.git cd property-prices-mcp
-
Install dependencies:
npm install
-
Build the project:
npm run build
-
Run tests:
npm test # Run all tests npm run test:unit # Run unit tests only npm run test:integration # Run integration tests only
-
Start in development mode:
npm run dev
Troubleshooting
Common Issues
-
SPARQL Endpoint Connection Issues
- Check your internet connection
- Verify the HM Land Registry endpoint is available
- Ensure your IP is not being rate limited
-
Invalid Postcode Format
- Ensure postcodes are in the correct UK format
- Remove any extra spaces
- Use uppercase letters
-
No Results Found
- Try broadening your search criteria
- Check if the date range is too narrow
- Verify the postcode exists
Contributing
Please read CONTRIBUTING.md for details on our code of conduct and the process for submitting pull requests.
Changelog
See CHANGELOG.md for a list of changes and version history.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Recommended Servers
Crypto Price & Market Analysis MCP Server
A Model Context Protocol (MCP) server that provides comprehensive cryptocurrency analysis using the CoinCap API. This server offers real-time price data, market analysis, and historical trends through an easy-to-use interface.
MCP PubMed Search
Server to search PubMed (PubMed is a free, online database that allows users to search for biomedical and life sciences literature). I have created on a day MCP came out but was on vacation, I saw someone post similar server in your DB, but figured to post mine.
dbt Semantic Layer MCP Server
A server that enables querying the dbt Semantic Layer through natural language conversations with Claude Desktop and other AI assistants, allowing users to discover metrics, create queries, analyze data, and visualize results.
mixpanel
Connect to your Mixpanel data. Query events, retention, and funnel data from Mixpanel analytics.

Sequential Thinking MCP Server
This server facilitates structured problem-solving by breaking down complex issues into sequential steps, supporting revisions, and enabling multiple solution paths through full MCP integration.

Nefino MCP Server
Provides large language models with access to news and information about renewable energy projects in Germany, allowing filtering by location, topic (solar, wind, hydrogen), and date range.
Vectorize
Vectorize MCP server for advanced retrieval, Private Deep Research, Anything-to-Markdown file extraction and text chunking.
Mathematica Documentation MCP server
A server that provides access to Mathematica documentation through FastMCP, enabling users to retrieve function documentation and list package symbols from Wolfram Mathematica.
kb-mcp-server
An MCP server aimed to be portable, local, easy and convenient to support semantic/graph based retrieval of txtai "all in one" embeddings database. Any txtai embeddings db in tar.gz form can be loaded
Research MCP Server
The server functions as an MCP server to interact with Notion for retrieving and creating survey data, integrating with the Claude Desktop Client for conducting and reviewing surveys.