TilbudsTrolden
TilbudsTrolden lets you find Nordic grocery deals, plan meals around them, and build optimized shopping lists via an AI assistant.
Search current grocery deals by keyword across Denmark, Norway, Sweden, and Finland.
Browse weekly offers from a specific store or see best deals from your preferred stores.
List supported grocery chains and dealer IDs.
Configure household: country, people, dietary restrictions, preferred stores, and servings.
Track pantry items so they're excluded from shopping lists.
Manage a recipe library: list, add, update, or remove recipes.
Score recipes against current deals by coverage and estimated cost.
Generate weekly meal plans with constraints (protein/cuisine repetition, slow-cook days, exclusions).
Create deal-optimized shopping lists from chosen recipes, grouped by store and excluding pantry items.
Log cooked meals and grocery spending, and view meal/spend history.
Ships with 32 starter recipes; data stored locally in ~/.tilbudstrolden.json.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@TilbudsTrolden Find the best deals on pasta this week"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
TilbudsTrolden
The deal troll that lives under the bridge between your fridge and your wallet.
https://github.com/user-attachments/assets/23ffe6fc-9d5d-4a46-904f-bc7a83f3f421
The meal plan and shopping list in the video are real plan_and_shop output, with deals captured on 26-09-2026.
An MCP server for Nordic grocery shopping. It finds the best deals across supermarkets in Denmark, Norway, Sweden, and Finland, plans your weekly dinners around what's cheap, and builds shopping lists grouped by store. You talk to your AI assistant about dinner; the troll does the legwork.
Works with any MCP-compatible client: Claude Desktop, Claude Code, VS Code, Cursor, Windsurf, ChatGPT, and others.
Features
Deal search
Search current deals across grocery chains in Denmark, Norway, Sweden, and Finland. Compare unit prices (kr/kg for Scandinavian kroner, €/kg for Finnish euros) side by side. Check what's on offer at a specific store, or get a combined view from all your preferred stores at once.
Recipe library
Ships with 32 starter recipes (Danish households) spanning Danish, Italian, Asian, Mexican, and Swedish cuisines. Deals are matched to ingredients automatically. Add your own recipes in your local language, remove ones you don't like, or tweak the defaults. Norwegian, Swedish, and Finnish households start with a clean slate for adding recipes with local search terms.
Meal planning
Plan your week's dinners. The planner checks current deals, picks the cheapest combination of recipes, and makes sure you're not eating chicken four nights in a row. You set the rules: no pork, slow-cook only on weekends, at least 3 Asian dishes this week. It handles the rest.
Shopping lists
Get a shopping list from any set of recipes. Shared ingredients are added up across recipes (8 carrots, not "2 for this + 3 for that + 3 for the other"). Pantry items are excluded. Current deals are matched per ingredient and grouped by store.
Household config
Tell the assistant which country you're in (DK, NO, SE, or FI), how many people you're cooking for, which stores you prefer, and any dietary restrictions. Everything else follows from that: deals from your stores rank higher, pork disappears if you said no pork, and shopping lists scale to your household. Country defaults to Denmark if not set.
Pantry tracking
Tell the assistant what you already have at home. Those items get skipped in shopping lists, so you don't come home with a third bottle of soy sauce.
Meal and spend logging
Record what you cooked and what you spent. The planner keeps track so you don't end up eating lasagne every Tuesday.
Related MCP server: mealplan-mcp
Supported stores
Denmark: Netto, Meny, Lidl, REMA 1000, Foetex, Bilka, Spar, Kvickly, 365discount
Norway: REMA 1000, KIWI, Meny, Coop Prix, Extra, Bunnpris, Obs, Spar, Joker
Sweden: ICA (Maxi/Kvantum/Supermarket/Nara), Willys, Hemkop, City Gross, Coop, Stora Coop, Tempo
Finland: S-market, K-Market, K-Supermarket, K-Citymarket, Prisma, Lidl, Tokmanni, Alepa, Sale, Halpahalli, Minimani, Saiturinpörssi
All deal data is fetched via the etilbudsavis.dk (Tjek) API, which serves flyer data for all four countries. Coverage varies; Denmark has the deepest data, followed by Finland, Sweden, and Norway.
Quick start
Install
git clone https://github.com/olgasafonova/tilbudstrolden-mcp.git
cd tilbudstrolden-mcp
npm install
npm run buildConnect to your MCP client
Pick your client below. All use stdio transport; no API keys or auth required.
Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"tilbudstrolden": {
"command": "node",
"args": ["/absolute/path/to/tilbudstrolden-mcp/dist/server.js"]
}
}
}Restart Claude Desktop after saving.
claude mcp add tilbudstrolden node /absolute/path/to/tilbudstrolden-mcp/dist/server.jsAdd to your workspace .vscode/mcp.json:
{
"servers": {
"tilbudstrolden": {
"command": "node",
"args": ["/absolute/path/to/tilbudstrolden-mcp/dist/server.js"]
}
}
}Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"tilbudstrolden": {
"command": "node",
"args": ["/absolute/path/to/tilbudstrolden-mcp/dist/server.js"]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"tilbudstrolden": {
"command": "node",
"args": ["/absolute/path/to/tilbudstrolden-mcp/dist/server.js"]
}
}
}In Settings > MCP Servers, click "Add Server" and enter:
Name: tilbudstrolden
Command:
nodeArguments:
/absolute/path/to/tilbudstrolden-mcp/dist/server.js
TilbudsTrolden uses stdio transport. Point your client at:
command: node
args: ["/absolute/path/to/tilbudstrolden-mcp/dist/server.js"]Optional environment variable:
TILBUDSTROLDEN_DATA=/custom/path/to/data.jsonTools
Deals
Tool | What it does |
| Search current offers across stores by keyword (DK/NO/SE/FI) |
| List this week's offers from a specific store |
| Show the best deals from your preferred stores, with expiring items and biggest savings |
| List available grocery chains with dealer IDs |
Household and pantry
Tool | What it does |
| View current household config |
| Set country (DK/NO/SE/FI), household members, dietary restrictions, preferred stores, servings |
| View pantry contents |
| Add or remove pantry items (excluded from shopping lists) |
Recipes
Tool | What it does |
| List all saved recipes |
| Save a new recipe with ingredients, search terms (in your language), complexity, cuisine, and protein type |
| Delete a recipe by name |
Planning
Tool | What it does |
| Score all recipes against current deals, ranked by deal coverage |
| Score, plan a week, and generate a shopping list in one step |
| Build a shopping list from specific recipes, with deals matched per ingredient |
Tracking
Tool | What it does |
| Record what you cooked and when |
| View past meals |
| Record grocery spending |
| View spending history |
Starter recipes
TilbudsTrolden ships with 32 recipes that work out of the box. They're loaded on first use and fully editable; add your own or remove any you don't need.
Danish (13): Frikadeller, Brændende Kærlighed, Kylling i Karry, Laks i fad, Flæskesteg, Tomatsuppe, Hakkebøffer med bløde løg, Kartoffelsuppe, Fiskefilet med remoulade, Biksemad, Koteletter i fad, Bagt kylling med ovnkartofler, Pølsegryde
Italian (6): Spaghetti Bolognese, Lasagne, Spaghetti Carbonara, Tomatrisotto, Salsiccia Pasta, Marry Me Chicken
Asian (7): Wok med kylling, Nudelsuppe med kylling, Uncle Roger's Egg Fried Rice, Nasi Goreng, Chow Mein, Uncle Roger's Adobo, Maangchi's Bulgogi
Mexican (2): Chili con Carne, Tacos med kylling
Swedish (4): Kajsas Kycklingfile med senap och rosepeber, Grillet laks med tomatsmor, Sagas Krydderisauce, Fransk grillet kylling med dragonsauce
Complexity ranges from quick (15-20 min) through medium (30-45 min) to slow (1+ hour). Proteins cover chicken, beef, pork, fish, egg, and vegetarian.
Example conversations
Real examples of how you'd talk to your AI assistant with TilbudsTrolden running.
Set up your household
You: We're 3 people, no pork, and we shop at Netto, REMA 1000, and Meny.
The assistant saves your setup. From now on, deals from Netto, REMA, and Meny get priority, and pork recipes are excluded from meal plans.
You: Switch me to Finland. We shop at Prisma, K-Supermarket, and Lidl.
Country becomes FI, stores update, and deals now come from Finnish chains. Prices show in €/kg instead of kr/kg.
Check deals
You: What's on sale at my stores this week?
You get a summary per store: expiring deals that need action, biggest savings, and highlights.
You: Find me the cheapest hakket oksekoed.
Found 6 deals for "hakket oksekød":
1. Hakket okse- eller grisekød - 99 DKK (76.15 kr/kg) @ Bilka
2. Hakket oksekød 8-12% - 36.66 DKK (91.65 kr/kg) @ Fleggaard
3. Velsmag hakket oksekød 7-10% - 45 DKK (112.50 kr/kg) @ Netto
...Plan a full week
You: Plan next week's dinners. No pork except Tuesday, mix of Asian and other.
You get a 7-day plan with no consecutive protein or cuisine repeats, plus a shopping list for the whole week.
7-day meal plan (3 people)
Mon: Tomatrisotto (Italian, vegetarian)
Tue: Chow Mein (Asian, pork)
Wed: Laks i fad (Danish, fish)
Thu: Maangchi's Bulgogi (Asian, beef)
Fri: Fiskefilet med remoulade (Danish, fish)
Sat: Lasagne (Italian, beef)
Sun: Nudelsuppe med kylling (Asian, chicken)
Shopping list (58 items)
Buy at Netto: hakket oksekød 45 DKK, kyllingebrystfilet 49 DKK, ...
Buy at REMA: oksemørbrad 129.95 DKK, remoulade 10 DKK, ...
Buy at regular price: mozzarella, parmesan, kokosmælk, ...Add your own recipe
You: Save a recipe for chicken tikka masala: 500g kyllingebryst, 200g yoghurt, tikka masala paste, hakkede tomater, piskefloede, ris. Medium, Indian, chicken.
The recipe is saved. It shows up in meal plans and deal matching from now on.
Shopping list for specific meals
You: Make a shopping list for bolognese and tacos, 4 people.
Shared ingredients (like onions used in both) are aggregated. Pantry items are excluded.
Track pantry
You: We have rice, soy sauce, and sesame oil at home.
These items get skipped in future shopping lists.
Log what you cooked
You: We made the bulgogi tonight, spent 185 kr at REMA.
No bulgogi for a while.
How deal matching works
Nordic grocery deals bundle products in creative ways ("Rejer, kold- eller varmroget laks"). TilbudsTrolden tells raw ingredients apart from processed products using language-specific food terminology for Danish, Norwegian, Swedish, and Finnish. Searching for "laks" as a cooking ingredient won't match roget/rokt/rokt laks or palaeg/palegg/palagg, and searching for "jauheliha" in Finland won't match savustettu makkara. Your preferred stores get priority in results.
The scoring engine uses locale-specific indicators for each country: processed meat terms (roget/rokt/rokt/savustettu), raw meat terms (fersk/fersk/farsk/tuore), non-food filters, and dietary exclusion patterns. All four languages have full coverage for pork, beef, lamb, fish, shellfish, dairy, gluten, beans, nuts, and egg exclusions.
The meal planner won't repeat the same protein or cuisine more than twice in a week, and you can restrict slow-cook recipes to specific days.
Data storage
All data lives in a single JSON file: ~/.tilbudstrolden.json. Override the path with the TILBUDSTROLDEN_DATA environment variable.
Everything lives there: household config, recipes, pantry, meal history, and spend log. Created automatically on first use. No database, no cloud service, no account required.
Development
npm install # install dependencies
npm run dev # watch mode with tsx
npm run build # compile TypeScript
npm run lint # run Biome linter
npm run typecheck # strict TypeScript check
npm test # run tests (Vitest)Requirements
Node.js 18 or later
No API keys needed. Deal data is fetched via the etilbudsavis.dk (Tjek) public API, which serves all four Nordic markets.
Credits
Deal data fetched via the etilbudsavis.dk (Tjek) API.
Starter recipe ingredient lists adapted from valdemarsro.dk. Uncle Roger recipes from Nigel Ng's YouTube (Egg Fried Rice, Adobo). Bulgogi recipe from Maangchi. Swedish family recipes from jarfors.com by Mikael Jarfors.
More MCP Servers
Check out my other MCP servers:
Server | Description | Stars |
Access GLEIF LEI database. Look up company identities, verify legal entities. | ||
Connect AI to any MediaWiki wiki. Search, read, edit wiki content. | ||
Control Miro whiteboards with AI. Boards, diagrams, mindmaps, and more. | ||
Access Nordic business registries. Look up companies across Norway, Denmark, Sweden. | ||
Talk to your ProductPlan roadmaps. Query OKRs, ideas, launches. | ||
Go library for SEP-2127 Server Cards. Pre-connect discovery for MCP servers. |
License
Available Tools
18 toolsadd_recipeAIdempotent
Add or update a recipe for meal planning and deal scoring. USE WHEN: saving a new recipe or updating an existing one. TIP: searchTerms defaults to [ingredient name] and category defaults to 'other' if omitted, reducing input friction. Overwrites existing recipe with same name. Returns confirmation with recipe name, complexity, cuisine, protein, and ingredient count.
Inputs: name (required), complexity (required), cuisineType (required), ingredients (required), +2 more.
deals_this_weekARead-only
Show the best current deals from your preferred stores. USE WHEN: browsing what's cheap this week, deciding what to cook based on deals ('what's on sale?'). NOT FOR: searching for a specific product (use search_deals). Requires household stores to be configured via update_household.
Inputs: limit.
generate_shopping_listARead-only
Deal-optimized shopping list from specific recipes, grouped by store. USE WHEN: preparing to shop for chosen recipes ('shopping list for Bolognese and Chili'). Aggregates quantities across recipes, computes pack sizes, flags expiring deals. NOT FOR: deciding what to cook (use score_recipes or plan_and_shop first). Requires recipes to exist (see add_recipe).
Inputs: recipes (required), people, excludePantry.
get_householdARead-only
Get household config: people, dietary restrictions, preferred stores, servings. USE WHEN: checking current setup before meal planning, verifying store preferences. Returns onboarding guidance if not yet configured.
Inputs: no named parameters.
get_meal_historyARead-only
Recent meal history for rotation planning. USE WHEN: checking what was cooked recently to avoid repetition, reviewing eating patterns. Returns meal entries with dates, recipe names, and who ate.
Inputs: weeks.
get_pantryARead-only
List pantry items (excluded from shopping lists). USE WHEN: checking what's already stocked before generating a shopping list. Returns list of pantry item names.
Inputs: no named parameters.
get_recipesARead-only
List saved recipes with ingredients, metadata, and search terms. USE WHEN: reviewing recipe library, checking what's available for meal planning. Returns onboarding guidance if no recipes exist yet.
Inputs: no named parameters.
get_spend_logARead-only
Spending history with weekly averages and totals. USE WHEN: reviewing grocery budget, tracking spending trends. Returns spending entries with totals and weekly averages.
Inputs: weeks.
get_store_offersARead-only
List current offers from a specific store. USE WHEN: browsing what's on sale at one store ('what's at Netto this week'). NOT FOR: searching across all stores (use search_deals) or checking best deals from all preferred stores (use deals_this_week). Returns offers with prices, unit prices, store name, and expiry dates.
Inputs: store (required), limit.
list_storesARead-only
List grocery chains with dealer IDs for your country (DK/NO/SE/FI). USE WHEN: finding store IDs for get_store_offers or setting up household preferred stores via update_household. NOT FOR: seeing deals (use search_deals or deals_this_week). Returns store names and dealer IDs. Full directory available for DK; NO/SE/FI show curated grocery chains.
Inputs: all, query.
log_mealAIdempotent
Record a cooked meal for rotation tracking. USE WHEN: logging what was cooked to avoid repeating meals in future planning. Deduplicates by date + recipe name. Returns confirmation with date, recipe, and people logged.
Inputs: date (required), people (required), recipe (required).
log_spendA
Record grocery spending for budget tracking. USE WHEN: logging what was spent after a shopping trip. Returns confirmation with amount, store, date, and item count.
Inputs: date (required), items (required), store (required), estimatedTotal (required), +1 more.
plan_and_shopARead-only
Score recipes, optimize a weekly meal plan, and generate a shopping list in one step. USE WHEN: 'plan my week', 'what should we eat?', 'make a meal plan with shopping list'. This is the main entry point for weekly dinner planning. NOT FOR: shopping for specific pre-chosen recipes (use generate_shopping_list). Returns meal plan (day-by-day with costs) followed by deal-optimized shopping list grouped by store.
Inputs: days, people, maxSlowDays, maxPerCuisine, +4 more.
remove_recipeADestructiveIdempotent
Remove a recipe by name. USE WHEN: cleaning up the recipe library. Case-insensitive name matching. Returns confirmation or 'not found' message.
Inputs: name (required).
score_recipesARead-only
Score all saved recipes against current deals, optionally optimize a weekly meal plan. USE WHEN: deciding what to cook based on current deals ('what's cheapest this week'), comparing recipe costs. NOT FOR: generating a shopping list (use generate_shopping_list or plan_and_shop). Shows deal coverage %, estimated cost, and confidence levels per ingredient.
Inputs: days, optimize, maxSlowDays, maxPerCuisine, +5 more.
search_dealsARead-only
Search grocery deals across stores by keyword. Supports Denmark (DK), Norway (NO), Sweden (SE), and Finland (FI) based on household country setting. USE WHEN: finding specific products, checking prices, comparing stores. NOT FOR: browsing one store's catalog (use get_store_offers) or generating a shopping list (use generate_shopping_list). Returns deals sorted by relevance with unit prices.
Inputs: query (required), limit.
update_householdAIdempotent
Set household members, dietary restrictions, preferred stores, country, servings. USE WHEN: first-time setup or changing household config. Required before shopping lists can filter by preferred stores. TIP: use list_stores to find dealer IDs. Set country to change market: DK, NO, SE, FI. Returns updated config summary: country, people count, store count, default servings.
Inputs: people, stores, country, defaultServings.
update_pantryAIdempotent
Add or remove pantry items (excluded from shopping lists). USE WHEN: updating stock after shopping or noting staples you always have. Items are matched case-insensitively. Returns updated pantry item list.
Inputs: add, remove.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 18 tools
The descriptions include explicit USE WHEN / NOT FOR clauses that sharply delineate most tools, and the three deal tools (search_deals, get_store_offers, deals_this_week) have genuinely distinct scopes. The only real overlap is between score_recipes, generate_shopping_list, and plan_and_shop, since plan_and_shop composes the other two; an agent could still waffle on whether to chain them or call the combined entry point.
Nearly every tool follows a clean snake_case verb_noun pattern (get_household, update_pantry, add_recipe, log_meal, generate_shopping_list). The few non-verb-led names (deals_this_week, plan_and_shop) are still readable and stylistically consistent snake_case.
18 tools is on the heavier side but is justified by the broad domain spanning deals, household config, pantry, recipes, meal logging, spend tracking, and planning. Each tool maps to a distinct operation rather than being redundant filler.
Coverage is strong: full lifecycle for recipes (get/add/remove), pantry (get/update), household (get/update), meal and spend logging (log/get), plus deal discovery and two planning entry points. Minor gaps exist (e.g. no dedicated single-recipe fetch or granular pantry item delete), but update/overwrite semantics largely cover them.
Maintenance
Related MCP Connectors
Danish grocery catalog as MCP tools: live offers across all major chains, stores, EAN lookup, stock.
Barcode-verified UK multi-merchant price comparison, deals, and Category Intelligence MCP server.
Unlock the power of food transparency with our Open Food Facts MCP server. Easily look up any food
Plan the next grocery basket from past Nemlig.com orders, compare Danish shop prices, fill the cart.
Related MCP Servers
- FlicenseAqualityBmaintenanceA Model Context Protocol server for real-time Swiss grocery shopping that searches and compares products across 8 major Swiss retailers (Migros, Coop, Aldi, Denner, Lidl, Farmy, Volgshop, Otto’s), normalizes per-unit prices, surfaces promotions, computes optimal multi-store shopping plans, and works with any MCP-compatible client without API keys or accounts.7215 npm46-
- AlicenseBqualityDmaintenanceMCP server for meal planning and grocery list generation, enabling recipe storage, meal plan creation, and automated grocery lists with ignored ingredients.82MIT
- AlicenseAqualityDmaintenanceMCP server that queries Norwegian grocery store flyers (kundeaviser) to help AI agents plan cheap meals based on current offers.71MIT
- AlicenseBqualityBmaintenanceAn MCP server for Willy:s that enables recipe-based shopping cart planning, product search, price comparison, and cart management through natural language. It maps the grocery store's internal endpoints and exposes tools to manage recipes, search products, compare prices, and sync the cart.314MIT