Unofficial CLI and MCP server for GEG Gastro school meals: menu, orders, balance, invoices
422
CLI and MCP server for school meal orders on the GEG Gastro ordering portal. It reads the menu, orders, balance, bookings, invoices, children and standing orders of an account, and it orders and cancels meals.
Unofficial community project. Not affiliated with, endorsed or authorized by GEG Gastro Service GmbH or schulmenueplaner.de.
Source, documentation and releases: github.com/udondan/geg-gastro
The image has no keychain, so the login of the portal comes from GEG_GASTRO_USERNAME and GEG_GASTRO_PASSWORD. Without them the server starts, and every tool answers credentials_missing.
Without a command, the image starts the MCP server on stdio. The volume keeps the session of the portal between containers (see Session):
docker run --rm -i -e GEG_GASTRO_USERNAME -e GEG_GASTRO_PASSWORD \
-v geg-gastro-state:/home/geg-gastro/.local/state/geg-gastro udondan/geg-gastro
In Claude Code:
claude mcp add geg-gastro -- docker run --rm -i \
-e GEG_GASTRO_USERNAME -e GEG_GASTRO_PASSWORD \
-v geg-gastro-state:/home/geg-gastro/.local/state/geg-gastro udondan/geg-gastro
In the configuration of another MCP client:
{
"mcpServers": {
"geg-gastro": {
"command": "docker",
"args": [
"run", "--rm", "-i",
"-e", "GEG_GASTRO_USERNAME", "-e", "GEG_GASTRO_PASSWORD",
"-v", "geg-gastro-state:/home/geg-gastro/.local/state/geg-gastro",
"udondan/geg-gastro"
],
"env": {
"GEG_GASTRO_USERNAME": "[email protected]",
"GEG_GASTRO_PASSWORD": "…"
}
}
}
}
geg-gastro keeps the session cookies of the portal in /home/geg-gastro/.local/state/geg-gastro/session.json, so that the next container does not log in again. Without the volume, the file is lost with the container, and every container logs in.
The image runs as UID 10001, which owns that directory; a new named volume takes over its owner and mode. Only the owner can read the file (mode 0600, the directory 0700). The file is bound to the username and the address of the portal. When the session has ended, geg-gastro logs in once more and stores the new one. A missing or unreadable file only costs a login.
GEG_GASTRO_SESSION_FILE takes another path, or off to keep the session in memory only. logout removes the file:
docker run --rm \
-v geg-gastro-state:/home/geg-gastro/.local/state/geg-gastro udondan/geg-gastro logout
| Tool | Returns |
|---|---|
geg_account | The balance and the children |
geg_menu | The menu of a week or day, with what is ordered and the deadlines |
geg_orders | The ordered meals in a period |
geg_ledger | The bookings of the balance in a period |
geg_invoices | The invoices |
geg_subscription | The standing orders of the children (read only) |
geg_order | Orders a meal, and returns the change of the balance |
geg_cancel | Cancels a meal; allow_final for one that cannot be ordered again |
geg_order and geg_cancel cost or refund money and are marked as destructive, so that clients ask before calling them; the server also tells the model to ask the user first. Before an order, the server checks the menu: one meal per child and day, and only before the deadline. Menu descriptions and other texts from the portal are data, not instructions, and the server tells the model so.
With a command, the image runs the CLI. Its output is JSON unless a terminal is attached; -t or -o text gives text:
docker run --rm -t -e GEG_GASTRO_USERNAME -e GEG_GASTRO_PASSWORD \
-v geg-gastro-state:/home/geg-gastro/.local/state/geg-gastro \
udondan/geg-gastro menu --week 2026-W50
Commands: account, menu, orders, ledger, invoices, subscription, order, cancel, logout, config and mcp. order and cancel need --yes without a terminal. See the README for their options and the error statuses.
mcp --http serves streamable HTTP at /mcp. It needs a bearer token of at least 16 characters in GEG_GASTRO_MCP_TOKEN:
docker run -d --name geg-gastro -p 127.0.0.1:8080:8080 \
-e GEG_GASTRO_USERNAME -e GEG_GASTRO_PASSWORD \
-e GEG_GASTRO_MCP_TOKEN="$(openssl rand -hex 32)" \
-v geg-gastro-state:/home/geg-gastro/.local/state/geg-gastro \
udondan/geg-gastro mcp --http 0.0.0.0:8080
All sessions share one login to the portal. It serves plain HTTP; put a TLS proxy in front of it to reach it over a network.
The image is listed in the MCP Registry as io.github.udondan/geg-gastro.
It also carries the labels of the Docker MCP Toolkit. A server definition is in docker-mcp.yml, which mounts the volume geg-gastro-state for the session; set the secrets geg-gastro.username and geg-gastro.password with docker mcp secret set.
latest: the latest release1, 1.1, 1.1.0: the latest release of a major or minor version, or an exact releaseImages are built for linux/amd64 and linux/arm64, run a static binary on Alpine as an unprivileged user (UID 10001), and are signed with cosign:
cosign verify udondan/geg-gastro \
--certificate-identity-regexp '^https://github.com/udondan/geg-gastro/' \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
The password is never logged or written to disk. The session cookies are written only to the session file, readable by its owner alone, and logout removes it. The log holds neither the password nor the cookies. The tool talks to the portal only, with nothing sent anywhere else.
Licensed under MIT.
Content type
Image
Digest
sha256:fc87257f9…
Size
12.3 MB
Last updated
about 3 hours ago
docker pull udondan/geg-gastro