Ration Pantry Management

MCP de cuisine natif IA — inventaire du garde-manger, recettes à partir des stocks, plans de repas et listes de courses avec OAuth et plus de 35 outils. Gratuit pour commencer.

Documentation

Repository: gitlab.com/mayutic/ration/application — hosts Ration, an AI-powered kitchen management app, and its dedicated MCP server (mcp.ration.mayutic.com).

Ration MCP Server

AI-powered kitchen management for your assistant — live pantry inventory, cook-from-stock recipes, weekly meal plans, and shopping lists. AI connectivity via MCP (Model Context Protocol) lets Claude, Cursor, ChatGPT, and other agents read and update your kitchen with scoped OAuth consent — same data as the web app, no shadow copy.

Homepage: ration.mayutic.com · Connect: ration.mayutic.com/connect · Start free — no credit card required.


The complete kitchen loop for your AI

Most kitchen apps make you maintain the spreadsheet. Ration closes the loop:

Cargo (pantry) → Galley (recipes) → Manifest (meal plan) → Supply (shopping list) → dock back into Cargo.

Your MCP client operates the same data you see in the web app — not a shadow copy. Semantic matching links recipe ingredients to pantry items even when names differ ("2% milk" vs "whole milk 2%"). Expiry-aware tools help you cook what you have before it spoils.

Free to start: 35 pantry items, 15 recipes, 3 supply lists, 3 Fuel logs per day, full MCP access, and 12 welcome credits for new human accounts. Upgrade to Crew Member (€2/month or €12/year) for unlimited capacity, Unlimited Fuel logs, household sharing, and invite links.


Same prompt, better answer

Without Ration

"What can I make tonight?"

Your assistant guesses. It does not know what is in your fridge, what expired yesterday, or what is on Thursday's plan.

With Ration MCP

"What can I eat tonight that fits my calorie goals?"

get_nutrition_summary returns vsGoal remaining (UTC day — do not subtract yourself). match_meals includes compact per-serving nutrition and optional maxEnergyKcal. Ask follow-ups: schedule tonight on Manifest, or Quick Eat a snack.

"What can I cook tonight with what's in Cargo?"

match_meals returns recipes ranked by what you can actually cook — with gaps listed for anything missing. Ask follow-ups: add missing items to Supply, schedule a meal on Manifest, deduct ingredients after you cook.


What you can say

PromptWhat happens
"How's my kitchen?"get_kitchen_summary
"What did I cook last week?"get_kitchen_events / get_kitchen_stats
"List my pantry and what's expiring this week."list_inventory + get_expiring_items
"What already expired in my pantry?"get_expired_items
"What meals can I make with what we have?"match_meals (strict or partial matches; compact nutrition when known)
"What can I eat tonight that fits my calorie goals?"get_nutrition_summary (vsGoal) → match_meals with maxEnergyKcal
"Plan dinners through Friday and add anything missing to the list."propose_manifest_plan → commit_manifest_plan → sync_supply_from_selected_meals
"We cooked lentil soup for four — update inventory."consume_meal deducts ingredients via semantic matching
"Add eggs and butter to the shopping list."add_supply_item
"I bought everything on the list — mark it purchased."mark_supply_purchased_bulk
"Parse this receipt and add new items to Cargo."Agent parses text → preview_inventory_import → apply_inventory_import (no Ration AI credits)
"I just ate grapes."quick_eat_cargo (creates a missing line, Manifest snack, optional private intake)
"Import this Instagram recipe."Not an MCP scrape. Client extracts caption/page text → create_meal, or native Galley Import

MCP tool calls are deterministic and do not consume Ration credits. The one exception is the flag-gated photo food log (propose_food_log), which costs 2 credits per model call. Receipt parsing and recipe extraction from pasted text run in your LLM; Ration ingests structured items. Visual scan and URL import in the web/iOS app use optional credit packs. Copilot Ask is the same kitchen tools plus a conversation token meter.


Why Ration MCP is different

  • Closed-loop kitchen ops — inventory, recipes, plan, and shop list in one system (not four apps).
  • 35+ MCP tools — granular OAuth scopes (mcp:read, mcp:inventory:write, mcp:galley:write, mcp:manifest:write, mcp:supply:write, mcp:preferences:write, mcp:nutrition:read, mcp:nutrition:write), including optional nutrition summary/goals and Quick Eat when flags are on.
  • OAuth-first — paste one URL; browser sign-in; revoke anytime in Hub → Settings → Connected Agents.
  • Agent self-registration — autonomous agents can provision a kitchen via auth.md before a human signs up.
  • Household-scoped — one organization per grant; pick the correct household at consent.
  • Edge-hosted — Cloudflare Workers, D1, Vectorize semantic search.

Connect in about 2 minutes

OAuth (recommended)

  1. In your MCP client, add server URL:

    https://mcp.ration.mayutic.com/mcp
    
  2. Complete browser sign-in, select your household, and approve scopes.

  3. Ask: "List my Ration pantry."

Works with: Cursor · Claude Desktop · Claude Code · ChatGPT desktop · Zed · any MCP client with OAuth 2.1 discovery

One-click setup: ration.mayutic.com/connect

Advanced: API key

Create an organization API key with mcp:* scopes in Hub → Settings → API Keys. Use a Bearer header or mcp-remote bridge. See API docs.

Autonomous agents (agent-first onboarding)

Your MCP client can provision a kitchen without human signup:

  1. Read auth.md for the registration and claim contract.
  2. POST /api/agent/auth with { "type": "anonymous" } — returns a full-write API key, claim URL, and MCP endpoint (once).
  3. Configure MCP with the returned key as a Bearer header.
  4. Human claims via OTP at ration.mayutic.com/connect/claim whenever ready.

Full walkthrough with client-specific setup (Claude, Cursor, ChatGPT, Goose): Agent-First MCP Onboarding.


MCP tools reference

All tools are scoped to the authorized household. MCP calls do not consume Ration credits (except propose_food_log, below). Destructive tools (since 1.13.1, one contract). Every destructive tool advertises destructiveHint: true and readOnlyHint: false, ends its description with "Destructive: needs confirm:true after the person agrees.", and takes an optional confirm argument. Called without confirm: true it changes nothing and returns error confirmation_required with details.field: "confirm", a recoveryHint, and outcome: "no_effect" (before 1.13.1 this was invalid_input). A 2026-07-28 client that declared form elicitation gets a form instead (see Confirm by form). The destructive tools are apply_inventory_import, apply_inventory_remove, clear_active_meals, clear_health_export, clear_manifest_intake, clear_nutrition_goal, clear_nutrition_match, commit_manifest_plan, complete_supply_list, delete_meal, delete_saved_food, import_inventory_csv, remove_cargo_item, remove_meal_plan_entry, remove_supply_item, save_diary_food_to_kitchen, set_health_export, void_diary_food. A test derives this set from the registry, so a new destructive tool cannot skip the contract.

OAuth issues tokens only through authorization_code and refresh_token; there is no client_credentials grant. Public PKCE clients may use a loopback redirect (http://127.0.0.1, http://[::1], http://localhost) on any port.

Reply shape. Dates and times in tool results are ISO 8601 strings (an invalid date is null, never {}). In this phase, replies omit kitchen ids, along with user, membership, consent, credential, and API key ids that an agent cannot act on. Later, kitchen ids will be available only through list_kitchens (and an optional kitchenId on tools), limited to kitchens in the grant. Entity ids you pass back to other tools (Cargo, meal, Manifest entry, intake, supply list) are kept. Identifiers for things you own, such as Health sample sync identifiers and the Cargo id inside a pagination cursor, stay visible to you.

Read & account

ToolScopeDescription
get_billing_summarymcp:readTier, credits, renewal, and billing links. The kitchen appears by name and role, without its id.
get_contextmcp:readReturn how the caller signed in (authMethod, plus keyName for an API key with a readable name; OAuth sign-ins usually have no keyName, so do not rely on it), scopes, capabilities, onboarding, a slim kitchen tier/credits snapshot, temporal (todayUtc, server time, expiry semantics), the MCP version, versions.toolsList (a fingerprint of your own tools/list; when it differs from the one you cached, call tools/list again), and suggested next actions. No kitchen, user, or key ids. Safe to call first; for full pantry/Manifest/Supply status use get_kitchen_summary.
search_ingredientsmcp:readPantry search: an exact pantry name (case-insensitive) first, then pantry lines whose name contains every word you typed and agrees (contained_name: milk finds Whole milk even before its vector exists), then semantic hits (recall 0.60). A contained_name hit scores at least the cook threshold: the larger of its vector score and 0.78 + 0.22 × the share of the line's words you typed (milk → Whole milk is 0.89); only exact_name scores 1. Hits for deleted Cargo are skipped. Since 1.13.1 the hits are ordered by class, then score: exact_name, then contained_name (highest matchScore first), then vector hits (highest first). A vector hit never ranks above a name hit, even with a higher score, and the name hits are picked first for topK. Vector scores for short pantry names run high (0.94–0.96 for unrelated items such as butter or honey for milk), because the default embedding model scores bare names with no task prompt; read matchType, not the score alone. Each hit has matchScore, matchType (exact_name, contained_name, semantic_match, name_disagrees, below_cook_threshold; reason is the same value, kept for older clients) and cookMatch (true only at ≥ 0.78 and when the name agrees: rice is never Rice vinegar).
list_inventorymcp:readCursor-paginated pantry list (default 100, max 200). Optional domain filter, case-insensitive nameContains, tag slug, UTC expiresBefore / expiresAfter, and sortBy: expiresAt. expiresAt is ISO 8601 or null. Includes nutrition when present; pass includeNutrition: false for a smaller page. A row whose per-serving nutrition equals its whole stock, or whose per-100 g values are impossible, carries nutritionWarnings (see below). A row with no nutrition repeats the nutritionOutcome and no_nutrition / low_confidence / nutrition_pending warning from the add or dock reply (kept 30 days, first 50 such rows of a page).
get_cargo_itemmcp:readFetch one pantry item by id (name, quantity, unit, domain, tags, expiry, nutrition when present, nutritionWarnings when the numbers look wrong). nutrition.serving says what perServing covers; see Cargo perServing below. An item with no nutrition repeats the nutritionOutcome and warning from the add_cargo_item or complete_supply_list reply (pending while the USDA lookup after a dock runs, then no_nutrition or low_confidence; kept 30 days).
get_kitchen_summarymcp:readSingle-call operational snapshot (cargo, manifest, supply, tier/credits). Optional manifestDays (1–7). Manifest status is planned or cooked. loggedByYou is the caller's plate-up and is omitted without mcp:nutrition:read, nutrition-manifest, and intake consent. Cooking is not eating.
get_kitchen_eventsmcp:readFlight Recorder timeline of cooks, docks, expiries, and jettisons (filterable, paginated).
get_kitchen_statsmcp:readFlight Recorder aggregates for a window (7d/30d/90d/365d).
get_expiring_itemsmcp:readList items expiring within N UTC calendar days (defaults to user expirationAlertDays).
get_expired_itemsmcp:readList items whose expiry date is before today (UTC). Optional daysBack (default 30).
list_mealsmcp:readGalley index (default omits ingredients). Set includeIngredients: true to include ingredient lines. Directions are on get_meal. nutritionWarnings when the numbers look wrong; the lines are always read for those checks, even when they are not returned.
get_mealmcp:readOne recipe by id from list_meals, including directions, ingredients, nutrition attributions (each with gramsInRecipe, the Ingredient's mass in the whole recipe, and contributionPerServing, what it adds to one serving; since 1.13.1, these were grams and contribution), and nutritionWarnings when the numbers look wrong.
match_mealsmcp:readFind cookable recipes from current pantry — strict or delta. Adds allergenFlags when user allergens are configured, and nutritionWarnings when the numbers look wrong. A meal with no required ingredients is never listed in strict; in delta it comes after every real match with needsIngredients: true, canMake: false, and matchPercentage: 0.
get_meal_planmcp:readMeal plan entries by date and slot. days defaults to 7 (inclusive, max 14). Omitted startDate is today UTC. status is planned or cooked (cookedAt or legacy consumedAt). personalIntake and loggedByYou when nutrition flags, mcp:nutrition:read, and intake consent allow; gramsPerServing is the recipe mass (recipeMassG) ÷ the Meal's servings when known, and energyKcalPerServing is kcal for one of those servings (1.13.1). Cooking is not eating.
get_supply_listmcp:readLive Supply, cursor-paginated (default 50, max 100). Optional listId when the supply list library is on. sourceMeals only with includeSourceMeals: true. Each row has sourceCargoId (the Cargo line it was planned from, or null), also on update_supply_item and the get_kitchen_summary Supply preview. No MCP tool can turn the library on.
list_supply_listsmcp:readCatalog of Live, Saved, Template, and Archived lists. Flag-gated.
get_user_preferencesmcp:readAllergens, expiration alert days, theme, manifest defaults, and other user settings.
update_user_preferencesmcp:preferences:writePatch user settings (allergens, alerts, theme). Only provided fields change.
get_nutrition_summarymcp:nutrition:readCaller’s personal daily intake totals (energy/macros/optional fiber) for a UTC from/to range (requires nutrition-goals or nutrition-manifest). vsGoal is the last day in the range; days[].vsGoal gives remaining per day. When nutrition-cross-org-diary is on, includes every kitchen the user logged—not household nutrition. Agent reads audited.
list_nutrition_intakesmcp:nutrition:readCaller’s personal intake rows for a UTC range (cursor-paginated; kitchen labels when present). Each row has name and a fuelEntryId that stays the same when the entry is edited. Cross-org when nutrition-cross-org-diary is on. Agent reads audited. An entry over 1500 kcal per serving or 1500 g carries nutritionWarnings.
set_nutrition_goalmcp:nutrition:writeIdempotently upsert personal daily energy/macro/fiber goals using operationKey; consent must already be active in Ration. Store only numbers the person states. Do not suggest, calculate, or invent a target. Not medical advice.
clear_nutrition_goalmcp:nutrition:writeIdempotently close open-ended goals using operationKey. Requires confirm: true + host approval.
log_manifest_intakemcp:nutrition:writeAtomic private Eat for 1–50 prepared entries (operationKey + per-item idempotencyKey). Portions: servings (0.01–100) or amount+unit (serving/g/oz) when gramsPerServing is present. Multi-entry calls need host approval. Consent must already be active in Ration. Returns one compact line per item (intakeId, entryId, meal, date, slot, portion, energy and macros) plus dayTotals.
clear_manifest_intakemcp:nutrition:writeAtomically soft-void personal intake using operationKey. Requires confirm: true + host approval.
quick_eat_cargomcp:inventory:write + mcp:manifest:write + mcp:nutrition:writePersonal Quick Eat from Cargo: resolve by cargoId, or by name against the pantry first and then a semantic match (see Name matching below; anything else returns candidates). Creates a missing line if needed. With plan-fuel-actions on: deducts Cargo once and logs Daily Fuel on date (local noon that day; default today in the person's Fuel zone; the free daily limit counts that day) with notes; logIntake: false deducts Cargo only and logs no Fuel. Returns fuelLogged (and intakeId and fuelDate when logged). The entry is stored on date as both its Fuel day and its Manifest day, so get_nutrition_summary, list_nutrition_intakes, and the Fuel page all show it on that day, the day fuelDate names. A date that is not a real calendar day is invalid_input, and nothing is deducted or logged. A replay with the same operationKey and arguments returns the first result and does not deduct again; a reused key with different arguments is conflict. With the flag off: adds a Manifest snack and optionally logs private intake (cargo-quick-eat + nutrition-cook-log-split).

Inventory (Cargo)

ToolScopeDescription
add_cargo_itemmcp:inventory:writeAdd a single pantry item (qty > 0). Optional nutrition per 100 g (see Cargo nutrition input); when omitted and nutrition-engine is on, USDA auto-resolves, and only a high-confidence match with all four core macros attaches numbers (otherwise low_confidence or no_nutrition). The reply includes expiresAt. No credits; vectors backfilled async, but name writes find the new line at once (see Name matching). Implausible nutrition is saved as given and flagged in item.nutritionWarnings (an override is only saved while nutrition-engine is on). Prefer import tools for bulk.
update_cargo_itemmcp:inventory:writeSet absolute fields (including optional nutrition per 100 g; nutrition: null clears it). Quantity may be 0 (kept as a restock reminder). expiresAt is an ISO date (null clears). When nutrition changes, Meals that use the item are re-totalled in the background and mealsQueued says how many. Implausible nutrition is saved as given and flagged in nutritionWarnings.
search_foodsmcp:readUSDA candidates for a food name: fdcId, description, matchScore (0–1, best first), per100g (null where USDA lists no value) and complete. Plain foods rank before variants you did not ask for (whole milk lists fluid whole milk before dry, powdered or chocolate milk), then Foundation and SR Legacy before branded. Foods with none of the four core macros are left out. Read-only.
set_nutrition_matchmcp:inventory:writeAttach the USDA food the person picked (itemId, fdcId from search_foods). Remembered for the Galley, so later Cargo with the same name gets it too. Returns mealsQueued. The food must list all four core macros.
list_nutrition_matchesmcp:readThe USDA foods remembered for Cargo names in this kitchen (name, fdcId, description, updatedAt).
clear_nutrition_matchmcp:inventory:writeForget the remembered USDA food for a name, so new Cargo with that name is matched again. Existing Cargo keeps its nutrition. Deleting the last Cargo line with a name also forgets it. Requires confirm: true.
adjust_cargo_itemmcp:inventory:writeRelative delta change (e.g. -2). Floors at 0; keeps the row. By itemId, or by name against the pantry first and then a semantic match (see Name matching below). Anything else returns candidates and does not change quantity.
remove_cargo_itemmcp:inventory:writePermanently delete a pantry line. Requires confirm: true.
preview_inventory_importmcp:inventory:writeDry-run receipt/bulk import — returns previewToken and sample rows. Prefer ration://schemas/inventory-import for shape.
apply_inventory_importmcp:inventory:writeCommit a previewed import after the user has seen the preview. Annotated destructiveHint and idempotentHint, so hosts that support approval ask the user first. Idempotent via idempotencyKey. Returns createdIds and updatedIds so you can act on the new lines without listing Cargo again.
preview_inventory_removemcp:inventory:writeDry-run bulk Cargo deletes (prefer for 2+ items).
apply_inventory_removemcp:inventory:writeCommit a remove preview after the user has seen it. Annotated destructiveHint and idempotentHint, so hosts that support approval ask the user first. Idempotent.
import_inventory_csvmcp:inventory:writeParse and apply a CSV string in one call (convenience wrapper). Approval required; pass confirm: true.

Galley (recipes)

ToolScopeDescription
create_mealmcp:galley:writeCreate a recipe from structured data.
update_mealmcp:galley:writeUpdate a Meal — round-trip via list_meals → edit → pass full object. The reply echoes each Ingredient's isOptional. Optional nutritionOverride sets per-serving nutrition by hand (energyKcal, proteinG, fatG, carbsG, optional micros; carbG is accepted as an alias); it is kept when Ingredients or Cargo change, the reply shows nutrition.source: "meal_override" (computed totals say "computed"; an Ingredient attribution from Cargo the person filled in says "cargo_user_values"), and null goes back to computed totals. Send nutritionOverride at the top level or inside meal, not both (both is invalid_input on meal.nutritionOverride). The reply always carries nutrition; after null it is the recomputed Ingredient totals (null only while they are still being computed). While an override is set, unmatched_ingredients and low_coverage are not reported.
delete_mealmcp:galley:writeDelete a recipe. Requires confirm: true. Cascades to ingredients, tags, and linked Manifest entries.
set_active_mealsmcp:galley:writeSet Galley active selection to exactly these mealIds. Optional syncSupply.
clear_active_mealsmcp:galley:writeClear all active meal selections. Requires confirm: true.
consume_mealmcp:galley:write + mcp:inventory:writeCook and deduct ingredients from pantry. When cook-log-split is on, bridges to Manifest Prepared (no personal intake). Requires both scopes.

Manifest (meal plan)

ToolScopeDescription
propose_manifest_planmcp:readCompact week proposal from expiring items + match_meals. Never proposes a meal with no required ingredients; skippedNoIngredients lists their names (up to 20, A–Z, no ids) and skippedNoIngredientsCount counts them all. No writes; commit with commit_manifest_plan.
add_meal_plan_entrymcp:manifest:writeSchedule a meal on a date and slot.
commit_manifest_planmcp:manifest:writeCommit a confirmed multi-entry schedule (optionally sync supply). Approval required; pass confirm: true.
update_meal_plan_entrymcp:manifest:writePatch date, slot, servings, or notes. Cannot edit consumed entries.
remove_meal_plan_entrymcp:manifest:writeRemove a scheduled plan entry. Destructive since 1.13.1: requires confirm: true (Copilot binds it).
cook_manifest_entriesmcp:manifest:write + mcp:inventory:writeShared Cook (Cargo + Prepared). Requires nutrition-cook-log-split. Never logs intake.
consume_manifest_entriesmcp:manifest:write + mcp:inventory:writeLegacy combined consume. Refused when cook-log-split is on — use cook then log_manifest_intake. Does not write personal intake (logNutrition is ignored). Requires both scopes.

Supply (shopping list)

ToolScopeDescription
add_supply_itemmcp:supply:writeAdd a line to Live Supply. Optional listId targets a saved list when the library is enabled. Optional cargoId links the line to a Cargo item in this kitchen (not_found with details.field: "cargoId" otherwise), so docking merges into that item; the reply echoes sourceCargoId.
update_supply_itemmcp:supply:writeUpdate name, quantity, or unit on a Live Supply line. The reply has sourceCargoId.
remove_supply_itemmcp:supply:writeRemove a supply list line. Destructive since 1.13.1: requires confirm: true (Copilot binds it).
mark_supply_purchased_bulkmcp:supply:writeMark one or many supply lines purchased / unpurchased.
sync_supply_from_selected_mealsmcp:supply:writeRebuild list from meal plan + Galley selections (buy only the delta). Summary is net new, removed, and changed lines.
complete_supply_listmcp:supply:write + mcp:inventory:writeDock purchased items from Live Supply into pantry. Each item merges into the Cargo line it came from (matchedBy: linked_item), else the Cargo line with the same normalised name (exact_name); else the single Cargo line whose name contains every word of the Supply name and is the same food, in the same unit family (contained_name: milk into Whole milk, never rice into Rice vinegar); a similar name (vector match) merges only when it is the same food and the same unit family, mass, volume or count (similar_name). Anything else becomes a new Cargo line. Optional itemIds docks only those purchased lines (the others stay on the list; ids that are not purchased lines on Live Supply come back in skippedItemIds). The reply has docked, summary {updated, created} and items[] with matchedBy (null for a new line) and mergedInto {id, name} or created {id, name}; each new line carries nutritionOutcome. Over MCP the USDA lookup for new lines (and for a merge target without nutrition) runs after the dock commits, so the reply says nutritionOutcome: {status: "pending"} with a nutrition_pending warning; read the line with get_cargo_item a few seconds later for the numbers or a no_nutrition / low_confidence warning. The dock is one transaction: the Cargo writes and the removal of the docked Supply Items land together or not at all, and a Supply Item can be docked only once (a second dock gets conflict with details.code: "dock_conflict" and changes nothing). Pass operationKey (UUID) to make a retry safe; without one, a key is derived from itemIds. The reply returns operationKey; a retry with the same key (or the same itemIds) returns the first reply with replayed: true and docks nothing. On timeout_ambiguous, retry with the operationKey it names. Merging into an item with hand-set nutrition rescales its whole-package totals to the new quantity. Saved lists cannot be docked. If the dock commits but refreshing Supply fails, the reply has supplyResyncFailed: true and a recoveryHint: do not dock again; re-read get_supply_list, and if docked items are still listed their restock picks are still on, so ask the person to check them in the app. Requires both scopes. Requires confirm: true.
create_supply_listmcp:supply:writeCreate a Saved or Template list. Flag-gated (supply-multi-lists).
duplicate_supply_listmcp:supply:writeDuplicate a list into an independent copy. Flag-gated.
archive_supply_listmcp:supply:writeArchive a Saved list. Flag-gated.
transfer_supply_itemsmcp:supply:writeCopy or move items between lists. Flag-gated.
manage_supply_staplesmcp:supply:writeList, upsert, or delete kitchen staples. Flag-gated.
save_receipt_as_supply_listmcp:supply:writeSave reviewed receipt lines as a Saved list. Flag-gated. No second AI credit.

Food diary (flag-gated)

Registered only when the matching nutrition flags are on (all need nutrition-fast-log). Personal to the caller. Not medical advice.

ToolScopeDescription
quote_food_logmcp:nutrition:readQuote the credit cost of a food log. No writes, no model call.
log_diary_foodmcp:nutrition:writeLog one food the caller ate (typed macros or savedFoodId). estimated marks an AI estimate. Optional fuelDate (YYYY-MM-DD) logs on that Fuel day at local noon; optional fuelTimeZone (IANA) when Fuel has no zone yet. Approval required. No Cargo, Galley, Manifest, or Supply change. 0 credits.
update_diary_foodmcp:nutrition:writeReplace a food log (void + new row). Every edit returns a new intakeId plus previousIntakeId, and a fuelEntryId that stays the same across edits. An older intakeId of the same entry still works: the edit applies to the current row. Pass fuelDate to move the entry to another day (see below). Approval required. 0 credits.
void_diary_foodmcp:nutrition:writeVoid a food log. An older intakeId of an edited entry voids its current row. Returns fuelEntryId. Destructive; approval required; requires confirm: true.
save_diary_food_to_kitchenmcp:nutrition:writeCopy a food log into Cargo or Galley. Destructive for the shared kitchen; approval required; requires confirm: true.
set_diary_layoutmcp:preferences:writeTimeline or slots for the caller's day list. Approval required.
list_saved_foodsmcp:nutrition:readCaller's saved foods (nutrition-saved-food).
save_foodmcp:nutrition:writeSave a food for the caller (nutrition-saved-food). Approval required.
delete_saved_foodmcp:nutrition:writeDelete a saved food (nutrition-saved-food). Approval required; requires confirm: true.
lookup_food_barcodemcp:nutrition:readUSDA Branded Foods barcode lookup, exact gtinUpc only (nutrition-barcode-diary). No writes.
propose_food_logmcp:nutrition:writeDraft a food log from a photo (nutrition-photo-log). A model call costs 2 credits. Approval required. Commit with log_diary_food and estimated: true.
get_health_export_statusmcp:nutrition:readApple Health export switch state (nutrition-health-export).
get_health_export_previewmcp:nutrition:readPreview the Fuel logs that could export, plus a count of logs kept out (missing or implausible numbers, or older logs without a Health id) (nutrition-health-export).
set_health_exportmcp:nutrition:writeTurn Apple Health export on or off (nutrition-health-export). Approval required; requires confirm: true.
clear_health_exportmcp:nutrition:writeAsk the person's iPhone to remove every Apple Health sample Ration wrote for this account on its next sync; the device acknowledges when done (nutrition-health-export). Destructive; approval required; requires confirm: true.

Moving a Fuel entry to another day. Call update_diary_food with the entry's intakeId, its food fields, and fuelDate (YYYY-MM-DD), without occurredAt. The entry moves to local noon on that day, the old day's free slot is released, and the new day's free limit applies: a full day returns conflict with details.code: "fuel_daily_limit" and upgradeRequired: true (Crew has no limit). Apple Health keeps the same sample and gets the new time on the next export. A replay with the same operationKey returns the same ids. Without fuelDate an edit stays on its stored day: pass the entry's occurredAt (or another time that day), because an omitted occurredAt means now and a different day returns invalid_input (fuel_date_immutable). A day that does not exist or a zone that is not IANA returns invalid_input; an unknown or already replaced intakeId returns not_found.

Name matching for stock writes. adjust_cargo_item and quick_eat_cargo take a name when you do not have an id. The first three steps read the pantry itself, before any semantic search, so a line added a moment ago (whose vector is not indexed yet, about 2 minutes) is found by name. In order, they apply:

  1. An exact name, ignoring case, accents (composed or decomposed), full-width letters, and extra spaces: " CRÈME fraîche " is Crème fraîche.
  2. The same words with the last one singular or plural: "egg" is Eggs even when Large eggs is also in the pantry, and "butter" is Butter, never Peanut butter.
  3. A single pantry line with the same food name after plurals, word order, size and prep words: "tomato" is Tomatoes. Two or more lines on the same step return candidates (reason: "same_name").
  4. A semantic match at ≥ 0.78 whose name agrees, with no other agreeing match within 0.03 of it. Agreeing means every word you typed is in the item's name, the last word (the food) is the same, and the item adds no word that makes it another food (peanut, almond, oat, coconut, rice, soy and similar). "milk" can be Whole milk and "egg" Free range eggs; "rice" is never Rice vinegar, "oat milk" never Whole milk, "butter" never Peanut butter.

Why 0.03: vector scores for short names bunch together. On 1.11.47, "egg" scored Eggs 0.989 and Honey 0.950, and "butter" scored Butter 0.993 and Peanut butter 0.954. The right food led by about 0.039, so the old 0.1 gap asked every time. A hit whose name does not agree (Honey for "egg") never counts as the runner-up.

Anything else changes nothing and returns requiresDisambiguation: true, candidates (highest matchScore first), a reason (same_name, close_scores, name_disagrees, or below_cook_threshold) and a note worded for one or several candidates (or not_found). quick_eat_cargo creates a new line only when nothing matched at all. Names with no Latin letters (for example 豆腐) match only themselves. Cook deduction and search_ingredients are unchanged.

Cargo nutrition input. add_cargo_item and update_cargo_item take nutrition as a flat object per 100 g (or 100 ml), as printed on the label's per-100 g column: energyKcal, proteinG, fatG, carbsG (required), fiberG, sugarG, satFatG, sodiumMg, saltG (optional; omit when unknown), and gramsPerUnit for items counted in units. Aliases calories, protein, fat, carbs and carbG are accepted and reported in warnings. Replies use carbsG everywhere. perServing and whole-package totals are rejected. A bad value returns invalid_input with details.field naming it (for example nutrition.carbsG). Numbers must be JSON numbers: a quoted number such as "120" is refused with invalid_input naming the field (here and in update_meal nutritionOverride). Stored per100g is authoritative: a per-serving or package value never overwrites it. Replies add nutrition.matchQuality (user, high, medium, estimate).

Cargo perServing. per100g is the authoritative value; scale it by the grams eaten. perServing, when set, covers what nutrition.serving.basis says, with serving.grams when known: household_portion is one USDA household serving (for example 30 g) after a USDA match or set_nutrition_match; one_unit is one counted unit, from gramsPerUnit sent with per-100 g values; package_total is the whole item as stocked: serving.grams is its mass when it is stocked by mass or volume, and volume is converted at the food's density, matching the per-100 g values (1 l of milk is serving.grams: 1030), with serving.ml giving the volume as entered (1000); or the whole item as entered when there are no per-100 g values (serving.grams: null). per_100g (serving.grams: 100) is a USDA match with no household portion: perServing repeats the per100g values, so it is never null for this basis; scale by the grams eaten. list_inventory carries the same serving block as get_cargo_item. Meal perServing is always one of the Meal's servings, and a nutrient no Ingredient knows is null (unknown), never 0. When only some matched Ingredients know an optional nutrient (fibre, sugar, saturated fat, sodium, salt), the Meal total is the sum of those and carries a partial_micronutrients warning.

Tool list freshness. The server is stateless, so it cannot push notifications/tools/list_changed after a deploy, although it declares tools.listChanged. A client that caches tools/list can keep old schemas after a release. The server instructions, ration://guide and the get_context description all say this. Compare get_context versions.toolsList (the same value as toolsList.fingerprint in the server card) with the value you saw when you cached the list, and list tools again when it changed. Since 1.13.1 it is one build-time hash (app/lib/mcp/tools-list-hash.ts) of the full published tools/list with flags off and with flags on, plus the server version, so any release changes it; a unit test fails when the list changes and the hash does not.

Tool list and errors. tools/list is sorted by name, every tool has a human title, and tools that are switched off for the caller are left out (they stay callable and answer feature_disabled). initialize returns short server instructions; the longer guide is the resource ration://guide. A bad argument returns a normal tool result with isError: true, error code invalid_input and details.field naming the argument, not a JSON-RPC error.

Protocol versions. 2025-era clients (initialize, then tools/list and tools/call) get exactly the replies they got before 1.13.0. A 2026-07-28 client sends MCP-Protocol-Version: 2026-07-28 and the _meta envelope on each request; it can call server/discover without credentials (supported versions and capabilities, no tools), and every other method needs a Bearer token as before (401 with a WWW-Authenticate challenge). Modern replies carry resultType (complete, or input_required) and _meta["io.modelcontextprotocol/serverInfo"]. Cache hints: tools/list ttlMs 300000 private; resources/list and resources/read 3600000 private; server/discover 3600000 public. GET and DELETE on /mcp answer 405 (no SSE stream, no sessions).

Confirm by form (2026-07-28). A tool that needs confirm: true, called without it by a client that declared elicitation (form mode), returns input_required with an elicitation/create form asking to go ahead. Accept with the box ticked runs the tool; decline, cancel or an unticked box returns consent_required with outcome: "no_effect". Since 1.13.1 every destructive tool offers the form. Clients without form elicitation, and all 2025-era clients, get confirmation_required (see above), and confirm: true always skips the form.

Strict-client schemas. Every tool's input schema in tools/list is plain JSON Schema with no $ref, $defs, definitions or allOf, and anyOf only as [primitive, null], so strict clients such as ChatGPT accept it.

Nutrition warnings. get_meal, create_meal, update_meal (since 1.13.1), list_meals, match_meals, get_cargo_item, list_inventory, and list_nutrition_intakes add nutritionWarnings: [{ code, message }] to a row whose numbers look wrong. The key is absent when there is nothing to flag. add_cargo_item and update_cargo_item replies carry the Cargo warnings too. Values are never changed and writes are never refused for a warning; confirm a flagged number with the person before relying on it. Meal coverage and unmatched checks ignore ingredients with negligible calories (water, salt, baking powder or soda, spices, dried or fresh herbs, and similar); a bare pepper still counts, because it is often a bell pepper.

CodeWhen
low_coverageMeal: less than 80% of the ingredient weight has nutrition data, not counting negligible-calorie lines when their weight can be worked out (current snapshot only). Not raised when only negligible lines are unmatched.
unmatched_ingredientsMeal: required ingredients with no nutrition match, other than negligible-calorie lines (first three named).
servings_default_high_kcalMeal: servings is 1 and per-serving energy is over 1500 kcal, so it may be the whole batch.
salt_without_sodiumMeal or Cargo: the recipe or item has salt but sodium is missing or 0.
per100g_energy_too_highCargo: more than 900 kcal per 100 g (pure fat is about 884–900).
per100g_macros_over_100gCargo: protein + fat + carbs add up to more than 100 g per 100 g.
per100g_energy_macro_mismatchCargo: kcal per 100 g is far from 4/4/9 kcal per gram of protein, carbs and fat (outside 0.6–1.5× and more than 60 kcal apart). Skipped when all three macros are 0, which older rows use for "unknown".
per_serving_equals_stockCargo: per-serving energy equals the whole stock (500 g or more), so the serving is probably the pack. Not raised for per-100 g values the person typed, where the server itself sets perServing to the stock (serving.basis: package_total).
low_confidenceCargo (add reply): USDA found only a medium-confidence match, so the item was saved without nutrition. The message names the USDA food. Fix with search_foods → set_nutrition_match, or send nutrition per 100 g.
no_nutritionCargo (add or dock reply, then get_cargo_item / list_inventory while the item has no nutrition): no usable USDA match (none, or one missing a core macro; a missing macro is unknown, never 0). Saved without nutrition. Also used when a lookup after a dock did not finish within 2 minutes. A name with a test marker or pack size (QA150 rice, rice 2kg) is tried once more without it, high-confidence only.
nutrition_pendingCargo (dock reply, then get_cargo_item / list_inventory): the USDA lookup for this new line runs after the dock; read the item again in a few seconds.
partial_micronutrientsMeal: fibre, sugar, saturated fat, sodium or salt is summed from only some of the matched Ingredients (the message says how many), so that total is likely too low (current snapshot only; not for a hand-set override).
high_kcal_entryIntake: more than 1500 kcal per serving in one entry.
high_portion_massIntake: more than 1500 g (or ml) in one entry.

Server card: mcp/server-card (SEP-2127, listed in .well-known/ai-catalog.json); the older .well-known/mcp/server-card.json stays, without a tool list · Full API reference: docs/api


Pricing

TierIncludes
Free35 pantry items · 15 recipes · 3 supply lists · 3 Fuel logs per day · MCP + OAuth · agent self-registration
Crew MemberUnlimited pantry/recipes · 25 supply lists · Unlimited Fuel logs · household invites · shared Manifest/Supply links · €2/month or €12/year
Credit packs (optional)AI receipt scan, recipe import, meal generation, weekly AI plan in the web app — from €1

MCP does not meter credits. Use the web app when you want hosted vision/AI features.


MCP server details

FieldValue
NameRation
Endpointhttps://mcp.ration.mayutic.com/mcp
TransportStreamable HTTP (OAuth 2.1), stateless
Protocol versionsup to 2025-11-25 through initialize, and 2026-07-28 through server/discover
Registry namecom.mayutic.ration/mcp
CategoryProductivity
Sourcegitlab.com/mayutic/ration/application
Homepageration.mayutic.com
Listing docration.mayutic.com/mcp.md
Built byMayutic

mcpservers.org submission (copy-paste)

  • Server name: Ration
  • Short description: AI-native kitchen MCP — pantry inventory, cook-from-stock recipes, meal plans, and shopping lists with OAuth and 35+ tools. Free to start.
  • Link: https://ration.mayutic.com/mcp.md
  • Category: Productivity

Learn more


Ration — manage your kitchen through your AI agent.