شعار Migros MCP

Migros MCP

المجتمع
lewpgs

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

الناشرlewpgs
المستودعmigros-mcp
اللغةTypeScript
التفريعات
6
النجوم
133
الأدوات المتاحة
5
نوع نقل البياناتstdio
الفئات
الروابط
  • اربط الأدوات بسير عمل الذكاء الاصطناعي

    يتيح Migros MCP إمكانات MCP التي يمكن لتطبيقات الذكاء الاصطناعي العميلة ووكلاء الذكاء الاصطناعي المتوافقة استخدامها.

  • الأدوات المتاحة: 5

    تصفّح الإجراءات القابلة للاستدعاء أدناه، بما في ذلك أسماؤها وأوصافها عندما يوفّرها الخادم.

  • إعدادات جاهزة للنسخ

    استخدم أمثلة إعداد التثبيت لتهيئة هذا الخادم في تطبيق MCP العميل المفضّل لديك.

  • مؤشرات الاهتمام بالمصدر المفتوح

    النجوم: 133، والنسخ المتفرعة: 6 في المستودع المرتبط.

migros-mcp

Search Migros products and (optionally) manage your basket, addresses, and orders through Claude.

Important This is not affiliated with Migros in any way. It uses publicly accessible API endpoints. There is no official Migros API. It can break at any time if Migros changes their endpoints. Use at your own risk.

What you can do

Without an account (anonymous access):

  • "Search Migros for protein bars"
  • "What's the nutrition info for this Migros product?"
  • "Find Migros stores near Zurich"
  • "What promotions does Migros have right now?"
  • "Compare the protein content of these two products"
  • "Find me a recipe for risotto and add the ingredients to my basket" (combines anonymous recipe search with authenticated cart write)

With your Migros account (optional):

  • "What's currently in my Migros basket?"
  • "Add 2 liters of milk to my basket"
  • "Remove the bananas from my basket"
  • "Where will my order be delivered to?"
  • "Show me my last 5 Migros orders"
  • "Give me the link to finish my checkout"
  • "How much did I spend at Migros last month?"
  • "What was on my last in-store receipt?"
  • "Which Cumulus coupons do I have right now?"
  • "How many Cumulus points do I have?"

The basket and order tools require your Migros account credentials. They're optional — if you skip them at install, the anonymous tools still work.

Install

Claude Desktop (recommended)

  1. 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.


Advanced setup

These methods require Node.js 18+.

Claude Code

bash
# Anonymous (search/browse only)
claude mcp add migros -- npx -y migros-mcp

# With your account (basket + orders)
claude mcp add migros \
  -e MIGROS_EMAIL=you@example.com \
  -e MIGROS_PASSWORD='your-password' \
  -e MIGROS_TOTP_SECRET=ABCDEFGHIJKLMNOP \
  -- npx -y migros-mcp

Claude Desktop (manual) / Cursor

Add to your config:

  • Claude Desktop — claude_desktop_config.json
  • Cursor — .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
json
{
  "mcpServers": {
    "migros": {
      "command": "npx",
      "args": ["-y", "migros-mcp"],
      "env": {
        "MIGROS_EMAIL": "you@example.com",
        "MIGROS_PASSWORD": "your-password",
        "MIGROS_TOTP_SECRET": "ABCDEFGHIJKLMNOP"
      }
    }
  }
}

The env block is optional. Omit it to use anonymous tools only.

Test connection

bash
npx migros-mcp                                                # anonymous
MIGROS_EMAIL=... MIGROS_PASSWORD=... MIGROS_TOTP_SECRET=... npx migros-mcp   # authenticated

Updating

The recommended install commands above use npx -y migros-mcp without pinning a version, so you auto-receive new releases. npx caches the package for ~7 days, so updates land on next launch within that window. To force-refresh sooner: npm cache clean --force and restart the host.

If you've installed via the drag-installed .mcpb instead, Claude Desktop pins you to that specific version. Download the latest .mcpb from Releases and re-install to update. Your credentials in the OS keychain are preserved across re-installs.

If you've explicitly pinned a version in your config (e.g. migros-mcp@0.3.0), update by editing the version number or removing the pin entirely.

Available tools

Anonymous (no credentials needed)

ToolDescription
search_productsSearch Migros products by name or keyword. Returns product IDs.
get_product_detailsFull product info: nutrition, ingredients, allergens, price, ratings.
get_stockCheck product availability at a specific Migros store. Updated once daily.
get_categoriesList all Migros product categories.
search_storesFind Migros stores by location with addresses and opening hours.
get_promotionsSearch current Migros promotions and deals.
search_recipesSearch Migusto (Migros' recipe site) by query and/or ingredients. German/French/Italian only.
get_recipe_detailsFull recipe by slug: ingredients, instructions, photos, nutrition.
get_recipe_productsMigros product UIDs for a recipe — feed directly into add_to_basket.

Authenticated (require credentials)

ToolDescription
get_profileLogged-in customer's basic profile (name, email, language).
get_addressesSaved delivery and billing addresses.
get_basketItems currently in the user's basket.
add_to_basketAdd a product (sets target quantity, default 1).
update_basket_quantitySet an item's exact quantity (0 to remove).
remove_from_basketRemove an item entirely.
get_ordersList your online orders, paginated, filterable by status.
get_order_detailsFull details of a single order by id.
get_checkout_linkReturns the URL to open in your browser to complete checkout.
get_cumulus_statusCumulus loyalty card status: points balance, level, cardholder.
get_in_store_receiptsList in-store receipts (Kassenbons) over a date range.
get_receipt_detailsURL to view a single in-store receipt's line items in the browser.
get_cumulus_couponsActive personalized Cumulus coupons.

How it works

Anonymous tools

Use the migros-api-wrapper which calls the same endpoints the Migros website uses internally. A guest token is fetched at startup and cached.

Authenticated tools

Use OAuth 2.0 against login.migros.ch. The first call runs a credentialed login (email → password → TOTP) and caches the resulting cookies + access token. Every 30 minutes the token is refreshed silently using cached cookies — no login form re-submission.

The cache is persisted across MCP process restarts (Claude Desktop launches, Mac reboots, etc.) so we re-authenticate maybe twice a year instead of dozens of times a day. Migros' login endpoint is behind Cloudflare bot detection that throttles frequent logins, so persistence is what keeps the MCP from getting rate-limited.

The session lives at:

  • macOS: ~/Library/Application Support/migros-mcp/session.json
  • Linux: $XDG_CONFIG_HOME/migros-mcp/session.json
  • Windows: %APPDATA%/migros-mcp/session.json

If the cached session expires (typically a few weeks), the MCP automatically re-runs the credentialed login.

Order placement

For safety, this MCP does not place orders programmatically. The get_checkout_link tool returns a URL the user opens in their real browser to confirm address, delivery slot, and payment via Migros' own checkout flow. Real money requires a real human click.

Known limitations

  • 2FA support is TOTP-only. Accounts secured with a passkey (and no TOTP fallback) are not supported in v0.3.0. If your Migros account uses passkey as the only second factor, add a TOTP authenticator app in Migros account settings, then provide the TOTP secret to this MCP.
  • No automatic order placement. See above — get_checkout_link hands off to your browser for the actual placement.
  • Cloudflare rate limits. If the MCP fails the credentialed login repeatedly in a short window (e.g., wrong password retries), Cloudflare may briefly throttle the IP. Wait an hour and retry, or log in via your browser to refresh the session.

Development

bash
git clone https://github.com/lewpgs/migros-mcp.git
cd migros-mcp
npm install
npm run build
node dist/index.js

Debug with the MCP Inspector:

bash
npx -y @modelcontextprotocol/inspector npx migros-mcp

Disclaimers

  • Unofficial — Not affiliated with, endorsed by, or connected to Migros in any way.
  • No official API — Uses endpoints that power the Migros website. They are not documented or supported. Migros can change them without notice.
  • Credentials — When you provide credentials, they're used only to authenticate against login.migros.ch. Resulting session cookies and access tokens are stored locally in your OS user config directory. They are never sent anywhere except Migros' own servers.
  • No order placement — This server does not place orders programmatically. Orders are completed in the user's own browser via the URL returned by get_checkout_link.
  • Use at your own risk — No guarantees of functionality, availability, or compatibility.

License

MIT

التثبيت

TypingMind
{
  "mcpServers": {
    "migros-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "migros-mcp"
      ]
    }
  }
}

الأدوات المتاحة

  • search_products

    Search Migros products by name or keyword. Returns product IDs that can be used with get_product_details.

  • get_product_details

    Get full product details including nutrition facts, ingredients, allergens, price, and ratings. Use search_products first to get product IDs.

  • get_categories

    List all Migros product categories

  • search_stores

    Find Migros stores by location (city name, zip code, etc.). Returns store details including address and opening hours.

  • get_promotions

    Search current Migros promotions and deals. Optionally filter by search query.

استخدم MCP الخاص بـ Migros MCP مع نماذج ذكاء اصطناعي متعددة

يربط TypingMind أدوات MCP على مستوى مساحة العمل، لذا بمجرد توصيل Migros MCP، يمكنك استخدامه مع نماذج ذكاء اصطناعي مختلفة في TypingMind بدلًا من إعداده لكل نموذج على حدة. يعمل تكامل MCP هذا محليًا عبر موصل MCP الخاص بـ TypingMind على جهازك.

دليل الإعداد لاستخدام الموصل المحلي

استخدم هذا الخيار عندما يحتاج خادم MCP إلى الوصول إلى ملفات محلية أو تطبيقات أو موارد خاصة على جهاز الكمبيوتر لديك.

1

فتح إعدادات MCP

في TypingMind، انتقل إلى «الإعدادات»، ثم «الإعدادات المتقدمة»، ثم «بروتوكول سياق النموذج»، واختر «إعداد الموصل».

  1. افتح TypingMind في متصفحك.
  2. انقر على أيقونة الإعدادات.
  3. انتقل إلى الإعدادات المتقدمة.
  4. افتح قسم بروتوكول سياق النموذج.
  5. انقر على «إعداد الموصل» واختر «هذا الجهاز».
شاشة إعداد موصل MCP في TypingMind مع تحديد «هذا الجهاز»
2

تنفيذ أمر الموصل

اختر «هذا الجهاز»، وانسخ الأمر من TypingMind وشغّله في Terminal. أبقِ العملية قيد التشغيل أثناء استخدام MCP.

  1. انسخ أمر الإعداد الذي يعرضه TypingMind.
  2. افتح Terminal على macOS أو Windows Terminal على Windows.
  3. الصق الأمر ونفّذه.
  4. وافق على تثبيت الحزمة إذا طلب منك Terminal تأكيد المتابعة.
  5. أبقِ نافذة Terminal والعملية التي تعمل فيها قيد التشغيل أثناء استخدام أدوات MCP.
3

أضف Migros MCP كخادم

عندما تظهر حالة الموصل «جاهز»، انقر على «تعديل الخوادم» والصق إعدادات خادم MCP.

  1. انتظر حتى تظهر حالة الموصل «جاهز».
  2. انقر على «تعديل الخوادم».
  3. الصق إعدادات خادم MCP الخاص بـ Migros MCP.
  4. احفظ قائمة الخوادم.
  5. حدّث الحالة إذا أردت التأكد من أن الموصل لا يزال جاهزًا.
إعدادات MCP في TypingMind تعرض خادمًا نشطًا وزر «تعديل الخوادم»
{
  "mcpServers": {
    "migros-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "migros-mcp"
      ]
    }
  }
}
4

استخدام الاتصال مع نماذج مختلفة

احفظ قائمة الخوادم، وافتح «الإضافات»، وفعّل أدوات MCP الخاصة بـ Migros MCP، ثم اختر أي نموذج ذكاء اصطناعي مدعوم في TypingMind واستخدم الأدوات في المحادثة أو أسندها إلى وكيل ذكاء اصطناعي.

  1. افتح صفحة الإضافات في TypingMind.
  2. فعّل أدوات MCP الخاصة بـ Migros MCP.
  3. ابدأ محادثة واختر نموذج الذكاء الاصطناعي الذي تريد استخدامه.
  4. استخدم أدوات MCP في المحادثة أو عيّنها لوكيل ذكاء اصطناعي.
  5. انتقل إلى نموذج ذكاء اصطناعي آخر عند الحاجة دون إعادة الاتصال بـ MCP.
محادثة في TypingMind تستخدم أدوات MCP المفعّلة مع نموذج ذكاء اصطناعي محدّد
هل يمكنك استخدام Migros MCP لمساعدتي في هذه المهمة؟
Migros MCP
بالتأكيد. قرأته.
إليك ما وجدته باستخدام Migros MCP.

الأسئلة الشائعة

ما استخدامات خادم MCP Migros MCP؟

Migros MCP هو خادم MCP يتيح لتطبيقات الذكاء الاصطناعي المتوافقة الاتصال بأدوات ومصادر سياق خارجية. في TypingMind، يمكنك إضافة خادم MCP هذا مرة واحدة وإتاحة أدواته في مساحة عملك للذكاء الاصطناعي.

هل يمكنني استخدام خادم MCP Migros MCP مع نماذج ذكاء اصطناعي متعددة في TypingMind؟

نعم. يربط TypingMind أدوات MCP على مستوى مساحة العمل، لذا يمكنك استخدام Migros MCP مع نماذج ذكاء اصطناعي مختلفة مثل Claude أو ChatGPT أو Gemini أو غيرها من النماذج التي أعددتها في TypingMind، دون إعداد خادم MCP لكل نموذج على حدة.

لماذا تستخدم موصل MCP Migros MCP مع TypingMind؟

يُعد TypingMind من أفضل واجهات المحادثة مع النماذج اللغوية الكبيرة، إذ يجمع نماذج ذكاء اصطناعي متعددة ومطالبات وإضافات ووكلاء ذكاء اصطناعي ومفاتيح API وأدوات MCP في مساحة عمل واحدة. بعد توصيل Migros MCP، يمكنك استخدام أدوات MCP الخاصة به عبر نماذجك المفضلة مع الحفاظ على سير عمل محادثاتك منظمًا في TypingMind.

كيف أوصّل خادم MCP Migros MCP بـ TypingMind؟

يعمل Migros MCP عبر موصل MCP المحلي في TypingMind. هذا هو الخيار الأنسب عندما يحتاج خادم MCP إلى الوصول إلى ملفات محلية أو تطبيقات سطح المكتب أو أدوات سطر الأوامر أو موارد خاصة على حاسوبك.

ما الأدوات التي يوفّرها خادم MCP Migros MCP في TypingMind؟

يتيح Migros MCP أدوات MCP بعدد 5، يمكنك تفعيلها من صفحة الإضافات في TypingMind واستخدامها في المحادثات أو تعيينها لوكلاء ذكاء اصطناعي.

هل أحتاج إلى مشاركة مفاتيح API الخاصة بي مع TypingMind لاستخدام خادم MCP Migros MCP؟

لا. يعطي TypingMind الأولوية للعمل المحلي ويُبقي مزوّدي النماذج ومفاتيح API والمطالبات وإعدادات MCP تحت تحكمك. إذا كان Migros MCP يتطلب مصادقة، فأضف الترويسات أو إعدادات OAuth أو الإعدادات المحلية المطلوبة لخادم MCP هذا عند إنشاء الاتصال.

خوادم MCP ذات صلة

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇