Skip to main content

sok-mcp 🇹🇷

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

Unofficial read-only MCP server for ŞOK (sokmarket.com.tr) — one of Türkiye's big discount grocery chains: product search, product details, categories, campaign groups and price statistics.

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

For AI agents

Add to your MCP client config (stdio):

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

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

Tools

Tool Description
sok_search_products Search products by name — query, limit (1..30, first page only)
sok_get_product Product detail — slug_or_url (e.g. ...-p-320230 or a full sokmarket.com.tr URL)
sok_list_categories Store categories (name, slug, id, url)
sok_category_products Products in one category — category slug or URL, limit (1..30)
sok_list_promotions Current campaign groups from /kampanyalar
sok_price_stats Price stats for a search — count, min, max, median, mean in TRY

Example output (sok_search_products / "süt"):

{"query": "süt", "total": 207,
 "products": [{"title": "Mis Uht Süt Yarım Yağlı 1 L", "id": "5834",
   "url": "https://www.sokmarket.com.tr/mis-uht-sut-yarim-yagli-1-l-p-5834",
   "price_try": 43.5}]}

Example output (sok_price_stats / "süt", first page of 10):

{"query": "süt", "total_matches": 207, "count": 10,
 "min_try": 16.5, "max_try": 88.5, "median_try": 55.75, "mean_try": 52.05}

Notes:

  • Prices are Turkish Lira (TRY); the site writes them Turkish-style (43,50₺).
  • Search/category pages return the first page (~20 products); total reports all matches.
  • Data: sokmarket.com.tr public server-rendered pages — no key, no login, read-only.

Development

python3 -m venv .venv && .venv/bin/pip install "mcp<2" curl-cffi requests pytest
.venv/bin/python -m pytest tests/ -q
  • tests/test_products.py — offline, parses real captured fixtures
  • tests/test_live.py — 5 cautious live requests against sokmarket.com.tr

License

MIT

Metadata

Release files for sok-mcp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sok-mcp 0.1.0
File Size Uploaded Provenance Actions
sok_mcp-0.1.0.tar.gz 13.1 kB With provenance Details for sok_mcp-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sok-mcp 0.1.0
File Interpreter ABI Platform Actions
sok_mcp-0.1.0-py3-none-any.whl Python 3 none any Details for sok_mcp-0.1.0-py3-none-any.whl

Total release size: 20.7 kB

Release files / sok_mcp-0.1.0.tar.gz

Download URL sok_mcp-0.1.0.tar.gz
Size 13.1 kB
Tags Source
SHA-256 checksum
How to use checksums
2282e97ada2825b29f3462a758c359533007bc1863d304c70602f25b84fc468f
BLAKE2b-256 checksum
How to use checksums
78a6b5259132389d03530185e1f7ba826462dc05357723ff39ac3e5f390cd789
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.

Transparency log

Release files / sok_mcp-0.1.0-py3-none-any.whl

Download URL sok_mcp-0.1.0-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3ebca43d2e3c318acc52d550a314022f29a8b29ba57f7d92002d834439d1a0b2
BLAKE2b-256 checksum
How to use checksums
355ab65aff7a1dbe9bfa349b721b1adaba8fded0fc66731314780875d8575ca1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.

Transparency log

Security for sok-mcp 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for sok_mcp-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page