geg-gastro
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., "@geg-gastro What's on the lunch menu this week for Mia, and what has she ordered?"
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.
geg-gastro
Unofficial community project. Not affiliated with, endorsed or authorized by GEG Gastro Service GmbH or schulmenueplaner.de.
CLI and MCP server for school meal orders on the GEG Gastro ordering portal: the menu, orders, balance, invoices, children and standing orders of an account.
Contents
Related MCP server: vklass-mcp
Installation
brew install udondan/software/geg-gastro # macOS and Linux
cargo install geg-gastro # from source
docker pull udondan/geg-gastro # see Docker belowThe releases also have
binaries for Linux (x86_64, aarch64, static), macOS and Windows.
SHA256SUMS.txt lists their checksums and is signed with the GPG key
F111A9BDD62F384A:
gpg --verify SHA256SUMS.txt.asc SHA256SUMS.txt
sha256sum --check --ignore-missing SHA256SUMS.txtThe Docker image is signed with cosign by the release workflow:
cosign verify udondan/geg-gastro \
--certificate-identity-regexp '^https://github.com/udondan/geg-gastro/' \
--certificate-oidc-issuer https://token.actions.githubusercontent.comSet up
geg-gastro logs in to the portal with the username and password of your
account. Store them once:
geg-gastro loginIt asks for the username and the password, logs in with them and only then
stores the password in the keychain of the system (macOS Keychain, Windows
Credential Manager, Secret Service on Linux) and the username in the
configuration file. geg-gastro login --check checks the login in effect,
and geg-gastro logout removes the password from the keychain.
Without a keychain, as in Docker or CI, set GEG_GASTRO_USERNAME and
GEG_GASTRO_PASSWORD instead; they take precedence over the keychain.
Without a login, geg-gastro sends nothing and answers
credentials_missing.
Shell completion, loaded when the shell starts (bash shown; zsh, fish,
elvish and powershell work the same way):
source <(geg-gastro completion bash)Usage
The examples show the synthetic account of
geg-gastro-sim.
$ geg-gastro account
Balance: 63.00 EUR
Muster, Max (number 11111)
Grundschule Am Park, Igel
active since: 2024-08-01
birthday: 2018-03-14
…
$ geg-gastro menu --date 2026-12-02 --child Mia
Week 2026-W49, from Mon 2026-11-30
Muster, Mia, Gesamtschule Nord, 6b
Wed 2026-12-02
* Veggie: Kartoffelpuffer mit Apfelmus [ordered, cancel until 2026-12-02 08:00]
- Zertifiziert: Rindergulasch mit Nudeln [Pro Tag ist nur ein Menü bestellbar.]
- Salatteller: Griechischer Salat mit Fladenbrot [Pro Tag ist nur ein Menü bestellbar.]
- Dessert: Schokoladenpudding [comes with the meal]
Weeks: 2026-W49, 2026-W50, 2026-W51, 2026-W52, 2026-W53
$ geg-gastro ledger --from 2026-11-24
Balance: 63.00 EUR
Bookings from 2026-11-24 to 2026-11-30
2026-11-27 08:15 -3.50 EUR Veggie, 27.11.2026, Max Muster
2026-11-26 08:15 -4.20 EUR Veggie, 26.11.2026, Mia Muster
…Command | Does |
| Stores the login in the keychain, after checking it |
| Removes the password from the keychain |
| The balance and the children |
| The menu of a week, with what is ordered and the deadlines |
| The ordered meals, by default from today for 30 days |
| The bookings of the balance, by default of the last 30 days |
| The invoices, newest first |
| Saves the PDF document of an invoice |
| The standing orders of the children (read only) |
| Orders a meal, which costs its price |
| Cancels the meal of a child on a day, which refunds it |
| The configuration file |
| The MCP server |
| The completion script |
Children are given by their number or a part of their name, like
--child Mia. A name that fits several children givesambiguous_childwith the candidates, never a guess.Days are like
2026-12-01, weeks are ISO weeks like2026-W50. Without--week,menushows the first week the portal offers; it lists the others at the end. Days and times are those of the portal, in Europe/Berlin.invoices downloadnever replaces an existing file without--force.orderandcancelask before they change anything; without a terminal they need--yes.ordertakes the menu line by its name or a part of it, likeveggie, and checks the menu first: a child gets one meal a day, and only before the deadline. To change a meal, cancel it first. After the order deadline a cancelled meal cannot be ordered again, socancelthen needs--final.
$ geg-gastro order 2026-12-02 veggie --child Max --yes
Ordered Veggie for Muster, Max on Wed 2026-12-02: Kartoffelpuffer mit Apfelmus
Balance: 59.50 EUR (-3.50 EUR)Output
-o text|json|yaml chooses the format. JSON is the default when stdout is
not a terminal, so scripts get JSON without asking. Amounts come as cents
and as text, like 6300 and "63.00 EUR". Errors are printed in the same
format on stderr, with a stable status, and the exit code is 1:
| Meaning |
| No username or password; nothing was sent |
| The keychain of the system could not be read or written |
| The portal rejected the username or password |
| The session ended and logging in again did not help |
| The name fits several children; see |
| No child has that name or number |
| The portal does not have the week or invoice |
| No orderable menu line on that day fits the name; see |
| Nothing can be ordered on that day, like a weekend or a holiday |
| The child has a meal on that day already |
| The deadline to order or cancel has passed |
| The meal cannot be ordered again once cancelled; confirm with |
| The child has no meal on that day to cancel |
| The portal refused the order or cancellation, with its reason |
| A day, week or child could not be read (the CLI reports these as usage errors), or a change was not confirmed |
| The portal did not answer, or failed |
| The portal sent a page |
| The configuration file or a setting is invalid |
| Anything else, like a file that cannot be written |
-v and -vv log the requests to stderr. The log never holds the password,
the cookies or the CSRF token.
MCP server
geg-gastro mcp serves eight tools to an MCP client on stdin and stdout:
six that read, and two that order and cancel meals. Each has an output
schema and returns a one-line summary followed by the same JSON as the CLI.
geg_order and geg_cancel are marked as destructive, so that clients ask
before calling them, and the instructions of the server tell the model to
ask the user first.
Tool | Returns |
| The balance and the children |
| The menu of a week or day, with what is ordered and the deadlines |
| The ordered meals in a period |
| The bookings of the balance in a period |
| The invoices |
| The standing orders of the children |
| Orders a meal, and returns the change of the balance |
| Cancels a meal; |
With the login in the keychain, for example in Claude Code:
claude mcp add geg-gastro -- geg-gastro mcpOr with the login in the environment, in the configuration of another client:
{
"mcpServers": {
"geg-gastro": {
"command": "geg-gastro",
"args": ["mcp"],
"env": {
"GEG_GASTRO_USERNAME": "you@example.org",
"GEG_GASTRO_PASSWORD": "…"
}
}
}
}Without a login the server starts, and every tool answers
credentials_missing. The server tells the model that menu descriptions and
other texts from the portal are data, not instructions.
Agents that use the CLI instead can load the skill in skills/geg-gastro/SKILL.md.
HTTP
geg-gastro mcp --http serves streamable HTTP at http://127.0.0.1:8080/mcp;
--http 0.0.0.0:9000 takes another address. It needs a bearer token of at
least 16 characters in GEG_GASTRO_MCP_TOKEN, which every request must send
as Authorization: Bearer <token>:
export GEG_GASTRO_MCP_TOKEN=$(openssl rand -hex 32)
geg-gastro mcp --http
claude mcp add --transport http geg-gastro http://127.0.0.1:8080/mcp \
--header "Authorization: Bearer $GEG_GASTRO_MCP_TOKEN"All sessions share one login to the portal. The server shuts down cleanly on SIGINT and SIGTERM. It serves plain HTTP; put a TLS proxy in front of it to reach it over a network.
Docker
The image runs geg-gastro; without a command it starts the MCP server on
stdio. It has no keychain, so the login comes from the environment:
docker run --rm -i -e GEG_GASTRO_USERNAME -e GEG_GASTRO_PASSWORD udondan/geg-gastroThe image is listed in the
MCP Registry
as io.github.udondan/geg-gastro; clients that install servers from there
run this image and ask for GEG_GASTRO_USERNAME and GEG_GASTRO_PASSWORD.
mise run docker-build builds the image from source. For the Docker MCP
Toolkit, mise run docker builds it and adds
docker-mcp.yml
to the profile geg-gastro. Set the secrets geg-gastro.username and
geg-gastro.password with docker mcp secret set.
Configuration
geg-gastro config path shows the file, by default
~/.config/geg-gastro/config.toml (%APPDATA% on Windows).
geg-gastro config show shows the settings in effect. The password is never
in the file.
Setting | Default | Meaning |
| – | The username of the portal; |
|
| Another address of the portal |
| 20 | How long to wait for an answer |
Variable | Does |
| Overrides |
| The password, instead of the keychain |
| Overrides |
| Another configuration file |
| The output format, like |
| Log level, like |
| The bearer token of |
| Act as if it were another time, as RFC 3339 like |
Crates
Crate | Description | crates.io | docs.rs |
The binary: CLI and | |||
Client for the ordering portal: login, the pages, the model, configuration and credentials | |||
Fake ordering portal for tests, with synthetic data and injected failures |
Versioning
geg-gastro follows Semantic Versioning from 1.0.0.
Its public interface is the commands and their options, the MCP tools, the
JSON and YAML output, the error statuses, the settings and the environment
variables. Breaking changes to it come with a new major version only; new
fields in the output can come with any minor version. The text output is
meant for people and can change at any time.
Disclaimer
This is an unofficial, independent open-source project and is not affiliated
with GEG Gastro Service GmbH or schulmenueplaner.de. GEG Gastro is a name or
trademark of GEG Gastro Service GmbH. The name is used only to describe
compatibility. The portal has no API: geg-gastro reads its web pages, which
can change at any time. Use at your own risk and in accordance with the terms of
use of the ordering portal.
Security and contributing
See SECURITY.md and CONTRIBUTING.md.
License
Available Tools
8 toolsgeg_accountBalance and childrenARead-onlyIdempotent
Returns the balance of the account and its children (participants), each with number, name, facility, group, birthday and allergies. Use the number or a part of the name as child in other tools.
Inputs: no named parameters. Returns: balance, children
geg_cancelCancel a mealADestructive
Cancels the meal ordered for a child on a day, before the cancellation deadline; the price goes back to the balance. Ask the user first. After the order deadline a cancelled meal cannot be ordered again: then the tool fails with final_cancel_requires_confirmation unless allow_final is true. Returns the meal, the change of the balance and the new balance.
Inputs: date (required), child (required), allow_final. Returns: date, line, child, change, +4 more
geg_invoicesInvoicesARead-onlyIdempotent
Lists the invoices, newest first: file name, date and amount. The CLI downloads one with geg-gastro invoices download <name>.
Inputs: no named parameters. Returns: invoices
geg_ledgerBookings of the balanceARead-onlyIdempotent
Lists the bookings of the balance in a period, by default the last 30 days, newest first: time, amount, kind (meal, payment, other), the text and for a meal its line, day and child. Also returns the balance. At most 366 days.
Inputs: to, from. Returns: to, from, balance, entries
geg_orderOrder a mealADestructive
Orders one meal of a menu line for a child on a day, which costs the price of the meal: it is taken from the balance. Ask the user first. A child gets one meal a day; the day must be open and before the order deadline (see geg_menu). Returns the meal, the change of the balance and the new balance.
Inputs: date (required), line (required), child (required). Returns: date, line, child, change, +4 more
geg_ordersOrdered mealsARead-onlyIdempotent
Lists the ordered meals of each child in a period, by default from today for 30 days: day, menu line, description and quantity. At most 366 days.
Inputs: to, from, child. Returns: to, from, children
geg_subscriptionStanding ordersARead-onlyIdempotent
Returns the standing order of each child: the weekdays each menu line is ordered on automatically, and since when. Read only; it is changed on the website.
Inputs: no named parameters. Returns: children
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Most tools target clearly distinct resources: account, menu, invoices, ledger, subscription. The one risky pair is geg_order (place a meal order) vs geg_orders (list ordered meals), plus geg_cancel which is the inverse of geg_order; descriptions do clarify, but the singular/plural boundary is a real misselection hazard.
All tools share a uniform `geg_` prefix and snake_case single-token names, which is highly predictable. The only deviation is that most names are nouns (account, menu, invoices) while cancel/order are verbs, and order/orders differ only by plurality.
Eight tools is well within the sweet spot and each covers a distinct slice of the meal-ordering workflow (view, order, cancel, review history, billing). Nothing appears redundant or padded.
The lifecycle is largely covered: view account/menu, order, cancel, list orders, inspect ledger and invoices, read subscription. Gaps exist around money (no top-up/payment tool) and subscription changes are explicitly deferred to the website, and invoice download is only via CLI, but agents can work around these.
Maintenance
Related MCP Connectors
Secure MCP access to Big Red Cloud accounting data, workflows, help and training.
Nutrition tracking from any MCP client. Free on web and app; MCP access is part of Munch Premium.
Secure remote MCP for supported accounting workflows in authorized KROS companies.
MCP server for Arcoro and ExakTime — workforce data, jobs, cost codes and locations.
Related MCP Servers
- AlicenseAqualityCmaintenanceMCP server for the Löwen Menü IBS5 school-lunch ordering system, enabling an LLM to browse weekly menus, manage a shopping cart, and place meal orders.7MIT
- AlicenseNot gradedqualityDmaintenanceEnables guardians to securely query read-only Vklass data such as children, news, calendar entries, assignments, grades, meals, and notifications through MCP, with per-user BankID and OAuth 2.1 authentication.3MIT
- AlicenseBqualityDmaintenanceEnables parents and students to interact with the Edookit school portal through MCP, including viewing grades, assignments, timetables, attendance, messages, payments, and more, as well as submitting absence excuses and sending messages.211ISC

PurchasePlus MCPofficial
AlicenseNot gradedqualityCmaintenanceEnables MCP-capable clients to sign in with OAuth and perform purchaser tasks such as browsing catalogues, checking inventory, managing stocktakes and recipes, drafting requisitions, updating buy lists, exporting reports, and processing invoices. It also supports supplier access for listing and inspecting connections, catalogues, products, purchase orders, invoices, and entitled reports.MIT