2026-10-271 min
A supermarket from the terminal
An unofficial Mercadona CLI built for agents first
Mercadona CLI is an unofficial shopping CLI for tienda.mercadona.es: search the catalog, read prices, build a cart and prepare checkout from the terminal. It's a single static binary with --json on every command, designed so an agent can drive it.
A shopping list in, prices out
mercadona batch -f lista.txt
# • queso → [51110] Queso rallado mozzarella Hacendado — 1.60€
# • carne → [34157] Carne de pimiento choricero Hacendado — 1.55€
# • mayonesa → [13406] Mayonesa Hacendado — 1.20€
mercadona search --limit 5 --json mayonesaData goes to stdout, logs to stderr, and exit codes tell a script what happened. The code is on GitHub (opens in a new tab).