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-mcp
Register in your MCP client
{
"mcpServers": {
"zameen": {
"command": "uvx",
"args": ["zameen-mcp"]
}
}
}
That's it — 9 tools appear in your AI client.
Tools
| Tool | What it does |
|---|---|
search_properties |
Structured search: city, purpose, type, beds, price, area, keywords, sort |
get_listing_details |
Full detail page for one listing (URL or numeric id) |
list_supported_cities |
Verified city slugs + property types |
add_watch / check_watch |
Save search criteria locally; later re-checks report only NEW listings |
list_watches / remove_watch |
Manage saved watches |
draft_agent_message |
Compose a polite inquiry for a listing — draft only, never sends |
account_status |
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 local
Your 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 check
Compliance & 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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zameen_mcp-0.3.0.tar.gz.
File metadata
- Download URL: zameen_mcp-0.3.0.tar.gz
- Upload date:
- Size: 83.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b13753c31a6a6973c15c474cf90752f4e450f285fb8d267a728526020d32d29f
|
|
| MD5 |
7686638d78d7f96466579ecdfb156226
|
|
| BLAKE2b-256 |
0bd6140e3fb2c7d73ee30f4eedd0d9e9e3d042771252982e345c04013718df43
|
Provenance
The following attestation bundles were made for zameen_mcp-0.3.0.tar.gz:
Publisher:
release.yml on lonewolfmasanaga/zameen.com-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
zameen_mcp-0.3.0.tar.gz -
Subject digest:
b13753c31a6a6973c15c474cf90752f4e450f285fb8d267a728526020d32d29f - Sigstore transparency entry: 2583071118
- Sigstore integration time:
-
Permalink:
lonewolfmasanaga/zameen.com-mcp@b3e6a0195c4c5ecd5ade5248bc5d2a875ef93f34 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/lonewolfmasanaga
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b3e6a0195c4c5ecd5ade5248bc5d2a875ef93f34 -
Trigger Event:
push
-
Statement type:
File details
Details for the file zameen_mcp-0.3.0-py3-none-any.whl.
File metadata
- Download URL: zameen_mcp-0.3.0-py3-none-any.whl
- Upload date:
- Size: 29.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
369bba6c381cf28feeb871869f81901c36e938d68cf89c9489519b5502bce9be
|
|
| MD5 |
dae8266193a7451a1125cdf06c573e1d
|
|
| BLAKE2b-256 |
77cb574b0085ff7990dfd679a910bd546aeb06f610c14cefd07cda956b411f6e
|
Provenance
The following attestation bundles were made for zameen_mcp-0.3.0-py3-none-any.whl:
Publisher:
release.yml on lonewolfmasanaga/zameen.com-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
zameen_mcp-0.3.0-py3-none-any.whl -
Subject digest:
369bba6c381cf28feeb871869f81901c36e938d68cf89c9489519b5502bce9be - Sigstore transparency entry: 2583071121
- Sigstore integration time:
-
Permalink:
lonewolfmasanaga/zameen.com-mcp@b3e6a0195c4c5ecd5ade5248bc5d2a875ef93f34 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/lonewolfmasanaga
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b3e6a0195c4c5ecd5ade5248bc5d2a875ef93f34 -
Trigger Event:
push
-
Statement type: