mcp-bbc-goodfood
v1.2.0Search BBC Good Food recipes, read one, and scale its ingredients.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_filters List the ways a search can be narrowed
List the axes a recipe search can be narrowed along on BBC Good Food, with the values each one takes and how many recipes carry them. Pass 'query' to measure the counts inside one search, or leave it out for the site's whole listing. Read this before narrowing a search: the site accepts any value on a facet and answers one it does not know with a total of zero, so a guessed spelling comes back as a confident absence. The values listed are an excerpt of the most frequent ones, and the site accepts others that are not shown.
| Parameter | Type | Description |
|---|---|---|
query | string | A search to measure the counts inside. The site counts its facets over the rows a search returns, so a count without a query describes the whole listing instead. |
search_recipes Search recipes
Search recipes on BBC Good Food and return a listing. Narrow it with 'diet', 'cuisine', 'meal_type', 'difficulty' or a bound such as 'max_total_minutes'; call list_filters first for the values each one takes, since the site answers a value it does not know with a count of zero. The site ranks rather than filters: it answers a term it holds nothing for with rows all the same, so read the titles rather than trusting the count. Each row carries the page to read the recipe on.
| Parameter | Type | Description |
|---|---|---|
query * | string | A dish, an ingredient, a technique. |
cuisine | string | A value list_filters publishes. |
diet | string | A value list_filters publishes. |
difficulty | string | A value list_filters publishes. |
exclude_premium | boolean | Drop the rows that sit behind the site's subscription. The site offers no such restriction, so the rows are removed from the page after it arrives: a page comes back shorter than the limit asked for,… |
limit | integer | Rows to return. Default 30. |
max_calories | integer | Per serving. |
max_total_minutes | integer | Whole recipe, minutes. |
meal_type | string | A value list_filters publishes. |
min_rating | number | At least this many stars, 1 to 5. |
min_servings | integer | At least this many servings. |
page | integer | Which page of rows. Default 1. |
sort | string | How the site orders the rows. Default 'relevant'. |
get_recipe Read a recipe
Read one recipe on BBC Good Food: its ingredients, its steps, its times, its rating and its nutrition. Pass the 'id' a search_recipes row carries, which is the page's own path. A recipe behind the site's subscription comes back with everything except its ingredients and steps, and says so: its page on the site is where a subscriber reads it. The site writes many of its recipes twice, once for its own readers and once restated for readers in the United States, and 'unit_system' chooses which of the two to read.
| Parameter | Type | Description |
|---|---|---|
id * | string | The page's own path, as a search_recipes row carries it. |
servings | integer | Put the ingredients to this many people. Quantities are then recomputed by this server, not published by the site, and each line says so under 'scaling'. |
unit_system | string | Which of the site's own two renditions to read: 'metric' as it writes for its own readers, 'us' as it restates for readers in the United States. Both are the site's words. A recipe it restated nowhere… |
scale_ingredients Scale a list of ingredients
Put a list of ingredient lines to a different number of people. Pass 'factor', or else the pair 'from_servings' and 'to_servings'. Quantities are recomputed by this server and not by the site, and every line says under 'scaling' whether the arithmetic landed exactly, whether the figure was moved to stay usable in a kitchen, or whether the line carried nothing to multiply.
| Parameter | Type | Description |
|---|---|---|
ingredients * | array | The lines to scale, as a recipe writes them, such as '200g plain flour'. |
factor | number | What to multiply every quantity by. Pass this or the servings pair, never both. |
from_servings | integer | How many people the list feeds as written. |
to_servings | integer | How many people it should feed. |