Skip to main content
Glama
io.github.mohammad-abbasi-sh/watsons-mcp

io.github.mohammad-abbasi-sh/watsons-mcp

README.md
# watsons-mcp 🇹🇷

[![mohammad-abbasi-sh/watsons-mcp MCP server](https://glama.ai/mcp/servers/mohammad-abbasi-sh/watsons-mcp/badges/score.svg)](https://glama.ai/mcp/servers/mohammad-abbasi-sh/watsons-mcp)

mcp-name: io.github.mohammad-abbasi-sh/watsons-mcp

Unofficial **read-only** MCP server for **Watsons Türkiye** (watsons.com.tr) — Türkiye's #2 health & beauty / personal-care retail chain (500 stores in 71 cities, 500th store opened July 2026, AS Watson Group): product search, full product detail, reviews, category and brand listings, the category directory, the brand directory, price statistics and the store locator.

> Part of the "Turkey MCP factory" (Sepehr-style pipeline). Not affiliated with Watsons.

## For AI agents

Add to your MCP client config (stdio):

```json
{
  "mcpServers": {
    "watsons": {
      "command": "uvx",
      "args": ["watsons-mcp==0.1.0"]
    }
  }
}
```

Or run locally: `python -m watsons_mcp.server` (needs `mcp<2`, `curl-cffi`).

## Tools

| Tool | Description |
|------|-------------|
| `watsons_search_products` | Search products by Turkish keyword (sitemap match, 8,325 products) |
| `watsons_get_product` | Full detail of one product — `product`: BP code (e.g. `BP_1491427`) or full URL |
| `watsons_product_reviews` | Reviews of one product — rating, headline, comment, alias, date |
| `watsons_category_products` | Products of one category — `category`: path like `/makyaj/c/100` |
| `watsons_list_categories` | Full category directory (834 categories), optional `top` filter |
| `watsons_list_brands` | Brand directory (497 brands), optional `query` filter |
| `watsons_brand_products` | Products of one brand — `brand`: path like `/flormar/b/3193` |
| `watsons_list_stores` | Watsons stores (541), optional `city` filter |
| `watsons_price_stats` | Price statistics for one category (min/median/mean/max, TRY) |
| `watsons_health` | Check whether Watsons is reachable right now |

Example output (`watsons_get_product` / BP_1491427):

```json
{"code": "BP_1491427", "name": "Anua Heartleaf %77 Soothing Tonik 250 ml",
 "brand": "ANUA", "price_try": 1199.9, "price_formatted": "1.199,90 ₺",
 "stock_level": 1259, "stock_status": "inStock", "in_stock": true,
 "average_rating": 0.0, "number_of_reviews": 0}
```

Notes:
- Data comes from the storefront's own public OCC API (`api.watsons.com.tr`, no key, no login) plus its official sitemaps and server-rendered listing pages.
- Two honest limits, both verified live 2026-12-02: the site's own search index is down — its Solr product collection is missing (`Collection not found: master_wtctr_Product_flip`), so the live `/arama` page renders zero cards. Search therefore matches keywords against the official product sitemap (8,325 products) and returns names/codes/URLs without prices; use `watsons_get_product` for a price.
- Category/brand listings show the first page only (28 products): the server-rendered page ignores `?page=` and `?sort=` — `page=1` and `page=2` return identical cards.
- The storefront sits behind Akamai: plain curl gets HTTP 403, so the transport uses Chrome TLS impersonation with fingerprint rotation + retries. Requests are spaced ~1.5s apart.
- Prices are live TRY shelf prices and move with campaigns — verify on the official site before buying.

## Development

```bash
python3 -m venv .venv && .venv/bin/pip install "mcp<2" "curl-cffi>=0.7,<1.0" pytest
.venv/bin/python -m pytest tests/test_parse.py -q   # offline, recorded fixtures
.venv/bin/python -m pytest tests/test_live.py -q    # live, against watsons.com.tr
.venv/bin/python tests/smoke_live.py                # daily smoke probe
```

## License

[PolyForm Noncommercial 1.0.0](https://polyformproject.org/licenses/noncommercial/1.0.0/) — free for personal and non-commercial use; commercial use needs a separate license.

Built by [Mohammad Abbasi](https://github.com/mohammad-abbasi-sh) — [Almanibama](https://almanibama.ir) · [mabbasi.ir](https://mabbasi.ir)