koton-mcp
# koton-mcp 🇹🇷
[](https://glama.ai/mcp/servers/mohammad-abbasi-sh/koton-mcp)
mcp-name: io.github.mohammad-abbasi-sh/koton-mcp
Unofficial **read-only** MCP server for **Koton** (koton.com) — Türkiye's big fashion retailer (founded 1988, 500+ stores, 20,000+ SKUs a year; 2.94M visits/mo, TR #400): product search, full product detail, category listings, the category directory, price statistics and the store locator.
> Part of the "Turkey MCP factory" (Sepehr-style pipeline). Not affiliated with Koton.
## For AI agents
Add to your MCP client config (stdio):
```json
{
"mcpServers": {
"koton": {
"command": "uvx",
"args": ["koton-mcp==0.1.0"]
}
}
}
```
Or run locally: `python -m koton_mcp.server` (needs `mcp<2`, `curl-cffi`).
## Tools
| Tool | Description |
|------|-------------|
| `koton_search_products` | Search products by Turkish keyword — `query` e.g. `elbise` (3,315 matches), `sort`: default / price / -price / newcomers |
| `koton_get_product` | Full detail of one product — `product`: koton.com URL or path |
| `koton_category_products` | Products of one category — `category`: slug e.g. `kadin-elbise` (2,359 products) |
| `koton_list_categories` | Full category directory (311 categories) with Turkish names and groups |
| `koton_price_stats` | Price statistics for one search or category (min/median/mean/max, TRY) |
| `koton_list_stores` | Koton stores (393), optional `city` filter (e.g. `İstanbul`) |
| `koton_health` | Check whether Koton is reachable right now |
Example output (`koton_get_product` / Askılı Elbise):
```json
{"name": "Askılı Elbise", "price_try": 1499.99, "currency": "TRY",
"availability": "InStock", "in_stock": true, "brand": "Koton",
"color": "Pembe", "sku": "8682660244578", "base_code": "1YAK84737FK",
"stock": 1, "sizes": [{"size": "XS", "sku": "8682660244592"},
{"size": "S", "sku": "8682660244578"}, {"size": "M", "sku": "8682660244561"}]}
```
Notes:
- Data comes from the storefront's own server-rendered pages (Akinon Omnishop, no key, no login): listing pages carry a hidden JSON block per product (name, live TRY price, stock, colour, size, taxonomy, base code) and detail pages carry schema.org Product JSON-LD plus sizes with per-size SKUs.
- Two honest limits, both verified live 2026-12-03: the site shows no customer reviews (there is no ratings tool), and there is no per-product discount history — the price shown is the current shelf price. Listings show 24 products per page.
- 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 koton.com
.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)
TDQS
Scored across 7 tools
Each tool targets a distinct entry point: keyword search, single-product detail, category browsing, category directory, price aggregation, store lookup, and health probing. The only mild overlap is koton_search_products vs koton_category_products (both list products) and koton_price_stats, which internally accepts either a query or a category, but descriptions make the boundaries clear.
All names use snake_case with a consistent koton_ prefix, which is predictable. However, the verb pattern is not uniform: search_products/get_product/list_categories/list_stores are verb_noun, while category_products and price_stats are bare noun phrases.
Seven tools is well-scoped for a read-only e-commerce catalog server, with each tool covering a distinct capability (discovery, detail, browse, aggregation, physical stores, diagnostics). Nothing feels padded or missing at this scope.
The surface covers the core read-only lifecycle: keyword search, category browse, category directory, full product detail, price analytics, store locator, and reachability check. Gaps remain around filtering (size, colour, price range), pagination beyond the 50-item/3-page cap, and per-store stock or availability, which agents may hit in deeper workflows.