Back to Browse

Migros MCP Server

Developer ToolsLow Risk8.3MCP RegistryLocal
Free

Server data from the Official MCP Registry

Unofficial MCP server for Migros Sanal Market — search, prices, promos, categories, cart.

About

Unofficial MCP server for Migros Sanal Market — search, prices, promos, categories, cart.

Security Report

8.3
Low Risk8.3Low Risk

Valid MCP server (1 strong, 4 medium validity signals). 4 known CVEs in dependencies Imported from the Official MCP Registry. Trust signals: trusted author (50/52 approved). 1 finding(s) downgraded by scanner intelligence.

6 files analyzed · 5 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

HTTP Network Access

Connects to external APIs or services over the internet.

env_vars

Check that this permission is expected for this type of plugin.

How to Install

Add this to your MCP configuration file:

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

Some servers take additional arguments. See the repository for details.

Documentation

View on GitHub

From the project's GitHub README.

migros-mcp 🇹🇷

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

Unofficial MCP server for Migros Sanal Market (migros.com.tr), Türkiye's largest supermarket chain — live product search, prices, Money-discount promotions, categories and price stats. Read-only tools need no login. Optional account actions (cart + start-checkout) use your own browser session, stored only in your MCP config — see Account actions.

Part of the "Turkey MCP factory". Not affiliated with Migros. Note: this is the Turkish Migros (migros.com.tr) — not the Swiss Migros, which has its own unrelated migros-mcp on npm. Price comparison across chains is covered by yibudak/marketfiyati_mcp (marketfiyati.org.tr); this server covers Migros's own catalogue, promos and categories.

For AI agents

Add to your MCP client config (stdio):

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

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

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

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

Tools

ToolDescription
migros_search_productsSearch products — query (Turkish, e.g. "süt"), page, sort: relevance / best_seller / discount / discount_amount / price_asc / price_desc
migros_get_productFull detail for one product — product_id (numeric, from search)
migros_list_categoriesTop-level store categories (11)
migros_list_promotionsMoney-discounted products for a keyword, best discount first
migros_price_statsPrice stats (min/median/max/mean, cheapest & priciest) for a keyword
migros_view_cartYour cart: items (cart item id, product id, name, quantity, unit, total price in TRY), totals, cart URL — needs MIGROS_SESSION
migros_add_to_cartAdd a product to your cart (product_id, quantity 1..99, replace semantics) — needs session + confirm=true
migros_remove_from_cartRemove a product from your cart (product_id) — needs session + confirm=true
migros_update_cart_quantityChange a cart item's quantity (product_id, quantity 1..99) — needs session + confirm=true
migros_create_orderStart checkout: verifies the cart and returns the checkout (ödeme) link — places NO order, never pays — needs MIGROS_SESSION

Example output (migros_search_products / "süt", price_asc):

{"query": "süt", "hit_count": 371, "page_count": 13, "count": 36,
 "products": [{"id": 20000011010208, "name": "Sütaş Latte 1 L",
 "brand": "Sütaş", "category": "Uzun Ömürlü Süt",
 "price_tl": 189.0, "money_discount_pct": 0, ...}]}

Notes:

  • Prices are Turkish Lira (TRY); the API reports kuruş (1/100 TRY).
  • money_discount_pct is the Money-loyalty discount percentage, not a strikethrough — the shelf price is what a guest pays.
  • The first search result is often a sponsored/pinned product; the rest follow the requested sort.
  • Data: Migros's public product-bff JSON API (migros.com.tr/rest/product-bff) — no key, no login, read-only.
  • Cart quantities use replace semantics: setting a product's quantity makes it that amount — it is not added on top of what is already in the cart. Each product also has a max amount (e.g. 8); the server rejects quantities above it.
  • Store lookup and delivery slots need an authenticated session, so this server does not offer them.

Account actions

Cart 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 migros.com.tr. The server never logs, prints, or persists it, and it never appears in any tool output. Every cart mutation (add / remove / change quantity) also needs confirm=true, or it does nothing.

Setup (one time)

  1. Log in to migros.com.tr in your browser (Chrome / Edge / Firefox).
  2. Open DevTools (F12) → Network tab → reload the page.
  3. Click any request to migros.com.tr → Headers → find the Cookie request header → copy its full value. (Alternative: DevTools → Application → Cookies → https://www.migros.com.tr — but the Network-tab Cookie header is the complete value; copy that one.)
  4. Paste it as MIGROS_SESSION in your MCP client config (see the example above) and restart the MCP server.
  5. Try migros_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 migros.com.tr revokes the session immediately.
  • Never share the cookie value — anyone holding it has full access to your Migros account (cart, orders). Do not paste it into chats, issues, or screenshots.
  • Account actions are deliberately narrow: cart (view / add / remove / change quantity) and start-checkout (returns the checkout link only). There is no order placement, payment, coupon, or bulk action. migros_create_order never places an order — you complete address, delivery slot and payment in the browser.
  • store_id / unit are resolved from the public product detail automatically; pass them only to skip that lookup.
  • The cart endpoints were reverse-engineered from Migros's public storefront code and verified live as far as possible without an account (the cart API answers cookie-less requests with a bare HTTP 400; the order API answers HTTP 401). Response shapes are parsed defensively — an unexpected shape returns an explicit note, never invented data.

Development

python3 -m venv .venv && .venv/bin/pip install "mcp<2" curl-cffi pytest
.venv/bin/python -m pytest tests/ -q
  • tests/test_products.py — offline, parses real captured API fixtures
  • tests/test_account.py — offline, mocked cart API + recorded gate shapes
  • tests/test_live.py — 4 cautious live requests against migros.com.tr
  • tests/test_live_account.py — live gate-shape probes (no session) + live product resolver

Cite this project

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

Abbasi, Mohammad. migros-mcp. v0.2.0, 2026. https://github.com/mohammad-abbasi-sh/migros-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 — free for personal and non-commercial use; commercial use needs a separate license (see LICENSE).


Built by Mohammad Abbasi — Almanibama · mabbasi.ir

Reviews

No reviews yet

Be the first to review this server!