Skip to content
Back to search

migros-mcp

MCP server for Migros Switzerland product data - search products, nutrition info, store locations, and promotions

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today

Check it deeper on your machine

It has changed since its scan on 11 Nov 2026.

As a Claude Code plugin, install it and then ask Claude Code:

/plugin marketplace add keithmackay/mackayi/plugin install scanskillsafety@mackayiDo a deep scan of https://github.com/lewpgs/migros-mcp with scanskillsafety

Or from a terminal, clone it and run it:

git clone https://github.com/keithmackay/scanskillsafety-skill ~/.claude/skills/scanskillsafetynode ~/.claude/skills/scanskillsafety/cli.cjs --deep 'https://github.com/lewpgs/migros-mcp'

It checks the exact commit: every file, its packages against OSV (api.osv.dev), how it compares with this page's scan (findsafeskills.com receives the repository's address), and, if you agree, Claude reading every file with your own Claude subscription. It never runs the code.

Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/lewpgs--migros-mcp/badge.svg)](/listings/lewpgs--migros-mcp)

HTML

<a href="/listings/lewpgs--migros-mcp"><img src="/api/listings/lewpgs--migros-mcp/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

Claude Desktop (recommended)

1. Download [migros-mcp.mcpb](https://github.com/lewpgs/migros-mcp/releases/latest/download/migros-mcp.mcpb) 2. Install it:

**macOS** — Double-click the file, or drag and drop it onto the Claude Desktop app icon

**Windows** — In Claude Desktop, go to File > Settings > Extensions > Advanced Settings > Install Extension and select the file

3. Optional: enter your Migros email, password, and TOTP secret if you want the basket/order tools. Leave all three blank for anonymous access only. Credentials are stored in your OS keychain by Claude Desktop.

**About the TOTP secret.** This is **NOT** the rotating 6-digit code your authenticator app shows. It is the **static base32 seed** given to you (or scanned via QR code) when you originally set up the authenticator. It's a one-time value, typically ~32 characters of `A-Z2-7` (for example: `JBSWY3DPEHPK3PXP3PXP3PXP3PXP3PXP`), and it doesn't change every 30 seconds.

How to find it:

- **If you saved it during enrollment** — copy it from your password manager. In 1Password / Bitwarden / Proton Pass, open the Migros entry, edit the OTP field, choose *"View one-time password secret"* (or similar). The string after `secret=` is what you want. - **If you didn't save it** — Migros only shows the seed during initial 2FA setup, on the same screen as the QR code, in a box labeled *"Or enter the following key in the authenticator app:"*. Once enrollment completes, the seed is gone for good.

To recover it: in Migros account settings, **remove** your existing 2FA, then **set it up again**. The new setup screen will show the new seed text below the QR code — copy it before completing enrollment, and re-add the new entry to your authenticator app.

Leave the field blank entirely if your Migros account doesn't have 2FA enabled.

That's it.

---

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 220 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

This file has changed since it was scanned, so this is not exactly the text that was scanned, and no line is marked. The findings are listed with the safety scan above.

  1. # migros-mcp
  2. Lets Claude (and other AI apps) search [Migros](https://www.migros.ch) products, recipes, stores and promotions. Sign in, and it can also manage your basket and look up your orders, receipts and Cumulus points.
  3. > **Unofficial.** Not made or supported by Migros. It uses the same behind-the-scenes addresses as the Migros website, so it can break whenever Migros changes them. Use at your own risk.
  4. ## Install
  5. It runs on your own computer, so it works in desktop apps that can start a program: Claude Desktop, Claude Code, Cursor and similar. It doesn't work on claude.ai in a browser or in the Claude phone apps.
  6. ### Claude Desktop
  7. 1. Download **[migros-mcp.mcpb](https://github.com/lewpgs/migros-mcp/releases/latest/download/migros-mcp.mcpb)**.
  8. 2. Open Claude's settings: on Windows, the menu > **File** > **Settings**. On a Mac, **Claude** > **Settings** in the menu bar.
  9. 3. Go to **Desktop app**, scroll down to **Extensions** and click **Manage**.
  10. 4. Drag the downloaded file onto that page, then click **Install**.
  11. 5. Claude asks for your Migros details. Leave them all blank to only search. Fill in your email and password to use your basket and orders (see [Your Migros account](#your-migros-account)).
  12. Nothing else to install.
  13. ### Claude Code
  14. Needs [Node.js](https://nodejs.org) 22 or newer.
  15. ```bash
  16. claude mcp add migros -- npx -y migros-mcp
  17. ```
  18. With your Migros account:
  19. ```bash
  20. claude mcp add migros \
  21. -e MIGROS_EMAIL=you@example.com \
  22. -e MIGROS_PASSWORD='your-password' \
  23. -- npx -y migros-mcp
  24. ```
  25. ### Cursor and other apps
  26. Needs [Node.js](https://nodejs.org) 22 or newer. Add this to the app's MCP config file:
  27. - **Cursor:** `~/.cursor/mcp.json` (all projects) or `.cursor/mcp.json` (one project)
  28. - **Claude Desktop without the installer:** Settings > Developer > Edit Config
  29. ```json
  30. {
  31. "mcpServers": {
  32. "migros": {
  33. "command": "npx",
  34. "args": ["-y", "migros-mcp"],
  35. "env": {
  36. "MIGROS_EMAIL": "you@example.com",
  37. "MIGROS_PASSWORD": "your-password"
  38. }
  39. }
  40. }
  41. }
  42. ```
  43. Leave out the `env` block to only search. Other apps (VS Code, Windsurf, Zed and so on) run the same command, `npx -y migros-mcp`, but lay out their config a little differently. Check your app's MCP instructions.
  44. ### Check that it works
  45. Start a new chat and ask: *"Search Migros for oat milk."*
  46. ## Your Migros account
  47. Optional. Without it, product search, product details, stock, stores, promotions and recipes all work.
  48. With it, Claude can also see and change your basket and look up your orders, in-store receipts and Cumulus points. It **never places an order or pays**. It gives you a checkout link, and you finish on migros.ch yourself.
  49. What to enter depends on how you sign in to migros.ch:
  50. | You sign in with | Enter |
  51. |---|---|
  52. | Email and password | Email and password. Done. |
  53. | Email, password and a 6-digit code from an authenticator app | Email and password. When Claude needs to sign in, it asks you for the current code. That only happens when Migros ends the saved login, not in every chat. |
  54. | The same, but you never want to be asked for a code | Email, password and your **setup key** (see below). |
  55. <details>
  56. <summary><b>Finding your setup key</b> (only needed for the last option)</summary>
  57. <br>
  58. The setup key (also called the TOTP secret) is **not** the 6-digit code. It's the long code, about 32 letters and digits like `JBSWY3DPEHPK3PXP...`, that you got when you first added Migros to your authenticator app. It never changes.
  59. - **Saved in a password manager?** Open the Migros entry and look for an option like "View one-time password secret". If you see a link starting with `otpauth://`, the setup key is the part after `secret=`.
  60. - **Not saved anywhere?** Migros only shows it while you set up 2FA. In your Migros account settings, remove 2FA and set it up again. Under the QR code is a box saying *"Or enter the following key in the authenticator app"*. Copy that key before you finish, and add the new entry to your authenticator app.
  61. In Claude Desktop it goes in the *Migros TOTP Secret* field. Everywhere else, add `MIGROS_TOTP_SECRET` next to the email and password (`-e MIGROS_TOTP_SECRET=...` with `claude mcp add`, or one more line in the `env` block).
  62. </details>
  63. Only codes from an authenticator app work. If your account uses a passkey only, or codes by SMS, add an authenticator app in your Migros account settings first.
  64. ## What you can ask
  65. Without an account:
  66. - "Search Migros for protein bars"
  67. - "What's the nutrition info for this product?"
  68. - "Find Migros stores near Zurich"
  69. - "What promotions does Migros have right now?"
  70. - "Find me a risotto recipe"
  71. With your account:
  72. - "What's in my Migros basket?"
  73. - "Add 2 litres of milk to my basket"
  74. - "Add the ingredients for this recipe to my basket"
  75. - "Show me my last 5 Migros orders"
  76. - "How much did I spend at Migros last month?"
  77. - "What was on my last in-store receipt?"
  78. - "Which Cumulus coupons do I have?"
  79. - "Give me the link to finish my checkout"
  80. ## Updating
  81. | You installed with | To update |
  82. |---|---|
  83. | `npx -y migros-mcp` (Claude Code, Cursor, a config file) | Nothing to do. You get the new version the next time the app starts. |
  84. | The `.mcpb` file in Claude Desktop | Download the [latest migros-mcp.mcpb](https://github.com/lewpgs/migros-mcp/releases/latest/download/migros-mcp.mcpb) and open it again. Your saved details stay. |
  85. | A fixed version, like `migros-mcp@0.4.0` | Change the number, or remove `@0.4.0` to always get the newest. |
  86. Stuck on an old version with npx? Run `npm cache clean --force` and restart the app.
  87. **Update notice.** About once a day, while you use it, migros-mcp asks the npm registry for the newest version number. If a newer one is out, one answer a day ends with a short line saying so. Nothing about you is sent (npm sees your IP address, as with any download). To turn it off: in Claude Desktop, untick *Tell me when a new version is out* in the extension's settings (Settings > Desktop app > Extensions > Manage). Anywhere else, set `MIGROS_MCP_UPDATE_CHECK=false` (`-e MIGROS_MCP_UPDATE_CHECK=false` with `claude mcp add`, or one more line in the `env` block).
  88. ## Privacy and safety
  89. - Your email, password and setup key are only ever sent to Migros' own login page (`login.migros.ch`). A 6-digit code you give Claude is used for that one sign-in and never stored or logged.
  90. - The Claude Desktop installer keeps your password and setup key in your computer's keychain. With npx (Claude Code, Cursor, a config file) they sit in plain text in that app's config file.
  91. - Once you're signed in, the saved login (cookies and an access token) stays on your computer, in `session.json`:
  92. - Mac: `~/Library/Application Support/migros-mcp/`
  93. - Windows: `%APPDATA%\migros-mcp\`
  94. - Linux: `~/.config/migros-mcp/` (or `$XDG_CONFIG_HOME/migros-mcp/`)
  95. Deleting that file signs you out.
  96. - It never places orders or pays. `get_checkout_link` gives you a link, and you finish on migros.ch.
  97. ## Troubleshooting
  98. - **"Too many requests" or other sign-in errors.** Migros blocks computers that sign in too often. When that happens, migros-mcp stops trying for a while on its own (30 seconds at first, longer if it keeps happening) and keeps using your current login while it's still valid. The error says until when. Wait until then before trying again. Restarting the app over and over, or a wrong password, makes it worse.
  99. - **Something that used to work fails.** Migros may have changed its website. Update to the newest version (see [Updating](#updating)), and if it still fails, [open an issue](https://github.com/lewpgs/migros-mcp/issues).
  100. ## Tools
  101. These are what Claude calls behind the scenes. You don't need them to use it.
  102. **Without an account**
  103. | Tool | What it does |
  104. |---|---|
  105. | `search_products` | Search products by name or keyword, including ones sold only online (such as "Partner" products). |
  106. | `get_product_details` | Nutrition, ingredients, allergens, price and ratings. Online-only products also get their online price and a Partner flag. |
  107. | `get_stock` | Whether a product is in stock at a given store. Updated once a day. |
  108. | `get_categories` | All Migros product categories. |
  109. | `search_stores` | Stores near a place, with addresses and opening hours. |
  110. | `get_promotions` | Current promotions and deals. |
  111. | `search_recipes` | Search Migusto, Migros' recipe site, by text and/or ingredients. German, French and Italian only. |
  112. | `get_recipe_details` | A full recipe: ingredients, steps, photos, nutrition. |
  113. | `get_recipe_products` | The Migros products Migusto suggests for a recipe, with name and price, ready for `add_to_basket`. |
  114. **With your account**
  115. | Tool | What it does |
  116. |---|---|
  117. | `authenticate` | Sign in with the current 6-digit code. Only used when no setup key is saved. |
  118. | `get_profile` | Your name, email and language. |
  119. | `get_addresses` | Your saved delivery and billing addresses. |
  120. | `get_shopping_lists` | Your shopping lists by name, for people with more than one. |
  121. | `get_basket` | What's in your basket. |
  122. | `add_to_basket` | Add a product (1 by default). |
  123. | `update_basket_quantity` | Set how many of an item you want (0 removes it). |
  124. | `remove_from_basket` | Remove an item. |
  125. | `get_orders` | Your online orders, page by page, filterable by status. |
  126. | `get_order_details` | One order in full. |
  127. | `get_checkout_link` | A link to finish checkout on migros.ch. |
  128. | `get_cumulus_status` | Your Cumulus card: points collected this period, card number, cardholder, memberships. |
  129. | `get_in_store_receipts` | Your in-store receipts (Kassenbons) for a date range. |
  130. | `get_receipt_details` | A link to see one receipt's items. |
  131. | `get_cumulus_coupons` | Your current personal Cumulus coupons. |
  132. <details>
  133. <summary><b>How it works</b></summary>
  134. <br>
  135. - **Without an account**, it uses [migros-api-wrapper](https://www.npmjs.com/package/migros-api-wrapper) and the same addresses the Migros website calls, with a guest token it fetches at startup.
  136. - **With an account**, it signs in at `login.migros.ch` the way a browser does (email, then password, then the 2FA code if your account has one) and saves the login. The access token only lasts a short while, so it's renewed quietly from the saved login, without signing in again. A full sign-in only happens when Migros ends the saved login.
  137. - Saving the login matters because Migros' sign-in page sits behind Cloudflare, which blocks computers that sign in too often.
  138. - Without a setup key, once it knows your account needs a code, it waits until Claude has one before sending your password. That way it never starts a sign-in it can't finish.
  139. </details>
  140. ## Development
  141. ```bash
  142. git clone https://github.com/lewpgs/migros-mcp.git
  143. cd migros-mcp
  144. npm install
  145. npm run build
  146. npm test
  147. ```
  148. Check the tools that need no account against the live Migros website. GitHub also runs this every Monday, so a change on Migros' side shows up early:
  149. ```bash
  150. npm run live-check
  151. ```
  152. Try it with the MCP Inspector:
  153. ```bash
  154. npx -y @modelcontextprotocol/inspector node dist/index.js
  155. ```
  156. ## License
  157. [MIT](LICENSE)

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.