migros-mcp
Read-only Migros catalog access for product search, details, categories, promotions, and price stats.
Search products by Turkish keyword with pagination and sorting (relevance, best seller, discount, price).
Fetch full details for a product by numeric ID.
List top-level Migros store categories.
List Money-discounted products for a keyword, best discount first.
Compute price statistics (min/median/max/mean, cheapest and priciest) for a keyword’s first search page.
Prices are in TRY; this schema exposes no cart or account actions.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@migros-mcp find the cheapest olive oil on Migros"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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-mcpon npm. Price comparison across chains is covered byyibudak/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"
}
}
}
}Related MCP server: posokanei-mcp
Tools
Tool | Description |
| Search products — |
| Full detail for one product — |
| Top-level store categories (11) |
| Money-discounted products for a keyword, best discount first |
| Price stats (min/median/max/mean, cheapest & priciest) for a keyword |
| Your cart: items (cart item id, product id, name, quantity, unit, total price in TRY), totals, cart URL — needs |
| Add a product to your cart ( |
| Remove a product from your cart ( |
| Change a cart item's quantity ( |
| Start checkout: verifies the cart and returns the checkout (ödeme) link — places NO order, never pays — needs |
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_pctis 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-bffJSON 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)
Log in to migros.com.tr in your browser (Chrome / Edge / Firefox).
Open DevTools (F12) → Network tab → reload the page.
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.)Paste it as
MIGROS_SESSIONin your MCP client config (see the example above) and restart the MCP server.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_ordernever places an order — you complete address, delivery slot and payment in the browser.store_id/unitare 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/ -qtests/test_products.py— offline, parses real captured API fixturestests/test_account.py— offline, mocked cart API + recorded gate shapestests/test_live.py— 4 cautious live requests against migros.com.trtests/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
Available Tools
5 toolsmigros_get_productA
Full detail for one Migros product by numeric id (from search results).
Inputs: product_id (required). Returns: result
migros_list_categoriesB
Top-level Migros store categories (id, name, link slug).
Inputs: no named parameters. Returns: result
migros_list_promotionsA
Discounted (Money-indirimli) products for a keyword, best discount first. query: e.g. "süt", "çay", "deterjan". money_discount_pct is the Money-loyalty discount, not a price cut — see the server instructions.
Inputs: query (required), limit. Returns: result
migros_price_statsA
Price statistics (min/median/max/mean, cheapest & priciest) for a keyword's first page of Migros search results (up to 36 products).
Inputs: query (required). Returns: result
migros_search_productsA
Search Migros products by keyword (Turkish, e.g. "süt", "ekmek"). sort: relevance | best_seller | discount | discount_amount | price_asc | price_desc. Returns up to 36 products per page with prices in TRY.
Inputs: query (required), page, sort. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
The tools are mostly distinct, but migros_search_products with discount-related sort options overlaps conceptually with migros_list_promotions. Descriptions help differentiate general search from Money-discount-specific promotions, while get_product, categories, and price_stats are clearly separate.
All tools use the migros_ prefix and snake_case, which is consistent. Four follow a verb_noun pattern, with migros_price_stats being a noun-only minor deviation.
Five tools are well-scoped for a product search/catalog/price-information server. Each tool has a clear role, and the set avoids unnecessary bloat.
Core capabilities like product search, product detail, categories, promotions, and price statistics are present. However, migros_list_categories is a dead end without a tool to fetch products by category, and search/price stats are limited to the first page of up to 36 results without explicit pagination control.
Related MCP Connectors
Product Barcode API - camgoz.net: Provides information on products available in markets across.
Read-only Tudetic product search and vehicle compatibility with safe public pricing.
Read-only shopping decisions, product search, offers, and price history for Greece.
Read-only product catalog for shopping agents: search, details, compatibility, shop answers.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables querying Turkish market prices, searching products, and comparing prices across different stores using the Market Fiyatı API.38 npm38MIT
- AlicenseAqualityFmaintenanceRead-only MCP server for Greek supermarket product and price data from PosoKanei. Enables product search, barcode lookup, price comparison across retailers, and basket evaluation.1051 npm5MIT
- AlicenseAqualityBmaintenanceEnables read-only product search, product-detail lookup, review retrieval, category browsing, and price statistics for a Turkish e-commerce marketplace.6PolyForm Noncommercial 1.0.0
- AlicenseAqualityBmaintenanceEnables read-only browsing of BİM's weekly Aktüel and İndirim deals, letting users search priced products, view per-week price statistics, and list product categories and Turkish provinces.7PolyForm Noncommercial 1.0.0