Picnic

io.github.MRVDH由 GitHub 帳號 MRVDH 發布v1.0.1更新於 Nov 7, 2026

Search products, fill the cart and pick a delivery slot at the online supermarket Picnic

已驗證STDIO僅桌面效率與工作流商業與電商

概覽

AI 產生的概覽

針對 Picnic 線上超市的非官方 MCP 伺服器,讓助理搜尋商品、修改購物車、選擇配送時段並查看促銷。

可以做什麼
  • 搜尋商品並查看配料、過敏原、營養資訊與價格等細節
  • 查看購物車、加入商品、調整數量、移除商品
  • 列出配送時段並為購物車選擇時段
  • 瀏覽本週促銷與使用者常買的商品
  • 啟用選用工具群組後:查看即將到來與過去的配送,搜尋、查看、儲存食譜或把食譜加入購物車
適用情境
適合在 Picnic 購物的使用者請助理在對話中整理或調整購物車、查詢過敏原或促銷、挑選配送時段。它無法下單,因此是購物輔助工具而非結帳工具。
執行需求
以 stdio 方式在本機執行,需要 Node.js 20 或更新版本,可透過 npx 或 MCPB 套件安裝。需要 Picnic 授權金鑰,放在 PICNIC_AUTH_KEY 中,透過登入指令輸入國家、電子郵件、密碼與雙重驗證碼取得。PICNIC_COUNTRY_CODE 為 NL、DE 或 FR(預設 NL);PICNIC_MCP_TOOLS 用來選擇工具群組。選用的 HTTP 模式需要 PICNIC_MCP_HTTP_TOKEN。
安裝前請注意
PICNIC_AUTH_KEY 可存取使用者的 Picnic 帳戶,必須保密,且會過期需重新產生。工具會更動真實購物車(加入、改數量、移除、選時段),但無法下單。工具回傳的內容會傳送給模型供應商。此伺服器為非官方專案,德國與法國帳戶尚未測試。HTTP 模式不提供 HTTPS,持有 PICNIC_MCP_HTTP_TOKEN 的人都能修改購物車。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Picnic,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

picnic-mcp

An MCP server for the online supermarket Picnic. It lets a model search Picnic's products, fill your shopping cart, pick a delivery slot, show promotions and the products you usually buy, and use recipes. It can't place an order.

Unofficial: not made or supported by Picnic. Built on picnic-api. Tested with Dutch accounts; German and French accounts should work, but haven't been tested.

Part of a set

picnic-api, picnic-web and picnic-mcp are developed and released together. When the Picnic app changes how it gets its data, picnic-api follows it and picnic-web and picnic-mcp are updated in the same change, so their latest versions always work together.

ProjectWhat it is
picnic-api [npm]Node.js library for Picnic's API: products, cart, delivery slots, deliveries and recipes.
picnic-webWeb interface for Picnic, to shop from your browser. Live at picnic.maartenvandenhoven.com.
picnic-mcp [npm]MCP server that lets AI assistants search products, fill your cart and pick a delivery slot.

Tools

The tools come in groups. cart, slots, product and discover are on by default; turn groups on or off with PICNIC_MCP_TOOLS (see Setup).

GroupToolWhat it does
cartsearch_productsSearches products. Returns a bestMatch when one product fits (usually one you bought before), or 2 or 3 choices to ask you about.
add_to_cartAdds one or more products by their ids. Returns the quantity of each in the cart, the products that failed, the cart total, and replacements when a product can't be delivered.
set_cart_quantitySets how many of a product are in the cart; 0 removes it.
remove_from_cartRemoves a product by its id.
get_cartShows the cart: products, quantities, prices, total and delivery window, and replacements for products that can't be delivered.
slotsget_delivery_slotsLists the delivery slots, two days at a time or for one date.
select_delivery_slotChooses the delivery slot of the cart.
productget_productShows a product's ingredients, allergens, nutrition, storage info, promotion and price.
discoverget_promotionsLists this week's promotions per section (e.g. per category), all promotions of a section, or the products of one promotion.
get_favoritesLists the products you buy, per aisle, as the app's "Favorieten" tab does. For "add my usual groceries".
deliveriesget_deliveriesShows upcoming deliveries (window, number of products, total, and the expected arrival while the driver is on the way) or the last past ones. Optionally the products, e.g. to order the same again.
recipessearch_recipesSearches Picnic's recipes.
get_saved_recipesLists the recipes you saved in the app.
get_recipeShows a recipe's ingredients, allergens and steps. The recipe tools also take a recipe link shared from the Picnic app.
add_recipe_to_cartAdds a recipe's ingredients to the cart for a number of portions.
remove_recipe_from_cartRemoves a recipe and its ingredients from the cart.
save_recipeSaves a recipe in the app.
unsave_recipeRemoves a recipe from your saved recipes.

Output is compact JSON with only what a model needs. It leaves out your name, address, payment details, order numbers and other account details. Keep in mind that whatever the tools return is sent to the model your MCP client uses.

When a search has no clear match and your MCP client can show a form (elicitation), you pick the product in the client yourself, instead of the model asking you in the chat.

Setup

Requires Node.js 20 or later.

1. Get an auth key

bash
npx picnic-mcp login

It asks for your country, email and password, and the code Picnic texts you when your account uses two-factor authentication. It prints an auth key and stores nothing. Keep the key secret: it gives access to your Picnic account.

2. Add the server to your MCP client

Claude Desktop and other MCPB clients: download picnic-mcp.mcpb from the latest release, open it, and fill in the auth key.

Other clients take a configuration like this:

json
{  "mcpServers": {    "picnic": {      "command": "npx",      "args": ["-y", "picnic-mcp"],      "env": {        "PICNIC_AUTH_KEY": "<your auth key>",        "PICNIC_COUNTRY_CODE": "NL"      }    }  }}

PICNIC_COUNTRY_CODE is NL, DE or FR (default NL). To choose the tool groups, add PICNIC_MCP_TOOLS with a comma-separated list, e.g. "cart,slots,product,discover,deliveries,recipes" (default cart,slots,product,discover). Fewer tools help smaller models pick the right one. The server runs over stdio; see HTTP to reach it over the network.

The server is also listed in the MCP Registry as io.github.MRVDH/picnic-mcp.

When the key expires, the tools say so; run npx picnic-mcp login again.

HTTP

picnic-mcp http serves the same tools over HTTP at /mcp, for clients that connect to a URL. It needs a token that clients send as Authorization: Bearer <token>; generate one with:

bash
openssl rand -hex 32
bash
PICNIC_AUTH_KEY=<auth key> PICNIC_MCP_HTTP_TOKEN=<token> npx picnic-mcp http
Variable
PICNIC_MCP_HTTP_TOKENRequired, at least 32 characters. Anyone with it can change your cart, so keep it secret.
PICNIC_MCP_HTTP_HOSTAddress to listen on. Default 127.0.0.1, so only this machine can connect.
PICNIC_MCP_HTTP_PORTDefault 3000.
PICNIC_MCP_HTTP_ALLOWED_HOSTSHost names allowed besides localhost, comma-separated, e.g. the name of a reverse proxy in front of it. Requests with another Host or Origin header are refused.

The server doesn't do HTTPS. To use it from another machine, put it behind a reverse proxy with HTTPS, and add the proxy's host name to PICNIC_MCP_HTTP_ALLOWED_HOSTS.

Use it in your own code

createServer returns the MCP server without reading environment variables or files, so you can run it in your own process and connect it to any MCP transport:

ts
import { createServer } from "picnic-mcp";
const server = createServer({ authKey: "<auth key>", countryCode: "NL" });await server.connect(transport);

Pass tools to choose the tool groups (e.g. tools: ["cart", "recipes"]), client instead of authKey to use a picnic-api client you already have, and onError to handle errors from Picnic yourself (by default they're logged to stderr).

Product images

Results that list products (search, the cart, added products, promotions, favorites, product details) carry the image URLs of those products in _meta["picnic-mcp/images"], by product id. MCP clients don't pass _meta to the model, so the images cost no tokens; your own code can use them, e.g. to show product photos. The images don't need the auth key. The key is exported as IMAGES_META_KEY.

來源:README.md,提交 92f91a8

工具

10

search_products

Search products

Search the Picnic supermarket for a product and get its id for add_to_cart. Write the query in Dutch, as a short product name. The result has `bestMatch` when one product fits, usually one the user bought before: add that one. It has `choices` when there is no clear match: ask the user which one they want before adding anything. `boughtBefore` marks products the user ordered before.

輸入參數query必填

get_cart

Get cart

Show the user's Picnic shopping cart: the products with their quantity and price, the total, and the delivery window. A product that can't be delivered in that window has `unavailable` with the reason, and `replacements` Picnic offers instead.

無需輸入參數。

add_to_cart

Add to cart

Add one or more products to the user's Picnic shopping cart. Get the product ids from search_products first; put all products the user asked for in one call (at most 20). Returns each added product with the quantity now in the cart, the products that failed, and the cart total. A product that can't be delivered in the selected delivery window has `unavailable` and `replacements`: tell the user and offer them. To change how many of a product are in the cart ("make it 4"), use set_cart_quantity instead. This does not place an order.

輸入參數items必填

remove_from_cart

Remove from cart

Remove a product from the user's Picnic shopping cart. Get the product id from get_cart. Returns the quantity left in the cart and the cart total.

輸入參數quantityproductId必填

set_cart_quantity

Set cart quantity

Set how many of a product are in the user's Picnic shopping cart, e.g. when the user says "make it 3". 0 removes the product. Get the product id from get_cart or search_products. Returns the quantity now in the cart and the cart total.

輸入參數quantity必填productId必填

get_delivery_slots

Get delivery slots

List the delivery slots the user can choose for the cart. Without a date it lists the first 2 days and the dates of the other days. Pass a date from that list to see its slots. Use select_delivery_slot once the user picked a slot.

輸入參數date

select_delivery_slot

Select delivery slot

Choose when the cart is delivered. Only use a slotId from get_delivery_slots, after the user picked the slot. Returns the selected delivery window and the cart total. This does not place an order.

輸入參數slotId必填

get_product

Get product details

Get the details of a Picnic product: ingredients, allergens, nutrition, storage info, promotion and price. Use it for questions such as whether a product contains gluten. Get the product id from search_products or get_cart.

輸入參數productId必填

get_promotions

Get promotions

List what is on promotion at Picnic this week. Without input it lists the sections (e.g. per category) with a few products and promotions each. Pass a section title for all products and promotions in it, or a promotionId for the products of one promotion. Products have ids for add_to_cart.

輸入參數sectionpromotionId

get_favorites

Get favorites

List the products the user buys at Picnic, per aisle, e.g. for "what do I usually buy?" or to offer products for "my usual groceries". Without input it lists the aisles with a few products each; pass an aisleId for all of the user's products in that aisle. Products have ids for add_to_cart; add only the ones the user asks for.

輸入參數aisleId

版本歷史

2
  1. v1.0.1最新Nov 4, 2026
  2. v1.0.0Oct 23, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分
  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分