What it does
dishmath performs four calculations entirely on the user's machine. Food cost totals a dish ingredient by ingredient and can give the selling price for a target food-cost percentage or the percentage at current prices. Menu price starts from a plate cost and a target percentage, then returns the net price, the VAT-inclusive price, that price rounded up to a set step, the gross profit per plate net of tax, and the food-cost percentage the rounded price yields. Recipe scaling rewrites the quantities of a recipe for a different number of portions and, where unit costs are given, the batch and per-portion costs. The allergen matrix builds a dish-by-allergen table based on EU Regulation 1169/2011 (Annex II) and lists the dishes to avoid for each of the 14 allergens.
A kitchen or restaurant team might use these functions to check what a plate costs before setting its price, to see how a recipe changes between batch sizes, or to identify which dishes a guest with an allergy should not be served. The allergen tool works only from the allergens declared for each dish.
No account, API key or network connection is needed, since every result is computed locally from the input. The CLI takes one JSON argument string per subcommand and prints plain text, with exit codes 0, 1 and 2 for success, calculation or validation error, and usage error. The same four tools are exposed over MCP using stdio. A Docker container starts the MCP server by default, and other arguments are passed to the CLI. Money is rounded half-up to two decimals and percentages to one decimal, and an optional ISO currency code (default EUR) affects only printed output.
Limitations and requirements
The allergen matrix never infers allergens from a dish's name; allergens must be declared for each dish, and a dish with none declared is reported as such.
Safety
Our team has not reviewed this resource. Only automated rules checked it; resources with high-risk signals are not published. These are signals, not a guarantee that installing it is safe. Try it in a sandbox project first.
- Runs code or changes an assistant's behaviour
Sources
- Official MCP Registry first seen 13 Nov 2026 · last seen 13 Nov 2026 · its page on the source
io.github.CloudCorpRecords/dishmath
Local restaurant math: food cost, menu price with VAT, recipe scaling and the EU allergen matrix.
v0.1.0As shown on registry.modelcontextprotocol.io when we last read it