zameen-mcp
This server lets you research Zameen.com property listings through structured MCP tools, including searching, inspecting listings, managing local watchlists, and drafting agent messages.
search_properties: Search listings by city, purpose (sale/rent), property type, beds, price, area, keywords, and sort; apply badge filters such as verified-only, titanium agent, exclude promoted, and max price.
get_listing_details: Fetch full details for a single listing by URL or numeric ID.
list_supported_cities: List verified city slugs and property types usable in searches.
add_watch: Save a named local watchlist from search criteria, optionally seeding it with current results.
check_watch: Re-run a saved watch and report only new listings since the last check.
list_watches / remove_watch: List or delete locally saved watchlists.
draft_agent_message: Compose a polite inquiry message to a listing's agent (draft only; never sends anything).
account_status: Check whether an authenticated Zameen session is loaded.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@zameen-mcp Search for verified 3-bed flats in DHA Lahore under 5 crore"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP server for researching property listings on Zameen.com
Verified / Titanium-agent filtering · local watchlists · listing details · agent-message drafting — through 9 structured tools in any MCP client.
Tool reference · Deployment guide · Contributing · Changelog
An MCP (Model Context Protocol) server for researching property listings on Zameen.com — Pakistan's largest real estate portal — through structured tools instead of fragile screen scraping.
Trademark notice: "Zameen" and the Zameen.com logo are trademarks of Zameen.com (EMPG). They are used here solely to identify the service this tool interfaces with. This project is unaffiliated with, and not endorsed by, Zameen.com.
Works with any MCP client: Claude Desktop, Hermes Agent, Cursor, and others.
Install
# run directly with no permanent install (recommended)
uvx zameen-mcp
# or install as an isolated CLI tool
pipx install zameen-mcpRegister in your MCP client
{
"mcpServers": {
"zameen": {
"command": "uvx",
"args": ["zameen-mcp"]
}
}
}That's it — 9 tools appear in your AI client.
Related MCP server: Zillow MCP Server
Tools
Tool | What it does |
| Structured search: city, purpose, type, beds, price, area, keywords, sort |
| Full detail page for one listing (URL or numeric id) |
| Verified city slugs + property types |
| Save search criteria locally; later re-checks report only NEW listings |
| Manage saved watches |
| Compose a polite inquiry for a listing — draft only, never sends |
| Whether an authenticated session is loaded |
Badge-level filtering Zameen's own UI can't do: verified_only,
agent_tier (e.g. "titanium"), exclude_promoted.
Full parameter reference + natural-language cheat sheet: docs/TOOLS.md
Optional: log in to your Zameen account
Anonymous searching works out of the box. To also ride your logged-in session (saved searches, personalized pages):
pipx inject zameen-mcp playwright && .venv/bin/playwright install chromium # pipx
uv tool install zameen-mcp --with playwright && playwright install chromium # uv
zameen-mcp-login # opens a Chromium window; YOU log in; cookies stay localYour password is never seen or stored by this software — only the resulting
session cookies, kept in ~/.zameen-mcp/ on your machine. Wipe anytime:
zameen-mcp-login --logout.
Data location
All state lives in ~/.zameen-mcp/ (watches.json, session_state.json,
chrome-profile/). Override with the ZAMEEN_MCP_HOME environment variable.
Treat session_state.json like a password: it grants access to your account
while valid.
Development
git clone <repo-url> && cd zameen.com
uv venv .venv && uv pip install -p .venv/Scripts/python.exe -e ".[dev]"
.venv/Scripts/python.exe -m pytest -q # offline suite against real captured pages
.venv/Scripts/python.exe smoke_test.py # live end-to-end checkCompliance & fair use
Zameen.com's
robots.txtdisallows crawling its major-city listing pages. This server is built for interactive, human-paced research — a person asking their assistant questions — not bulk harvesting or redistribution.Requests go out one at a time with browser-like headers. Don't remove the pacing or loop searches unattended.
Listing data belongs to Zameen.com and its advertisers; "Zameen" is a trademark of Zameen.com. This project is unaffiliated and not endorsed.
Prices are agent-entered, as-listed — not verified market valuations.
Limitations
Read-only by design: no posting, messaging, or account changes — contacting agents is deliberately a human action (
draft_agent_messageonly drafts).Badge filters operate on fetched result pages (up to 3 per call).
Parsing targets Zameen's current HTML; site redesigns may require parser updates (fixtures make regressions easy to catch).
MIT licensed — see LICENSE.
Available Tools
9 toolsaccount_statusA
Report whether an authenticated Zameen session is loaded.
Auth is optional: searches work anonymously; a session (created via 'python -m zameen_mcp.login') rides your cookies for personalized pages. No password is ever stored by this server.
Inputs: no named parameters. Returns: result
add_watchA
Create a named local watchlist from search criteria (stored on disk).
Watches are re-checked later with check_watch; 'seed_with_current' runs the search once now so only NEW listings get reported in future checks. Nothing is saved to your Zameen account — this is a local file.
Inputs: city (required), name (required), purpose, keywords, +8 more. Returns: result
check_watchA
Re-run a saved watch's search and report NEW listings since last check.
Read-only against Zameen; the only state kept is the local id list.
Inputs: name (required), limit. Returns: result
draft_agent_messageA
Draft (NOT send) a polite inquiry message to a listing's agent.
Fetches the listing's details and composes a ready-to-send text for you to paste into WhatsApp/email or read out on a call. This tool NEVER sends anything to anyone — contacting the agent is deliberately a human action.
Inputs: listing (required), tone, questions, sender_name. Returns: result
get_listing_detailsA
Fetch full details for ONE Zameen.com property listing.
Accepts a full Property URL or a bare numeric listing id such as "54646556". Read-only; never contacts the agent or modifies anything.
Inputs: listing (required). Returns: result
list_supported_citiesA
List verified city slugs and property types usable by search_properties.
Inputs: no named parameters. Returns: result
list_watchesA
List local watchlists with their criteria and last-check times.
Inputs: no named parameters. Returns: result
remove_watchB
Delete a local watchlist by name.
Inputs: name (required). Returns: result
search_propertiesA
Search Zameen.com property listings and return normalized JSON cards.
Use city names like "islamabad", "lahore", "karachi". purpose: sale|rent. property_type: homes|houses|flats|plots|commercial|rooms. Badge filters (verified_only, agent_tier e.g. "titanium", exclude_promoted, max_price_pkr) apply AFTER parsing over up to 3 result pages - these can express things Zameen's own UI cannot (e.g. verified listings only). min_beds/min_area_marla/keywords/sort are native site filters. limit is clamped to 1..50 and echoed back in filters_applied. Example: search_properties(city="lahore", purpose="sale", property_type="houses", min_beds=4, verified_only=True, agent_tier="titanium", max_price_pkr=200000000).
Inputs: city (required), sort, limit, purpose, +8 more. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Each tool has a clearly distinct purpose: search, detail retrieval, watchlist management, message drafting, and account status. There is no meaningful overlap between tools that would cause an agent to select the wrong one.
Most tools follow a consistent verb_noun pattern (list_watches, search_properties, add_watch, check_watch). account_status is a minor deviation since it is a noun phrase rather than get_account_status, but it is still clear and predictable.
Nine tools is well within the ideal range for a real estate search and watchlist server. Each tool earns its place and the set is neither bloated nor too thin.
The tool surface covers search, listing details, watchlist CRUD (minus an update operation), contact drafting, and account status. Missing update_watch is workable since users can remove and re-add, and sending messages is intentionally left to humans.
Maintenance
Related MCP Connectors
US property search and full listing detail (Redfin-sourced) as agent tools.
Redfin property search and full listing detail as agent tools.
AI-native real estate discovery with structured property search and market intelligence.
Real estate agency CRM: listings, clients, leads and viewings from your AI assistant (OAuth).
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides real-time access to Zillow real estate data, enabling property search, details, Zestimates, market trends, and mortgage calculations via natural language.6 npm56MIT
- FlicenseNot gradedqualityDmaintenanceIntegrates Zillow real estate data with AI assistants, enabling property search, neighborhood insights, and affordability calculations through natural language.1-
- AlicenseAqualityDmaintenanceEnables AI agents to search Dutch housing listings on Kamernet.nl, retrieve full listing details, and optionally reply to landlords; designed for personal use in finding rooms, studios, and apartments.31MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to search, compare, and interact with Apartments.com rental listings, including scheduling tours and contacting property managers.MIT