marktguru
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
marktguru 🧘♂️
Unofficial community project. Not affiliated with, endorsed or authorized by marktguru.
Marktguru supermarket deals in Germany and Austria, as a CLI, a local HTTP API and an MCP server.
This is a maintained fork of manmal/marktguru-cli, published as @udondan/marktguru
(formerly @udondan/marktguru-cli).
Table of Contents
Related MCP server: kundeavis-mcp
AI Agent Skill
Install into your coding agent with the skills CLI:
npx skills add udondan/marktguruOr read skills/marktguru-grocery-deals/SKILL.md directly — a comprehensive reference designed for AI coding agents.
Quick Start (Recommended)
Use npx to run without installing anything:
npx --yes @udondan/marktguru login
npx --yes @udondan/marktguru search raw "milch OR soja"
npx --yes @udondan/marktguru search build --term milch --or sojaRequirements
Node.js 22.12+
Works with
npm,pnpm, andbun
Commands
Login (extracts API key via HTTP by scanning the site’s JS):
marktguru loginSearch (raw query string syntax):
marktguru search raw "kellys OR \"erdnuss snips\""Search (structured builder):
marktguru search build --term kellys --phrase "erdnuss snips" --or manner --explainShow supported query syntax:
marktguru search syntaxSet a default ZIP code:
marktguru set-zip 80331Set a default country (de or at, default: de):
marktguru set-country atShow config:
marktguru configRun a local, read-only HTTP API (see HTTP API):
marktguru serveAlso Working (Install Locally)
Install and run from source:
mise install # Node.js and Bun, versions from mise.toml
bun install --frozen-lockfile
bun run build
bun run start --helpDev mode (TS directly, run by Bun):
bun run dev --helpLint, format and test (same targets CI runs):
make eslint
make format
make test
make validate-packageSearch Options
Available for both search raw and search build:
-z, --zip <code>: ZIP code for location-based results-n, --limit <number>: Number of results (default: 10)-r, --retailer <name>: Filter by retailer (client-side)-j, --json: JSON output, reduced to a few fields per offer--json-full: The complete API response as JSON (query,totalResults,resultswith every offer field,filters). The retailer filter and limit still apply. The shape follows the upstream Marktguru API and may change when it does. Each offer also getsdescriptionLines, the lines the text output prints for it without icons; they are meant for display and their wording may change. Takes precedence over--json.
If no API key is configured, search will automatically run login to extract one.
Note: API keys are country-specific. After switching country with set-country, run login again to fetch the matching key.
Builder-only:
--term <value>: Add a term (repeatable)--phrase <value>: Add an exact phrase (repeatable)--wildcard <value>: Add a wildcard term likekell*(repeatable)--or <value>: Add a term to an OR group (repeatable)--group <value>: Add a raw group wrapped in parentheses (repeatable)--explain: Print the built query to stderr
HTTP API
marktguru serve runs a small HTTP server so tools like Home Assistant,
n8n, Node-RED or a dashboard can query deals without spawning the CLI.
marktguru serve # http://127.0.0.1:3000
marktguru serve --port 0 # pick a free port, printed to stderr
MARKTGURU_SERVE_TOKEN=secret marktguru serve --host 0.0.0.0Endpoint | Parameters | Response |
|
| Same JSON as |
|
|
curl 'http://127.0.0.1:3000/search?q=milch&limit=5&retailer=billa'Errors use {"success": false, "error": "..."} with status 400 (bad
parameters), 401 (missing or wrong token), 403 (foreign Host or Origin),
404, 405 or 502 (Marktguru API or login failed). Searches use the configured
country and log in automatically when no key is stored.
For AI assistants, see MCP Server.
Security model:
Read-only: no endpoint returns the API key or changes the config. Use the CLI for
login,set-zipandset-country.Listens on
127.0.0.1by default. Any other--hostrequires a token (--tokenorMARKTGURU_SERVE_TOKEN), sent asAuthorization: Bearer <token>.On loopback, requests whose
Hostisn't127.0.0.1,localhostor[::1]with the server's port are rejected, against DNS rebinding.Requests with an
Originother than the server's own are rejected, and no CORS headers are sent, so web pages open in your browser can't use it.Stops cleanly on Ctrl+C (
SIGINT) andSIGTERM.
MCP Server
marktguru mcp runs an MCP server on
stdio, so AI assistants can search deals directly. It has one read-only tool:
Tool | Arguments |
|
|
format picks the same output as the CLI: the readable list (default),
--json or --json-full. The API key is fetched automatically on the first
search, like search does. Country and ZIP code default to the
config and can be set per search.
The server is listed in the MCP Registry
as io.github.udondan/marktguru.
Claude Code
claude mcp add marktguru -- npx -y @udondan/marktguru mcpClaude Desktop and other clients
Add to the client's MCP configuration (for Claude Desktop
claude_desktop_config.json):
{
"mcpServers": {
"marktguru": {
"command": "npx",
"args": ["-y", "@udondan/marktguru", "mcp"],
"env": { "MARKTGURU_COUNTRY": "de", "MARKTGURU_ZIP": "10115" }
}
}
}env is optional, see Config Location.
Docker
The image udondan/marktguru
starts the MCP server without arguments. Arguments after the image name are
passed to the CLI:
docker run --rm -i udondan/marktguru # MCP server on stdio
docker run --rm -e MARKTGURU_COUNTRY=de -e MARKTGURU_ZIP=10115 udondan/marktguru search raw milch~/.marktguru/config.json is not visible inside the container, so set
country and ZIP code with MARKTGURU_COUNTRY and MARKTGURU_ZIP. The API key
is fetched once per container.
The images are signed with cosign (keyless, by the release workflow of this repository):
cosign verify udondan/marktguru:latest \
--certificate-identity-regexp '^https://github.com/udondan/marktguru/' \
--certificate-oidc-issuer https://token.actions.githubusercontent.comDocker MCP Toolkit
With the Docker MCP Toolkit of Docker Desktop, the server runs as a container behind the MCP Gateway, which starts it on demand and passes its tools on to the connected clients.
Download the server definition
docker-mcp.ymland add it to a Toolkit profile. The Toolkit only reads such files from its catalogs directory:mkdir -p ~/.docker/mcp/catalogs curl -fsSL https://raw.githubusercontent.com/udondan/marktguru/main/docker-mcp.yml -o ~/.docker/mcp/catalogs/marktguru.yml # new profile "marktguru" ... docker mcp profile create --name marktguru --id marktguru --server "file://$HOME/.docker/mcp/catalogs/marktguru.yml" # ... or add it to an existing profile docker mcp profile server add default --server "file://$HOME/.docker/mcp/catalogs/marktguru.yml"The profile keeps the image at the version it had when it was added. Run
profile server addagain to update. From a clone of this repository,make dockerbuilds the image locally and does the same (make docker-register PROFILE=<id>for another profile).Optionally set the default country and ZIP code (Germany and 10115 otherwise):
docker mcp profile config marktguru --set marktguru.country=de --set marktguru.zip=10115Connect a client to the profile:
docker mcp client connect claude-desktop --profile marktgurudocker mcp client connect --helplists more clients such asclaude-code,cursororvscode.
docker mcp gateway run --profile marktguru --dry-run --verbose checks the
setup without starting a client. The output should end with
marktguru: (1 tools).
Query Syntax (Observed)
The API appears to accept a Lucene/Elasticsearch-style query string, not SQL.
Supported:
ORfor boolean OR*wildcard (e.g.,kell*)"..."exact phrase( ... )grouping
Not supported (observed):
AND,NOT,~,^
Notes on login
Uses HTTP requests (no browser automation).
Scans entry HTML and boot scripts for embedded API keys and validates them.
May break if the website changes.
Config Location
~/.marktguru/config.json
The environment variables MARKTGURU_COUNTRY (at, de) and MARKTGURU_ZIP
override the country and default ZIP code of the config file for search,
serve and mcp. They are not saved. The stored API key belongs to the
country in the config file; searches in another country fetch a key for it
and keep it in memory only.
Without a ZIP code, searches use 10115 (Berlin) in Germany and 1010 (Vienna) in Austria. Germany is the default country since version 1.2.0; config files of older versions that don't name a country keep Austria.
Disclaimer
This is an unofficial, independent open-source project and is not affiliated with marktguru Deutschland GmbH or its
affiliates. marktguru is a product or trademark of marktguru Deutschland GmbH or its affiliates. The name is used only
to describe compatibility. The API used is not public: the login command reads API keys from the marktguru website,
and both may change at any time. Use at your own risk and in accordance with the marktguru terms of use.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
USDA FoodData Central nutrient lookup, FDA recall watch, EU FMCG labelling via remote MCP
Danish grocery catalog as MCP tools: live offers across all major chains, stores, EAN lookup, stock.
Live prices, deals & optimal multi-stop shopping routes for German grocery & drug stores.
Unlock the power of food transparency with our Open Food Facts MCP server. Easily look up any food
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-
- AlicenseAqualityDmaintenanceMCP server that queries Norwegian grocery store flyers (kundeaviser) to help AI agents plan cheap meals based on current offers.71MIT
- AlicenseNot gradedqualityDmaintenanceSelf-hosted MCP server for Lidl Plus (NL + DE) that reads receipts and manages coupons via the lidl-plus library, using refresh tokens for authentication.1MIT
- AlicenseAqualityCmaintenanceEnables querying live offers and prices from 10 Dutch supermarket chains through a single normalised JSON API. Exposes 26 curated tools, including product search and category lookups, over stdio or authenticated Streamable HTTP.201MIT