Khedmat Az Ma MCP
by sepehr071
README.md
# Khedmat Az Ma MCP server
Khedmat Az Ma MCP is an unofficial, read-only Model Context Protocol server for the Iranian home services marketplace <span dir="rtl">«خدمت از ما»</span>. It lets AI agents search services, check published prices in tomans, find specialists by city, and read public profiles and customer reviews. [Khedmat Az Ma](https://khedmatazma.com)

## For AI agents
- **Runtime.** Local checkout, Python 3.10+, `uv`, and stdio transport. The public lookups require no account or API key.
- **Workflow.** Start with `km_search_services` for the national catalog or `km_search_city_services` to find services enabled in a city. Pass the `service_slug` to the price or specialist tool. Pass a listing's `profile_url` to the profile tool.
- **Location.** Use the Persian city name, such as `اصفهان`, or the site slug, such as `esfahan`. Omitting `city` from the price tool returns the country-level guide.
- **Prices.** Use the published price type, geographic scope, billing unit, and date when available. Include the returned `source_url`.
## Example prompts
- “What is the published price range for four hours of home cleaning on Khedmat Az Ma?”
- “Find air-conditioner repair specialists in Tehran and show public reviews for one of them.”
- “Which home cleaning services does Khedmat Az Ma list in Isfahan?”
### نمونه سؤال به فارسی
- <span dir="rtl">هزینه چهار ساعت نظافت منزل چقدر است؟</span>
- <span dir="rtl">برای تعمیر کولر گازی در تهران چند متخصص پیدا کن و نظر مشتریان را نشان بده.</span>
- <span dir="rtl">خدمت از ما چه خدمات نظافتی در اصفهان دارد؟</span>
## Quick start
Install `uv` and use the absolute path to your local `khedmatazma-mcp` directory in the examples below.
```sh
uv run --directory "/absolute/path/to/khedmatazma-mcp" khedmatazma-mcp
```
### Claude Code
```sh
claude mcp add --transport stdio khedmatazma -- uv run --directory "/absolute/path/to/khedmatazma-mcp" khedmatazma-mcp
```
### JSON configuration for stdio clients
Add this entry to your client's `mcpServers` configuration if it uses that format. On Windows, a path such as `C:/projects/khedmatazma-mcp` also works in the JSON.
```json
{
"mcpServers": {
"khedmatazma": {
"command": "uv",
"args": ["run", "--directory", "/absolute/path/to/khedmatazma-mcp", "khedmatazma-mcp"]
}
}
}
```
Set `HTTPS_PROXY` in the client's environment if outbound HTTPS requires a proxy.
## Tools
| Tool | Arguments | Returns |
| --- | --- | --- |
| `km_search_services` | Optional `query`, `limit` | National service names, slugs, and advertised starting prices where shown. |
| `km_search_city_services` | `city`, optional `query`, `limit` | Services the site lists as enabled for that city, with links to the city service pages. |
| `km_get_service_prices` | `service_slug`, optional `city` | Published average prices, structured aggregate offers, and itemized estimates where available. |
| `km_find_specialists` | `service_slug`, `city`, optional `page` | Public specialist listings with profile URLs and, where shown, ratings, review counts, completed jobs, and coverage. Use `has_more` to page. |
| `km_get_specialist_profile` | `profile_url`, optional `review_page` | Public profile, coverage, listed services, rating summary, and up to ten customer reviews per page. Use `has_more_reviews` to page. |
## FAQ
### How much does home cleaning cost on Khedmat Az Ma?
Use `km_get_service_prices` with `home-cleaning` for published estimates. The country guide includes itemized prices for different job durations when published. Add a city to get that city's guide. Keep the billing unit with the amount when quoting it. [Home cleaning price guide](https://khedmatazma.com/subservice/home-cleaning)
### Why can a service have two price ranges?
Khedmat Az Ma can publish a displayed average and a different structured aggregate offer on the same page. The server labels both and returns amounts in tomans, converting structured values from rials at 10 rials per toman. Use the displayed average when describing what visitors see. [Tehran air-conditioner repair price guide](https://khedmatazma.com/order/air-conditioner-repair/tehran)
### What do the price dates mean?
`page_updated_at` is the source page's modification date. `price_updated_jalali` is the update label shown for the displayed average in the Solar Hijri calendar. `price_valid_until` comes from the structured offer metadata. Date values depend on what the source publishes.
### Does an enabled city listing mean a specialist is available?
An enabled listing means Khedmat Az Ma publishes the service in that city. A specialist profile describes listed coverage and carries ratings and reviews across services. Check the review's service label when comparing feedback about a specific job. Confirm availability and job-specific quotes with the specialist. [Isfahan home cleaning listings](https://khedmatazma.com/order/home-cleaning/esfahan)
### Can the MCP server book a service?
The MCP server provides public lookups. Bookings and requests for a job-specific quote take place on Khedmat Az Ma. [Khedmat Az Ma](https://khedmatazma.com)
## Development
From the `khedmatazma-mcp` directory, run the offline tests with synthetic fixtures and build the package.
```sh
uv sync
uv run pytest
uv run ruff check src tests
uv build
```
## License
Licensed under the [PolyForm Noncommercial License 1.0.0](LICENSE). For commercial licensing, contact [Sepehr Radmard](https://github.com/sepehr071).
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues