Context7
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Swiss grocery search, promotions, and shopping plans across Migros, Coop, Aldi, Denner, Lidl.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
DENNER_JWT, LIDL_DEFAULT_STORE, SWISSGROCERIES_USER_AGENT_COOP, SWISSGROCERIES_LOG_LEVEL, SWISSGROCERIES_DISABLE_CACHEค่าที่ติดป้ายความลับคือกุญแจของบัญชีคุณ อย่าส่งให้ใคร และอย่าวางในแชต
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"swissgroceries": {
"command": "npx",
"args": [
"-y",
"@nicktcode/swissgroceries-mcp"
],
"env": {
"DENNER_JWT": "ใส่ค่าของคุณ",
"LIDL_DEFAULT_STORE": "ใส่ค่าของคุณ",
"SWISSGROCERIES_USER_AGENT_COOP": "ใส่ค่าของคุณ",
"SWISSGROCERIES_LOG_LEVEL": "ใส่ค่าของคุณ",
"SWISSGROCERIES_DISABLE_CACHE": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add swissgroceries --env DENNER_JWT='ใส่ค่าของคุณ' --env LIDL_DEFAULT_STORE='ใส่ค่าของคุณ' --env SWISSGROCERIES_USER_AGENT_COOP='ใส่ค่าของคุณ' --env SWISSGROCERIES_LOG_LEVEL='ใส่ค่าของคุณ' --env SWISSGROCERIES_DISABLE_CACHE='ใส่ค่าของคุณ' -- npx -y @nicktcode/swissgroceries-mcpเติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"swissgroceries": {
"command": "npx",
"args": [
"-y",
"@nicktcode/swissgroceries-mcp"
],
"env": {
"DENNER_JWT": "ใส่ค่าของคุณ",
"LIDL_DEFAULT_STORE": "ใส่ค่าของคุณ",
"SWISSGROCERIES_USER_AGENT_COOP": "ใส่ค่าของคุณ",
"SWISSGROCERIES_LOG_LEVEL": "ใส่ค่าของคุณ",
"SWISSGROCERIES_DISABLE_CACHE": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"swissgroceries": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@nicktcode/swissgroceries-mcp"
],
"env": {
"DENNER_JWT": "ใส่ค่าของคุณ",
"LIDL_DEFAULT_STORE": "ใส่ค่าของคุณ",
"SWISSGROCERIES_USER_AGENT_COOP": "ใส่ค่าของคุณ",
"SWISSGROCERIES_LOG_LEVEL": "ใส่ค่าของคุณ",
"SWISSGROCERIES_DISABLE_CACHE": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
LIDL_DEFAULT_STORE envSWISSGROCERIES_USER_AGENT_COOP envSWISSGROCERIES_LOG_LEVEL envSWISSGROCERIES_DISABLE_CACHE envค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub nicktcode ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
ต้องใส่ค่าเหล่านี้: DENNER_JWT
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.1.2) เข้า registry 6 เดือนที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย
ในหมวดเดียวกันมี Context7, Codebase Memory, Exa
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
swissgroceries-mcp
Real-time Swiss grocery shopping over the Model Context Protocol. Search products, compare prices across Migros, Coop, Aldi, Denner, Lidl, Volgshop, Otto's, and Coop City, see weekly promotions, and plan multi-store shopping trips. Works with any MCP-compatible client (Claude Desktop, Claude Code, Cursor, Cline, Continue, VS Code MCP extensions, custom clients).
Disclaimer
This is a personal fun project. It is not affiliated with, endorsed by, or sponsored by Migros, Coop, Aldi, Denner, Lidl, Volg, Otto's, or any other retailer. It uses publicly accessible mobile-app endpoints to make Swiss grocery shopping a bit smarter for end users.
If you represent any of these stores and have concerns (about API usage, branding, scraping rate, or anything else), please reach out to the maintainer through GitHub and we will work it out. No need to escalate.
API stability: the chain APIs used here are unofficial and can change at any time. The maintainer is not responsible for failures caused by upstream changes; please open an issue with the response sample so the affected adapter can be updated.
PRs welcome. New chains, better matchers, smarter strategies, bug fixes, doc improvements; all encouraged. See CONTRIBUTING.md.
No accounts, no tokens, no API keys required. The Denner adapter self-registers an anonymous client on first use; everything else uses public endpoints.
Download swissgroceries-mcp.mcpb from the Releases page and:
claude mcp add swissgroceries -- npx -y @nicktcode/swissgroceries-mcp
Most MCP-compatible clients accept the same JSON server entry. Add it to your client's MCP config file (paths vary, see your client's docs):
{
"mcpServers": { "swissgroceries": { "command": "npx", "args": ["-y", "@nicktcode/swissgroceries-mcp"] } } }
Common config paths:
~/Library/Application Support/Claude/claude_desktop_config.json (macOS), %APPDATA%\Claude\claude_desktop_config.json (Windows)..cursor/mcp.json in the project, or ~/.cursor/mcp.json globally.npx -y @nicktcode/swissgroceries-mcp directly.Price comparison
Shopping planning
Promotions and deals
Stores and stock
| Tool | What it does |
|---|---|
find_stores | Find grocery stores near a location, filtered by chain and radius. |
search_products | Cross-chain product search with normalised price, unit price, size, and tags. |
get_product | Full product details for a chain plus product ID pair. |
get_promotions | Current promotional deals, filterable by chain, keyword, store, or expiry. |
find_stock | Stores of a chain that have a given product in stock. |
plan_shopping | Plan a multi-store trip for a shopping list near a location. |
health_check | Probe each registered chain adapter and report status, latency, and capabilities. |
Each tool exposes rich JSON Schema with field-level descriptions, so the LLM knows when and how to call it.
| Prompt | What it does |
|---|---|
weekly_deals_digest | Summarise this week's best grocery deals across the configured chains. Optional category, chains, and location filters. |
compare_basket_across_chains | Compare a shopping basket across all chains and recommend single-store vs split-cart strategies. |
cheapest_recipe_ingredients | From an ingredient list (or recipe URL) find the cheapest place to buy each item and produce a consolidated shopping plan. |
Prompts are surfaced as one-click templates in MCP-aware clients (Claude Desktop, Cursor, Cline). They produce structured user messages that drive the right tool calls — useful as a starting point and as discovery of what the server can do.
| URI | Content |
|---|---|
swissgroceries://chains | JSON list of registered chain adapters and their capabilities (productSearch, productDetail, storeSearch, promotions, perStoreStock, perStorePricing). |
| Chain | Product search | Promotions | Per-store stock | Nutrition | Auth |
|---|---|---|---|---|---|
| Migros | Full catalog | Yes | Yes | Yes (product detail) | Guest token (auto, rotated on expiry) |
| Coop | coop.ch catalog (coopathome) | Yes | Yes (geo) | Yes (product detail) | None |
| Aldi | Full catalog | Yes | No | No (API exposes only allergen claims) | None |
| Denner | Full catalog | Yes | No | No | Anonymous self-auth (signup + signin, rotated) |
| Lidl | Online assortment via the lidl.ch storefront (current + upcoming weekly offers, ~600 items; food only, de/fr/it) | Yes (weekly leaflet) | No | No | None |
| Volgshop | Full catalog | Yes (on_sale filter) | No (delivery-only) | Yes (parsed from free-text attribute, basis assumed 100g) | None |
| Otto's | Grocery-adjacent (food, drugstore, baby) | Yes (priceLabels facet) | Yes (per-store stockLevel) | No | None |
| Coop City | Department-store catalog (coop-city.ch: cosmetics, household, fashion, electronics). Opt-in: only queried when chains includes coopcity | Yes (hasDiscount facet, current price only, no was-price or end date) | Yes (per-store stockLevel, capped at 50) | No | None |
NormalizedProduct.nutrition is normalized to a per-100g (or per-100ml) basis with the standard Swiss labelling fields — energyKj, energyKcal, fat, saturatedFat, carbs, sugar, fiber, protein, salt — so consumers can sort across chains ("highest protein per 100g lasagne") even though each upstream API exposes the data on a different surface and in a different shape. Missing or unparseable fields are left undefined; adapters never fabricate values.
| Env var | Default | Effect |
|---|---|---|
DENNER_JWT | _(unset)_ | Optional pre-supplied Denner Bearer JWT. Without it, the adapter self-registers anonymously on first use and rotates the token automatically. |
LIDL_DEFAULT_STORE | CH0149 | Default Lidl store ID used when no storeIds are passed. |
SWISSGROCERIES_USER_AGENT_COOP | _(default iOS Safari UA)_ | Override the User-Agent for Coop calls if DataDome ever blocks the default. |
SWISSGROCERIES_LOG_LEVEL | info | silent, info, or debug. |
SWISSGROCERIES_DISABLE_CACHE | _(unset)_ | Set to 1 to bypass the in-memory HTTP cache (useful for debugging). |
Each grocery chain is wrapped in an independent adapter (src/adapters/ /) that handles authentication, HTTP calls, and raw-to-normalised mapping. Adapters all produce the same NormalizedProduct, NormalizedStore, and NormalizedPromotion shapes (defined in src/adapters/types.ts), so the rest of the system never has to know which chain it is talking to.
The HTTP utility (src/util/http.ts) underpins every adapter except Migros (which delegates to the migros-api-wrapper library): in-memory response caching with a 5-minute TTL, retry with exponential backoff (3 attempts, 250 ms base), per-host rate limiting (~10 requests per second), and a per-host circuit breaker that opens after 5 consecutive failures and resets after 60 seconds.
The shopping planner (src/services/planner.ts) fans out store and product searches in parallel across all active adapters, then feeds results into a strategy solver (src/services/strategy.ts) that supports three modes:
single_store: minimise the number of stops.split_cart: cheapest split across chains, with a configurable per-stop penalty.absolute_cheapest: cheapest split, ignoring stop count.Cross-chain comparisons are kept fair by a category-text canonicality filter (src/services/matcher.ts, isCanonical). When at least one chain returns a product whose category text matches the query, results from chains that only returned tangential products (for example, Apfelschorle when searching for "apfel") are dropped from the comparison matrix for that item.
MCP client (any LLM)
│ │ MCP tool call ▼ src/index.ts ── buildRegistry() ────────────────────────────────────────┐ │ │ │ routes to tool handler │ ▼ ▼ src/tools/ src/adapters/ find_stores.ts ──► geocoding ──► adapter.searchStores migros/ search_products.ts ──────────────► adapter.searchProducts coop/ get_product.ts ──────────────► adapter.getProduct aldi/ get_promotions.ts ──────────────► adapter.getPromotions denner/ (auto-auth) find_stock.ts ──────────────► adapter.findStoresWithStock lidl/ plan_shopping.ts ──► geocoding ──► planner ──► strategy solver │ NormalizedProduct NormalizedStore NormalizedPromotion
node --version # requires Node.js >=20
git clone https://github.com/nicktcode/swissgroceries-mcp cd swissgroceries-mcp npm install npm run build
To also build the .mcpb bundle locally:
npx tsx scripts/build-mcpb.ts
**Coop
ตัดมาแค่ช่วงต้น อ่านต่อใน repo