Skip to main content
Glama
README.md
# Sanjagh MCP server for Iranian home services

Sanjagh MCP (`sanjagh-mcp`) is an unofficial, read-only Model Context Protocol server for Sanjagh (<span lang="fa" dir="rtl">سنجاق</span>), an Iranian marketplace for home cleaning, repairs, and other local services. Search the Persian service catalog, read published price estimates and seasonal history in toman, and find specialists or neighborhood listings by city.

![Sanjagh MCP for Iranian home service prices and specialist listings](assets/banner.png)

[For AI agents](#for-ai-agents) · [Example prompts](#example-prompts) · [Quick start](#quick-start) · [Tools](#tools) · [FAQ](#faq) · [فارسی](#فارسی) · [License](#license)

## For AI agents

- **Connection.** Five read-only tools over stdio from a local checkout with `uv` and Python 3.10+. Access to Sanjagh's public data is anonymous.
- **Workflow.** Call `sj_search_services` with a Persian service name. Pass its `service_slug` to the price, history, or listing tools. For listings, use a Persian city name such as `تهران` or `مشهد`.
- **Prices.** Use the billing unit supplied with each estimate, such as per hour, per item, or per job. Amounts are in Iranian toman. The geographic scope of the price tables and historical series is unspecified.
- **Local listings.** Specialist cards and neighborhood selector entries are scoped to a service and city. Listings reflect what Sanjagh publishes for that lookup.
- **Citations.** Include the returned `source_url` with estimates and listings. Include `source_updated_at` when supplied and use the chart title to identify what a historical series measures.

## Example prompts

- “What does Sanjagh estimate for four hours of house cleaning? Show the price range in toman and say what the charge covers.”
- “How has the cost of washing a 12-square-metre machine-made rug changed across the published seasons?”
- “Find home cleaning specialists listed in Mashhad. Include each profile link and any displayed rating or review count.”
- “Does Sanjagh show a home cleaning listing for Tehranser? Share the neighborhood link if available.”

## Quick start

Install `uv` and open a local checkout of `sanjagh-mcp`. Replace `/absolute/path/to/sanjagh-mcp` with the directory containing `pyproject.toml`. On Windows, a path such as `E:/projects/sanjagh-mcp` works in the examples below.

Run the local stdio server directly:

```sh
uv run --directory "/absolute/path/to/sanjagh-mcp" sanjagh-mcp
```

### Claude Code

Run this in the project where you want to use the server:

```sh
claude mcp add --transport stdio sanjagh -- uv run --directory "/absolute/path/to/sanjagh-mcp" sanjagh-mcp
```

### Other stdio MCP clients

For clients that use an `mcpServers` JSON configuration, add the server entry below:

```json
{
  "mcpServers": {
    "sanjagh": {
      "command": "uv",
      "args": ["run", "--directory", "/absolute/path/to/sanjagh-mcp", "sanjagh-mcp"]
    }
  }
}
```

If your network uses a proxy, pass `HTTPS_PROXY` and `NO_PROXY` through your client's server environment as needed.

## Tools

| Tool | Inputs | Data returned |
| --- | --- | --- |
| `sj_search_services` | `query`, optional `limit` | Matches from the public Persian catalog, including service names, category when available, reusable slugs, and price page URLs |
| `sj_get_service_prices` | `service_slug` | Published market-median estimates, numeric low and high amounts in toman when available, billing units, page update date when present, and links to city listings |
| `sj_get_price_history` | `service_slug`, optional `limit` | Recent seasonal observations in chronological order, with Solar Hijri periods and amounts in toman for the example named by the published chart |
| `sj_find_specialists` | `service_slug`, `city`, optional `limit` | Public specialist cards with names, profile links, and any displayed rating out of five, review count, or service area |
| `sj_list_neighborhoods` | `service_slug`, `city`, optional `query` and `limit` | Neighborhoods in the public selector, optionally filtered by name or alias, with a public neighborhood listing link when available |

## FAQ

### Can I use the prices as a quote for Tehran or Mashhad?

Treat the published prices as reference estimates. The price pages leave geographic scope unspecified, even when they link to specialist listings for Tehran, Mashhad, or other cities. For a quote for your job, contact a provider through Sanjagh.

### Why is price history empty for a service?

Historical observations come from the seasonal chart on each service's price page. If Sanjagh publishes only a current price table, the history tool returns `no_public_history`. When a chart is present, its title identifies the specific example measured.

### What does an empty neighborhood result mean?

A city can have specialist listings with an empty neighborhood selector. Check `sj_find_specialists` for city-level listings. In `sj_list_neighborhoods`, `available_count` counts published selector entries and `count` counts entries matching the query before the result limit.

## فارسی

<p lang="fa" dir="rtl">با این سرور می‌توانید فهرست خدمات سنجاق را جست‌وجو کنید، برآورد قیمت‌ها را به تومان ببینید و متخصصان یک خدمت را در شهر دلخواه پیدا کنید. برای بعضی خدمات، روند فصلی قیمت هم در دسترس است.</p>

- <span lang="fa" dir="rtl">هزینهٔ چهار ساعت نظافت منزل در سنجاق چقدر است؟ بازهٔ قیمت را به تومان بگو.</span>
- <span lang="fa" dir="rtl">چند متخصص نظافت منزل در مشهد پیدا کن و لینک پروفایل و امتیازشان را نشان بده.</span>
- <span lang="fa" dir="rtl">سنجاق برای نظافت منزل در تهرانسر صفحهٔ جداگانه دارد؟ اگر دارد، لینک آن را بده.</span>

## Development

Run from the `sanjagh-mcp` directory:

```sh
uv run pytest
uv run ruff check .
uv run ruff format --check src tests
uv build --wheel
```

The tests use local fixtures and run without calling Sanjagh.

## License

Licensed under the [PolyForm Noncommercial License 1.0.0](LICENSE). For commercial licensing, contact [Sepehr Radmard](https://github.com/sepehr071).

TDQS

A3.5/5.0

Scored across 5 tools

Disambiguation4/5

Each tool targets a distinct step of a clear pipeline: search catalog → get prices/history → find specialists → list neighborhoods. The main potential confusion is between sj_get_service_prices and sj_get_price_history, but the descriptions distinguish current market-median table vs. seasonal chronological observations well enough. sj_search_services vs sj_get_service_prices are also clearly separated by 'search/discovery' vs 'read data for a known slug'.

Naming Consistency5/5

All five tools follow the same sj_<verb>_<noun> snake_case pattern (search_services, get_service_prices, get_price_history, find_specialists, list_neighborhoods). The prefixed namespace and verb choice (search/get/find/list) map predictably to the action performed.

Tool Count5/5

Five tools is tightly scoped to a single read-only domain (Sanjagh catalog, prices, specialists, neighborhoods), and each tool covers a distinct lookup step. No tool appears redundant or superfluous.

Completeness4/5

The read-only lifecycle (discover slug → prices → history → specialists → neighborhoods) is well covered for a public data surface, where create/update/delete are out of scope. Minor gaps: no direct 'get service details by slug' beyond prices, and no way to enumerate cities/available services for a city before searching specialists.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues