Skip to main content
zameen.com

MCP server for researching property listings on Zameen.com

License: MIT CI Python MCP

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.txt disallows 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_message only 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

zameen_mcp-0.3.0.tar.gz (83.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zameen_mcp-0.3.0-py3-none-any.whl (29.3 kB view details)

Uploaded Python 3

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

Hashes for zameen_mcp-0.3.0.tar.gz
Algorithm Hash digest
SHA256 b13753c31a6a6973c15c474cf90752f4e450f285fb8d267a728526020d32d29f
MD5 7686638d78d7f96466579ecdfb156226
BLAKE2b-256 0bd6140e3fb2c7d73ee30f4eedd0d9e9e3d042771252982e345c04013718df43

See more details on using hashes here.

Provenance

The following attestation bundles were made for zameen_mcp-0.3.0.tar.gz:

Publisher: release.yml on lonewolfmasanaga/zameen.com-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for zameen_mcp-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 369bba6c381cf28feeb871869f81901c36e938d68cf89c9489519b5502bce9be
MD5 dae8266193a7451a1125cdf06c573e1d
BLAKE2b-256 77cb574b0085ff7990dfd679a910bd546aeb06f610c14cefd07cda956b411f6e

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page