Mealie MCP Server

v0.6.0
io.github.ni-c/mealie-mcp Checked 2 days ago Published 1 month ago

MCP server for Mealie, the self-hosted recipe manager and meal planner

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_about About this Mealie instance

Reports the Mealie version and the identity the API token acts as: user, group, household and the permission flags that decide which write tools will actually succeed. Start here when a call fails with a 403.

search_recipes Search recipes

Searches the recipe collection. Returns summaries — name, slug, id, times, rating, tags and categories — without ingredients or steps; use get_recipe for those. search, the organizer filters and the date range combine with AND; within one filter the entries are OR unless the matching require_all_* flag is set. cookbook is the exception: Mealie applies a cookbook instead of the tag, category, tool and food filters, so combining them is rejected here rather than silently ignored.

ParameterTypeDescription
categoriesarrayRestrict the result to recipes carrying these categories — names, slugs or UUIDs. Each entry is resolved to an id before the search runs, and an entry that matches nothing is an error: Mealie itself…
cookbookstringRestrict the result to a cookbook, by slug or UUID. Cannot be combined with the tag, category, tool or food filters.
foodsarrayRestrict the result to recipes using these foods, by UUID from list_foods. Mealie resolves no other form here and answers a name or a slug with HTTP 500.
order_bystringSort field, default created_at. "random" shuffles the collection; each call draws a new shuffle, so paging through a random order is not meaningful.
order_directionstringSort direction, default desc
pageinteger1-based page number, default 1
per_pageintegerNumber of entries to return, default 25, max 100
require_all_categoriesboolean
require_all_foodsboolean
require_all_tagsbooleanRequire every listed tag instead of any of them
require_all_toolsboolean
searchstringFull-text search over names, descriptions and ingredients
tagsarrayRestrict the result to recipes carrying these tags — names, slugs or UUIDs. Each entry is resolved to an id before the search runs, and an entry that matches nothing is an error: Mealie itself would…
toolsarrayRestrict the result to recipes carrying these tools — names, slugs or UUIDs. Each entry is resolved to an id before the search runs, and an entry that matches nothing is an error: Mealie itself woul…
unparsed_onlybooleanOnly recipes with at least one ingredient line that has no food yet — the ones Mealie flags as not parsed. Recipes without any ingredients count as well. Use it to page through a collection with par…

get_recipe Get recipe

Fetches one recipe with everything needed to cook it: ingredients, steps, times, yield, notes and nutrition. Accepts the slug or the UUID.

ParameterTypeDescription
recipe *Recipe slug (e.g. "quark-bowl") or recipe UUID — both are returned by search_recipes
detailstring"default" returns the cleaned-up recipe; "raw" returns Mealie's untouched object including settings, assets, extras and inline comments

suggest_recipes Suggest recipes

Suggests recipes that can be cooked from the foods and tools marked as "on hand" in Mealie, ranked by how little is missing. This only produces anything on an instance that actually maintains structured foods, units and an on-hand pantry — on a collection of plain text ingredients it returns nothing. Use search_recipes there.

ParameterTypeDescription
foodsarrayFood UUIDs to treat as available, from list_foods
limitintegerNumber of suggestions, default 10
max_missing_foodsintegerHow many ingredients a suggestion may be missing, default 5
max_missing_toolsinteger
toolsarrayTool UUIDs to treat as available, from list_organizers

list_recipe_comments List recipe comments

Lists the comments other users of the instance left on a recipe.

ParameterTypeDescription
recipe *Recipe slug (e.g. "quark-bowl") or recipe UUID — both are returned by search_recipes

list_recipe_timeline List recipe timeline

Lists the timeline of a recipe: when it was created, updated and each time it was cooked, with the notes attached to those events.

ParameterTypeDescription
recipe *Recipe slug (e.g. "quark-bowl") or recipe UUID — both are returned by search_recipes
pageinteger1-based page number, default 1
per_pageintegerNumber of entries to return, default 50, max 100

list_organizers List tags, categories or tools

Lists the tags, categories or tools defined in the group, with their ids and slugs. These are the values search_recipes filters on.

ParameterTypeDescription
kind *stringWhich organizer: "tag" (free-form labels), "category" (the primary classification, one recipe usually has few) or "tool" (equipment a recipe needs)
order_directionstringSort direction, default desc
pageinteger1-based page number, default 1
per_pageintegerNumber of entries to return, default 100, max 100
searchstringFilter by name

list_foods List foods

Lists the structured foods of the group — the ingredient vocabulary Mealie matches ingredient lines against. Many instances leave this empty and keep ingredients as plain text; an empty result means exactly that, not a failure.

ParameterTypeDescription
order_directionstringSort direction, default desc
pageinteger1-based page number, default 1
per_pageintegerNumber of entries to return, default 100, max 100
searchstring

list_units List units

Lists the measurement units of the group, with their abbreviations. Like foods, this is empty on an instance that never seeded them.

ParameterTypeDescription
order_directionstringSort direction, default desc
pageinteger1-based page number, default 1
per_pageintegerNumber of entries to return, default 100, max 100
searchstring

parse_ingredients Parse ingredient lines

Splits free-text ingredient lines into quantity, unit, food and note, and reports how confident Mealie is about each part. Nothing is saved. Use it to check how a line will be understood before writing it to a recipe or a shopping list.

ParameterTypeDescription
ingredients *arrayIngredient lines, e.g. "2 tbsp olive oil"
parserstring"nlp" (default) uses the trained model, "brute" a rule-based split. Mealie also offers an "openai" parser; it is not exposed here because it sends every line to an external provider.

list_mealplans List meal plan entries

Lists the meal plan of the household in a date range. Each entry is either a recipe reference or a free-text note.

ParameterTypeDescription
end_datestringLast day to include, YYYY-MM-DD
pageinteger1-based page number, default 1
per_pageintegerNumber of entries to return, default 50, max 100
start_datestringFirst day to include, YYYY-MM-DD

get_todays_meals Get today's meals

Returns the recipes planned for today, as Mealie computes "today" for the household. Answers with a bare list, not a paginated envelope.

list_shopping_lists List shopping lists

Lists the shopping lists of the household, without their items.

ParameterTypeDescription
pageinteger1-based page number, default 1
per_pageintegerNumber of entries to return, default 50, max 100

get_shopping_list Get shopping list

Fetches one shopping list with all of its items, checked and unchecked.

ParameterTypeDescription
list_id *stringShopping list UUID, from list_shopping_lists
include_checkedbooleanInclude items already ticked off, default true

list_cookbooks List cookbooks

Lists the cookbooks of the household. A cookbook is a saved filter over the recipe collection, not a fixed set of recipes.

ParameterTypeDescription
pageinteger1-based page number, default 1
per_pageintegerNumber of entries to return, default 50, max 100

get_cookbook Get cookbook

Fetches a cookbook and the recipes it currently matches. Accepts the slug or the UUID.

ParameterTypeDescription
cookbook *stringCookbook slug or UUID, from list_cookbooks
per_pageintegerNumber of entries to return, default 50, max 100

list_share_tokens List recipe share links

Lists the public share links that currently exist, with the recipe each one exposes and when it expires. Anyone holding such a link can read the recipe without an account.

ParameterTypeDescription
recipeRestrict the result to one recipe

preview_recipe_url Preview a recipe URL

Fetches a URL and reports what Mealie would extract from it, WITHOUT saving anything. Use this to check a page before importing it, or to find out why an import came out empty.

ParameterTypeDescription
url *stringAddress of the recipe page to test

create_recipe Create recipe

Creates a recipe from the given fields. To add one from a website use import_recipe_from_url instead — it fills in far more.

ParameterTypeDescription
name *stringRecipe name. Mealie derives the slug from it and rejects a duplicate.
categoriesarrayCategory names. They replace the existing categories.
cook_timestring
descriptionstring
ingredientsarrayIngredient lines. They replace the existing list. Each is either free text ("500 g quark"), which Mealie shows as unparsed, or an object {quantity, unit, food, note, title, original_text} with unit an…
instructionsarrayPreparation steps, in order. They replace the existing list. Each step is either plain text or an object {title, text} when the step has its own heading (e.g. "Prep", "Bake"); a bare string is equival…
notesarray
prep_timestring
recipe_yieldstring
servingsnumber
source_urlstringOriginal source of the recipe, an http:// or https:// address, stored as orgURL
tagsarrayTag names. They replace the existing tags; unknown names are created.
total_timestring

update_recipe Update recipe

Changes individual fields of a recipe. Only the fields given are touched; everything else keeps its value. Passing an empty array for ingredients, instructions, tags or categories clears that list. Replacing written content — name, description, ingredients, instructions, tags, categories or notes — requires confirmation: call once to receive a token, then again with that token. Changing only times, servings, yield or the source link does not.

ParameterTypeDescription
recipe *Recipe slug (e.g. "quark-bowl") or recipe UUID — both are returned by search_recipes
categoriesarrayCategory names. They replace the existing categories.
confirm_tokenstringConfirmation token from a previous call of this tool with the same arguments. Omit on the first call.
cook_timestring
descriptionstring
ingredientsarrayIngredient lines. They replace the existing list. Each is either free text ("500 g quark"), which Mealie shows as unparsed, or an object {quantity, unit, food, note, title, original_text} with unit an…
instructionsarrayPreparation steps, in order. They replace the existing list. Each step is either plain text or an object {title, text} when the step has its own heading (e.g. "Prep", "Bake"); a bare string is equival…
namestring
notesarray
prep_timestring
recipe_yieldstring
servingsnumber
source_urlstringOriginal source of the recipe, an http:// or https:// address, stored as orgURL
tagsarrayTag names. They replace the existing tags; unknown names are created.
total_timestring

parse_recipe_ingredients Parse recipe ingredients

Structures a recipe's unparsed ingredient lines in place: Mealie's parser splits each line into quantity, unit, food and note, and the lines whose food and unit exist in Mealie and whose confidence is high enough are written back. Lines that already have a food are left alone. Everything else comes back under needs_decision with the reason — ask the user there, then create the food with create_food and run this again, or pass the existing food they chose in overrides. Runs as a dry run unless dry_run is false; writing requires confirmation: call once to receive a token, then again with that…

ParameterTypeDescription
recipe *Recipe slug (e.g. "quark-bowl") or recipe UUID — both are returned by search_recipes
confirm_tokenstringConfirmation token from a previous call of this tool with the same arguments. Omit on the first call.
dry_runbooleanDefault true: report what would be written, write nothing and ask nothing. Pass false to write.
min_confidencenumberLowest average parser confidence that is written without asking, default 0.9. Lines below it go to needs_decision.
overridesarrayThe user's answers for lines from needs_decision. An override replaces the parser's food or unit for that line and settles its confidence; the parser's quantity and note are kept.
parserstring"nlp" (default) uses the trained model and reports a real confidence. "brute" is rule-based and reports 1.0 for whatever it splits, so min_confidence does not protect anything there. The "openai" pars…

duplicate_recipe Duplicate recipe

Creates a copy of a recipe under a new name, leaving the original untouched. Useful as a starting point for a variation.

ParameterTypeDescription
recipe *Recipe slug (e.g. "quark-bowl") or recipe UUID — both are returned by search_recipes
namestringName of the copy; Mealie appends a counter when omitted

set_recipe_image Set recipe image

Replaces a recipe's cover image.

ParameterTypeDescription
format *stringImage format, used for the upload filename, extension field and content type
image_base64 *stringThe image, base64-encoded, without a data: URI prefix
recipe *Recipe slug (e.g. "quark-bowl") or recipe UUID — both are returned by search_recipes

set_recipe_last_made Set last made

Records when a recipe was last cooked. Mealie shows this on the recipe and sorts by it.

ParameterTypeDescription
recipe *Recipe slug (e.g. "quark-bowl") or recipe UUID — both are returned by search_recipes
timestamp *stringWhen it was made, e.g. 2026-08-18 or 2026-08-18T19:30:00Z

delete_recipe Delete recipe

Deletes a recipe permanently, together with its comments, timeline and images. Requires confirmation: call once to receive a token, then again with that token.

ParameterTypeDescription
recipe *Recipe slug (e.g. "quark-bowl") or recipe UUID — both are returned by search_recipes
confirm_tokenstringConfirmation token from a previous call of this tool with the same arguments. Omit on the first call.

import_recipe_from_url Import recipe from URL

Has Mealie fetch a recipe page and save it as a new recipe. The fetch happens on the Mealie server, not here. Everything the page contains — name, description, ingredients, steps — ends up in the collection as written by whoever controls that site.

ParameterTypeDescription
url *stringAddress of the recipe to import
include_categoriesboolean
include_tagsbooleanAdopt the page's keywords as tags, default false

import_recipe_from_html_or_json Import recipe from HTML or JSON

Creates a recipe from HTML or schema.org recipe JSON supplied directly, so Mealie does not fetch the page. Useful for a page that needs a login, or one that import_recipe_from_url could not parse. It does not fetch the *page*, but it is not fetch-free: Mealie reads the image address out of the document and retrieves that. Every such address this server can find is checked before the document is handed over, and an internal one is refused — but a document can hide an address in ways a scan does not see, so do not paste one from a source you would not let Mealie make a request for.

ParameterTypeDescription
data *stringThe page HTML, or a schema.org Recipe JSON document

import_recipe_from_image Import recipe from image

Creates a recipe from a photo of one — a cookbook page, a handwritten card — by having Mealie run it through its configured AI provider. Requires an AI provider set up in Mealie; without one the call fails, and the setting itself is only visible to a group manager or admin.

ParameterTypeDescription
format *stringImage format, used for the upload filename and content type
image_base64 *stringThe image, base64-encoded, without a data: URI prefix
translate_languagestringTranslate the extracted recipe into this language, e.g. "de" or "German"

create_organizer Create a tag, category or tool

Creates a tag, category or recipe tool. Assigning one to a recipe with update_recipe already creates it on the fly — this tool is for defining one up front.

ParameterTypeDescription
kind *stringWhich organizer: "tag" (free-form labels), "category" (the primary classification, one recipe usually has few) or "tool" (equipment a recipe needs)
name *string

update_organizer Rename a tag, category or tool

Renames a tag, category or tool. Mealie regenerates the slug from the new name, so anything referring to the old slug stops matching. Requires confirmation: call once to receive a token, then again with that token.

ParameterTypeDescription
id *stringUUID from list_organizers
kind *stringWhich organizer: "tag" (free-form labels), "category" (the primary classification, one recipe usually has few) or "tool" (equipment a recipe needs)
name *stringThe new name
confirm_tokenstringConfirmation token from a previous call of this tool with the same arguments. Omit on the first call.

delete_organizer Delete a tag, category or tool

Deletes a tag, category or tool. The recipes themselves are kept, but they lose the assignment. Requires confirmation: call once to receive a token, then again with that token.

ParameterTypeDescription
id *stringUUID from list_organizers
kind *stringWhich organizer: "tag" (free-form labels), "category" (the primary classification, one recipe usually has few) or "tool" (equipment a recipe needs)
confirm_tokenstringConfirmation token from a previous call of this tool with the same arguments. Omit on the first call.

create_food Create food

Adds a food to the group vocabulary so ingredient lines can be matched against it.

ParameterTypeDescription
name *string
descriptionstring
label_idstringShopping-list label to file this food under
plural_namestring

create_unit Create unit

Adds a measurement unit to the group vocabulary.

ParameterTypeDescription
name *string
abbreviationstring
descriptionstring
fractionbooleanShow quantities as fractions (½ cup) rather than decimals
plural_namestring
use_abbreviationbooleanRender the abbreviation instead of the name

merge_foods Merge foods

Points every ingredient that uses one food at another one and deletes the source food. Requires confirmation: call once to receive a token, then again with that token.

ParameterTypeDescription
from_id *stringUUID of the food to merge away — this one is deleted
to_id *stringUUID of the food to keep — references end up here
confirm_tokenstringConfirmation token from a previous call of this tool with the same arguments. Omit on the first call.

merge_units Merge units

Points every ingredient that uses one unit at another one and deletes the source unit. Requires confirmation: call once to receive a token, then again with that token.

ParameterTypeDescription
from_id *stringUUID of the unit to merge away — this one is deleted
to_id *stringUUID of the unit to keep — references end up here
confirm_tokenstringConfirmation token from a previous call of this tool with the same arguments. Omit on the first call.

create_mealplan_entry Add to the meal plan

Puts a recipe or a free-text note on the meal plan for one day. Give either a recipe or a title, not both — Mealie stores a plan entry as one or the other.

ParameterTypeDescription
date *stringDay of the meal, YYYY-MM-DD
entry_type *stringWhich meal of the day this entry belongs to
recipeRecipe slug or UUID to plan
textstringAdditional note shown under the title
titlestringFree-text entry, for a meal that is not a stored recipe

create_random_meal Add a random meal

Lets Mealie pick a recipe for a day and slot, honouring the meal plan rules configured in the household.

ParameterTypeDescription
date *stringDay of the meal, YYYY-MM-DD
entry_type *stringWhich meal of the day this entry belongs to

update_mealplan_entry Change a meal plan entry

Moves an entry to another day or slot, or replaces the recipe behind it. Replacing the written title or note of an entry requires confirmation: call once to receive a token, then again with that token. Moving the entry or swapping the recipe does not.

ParameterTypeDescription
entry_id *integerPlan entry id from list_mealplans — an integer, not a UUID
confirm_tokenstringConfirmation token from a previous call of this tool with the same arguments. Omit on the first call.
datestring
entry_typestringWhich meal of the day this entry belongs to
recipeRecipe slug (e.g. "quark-bowl") or recipe UUID — both are returned by search_recipes
textstring
titlestring

delete_mealplan_entry Remove a meal plan entry

Removes one entry from the meal plan. The recipe itself is not touched. Requires confirmation: call once to receive a token, then again with that token.

ParameterTypeDescription
entry_id *integerPlan entry id from list_mealplans — an integer, not a UUID
confirm_tokenstringConfirmation token from a previous call of this tool with the same arguments. Omit on the first call.

create_shopping_list Create shopping list

Creates an empty shopping list in the household.

ParameterTypeDescription
name *string

delete_shopping_list Delete shopping list

Deletes a shopping list and everything on it. Requires confirmation: call once to receive a token, then again with that token.

ParameterTypeDescription
list_id *stringShopping list UUID, from list_shopping_lists
confirm_tokenstringConfirmation token from a previous call of this tool with the same arguments. Omit on the first call.

add_shopping_list_items Add items to a shopping list

Adds items to a shopping list as free text ("2 tbsp olive oil"). Mealie does not split these into food and unit automatically — run parse_ingredients first if that matters.

ParameterTypeDescription
items *arrayThe lines to add, one item each
list_id *stringShopping list UUID, from list_shopping_lists

update_shopping_list_items Tick off or change shopping list items

Changes items on a shopping list — most often ticking them off. Only the given fields are changed; the rest of each item is preserved. Ticking off and changing quantities is immediate; replacing the text of the items with note requires confirmation, because that text is overwritten on every item named and Mealie keeps no copy.

ParameterTypeDescription
item_ids *arrayItem UUIDs from get_shopping_list
list_id *stringShopping list UUID, from list_shopping_lists
checkedbooleanTick the items off (true) or put them back (false)
confirm_tokenstringConfirmation token from a previous call of this tool with the same arguments. Omit on the first call.
notestringReplace the text of every listed item
quantitynumberSet the quantity of every listed item

delete_shopping_list_items Remove shopping list items

Removes items from a shopping list for good. To merely tick something off, use update_shopping_list_items with checked=true. Requires confirmation: call once to receive a token, then again with that token.

ParameterTypeDescription
item_ids *arrayItem UUIDs from get_shopping_list
confirm_tokenstringConfirmation token from a previous call of this tool with the same arguments. Omit on the first call.

add_recipe_to_shopping_list Add a recipe to a shopping list

Adds a recipe's ingredients to a shopping list, merging them with what is already there. Mealie remembers the recipe on the list, so remove_recipe_from_shopping_list can take exactly these ingredients back off again.

ParameterTypeDescription
list_id *stringShopping list UUID, from list_shopping_lists
recipe *Recipe slug (e.g. "quark-bowl") or recipe UUID — both are returned by search_recipes
servings_multipliernumberScale the ingredient quantities, default 1

remove_recipe_from_shopping_list Remove a recipe from a shopping list

Takes a recipe's ingredients back off a shopping list. Items that were also needed by another recipe on the list stay, with their quantity reduced.

ParameterTypeDescription
list_id *stringShopping list UUID, from list_shopping_lists
recipe *Recipe slug (e.g. "quark-bowl") or recipe UUID — both are returned by search_recipes
servings_multipliernumberHow much of the recipe to remove, default 1

create_cookbook Create cookbook

Creates a cookbook — a named, saved view of the recipe collection. Without a filter it matches every recipe; the filter itself is written in Mealie's own query language and is easiest to build in the web UI. A private cookbook is created straight away; is_public requires confirmation, because it is a publishing step.

ParameterTypeDescription
name *string
confirm_tokenstringConfirmation token from a previous call of this tool with the same arguments. Omit on the first call.
descriptionstring
is_publicbooleanMake the cookbook readable without a login, default false. Requires confirmation: call once to receive a token, then again with that token.
query_filterstringMealie query filter, e.g. tags.name IN ["Dessert"]. Passed through verbatim; an invalid expression is rejected by Mealie with a 422.

delete_cookbook Delete cookbook

Deletes a cookbook. The recipes it matched are not touched — a cookbook is only a saved filter. Requires confirmation: call once to receive a token, then again with that token.

ParameterTypeDescription
cookbook_id *stringCookbook UUID, from list_cookbooks
confirm_tokenstringConfirmation token from a previous call of this tool with the same arguments. Omit on the first call.

create_share_token Create a public share link

Creates a link that lets anyone read one recipe without logging in. Requires confirmation: call once to receive a token, then again with that token.

ParameterTypeDescription
recipe *Recipe slug (e.g. "quark-bowl") or recipe UUID — both are returned by search_recipes
confirm_tokenstringConfirmation token from a previous call of this tool with the same arguments. Omit on the first call.
expires_atstringWhen the link stops working. Omitted, it never expires — prefer setting a date.

delete_share_token Revoke a public share link

Revokes a share link, so the recipe is no longer readable through it. Asks a person first; where the client cannot show a dialog, call once to receive a token and again with it.

ParameterTypeDescription
token_id *stringShare token UUID, from list_share_tokens
confirm_tokenstringConfirmation token from a previous call of this tool with the same arguments. Omit on the first call.

set_recipe_rating Rate a recipe

Sets the personal rating of a recipe and/or marks it as a favourite. Ratings in Mealie are per user, not per recipe.

ParameterTypeDescription
recipe *Recipe slug (e.g. "quark-bowl") or recipe UUID — both are returned by search_recipes
is_favoriteboolean
ratingnumberStars from 0 to 5; 0 clears the rating

add_recipe_comment Comment on a recipe

Adds a comment to a recipe. Comments are visible to everyone in the group and are attributed to the user the API token belongs to.

ParameterTypeDescription
recipe *Recipe slug (e.g. "quark-bowl") or recipe UUID — both are returned by search_recipes
text *string

delete_recipe_comment Delete a recipe comment

Deletes a comment. Requires confirmation: call once to receive a token, then again with that token.

ParameterTypeDescription
comment_id *stringComment UUID, from list_recipe_comments
confirm_tokenstringConfirmation token from a previous call of this tool with the same arguments. Omit on the first call.

create_timeline_event Add a timeline entry

Adds an entry to a recipe's timeline — typically a note about having cooked it and how it turned out. Pair it with set_recipe_last_made, which is what the recipe view sorts on.

ParameterTypeDescription
recipe *Recipe slug (e.g. "quark-bowl") or recipe UUID — both are returned by search_recipes
subject *stringShort headline, e.g. "Cooked it"
messagestringThe note itself
timestampstringWhen it happened; defaults to now