Skip to main content
Glama

hepsiburada-mcp 🇹🇷

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

Unofficial MCP server for hepsiburada.com, Türkiye's leading e-commerce marketplace — search millions of products, read product details (price, stock, seller, GTIN, highlights), read customer reviews, browse the 9 top categories, and get price statistics (min / median / mean / max) for any query. Read-only tools need no login. Optional account actions (cart + favorites) use your own browser session, stored only in your MCP config — see Account actions.

Built by Mohammad Abbasi as part of the "Turkey MCP factory" (Sepehr-style pipeline). Not affiliated with hepsiburada.com.

For AI agents

Add to your MCP client config (stdio):

{
  "mcpServers": {
    "hepsiburada": {
      "command": "uvx",
      "args": ["hepsiburada-mcp==0.2.0"]
    }
  }
}

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

For account actions (cart + favorites), add your browser session cookie to the config — see Account actions:

{
  "mcpServers": {
    "hepsiburada": {
      "command": "uvx",
      "args": ["hepsiburada-mcp==0.2.0"],
      "env": {
        "HEPSIBURADA_SESSION": "YOUR_SESSION_COOKIE_HERE"
      }
    }
  }
}

Related MCP server: com.gladeapi/api

Tools

Tool

Description

hepsiburada_search

Search products by keyword — query ("iphone", "kablosuz kulaklık"), sort ("relevance" / "price_asc" / "price_desc"), limit 1..24, page 1-based; returns title, price in TRY, rating, review count, URL, SKU, image, campaign

hepsiburada_product_detail

Detail of one product (product = full URL or path with "-p-HBCV…"): name, brand, price in TRY, stock status, rating, review count, seller (+ official-seller flag), category path, color, GTIN, images, highlights, plus listing_id / product_id / merchant_id (for account actions)

hepsiburada_list_categories

The 9 top categories: Turkish name, URL, category id

hepsiburada_price_stats

Price statistics for a query: count, min / median / mean / max price in TRY across the first page

hepsiburada_product_reviews

Recent customer reviews of one product: author, star rating, review text, date

hepsiburada_view_cart

Your cart: items (basket item id, SKU, name, quantity, price in TRY, selected / buy-later), total item count and total price, plus a cart URL — needs HEPSIBURADA_SESSION

hepsiburada_add_to_cart

Add a product to your cart (sku, listing_id or product_url, quantity 1..99) — needs session + confirm=true

hepsiburada_remove_from_cart

Remove one item from your cart (basket_item_id GUID from hepsiburada_view_cart, basket_type "Primary" / "Secondary") — needs session + confirm=true

hepsiburada_update_cart_quantity

Change one cart item's quantity (basket_item_id, quantity 1..99) — needs session + confirm=true

hepsiburada_list_favorites

Your favorite product SKUs — needs HEPSIBURADA_SESSION

hepsiburada_add_favorite

Add a product to your favorites (sku, listing_id + product_id or product_url) — needs session + confirm=true

hepsiburada_remove_favorite

Remove a product from your favorites (sku) — needs session + confirm=true

Example output (hepsiburada_search / "iphone"):

{"query": "iphone", "sort": "relevance", "page": 1, "count": 3, "products": [
  {"title": "Apple iPhone 15 128 GB Mavi",
   "url": "https://www.hepsiburada.com/apple-iphone-15-128-gb-mavi-p-HBCV00004X9ZCK",
   "sku": "HBCV00004X9ZCK", "price_try": 56999.0, "rating": 4.8,
   "review_count": 13102, "campaign": "30 günün en düşük fiyatı"}, …]}

Example output (hepsiburada_product_detail / iPhone 15):

{"name": "Apple iPhone 15 128 GB", "sku": "HBCV00004X9ZCK", "brand": "Apple",
 "category": "Telefon > Cep Telefonu > iPhone iOS Telefonlar", "color": "Mavi",
 "gtin": "0195949036583", "price_try": 56999.0, "price_currency": "TRY",
 "in_stock": true, "rating": 4.8, "review_count": 13102,
 "seller": "Hepsiburada", "official_seller": true,
 "highlights": ["Ekran : 6.1 inç Super Retina XDR OLED, …"], …}

Example output (hepsiburada_price_stats / "iphone"):

{"query": "iphone", "sort": "relevance", "count": 3, "min_try": 56999.0,
 "median_try": 102999.0, "mean_try": 91115.67, "max_try": 113349.0}

Account actions

Cart and favorites tools work with your own browser session — no password, no API key, no account is created anywhere. The session lives only in your MCP client config on your own machine and is sent only to hepsiburada.com. The server never logs, prints, or persists it, and it never appears in any tool output. Every mutation (add / remove / change quantity) also needs confirm=true, or it does nothing.

Setup (one time)

  1. Log in to hepsiburada.com in your browser (Chrome / Edge / Firefox).

  2. Open DevTools (F12) → Network tab → reload the page.

  3. Click any request to hepsiburada.com → Headers → find the Cookie request header → copy its full value. (Alternative: DevTools → Application → Cookies → https://www.hepsiburada.com — but the Network-tab Cookie header is the complete value; copy that one.)

  4. Paste it as HEPSIBURADA_SESSION in your MCP client config (see the example above) and restart the MCP server.

  5. Try hepsiburada_view_cart — it should show your real cart.

Notes

  • The session expires: when a tool reports "session expired", repeat steps 2–4 to copy fresh cookies. Logging out of hepsiburada.com revokes the session immediately.

  • Never share the cookie value — anyone holding it has full access to your Hepsiburada account (cart, favorites, orders). Do not paste it into chats, issues, or screenshots.

  • Account actions are deliberately narrow: cart (view / add / remove / change quantity) and favorites (list / add / remove). There is no checkout, payment, coupon, or bulk action.

  • listing_id / product_id come from hepsiburada_product_detail, or pass product_url to the add tools and they are resolved from the product page automatically.

How it works

hepsiburada.com returns HTTP 403 to plain HTTP clients, so the transport uses Chrome TLS impersonation (curl-cffi, chrome120). There is no public JSON API — data comes from the site's server-rendered HTML: search pages carry product cards, product pages carry schema.org Product JSON-LD plus a seller block and a "Ürün Özellikleri" highlights list, and the homepage carries the top categories. Requests are spaced ~0.8s apart; read-only tools need no login and no API key. Account tools call Hepsiburada's own checkout / basket / favorites APIs with your browser session (see Account actions); the endpoints were verified live (each returns HTTP 401 without a session, proving the path + auth gate).

Install

uvx hepsiburada-mcp==0.2.0        # run directly (needs uv)
# or
pip install hepsiburada-mcp==0.2.0
hepsiburada-mcp            # starts the MCP server on stdio

Tests

python -m venv .venv && .venv/bin/pip install -e .
.venv/bin/python -m unittest discover -s tests -v

Offline tests run on recorded fixtures (real pages fetched 2026-11-06); live tests hit hepsiburada.com.

Roadmap

  • Category-scoped search (search within one -c-… category)

  • Seller store pages (other sellers of the same product)

  • Price history (track a SKU over days)

Cite this project

If you use hepsiburada-mcp, build on it, or write about it, please credit the source:

Abbasi, Mohammad. hepsiburada-mcp. v0.2.0, 2026. https://github.com/mohammad-abbasi-sh/hepsiburada-mcp

A ready-to-copy citation is also available from GitHub's Cite this repository button (see CITATION.cff). Commercial use needs a separate license (see below).

License

PolyForm Noncommercial 1.0.0 — see LICENSE.


Built by Mohammad Abbasi — Almanibama · mabbasi.ir

Available Tools

6 tools
hepsiburada_healthA

Check whether hepsiburada.com is reachable right now.

Returns status ok (HTTP 200), blocked (HTTP 403/429 — bot wall or rate limit) or error, plus the HTTP status and the probed URL. One polite request; it does not fetch any listings.

Inputs: no named parameters. Returns: result

hepsiburada_list_categoriesA

Top categories of hepsiburada.com (9 main categories): Turkish name, category URL and category id. Use a category URL with hepsiburada_search via the query, or browse it in a browser.

Inputs: no named parameters. Returns: result

hepsiburada_price_statsA

Price statistics for a search query: product count, min / median / mean / max price in TRY across the first page of results. query: e.g. "iphone 15"; limit 1..24 (default 24 = whole first page).

Inputs: query (required), sort, limit. Returns: result

hepsiburada_product_detailA

Detail of one product: name, brand, price in TRY, stock status, rating and review count, seller (+ official-seller flag), category path, color, GTIN, images, highlights. product: a full product URL or site path containing "-p-HBCV…" (find one with hepsiburada_search first), e.g. "/apple-iphone-15-128-gb-mavi-p-HBCV00004X9ZCK".

Inputs: product (required). Returns: result

hepsiburada_product_reviewsA

Recent customer reviews of one product: author, star rating, review text and date. product: a full product URL or site path containing "-p-HBCV…" (find one with hepsiburada_search first). limit 1..24.

Inputs: product (required), limit. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: reachability check, keyword search, single-product detail, category listing, aggregate price statistics, and product reviews. The only possible adjacency is search vs. price_stats, but the aggregate-vs-results distinction is explicit in the descriptions.

    Naming Consistency3/5

    All tools share the hepsiburada_ prefix and snake_case, which helps grouping, but the action pattern is mixed: health and search are bare nouns/verbs, while list_categories is verb_noun and product_detail/product_reviews/price_stats are noun phrases. It is readable but not a consistent verb_noun convention.

    Tool Count5/5

    Six tools is well-scoped for a product research server: health, search, detail, categories, price stats, and reviews each cover a distinct need without bloat. The surface feels intentional rather than padded.

    Completeness4/5

    The server covers the core product-research lifecycle: availability, discovery via search/categories, product detail, aggregate pricing, and reviews. Minor gaps like similar-product lookup or category-browse-as-a-tool are workarounds via search queries, but the essential surface is present.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Provides read-only access to normalized Amazon marketplace data, including product details, search, offers, reviews, sellers, categories, deals, best sellers, identifiers, stock, and sales estimates across 13 marketplaces.
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      Enables sellers to read Turkish marketplace order, return, stock, review, and price data, detect SLA breaches, stock and price traps, and unanswered reviews, and generate a prioritized daily Turkish action report. It is read-only by design and never changes seller accounts.
      8
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables read-only search and browsing of n11.com products, including product details, customer reviews, top categories, and price statistics. It provides AI agents with structured marketplace data such as prices, stock status, ratings, sellers, and category paths.
      5
      PolyForm Noncommercial 1.0.0