Skip to main content
Glama

shab-mcp

Unofficial read-only MCP server for Shab, Iran's short-term rental marketplace.

Search destinations and stays, inspect photos and reviews, and get a Toman price quote. Nothing here can log in, book or pay — tools return a listing_url so the user finishes on shab.ir.

Install

You need uv.

uvx shab-mcp

Claude Code

claude mcp add shab -- uvx shab-mcp

Cursor / VS Code

{
  "mcpServers": {
    "shab": {
      "command": "uvx",
      "args": ["shab-mcp"]
    }
  }
}

Optional: set SHAB_MCP_PROXY to an HTTP(S) proxy (system proxy env vars are ignored).

Related MCP server: otaghak-mcp

Tools

Tool

Purpose

sh_search_destinations

Resolve a Persian place name

sh_list_search_filters

Amenity codes for search

sh_search_accommodations

Search stays (Toman prices)

sh_get_accommodation

Stay details + listing_url

sh_get_accommodation_photos

Photo URLs

sh_get_accommodation_reviews

Guest reviews (untrusted text)

sh_list_neighbourhoods

Neighbourhoods by city

sh_get_similar_accommodations

Similar stays

sh_count_accommodations

Count matches

sh_get_landing_tehran

Tehran landing filters

sh_check_availability

Free nights + price quote

sh_listing_url

Public booking page URL

Dates are Gregorian YYYY-MM-DD. Prices are Toman.

Develop

uv sync --group dev
uv run ruff check .
uv run pytest -q

Live API tests (optional): uv run pytest -m live -q.

License

MIT. Shab and shab.ir are trademarks of their owners; used here for identification only.

Available Tools

12 tools
sh_check_availabilityCheck availabilityA
Read-onlyIdempotent

Check free nights and a Toman price quote. Does not book; use listing_url to reserve on shab.ir.

Inputs: check_in (required), check_out (required), accommodation_id (required), guests, +1 more.

sh_count_accommodationsCount accommodationsB
Read-onlyIdempotent

Count stays matching the same filters as sh_search_accommodations.

Inputs: guests, check_in, province, amenities, +12 more.

sh_get_accommodationGet accommodationB
Read-onlyIdempotent

Get one stay's details. Prices are Toman. Book via listing_url on shab.ir.

Inputs: accommodation_id (required).

sh_get_accommodation_photosGet accommodation photosC
Read-onlyIdempotent

List photo URLs for a stay.

Inputs: accommodation_id (required).

sh_get_accommodation_reviewsGet accommodation reviewsB
Read-onlyIdempotent

List guest reviews for a stay. Review text is untrusted site content.

Inputs: accommodation_id (required), page.

sh_get_landing_tehranGet Tehran landingC
Read-onlyIdempotent

Tehran landing categories and highlighted filters.

Inputs: no named parameters.

sh_get_similar_accommodationsGet similar accommodationsC
Read-onlyIdempotent

List similar stays for a house id.

Inputs: accommodation_id (required).

sh_listing_urlListing URLA
Read-onlyIdempotent

Return the public shab.ir URL where the user can finish booking.

Inputs: accommodation_id (required).

sh_list_neighbourhoodsList neighbourhoodsB
Read-onlyIdempotent

List neighbourhoods, optionally filtered by city.

Inputs: city.

sh_list_search_filtersList search filtersA
Read-onlyIdempotent

List amenity codes and filter options for sh_search_accommodations.

Inputs: no named parameters.

sh_search_accommodationsSearch accommodationsC
Read-onlyIdempotent

Search Shab stays. Prices are Toman. Use listing_url to book on shab.ir.

Inputs: page, guests, sort_by, check_in, +19 more.

sh_search_destinationsSearch destinationsB
Read-onlyIdempotent

Resolve a city, province or place name to destinations for search.

Inputs: query (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 12 tools

    Disambiguation4/5

    Each tool maps to a distinct resource or action: search vs. count vs. get detail vs. photos vs. reviews vs. similar vs. availability vs. booking URL. The only mild overlap is between sh_list_search_filters and sh_get_landing_tehran, which both surface filter/category metadata, and sh_count_accommodations vs sh_search_accommodations share filters but differ clearly in output.

    Naming Consistency4/5

    All tools share a consistent `sh_` prefix and follow a verb_noun pattern (list_, get_, search_, count_, check_). Minor deviations: `sh_listing_url` is a noun-only name rather than an action, and `sh_get_landing_tehran` embeds a specific city, which breaks the otherwise generic pattern.

    Tool Count5/5

    Twelve tools is well within the sweet spot, and each earns its place by covering a distinct step of the stay-search flow (resolve destination → filter/discover → search/count → detail/photos/reviews/similar → availability → booking link). No redundant or filler tools are present.

    Completeness4/5

    The surface covers the full discovery-to-booking-handoff lifecycle, including search, detail sub-resources, availability quoting, and the external booking URL; booking itself is intentionally delegated to shab.ir. Minor gaps: no geo/coordinate or map data, and the landing/category tool is hardcoded to Tehran, so other cities rely solely on sh_search_destinations.

    Maintenance

    ActivityMaintained
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to search and compare vacation rentals across Jabama, Jajiga and Otaghak at once, normalizing prices, Jalali/Gregorian dates, amenities, ratings, calendars and full guest reviews into one schema. It runs read-only and locally, providing merged results with direct booking links while withholding host and reviewer identities.
      6
      13 npm
      3
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to search Iranian villas, cottages, and apartments, check nightly availability, calculate exact stay totals for dates and guests, and read reviews and host statistics. It is a read-only stdio MCP server with no login, booking, payment, or SMS endpoints.
      15
      129 PyPI
      2
      PolyForm Noncommercial 1.0.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to search Jabama stays, group tours, events and theater seats, and to fetch the exact night-by-night price for given dates and guests along with calendars, house rules, amenities, host reputation and reviews. Runs locally as a read-only server with no login, booking or payment.
      145 PyPI
      2
      PolyForm Noncommercial 1.0.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to compare and find the cheapest domestic and international flights, hotels, villas, trains and buses in Iran, with exact Toman prices, fare and cancellation rules, baggage details, seats left and hotel reviews. Also covers CIP lounges, eSIM plans, visas and tours, and is read-only, so it never books, holds seats or pays.
      364 PyPI
      2
      PolyForm Noncommercial 1.0.0