mcp-recipes

v4.1.0
io.github.smeet666/mcp-recipes Checked 4 days ago Published 1 month ago

Search six recipe sites at once, in French, English and Spanish, and scale quantities.

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

search_recipes Search every recipe source at once

Search every recipe source this server reads, at the same time, for a dish or an ingredient, and get one merged list. Each row carries the id get_recipe takes, and that id names the source it came from, so nothing has to be guessed afterwards. The sources are written in different languages and count their own results differently, so 'per_source' says what each one answered, what its own number means, and names any that failed. A short list is never evidence of what exists. Not every row opens onto a recipe. Some sources file pages about an ingredient beside the recipes using it, and some publi…

ParameterTypeDescription
query *stringA dish or an ingredient, in any of the languages the sources publish in.
fan_outbooleanWhether a question may also be sent in shorter wordings derived from it. On, because these indexes answer the words they are handed: a question written as a sentence comes back empty from a corpus hol…
limit_per_sourceintegerRows to take from each source, so one source cannot fill the whole list.
sourcesarraySources to ask, by id. Left out, they are all asked, which is the point of this tool. The ids are the ones 'per_source' reports.

get_recipe Read one recipe, optionally rescaled

Read one recipe in full: its ingredients, its steps, what it yields, and whatever times, rating and nutrition its source publishes. 'id' must come from search_recipes. It names the source, so this reads the right one without guessing; an identifier no source would have minted is refused, because sending it anywhere would answer about the wrong dish. Pass 'servings' to rescale. Quantities land where a kitchen can follow them: an egg stays whole, anything that pours or cuts can halve, a small measurement moves to a smaller unit before it is rounded, and anything unmultipliable comes back flagged…

ParameterTypeDescription
id *stringFrom search_recipes, such as 'marmiton:44078', 'pequerecetas:paella-de-marisco' or 'cookbook:Cookbook:Carbonara'. Two sources address a recipe by a bare number, so spell an id with its source.
max_gatheredintegerRecipes and headings to return from an address that gathers recipes. The answer says how many the article holds.
max_step_charsintegerCharacters kept per step. Raise it only if a step was cut mid-sentence.
max_stepsintegerSteps to return. The answer says how many more there are.
sectionsarrayWhich parts to return. A full recipe is a lot of text, so this defaults to two.
servingsintegerRescale to this many. Left out, the quantities come back as published.

scale_ingredients Scale an ingredient list, in any language it reads

Multiply a list of ingredient lines, in French, in English, in Spanish, or in a list holding more than one of them. Give either 'factor', or 'from_servings' and 'to_servings' and the factor is worked out from them. Quantities land where a kitchen can follow them: an egg stays whole because half of one is not something a cook takes out of the shell, while anything that pours, weighs or cuts can halve, a spoonful shrinks into the smaller spoon before it is rounded, and a pinch keeps whatever size a hand gives it while its count is multiplied. Every line comes back with 'scaling': 'scaled' when t…

ParameterTypeDescription
ingredients *arrayThe lines as written, one ingredient each, such as '200 g de farine' or '3 eggs'.
factornumberWhat to multiply by. Give exactly one of: 'factor', or both 'from_servings' and 'to_servings'.
from_servingsintegerWhat the list serves now. Give it with 'to_servings', and without 'factor'.
languagestring'auto' reads each line on its own, which is what a list holding more than one language needs. Name a language to read every line that way.
to_servingsintegerWhat it should serve. Give it with 'from_servings', and without 'factor'.

compare_recipes One dish, as each source writes it

Take a dish and show how each source writes it, side by side. Each source's closest match is read in full, and all of them can be rescaled to the same number of servings so the ingredient lists stand comparison. The answer states what differs and leaves it there: the quantities each asks for, what each measures in, what each yields, and which fields each source publishes at all. No version is ranked above another. Some sources carry reader ratings and some have no author and no rating by nature, so there is no score they share. When only one source answers, the answer names that source and sho…

ParameterTypeDescription
dish *stringThe dish to compare, in any of the languages the sources publish in.
max_step_charsintegerCharacters kept per step. Raise it only if a step was cut mid-sentence.
max_stepsintegerSteps to return per version.
sectionsarrayWhich parts of each version to return. Several full recipes is a lot of text.
servingsintegerRescale every version to this many, which is what makes the lists comparable.
sourcesarraySources to compare, by id. Left out, every source is read, which is the point of this tool. Name two or three to put particular traditions side by side. The ids are the ones 'per_source' reports.