Migros Sanal Market MCP Server
Unofficial MCP server for Migros Sanal Market — search, prices, promos, categories, cart.
Migros Sanal Market scores 66 (Good), licensed MIT and written in Python. It installs as a local process. It declares 10 tools. Filed under Uncategorized. GitHub shows 0 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
66 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade A
93/100 for listing completeness. Lost points: 1 of 10 tools barely described, short summary.
How quality is graded
Where the 66 comes from
22 + 20 + 0 + 10 + 4 + 10 = 66. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "mohammad-abbasi-sh-migros-mcp": { "command": "uvx", "args": [ "migros-mcp" ] } }}
Environment variables
This server does not declare environment variables.
Tools10Tool docs quality grade C
All capabilitiesAdd a product to your cart (productid, quantity 1..99, replace semantics) — needs session + confirm=true
Start checkout: verifies the cart and returns the checkout (ödeme) link — places NO order, never pays — needs MIGROSSESSION
Full detail for one product — productid (numeric, from search)
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
Remove a product from your cart (productid) — needs session + confirm=true
Search products — query (Turkish, e.g. "süt"), page, sort: relevance / bestseller / discount / discountamount / priceasc / pricedesc
Change a cart item's quantity (productid, quantity 1..99) — needs session + confirm=true
migros_view_carttoolYour cart: items (cart item id, product id, name, quantity, unit, total price in TRY), totals, cart URL — needs MIGROSSESSION
About
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"
}
}
}
}
Tools
| Tool | Description |
|---|---|
migros_search_products | Search products — query (Turkish, e.g. "süt"), page, sort: relevance / best_seller / discount / discount_amount / price_asc / price_desc |
migros_get_product | Full detail for one product — product_id (numeric, from search) |
migros_list_categories | Top-level store categories (11) |
migros_list_promotions | Money-discounted products for a keyword, best discount first |
migros_price_stats | Price stats (min/median/max/mean, cheapest & priciest) for a keyword |
migros_view_cart | Your cart: items (cart item id, product id, name, quantity, unit, total price in TRY), totals, cart URL — needs MIGROS_SESSION |
migros_add_to_cart | Add a product to your cart (product_id, quantity 1..99, replace semantics) — needs session + confirm=true |
migros_remove_from_cart | Remove a product from your cart (product_id) — needs session + confirm=true |
migros_update_cart_quantity | Change a cart item's quantity (product_id, quantity 1..99) — needs session + confirm=true |
migros_create_order | Start 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_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/ -q
tests/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
Frequently asked questions
What is Migros Sanal Market MCP Server?
Unofficial MCP server for Migros Sanal Market — search, prices, promos, categories, cart.
How do I install Migros Sanal Market MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Migros Sanal Market MCP Server runs locally from the PyPI package migros-mcp with the command uvx migros-mcp.
Is Migros Sanal Market MCP Server free and open source?
Yes. Migros Sanal Market MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does Migros Sanal Market MCP Server support remote (HTTP) connections?
No remote endpoint is listed for Migros Sanal Market MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does Migros Sanal Market MCP Server provide?
Migros Sanal Market MCP Server provides 10 tools, including migros_add_to_cart, migros_create_order, migros_get_product, and migros_list_categories. See the full tool list for descriptions and parameters.
How is Migros Sanal Market MCP Server's trust score calculated?
Migros Sanal Market MCP Server scores 66 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.