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==0.1.1"]
    }
  }
}

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


Built by Mohammad Abbasi — Almanibama · mabbasi.ir

Metadata

Release files for sok-mcp 0.1.1

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.1
File Size Uploaded Provenance Actions
sok_mcp-0.1.1.tar.gz 14.5 kB With provenance Details for sok_mcp-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 23.3 kB

Release files / sok_mcp-0.1.1.tar.gz

Download URL sok_mcp-0.1.1.tar.gz
Size 14.5 kB
Tags Source
SHA-256 checksum
How to use checksums
27e1b427bc6505a7bdbfbd7d1cc78c4ee9235214b4f648357378330e1a8c29eb
BLAKE2b-256 checksum
How to use checksums
15bb5446ffc8be52a4d4d597ac4fbc035b3fee3315727b178c2af2e40a9d2636
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 10, 2026.

Transparency log

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

Download URL sok_mcp-0.1.1-py3-none-any.whl
Size 8.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
caf9f0a119598c515bebf3a0acd9cf5cee7a4679742b132bc785cc5ca2ec1fb6
BLAKE2b-256 checksum
How to use checksums
48e97dcc90fa0099db5bc59367c88406b7f7b40128395a647ee3799b8c2f0b5e
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 10, 2026.

Transparency log

Security for sok-mcp 0.1.1

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.1.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 10, 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.1 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