Skip to main content
Glama
picnic-mcp

picnic-mcp

by jlb-jlb

Picnic MCP: search groceries, manage recipes, plan healthy meals

picnic-mcp

English | Deutsch | Nederlands | Français

An MCP server and Claude plugin for Picnic, the grocery delivery app. Claude can search the catalogue, pick the best product for each ingredient (cheapest, organic, best value), fill your cart, read Picnic recipes with their nutrition, and save your own recipes in the app. You confirm and pay for the order in the Picnic app, so Claude never checks out for you.

It uses only the Python standard library. There is nothing to install from PyPI and no third-party code to trust. The Picnic client, the MCP protocol layer, the browser login and the credential storage are all written from scratch in this repository.

Read this first

This project is unofficial and not affiliated with Picnic. Picnic has no public API. The endpoints were worked out by reading the public source of the maintained python-picnic-api2 project as a reference (nothing is imported from it) and by testing against a real account. Picnic can change or block this API at any time, and using it may go against their terms of service. Use it for your own account and for personal use.

Related MCP server: Tiv Taam MCP Server

Install

You need uv. The first start downloads Python 3.14 (pinned in .python-version) and builds the project, which can take a little while. After that it starts in a second.

As a Claude plugin

/plugin marketplace add jlb-jlb/picnic-mcp
/plugin install picnic-mcp@picnic-mcp-marketplace

Claude Code asks for your Picnic country (nl, de, be or fr) when the plugin is enabled. The plugin also adds a skill that tells Claude the order in which to use the tools.

As a plain MCP server

git clone https://github.com/jlb-jlb/picnic-mcp
claude mcp add picnic --env PICNIC_COUNTRY=de -- uv run --locked --directory ./picnic-mcp picnic-mcp

Use the absolute path to the clone if your client starts the server from another folder.

Sign in

Ask Claude to log in to Picnic. It calls the start_login tool, which opens a sign-in page in your browser. You enter your e-mail and password, choose SMS or e-mail for the one-time code, and enter the code. Picnic requires this two-factor step on accounts that have it enabled.

The page runs on your own computer and closes when you are done. It sends your details only to Picnic. Claude never sees your password or the code. Without Claude, the same page opens with uv run --directory <path to this repository> picnic-mcp login --web, and a plain terminal prompt is available by leaving out --web. The plain picnic-mcp command only exists on your PATH if you installed the package with uv tool install.

Where your credentials go

What

Where

Notes

Password and one-time code

From your browser to the local page, on to Picnic

Kept in memory for the duration of the login call only. Never written to disk, never logged, never shown to Claude.

Session token

The operating system's credential store

Windows Credential Manager, macOS Keychain, or the Linux desktop keyring through secret-tool. There is no file fallback.

Without a credential store the login fails with a message that says what to install. On Linux that means secret-tool from libsecret (libsecret-tools on Debian and Ubuntu) and a running keyring such as GNOME Keyring. Headless servers and bare WSL usually have none.

The sign-in page is a short-lived local web page with these safeguards:

  • It listens on 127.0.0.1 only, on a random port.

  • The address contains a one-time random secret. Any other address returns 404.

  • It refuses requests with another host name (DNS rebinding) and form posts from other sites.

  • It sets no cookies and runs no scripts, and a strict content security policy forbids everything else.

  • The request size is capped, failed attempts are limited, and the page expires after five minutes.

  • It logs nothing.

Data and network

The server talks to one place: the Picnic API at storefront-prod.<country>.picnicinternational.com. It sends no telemetry and stores no conversation content. Your cart, recipes and order history live with Picnic. The only thing stored on your computer is the session token in the credential store. Log out with picnic-mcp logout, which deletes the stored token for your country.

Tools

Tool

What it does

start_login

Opens the local sign-in page described above.

search_products

Search the catalogue. Returns id, name, price in cents, unit size and unit price.

find_ingredients

Picks the best product per ingredient by a preference (cheapest for the amount, best value per kg, organic, conventional, smallest or largest pack) and returns the packs to buy, total cost and leftover. Does not touch the cart.

get_cart

Show cart items and the total in cents.

add_to_cart

Add a product by id (count 1 to 50).

remove_from_cart

Remove a quantity of a product.

clear_cart

Empty the cart.

search_recipes

Search Picnic's recipes and your own. Returns id, name, duration and labels such as Vegan.

get_recipe

Show a recipe: preparation steps, ingredients with the product each maps to, amounts, and nutrition per portion.

add_recipe_to_cart

Add a recipe's ingredients to the cart like the app's add-all button, with portions and optional ingredients to include or skip.

remove_recipe_from_cart

Take a recipe's ingredients out of the cart again.

create_recipe

Save your own recipe in the Picnic app ("Eigenes Rezept") from a name, portions and ingredient product ids. Does not touch the cart.

delete_recipe

Delete a recipe you created with create_recipe.

get_delivery_slots

List bookable delivery windows for the current cart, soonest first. Does not book one.

get_order_history

List recent completed deliveries with date, delivery window and total paid. It does not include the products.

Every tool declares a title and the read-only, destructive, idempotent and open-world hints, so clients can ask before anything that removes data.

There is no checkout tool on purpose. The server fills the cart and you confirm the order in the Picnic app.

Example prompts

  • "Suggest three healthy dinners for next week that take under 30 minutes each and share ingredients, so a 1 kg bag of carrots or a bunch of coriander is used up across two recipes. Check the nutrition per portion, then show me one combined shopping list with the total cost before you add anything to the cart."

  • "I cook for two people. Find the best Picnic products for 400 g spaghetti, 600 g carrots, 3 eggs, 200 g feta and a bunch of parsley. Choose organic for the vegetables and the cheapest option for everything else, and show me the packs, the total and what is left over."

  • "Find a vegan lentil recipe under 30 minutes with at least 20 g of protein per portion, add it to the cart for two people, and tell me which delivery slots are free on Friday evening."

  • "Plan five quick lunches I can prepare on Sunday for the work week, vegetarian and high in protein, with as few different ingredients as possible. Search Picnic's recipes for ideas and show the cost per portion."

  • "Save my lentil soup as a Picnic recipe for four portions with these ingredients, so I can add it to the cart with one tap in the app."

Good to know

  • Picnic sells whole packs. A recipe you create holds products and pack counts, not "3 carrots", and the app has no place for preparation steps or an at-home section in your own recipes. Keep those in your notes.

  • Organic is recognised from the product name (Bio, Bioland, Demeter, Naturland), because the search results carry no organic flag.

  • find_ingredients marks a result as loose when no product name contains every word of the query.

  • Nutrition values come from Picnic's own recipes and are estimates.

Troubleshooting

Problem

What to do

"no stored session"

Ask Claude to log in, or run uv run --directory <path to this repository> picnic-mcp login --web.

Login fails right after the code

Check that the country setting matches your account. Codes expire quickly.

"no desktop keyring found" (Linux)

Install libsecret-tools and a keyring such as gnome-keyring, and run inside a desktop session.

HTTP 403 on every call

The session token expired. Log in again.

First start is slow

uv is downloading Python and building the project. Later starts are fast.

Umlauts look broken

Update to the current version, which reads and writes UTF-8 on Windows.

Development

uv run python -m unittest discover -s tests

The tests run offline against a fake network layer. Continuous integration runs them on Windows, macOS and Linux and also does a real round trip against each system's credential store.

Releasing: raise the version in pyproject.toml, .claude-plugin/plugin.json and src/picnic_mcp/server.py, run uv lock, and set the ref and version of the plugin entry in .claude-plugin/marketplace.json to the new tag. Commit, then push a tag such as v0.3.0. The release workflow checks that the tag matches the versions, runs the tests and publishes the GitHub Release. Plugin installs follow the tag named in the marketplace file, not main.

Layout:

  • src/picnic_mcp/client.py: HTTP client (urllib), login, search, cart, recipes, deliveries, plus helpers that shrink responses for the model.

  • src/picnic_mcp/finder.py: the ingredient finder (pack parsing, organic detection, ranking).

  • src/picnic_mcp/auth.py, weblogin.py, secretstore.py: login, the browser sign-in page and the credential store backends.

  • src/picnic_mcp/server.py: JSON-RPC 2.0 over stdio, tool registry, annotations and argument validation.

  • .claude-plugin/ and skills/: the plugin manifest, the marketplace file and the shopping skill.

  • tests/: offline tests.

Ideas for later

  • Nutrition lookup via Open Food Facts for healthy meal planning.

  • A plan_week MCP prompt that turns dietary goals and preferences into a cart.

License

MIT, see LICENSE.

Available Tools

15 tools
add_recipe_to_cartAdd a recipe to the cartA

Add a recipe's needed ingredients to the cart, like the app's 'add all' button. Ingredients the user probably has at home, pantry items and alternatives are left out by default. Use include_ingredient_ids (from get_recipe) to add ones the user lacks, and skip_ingredient_ids to leave out needed ones the user already has. Does not place an order.

Inputs: recipe_id (required), portions, skip_ingredient_ids, include_ingredient_ids.

add_to_cartAdd a product to the cartB

Add a product to the cart. Does not place an order.

Inputs: product_id (required), count.

clear_cartEmpty the cartA
DestructiveIdempotent

Remove every item from the cart.

Inputs: no named parameters.

create_recipeSave your own recipeA

Save a recipe of the user's own in the Picnic app ('Eigenes Rezept'), so its ingredients can be added to the cart there in one tap. Find each ingredient with search_products first and pass its id. Quantity is the number of packages of that product. Does not touch the cart or place an order.

Inputs: name (required), ingredients (required), portions.

delete_recipeDelete your own recipeA
DestructiveIdempotent

Delete a recipe the user created with create_recipe. Only for user-created recipes, never Picnic's own.

Inputs: recipe_id (required).

find_ingredientsFind the best product per ingredientA
Read-onlyIdempotent

Find the best Picnic product for each ingredient of a recipe or shopping list, by a preference. Per item it searches, keeps products whose name contains every query word, and ranks them. Preferences: 'cheapest' (lowest total cost for the amount, so a 250 g pack beats a 1 kg pack when 200 g is needed), 'best_value' (lowest price per kg or litre), 'organic' (only Bio products, cheapest first), 'conventional', 'smallest_pack', 'largest_pack'. Give amount like '300 g', '0.5 l' or '3' (pieces) to get the packs to buy, the total cost and the leftover. Organic is recognised from the product name (Bio, Bioland, Demeter, Naturland). Set preference per item to mix, for example organic vegetables and cheapest pasta. exclude drops products whose name contains a word, such as 'mix' or 'stifte'. Returns best and a few alternatives per item and does not touch the cart: confirm the choices, then call add_to_cart with packs as count.

Inputs: items (required), preference.

get_cartShow the cartA
Read-onlyIdempotent

Show the current cart with item counts and the total price in cents.

Inputs: no named parameters.

get_delivery_slotsShow delivery slotsA
Read-onlyIdempotent

List bookable delivery windows for the current cart, soonest first, with the time to order by. The tool only reads the slots, it does not book one.

Inputs: limit.

get_order_historyShow past ordersA
Read-onlyIdempotent

List the user's recent completed deliveries, newest first, with order time, delivery window and total paid in cents. It does not list the products in each order.

Inputs: limit.

get_recipeShow a recipeA
Read-onlyIdempotent

Show a recipe: name, description, preparation steps, ingredients with the Picnic product each maps to, amounts, and nutrition per portion (energy, fat, carbohydrates, sugar, protein, salt, fibre). Each ingredient has a kind: 'needed' (added to the cart by default), 'probably_at_home' (the app's 'Bestimmt noch zuhause' section, such as onions), 'pantry' (oil, salt, spices, also listed in own_ingredients) or 'alternative' (a variant of a needed ingredient). Only 'needed' ones are selected by default.

Inputs: recipe_id (required).

remove_from_cartRemove a product from the cartC
Destructive

Remove a quantity of a product from the cart.

Inputs: product_id (required), count.

remove_recipe_from_cartRemove a recipe from the cartC
DestructiveIdempotent

Take a recipe's ingredients out of the cart again.

Inputs: recipe_id (required).

search_productsSearch productsB
Read-onlyIdempotent

Search the Picnic catalogue. Returns id, name, price in cents, unit size and unit price.

Inputs: query (required), limit.

search_recipesSearch recipesA
Read-onlyIdempotent

Search Picnic's own recipes and the user's recipes. Returns id, name, duration and labels such as 'Vegan'.

Inputs: query (required), limit.

start_loginSign in to PicnicA

Open a sign-in page for Picnic in the user's browser. The page runs on the user's own computer (127.0.0.1, one-time address, expires after 5 minutes), asks for e-mail, password and the code Picnic sends by SMS or e-mail, and stores the session token in the system credential store. The password never reaches Claude. Use it when another tool reports that no session is stored.

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 15 tools

    Disambiguation4/5

    The tools split cleanly along resource lines (products, recipes, cart, account, delivery) with one action each. The only real overlap is search_products vs find_ingredients and add_to_cart vs add_recipe_to_cart, but the descriptions make the boundary explicit (single-item lookup vs multi-item ranked matching; single product vs all recipe ingredients).

    Naming Consistency5/5

    Every tool follows the same snake_case verb_noun pattern (search_products, get_cart, add_recipe_to_cart, remove_from_cart, create_recipe, delete_recipe). The verb set is small and used predictably across every resource, so an agent can guess names it hasn't seen.

    Tool Count5/5

    Fifteen tools sit at the top of the well-scoped range, but each maps to a distinct step in the browse -> ingredient-match -> cart -> recipe -> slot workflow. Nothing looks redundant or padded; the four cart tools each cover a separate operation.

    Completeness4/5

    Coverage is strong: product search, ingredient matching, full cart manipulation, recipe create/read/delete plus add/remove ingredients from cart, and read-only slots and order history. Gaps are a missing update_recipe (create and delete exist but no edit) and no way to actually book a slot or place an order, though the repeated 'does not place an order' wording suggests that is a deliberate safety boundary.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    • Save, import and edit recipes as interactive cards in ChatGPT and Claude, synced to your iPhone.

      https://mcp.mysouschef.app/mcp
    • Recipe search, ingredient matching, nutrition filters and a private cookbook for any AI agent.

      https://mcp.ask.recipes/mcp
    • Your Recipes, Beautifully Kept. weReci MCP server lets Claude and other MCP clients work with your personal weReci cookbook, the recipes you've imported from the web, social video and scanned family books. Interactive UI in the chat. weReci supports MCP Apps, so in clients that support it, tools return live views instead of plain text: recipe cards, shopping lists and your recipe graph. Clients without MCP Apps support get the same results as text. Find and read recipes: search your collection in plain language, open any recipe in full, or get an overview of what's in your cookbook. Cook with them: scale a recipe to any serving count, with cooking adjustments as well as amounts. Get substitution suggestions with ratios and caveats. Explore connections: browse your recipe graph (shared ingredients, techniques and cuisines), trace the connection between two recipes, and look up where a dish sits on the cuisine map. Themed collections: list the themed groups weReci curates from your cookbook, or ask it to reshuffle them. Shop: build a shopping list from one or more recipes, add or update items, and read the list back. Share: email a recipe to someone. Longer jobs like conceit reshuffles run in the background, with tools to check their progress. Everything is scoped to your own cookbook, or to a shared one you've joined.

      https://wereci.xyz/api/mcp
    • Turn any shopping list into a ready-to-checkout grocery cart across 26 European supermarkets.

      https://mcp.pepesto.com

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI assistants to interact with Picnic online supermarket for grocery shopping, meal planning, cart management, delivery tracking, and budget-conscious shopping in Netherlands and Germany.
      161 npm
      124
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables LLMs to search Picnic's grocery catalog, manage the shopping basket, and select delivery slots for Picnic's grocery service in Germany and the Netherlands.
      9
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables AI assistants to search grocery products, manage shopping carts, view orders and delivery information, and get personalized meal and deal suggestions across multiple European grocery delivery services.
      MIT