lewpgs/migros-mcp
MCP server for Migros Switzerland product data - search products, nutrition info, store locations, and promotions
5bcbdfce766bmigros-mcp0.5.1 in package.jsonPaths from tool input into commands, SQL, files and URLs
How much power the tools give an agent over the machine
Hidden instructions and poisoning in text for the model
Known vulnerabilities in the packages the server uses
How the server reads credentials and where they can go
Whether the tools do only what their descriptions say
How far the analysis went
The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.
- In 8 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
Top risks in plain words
- HIGH1 production dependency has known vulnerabilities (worst: high).
How to use it safely
Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.
- Give it a narrowly scoped token
Its code reads credentials or environment variables. Use a key limited to what this server needs, not your main one.
- Update its vulnerable packages
Use
zod4.6.6 or later. - Keep confirmations on
Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.
What its tools can do on your machine
The server offers 24 tools. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.
add_to_basket, get_addresses, get_basket, get_checkout_link, get_cumulus_coupons, get_in_store_receipts and 6 moreadd_to_basket, get_basket, get_checkout_link, get_cumulus_status, get_shopping_lists, remove_from_basket and 1 moreadd_to_basket, authenticate, get_addresses, get_basket, get_checkout_link, get_cumulus_coupons and 7 moreadd_to_basket, authenticate, get_addresses, get_basket, get_checkout_link, get_cumulus_coupons and 7 moreadd_to_basket, authenticate, get_addresses, get_basket, get_checkout_link, get_cumulus_coupons and 7 moreNo tool was seen to: start other programs on the machine.
Where its requests and secrets go
Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.
The literal addresses the tools' requests name.
- None: no request names a fixed host.
Constants or settings that start an address; the value comes from configuration.
- None seen.
Credential-like environment variables. Give the server a key with the least access it needs.
MIGROS_PASSWORD· add_to_basket, get_basket, get_checkout_link +3MIGROS_TOTP_SECRET· add_to_basket, get_basket, get_checkout_link +3
Text it brings in from outside
Text that reaches the model from outside: an instruction hidden in it can steer the agent (prompt injection). Treat what these tools return as data, not as orders.
- files12 tools · add_to_basket, get_addresses, get_basket +9
Tool annotations
No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.
Tools, prompts and resources (24: 24 tools)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
add_to_baskettool Add a product to the user's basket (or set its quantity if already present). The underlying API is upsert-to-target, not increment. Returns the updated basket. FilesNetworkCredentialsEnv varsSensitive pathsoutside text
Add a product to the user's basket (or set its quantity if already present). The underlying API is upsert-to-target, not increment. Returns the updated basket. Requires authentication.
authenticatetool Log in to Migros with the current six-digit 2FA code from the user's authenticator app (ask the user for it, or read it from a password manager you have access CredentialsEnv varsSensitive paths
Log in to Migros with the current six-digit 2FA code from the user's authenticator app (ask the user for it, or read it from a password manager you have access to). Only needed when an authenticated tool reports fresh_code_required, which happens when no TOTP secret is configured. Omit totpCode to reuse a cached session, or if the account has no 2FA. The code is never stored or returned.
get_addressestool Get the user's saved delivery and billing addresses. Requires authentication.FilesCredentialsEnv varsSensitive pathsoutside text
Get the user's saved delivery and billing addresses. Requires authentication.
get_baskettool Fetch the items currently in the user's shopping basket (Migros calls this a shopping list). Returns product IDs and quantities; use get_product_details to enriFilesNetworkCredentialsEnv varsSensitive pathsoutside text
Fetch the items currently in the user's shopping basket (Migros calls this a shopping list). Returns product IDs and quantities; use get_product_details to enrich. If the user has several lists, use get_shopping_lists and pass shoppingListId. Requires authentication.
get_categoriestool List all Migros product categories
List all Migros product categories
get_checkout_linktool Return the URL the user should open in their browser to complete checkout (review basket, confirm address/slot, pay). Order placement requires payment confirmatFilesNetworkCredentialsEnv varsSensitive pathsoutside text
Return the URL the user should open in their browser to complete checkout (review basket, confirm address/slot, pay). Order placement requires payment confirmation in a real browser, so this tool hands off rather than firing the order automatically. Returns a basket summary alongside the URL. Requires authentication.
get_cumulus_couponstool List active Cumulus coupons targeted at the user (personalized offers based on shopping history). Requires authentication.FilesCredentialsEnv varsSensitive pathsoutside text
List active Cumulus coupons targeted at the user (personalized offers based on shopping history). Requires authentication.
get_cumulus_statustool Get the user's Cumulus loyalty card: points collected this period, Cumulus number, cardholder and memberships (such as Famigros). Requires authentication.Network
Get the user's Cumulus loyalty card: points collected this period, Cumulus number, cardholder and memberships (such as Famigros). Requires authentication.
get_in_store_receiptstool List the user's in-store Migros receipts (Kassenbons) over a date range. Default: last 30 days. Use get_receipt_details with an id for line items. Requires authFilesCredentialsEnv varsSensitive pathsoutside text
List the user's in-store Migros receipts (Kassenbons) over a date range. Default: last 30 days. Use get_receipt_details with an id for line items. Requires authentication.
get_order_detailstool Fetch the full details of a single order by id. Requires authentication.FilesCredentialsEnv varsSensitive pathsoutside text
Fetch the full details of a single order by id. Requires authentication.
get_orderstool List the user's online orders, paginated, filtered by status. Use to find an order id, then call get_order_details. Requires authentication.FilesCredentialsEnv varsSensitive pathsoutside text
List the user's online orders, paginated, filtered by status. Use to find an order id, then call get_order_details. Requires authentication.
get_product_detailstool Get full product details including nutrition facts, ingredients, allergens, price, and ratings. Use search_products first to get product IDs.
Get full product details including nutrition facts, ingredients, allergens, price, and ratings. Use search_products first to get product IDs.
get_profiletool Get the logged-in customer's basic profile (name, email, language, cooperative). Requires authentication.FilesCredentialsEnv varsSensitive pathsoutside text
Get the logged-in customer's basic profile (name, email, language, cooperative). Requires authentication.
get_promotionstool Search current Migros promotions and deals. Optionally filter by search query.
Search current Migros promotions and deals. Optionally filter by search query.
get_receipt_detailstool Get the URL to view a single in-store receipt's line items in the browser. Line items aren't accessible via the API — get_in_store_receipts gives store/date/amo
Get the URL to view a single in-store receipt's line items in the browser. Line items aren't accessible via the API — get_in_store_receipts gives store/date/amount/points which is enough for most queries. Requires authentication.
get_recipe_detailstool Fetch a full Migusto recipe by slug: ingredients with quantities, step-by-step instructions, photos, nutrition. Use search_recipes first to find the slug. (Migu
Fetch a full Migusto recipe by slug: ingredients with quantities, step-by-step instructions, photos, nutrition. Use search_recipes first to find the slug. (Migusto is Migros' recipe site at migusto.migros.ch.)
get_recipe_productstool Fetch the Migros products Migusto suggests for a recipe, with name, price and the product UID that add_to_basket takes. Bridges recipes to shopping. Use the rec
Fetch the Migros products Migusto suggests for a recipe, with name, price and the product UID that add_to_basket takes. Bridges recipes to shopping. Use the recipe ID from search_recipes (NOT the slug). Ingredients without a suggested product: use search_products.
get_shopping_liststool List the user's Migros shopping lists (id and name). Call this when the user mentions a specific list or has several: pass the chosen shoppingListId to the baskFilesNetworkCredentialsEnv varsSensitive pathsoutside text
List the user's Migros shopping lists (id and name). Call this when the user mentions a specific list or has several: pass the chosen shoppingListId to the basket tools. Requires authentication.
get_stocktool Check product stock at a specific Migros store. Use search_products and search_stores first to get the IDs. Stock is approximate and updated once a day.
Check product stock at a specific Migros store. Use search_products and search_stores first to get the IDs. Stock is approximate and updated once a day.
remove_from_baskettool Remove a product from the user's basket. Returns the updated basket. Requires authentication.FilesNetworkCredentialsEnv varsSensitive pathsoutside text
Remove a product from the user's basket. Returns the updated basket. Requires authentication.
search_productstool Search Migros products by name or keyword, including products sold only in the Migros Online shop (such as 'Partner' products). Returns product IDs that can be
Search Migros products by name or keyword, including products sold only in the Migros Online shop (such as 'Partner' products). Returns product IDs that can be used with get_product_details and add_to_basket.
search_recipestool Search Migusto (Migros' recipe site) by free-text query and/or ingredients. Returns recipe id, slug, title, cooking time, rating. Use get_recipe_details for ful
Search Migusto (Migros' recipe site) by free-text query and/or ingredients. Returns recipe id, slug, title, cooking time, rating. Use get_recipe_details for full info or get_recipe_products to get Migros product UIDs to add to the basket.
search_storestool Find Migros stores by location (city name, zip code, etc.). Returns store details including address and opening hours.
Find Migros stores by location (city name, zip code, etc.). Returns store details including address and opening hours.
update_basket_quantitytool Set an item's exact quantity in the basket. quantity=0 removes the item. Returns the updated basket. Requires authentication.FilesNetworkCredentialsEnv varsSensitive pathsoutside text
Set an item's exact quantity in the basket. quantity=0 removes the item. Returns the updated basket. Requires authentication.
Text the model reads (24)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
search_products tool
Search Migros products by name or keyword, including products sold only in the Migros Online shop (such as 'Partner' products). Returns product IDs that can be used with get_product_details and add_to_basket.
get_product_details tool
Get full product details including nutrition facts, ingredients, allergens, price, and ratings. Use search_products first to get product IDs.
get_stock tool
Check product stock at a specific Migros store. Use search_products and search_stores first to get the IDs. Stock is approximate and updated once a day.
get_categories tool
List all Migros product categories
search_stores tool
Find Migros stores by location (city name, zip code, etc.). Returns store details including address and opening hours.
get_promotions tool
Search current Migros promotions and deals. Optionally filter by search query.
search_recipes tool
Search Migusto (Migros' recipe site) by free-text query and/or ingredients. Returns recipe id, slug, title, cooking time, rating. Use get_recipe_details for full info or get_recipe_products to get Migros product UIDs to add to the basket.
get_recipe_details tool
Fetch a full Migusto recipe by slug: ingredients with quantities, step-by-step instructions, photos, nutrition. Use search_recipes first to find the slug. (Migusto is Migros' recipe site at migusto.migros.ch.)
get_recipe_products tool
Fetch the Migros products Migusto suggests for a recipe, with name, price and the product UID that add_to_basket takes. Bridges recipes to shopping. Use the recipe ID from search_recipes (NOT the slug). Ingredients without a suggested product: use search_products.
authenticate tool
Log in to Migros with the current six-digit 2FA code from the user's authenticator app (ask the user for it, or read it from a password manager you have access to). Only needed when an authenticated tool reports fresh_code_required, which happens when no TOTP secret is configured. Omit totpCode to reuse a cached session, or if the account has no 2FA. The code is never stored or returned.
get_profile tool
Get the logged-in customer's basic profile (name, email, language, cooperative). Requires authentication.
get_addresses tool
Get the user's saved delivery and billing addresses. Requires authentication.
get_shopping_lists tool
List the user's Migros shopping lists (id and name). Call this when the user mentions a specific list or has several: pass the chosen shoppingListId to the basket tools. Requires authentication.
get_basket tool
Fetch the items currently in the user's shopping basket (Migros calls this a shopping list). Returns product IDs and quantities; use get_product_details to enrich. If the user has several lists, use get_shopping_lists and pass shoppingListId. Requires authentication.
add_to_basket tool
Add a product to the user's basket (or set its quantity if already present). The underlying API is upsert-to-target, not increment. Returns the updated basket. Requires authentication.
update_basket_quantity tool
Set an item's exact quantity in the basket. quantity=0 removes the item. Returns the updated basket. Requires authentication.
remove_from_basket tool
Remove a product from the user's basket. Returns the updated basket. Requires authentication.
get_orders tool
List the user's online orders, paginated, filtered by status. Use to find an order id, then call get_order_details. Requires authentication.
get_order_details tool
Fetch the full details of a single order by id. Requires authentication.
get_checkout_link tool
Return the URL the user should open in their browser to complete checkout (review basket, confirm address/slot, pay). Order placement requires payment confirmation in a real browser, so this tool hands off rather than firing the order automatically. Returns a basket summary alongside the URL. Requires authentication.
get_cumulus_status tool
Get the user's Cumulus loyalty card: points collected this period, Cumulus number, cardholder and memberships (such as Famigros). Requires authentication.
get_in_store_receipts tool
List the user's in-store Migros receipts (Kassenbons) over a date range. Default: last 30 days. Use get_receipt_details with an id for line items. Requires authentication.
get_receipt_details tool
Get the URL to view a single in-store receipt's line items in the browser. Line items aren't accessible via the API — get_in_store_receipts gives store/date/amount/points which is enough for most queries. Requires authentication.
get_cumulus_coupons tool
List active Cumulus coupons targeted at the user (personalized offers based on shopping history). Requires authentication.
What we checked
The same checks run on every server. Each line below has one of these marks:
- 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injectionChecked on every scan. Results in this category are published only after a person has verified them.
- Runs programs the caller choosesNo tool runs a command or program the caller supplies — 24 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Executes caller-supplied codeNo tool evaluates code the caller supplies — 24 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Reads or writes any file pathNo tool works on a file path the caller supplies without a root check — 24 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Requests any addressNo tool sends a request to an address the caller supplies — 24 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Runs caller-supplied SQLNo tool executes a query the caller supplies — 24 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Tools that start processesNot seen in the traced code of 24 capabilities; 24 more call code the scanner could not follow, where it may happen
- Tools that touch files12 of 24 capabilities touch files; 12 more call code the scanner could not follow, where it may happen
- Tools that call the network7 of 24 capabilities call the network; 17 more call code the scanner could not follow, where it may happen
Where the code is: 24 handlers in 1 file at commit 5bcbdfce766b
- 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrityChecked on every scan. Results in this category are published only after a person has verified them.
- Dependency manifests1 manifest: package.json
- Lockfiles checked against OSV1 file resolved and checked against the OSV database
- Known vulnerabilities in production dependencies HIGH1 production package with known advisories
- Known vulnerabilities in other dependenciesNo package used only for development, tests or examples has a known advisory
- MCP SDK version@modelcontextprotocol/sdk ^1.12.1
- 3 checks: credential harvesting, undeclared credential access, credentials sent over the networkChecked on every scan. Results in this category are published only after a person has verified them.
- Tools that read credentials13 of 24 capabilities read credentials; 11 more call code the scanner could not follow, where it may happen
- Environment variables13 capabilities read environment variables (often API keys)
- Authentication declaredNot checked: needs the live server's tools/list (a remote server declares how clients authenticate)
- 3 checks: undeclared network access, undeclared file access, undeclared process executionChecked on every scan. Results in this category are published only after a person has verified them.
- Tool descriptions presentEvery tool has a description the model and the user can read
- Statically known namesEvery tool's name could be read from the code
- Input schemasNot checked: needs the live server's tools/list (every tool declares an input schema)
- Destructive tools annotatedNot checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)
Dependencies with known vulnerabilities (1 in production)
zodnpm 3.25.76 HIGH 1 advisory 4.6.6
- HIGHGHSA-mrhx-c7xc-m3w5 CVE-2023-54404Zod can exhaust memory while validating oversized constrained collections
Past security advisories
Vulnerabilities published for this server itself, from the GitHub Advisory Database.
No security advisories have been published for this server in the GitHub Advisory Database.
How it runs
| Where it runs | On your machine, started by your MCP client from this repository or its package |
|---|---|
| Transport | stdio |
| Sign-in | not checked needs the live server |
| MCP SDK | @modelcontextprotocol/sdk ^1.12.1 |
| Servers in the code | 1 (migros-mcp) |
The project's own security
| Security policy | none no SECURITY.md in the repository: report issues privately through GitHub if it is enabled |
|---|---|
| Past advisories | none in the GitHub Advisory Database |
| Last push | 2026-11-13 |
| Signed releases | not checked yet |
Where it is published
| Listed in | 1 catalog (github_search) |
|---|---|
| License | MIT |
| Created | 2026-03-16 |
Attack map
How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.