Purpose
mcp-wikibooks-cookbook is an MCP (Model Context Protocol) server used to connect chat clients with the English Wikibooks Cookbook. The Cookbook is the recipe collection of the Wikimedia project Wikibooks, containing tens of thousands of recipes publicly written and maintained by the community. Each recipe includes ingredients, required equipment, steps, tips and variations added by authors, and the categories it belongs to (cuisine, dish type, main ingredients). Pages are published under Creative Commons Attribution-ShareAlike 4.0.
Main capabilities
The server provides the following capabilities:
- Search recipes: You can search across the full text of pages, or search only titles. Returned rows include id (the page key used by get_recipe), title, url, image_url, description (the short description the wiki keeps for the page), and excerpt (the matching snippet with highlight markup removed). The latter three return null when the search does not provide them. total_available is always null because the search interface does not publish the total count or pagination, and result_count only counts the rows returned by this call.
- Read a recipe (get_recipe): When servings is passed, ingredient amounts can be converted. Returns title, url, ingredients, equipment, steps, tips (notes and variations published on the page), prep_minutes, cook_minutes, total_minutes, time_text (the page's own wording), time_phases, category, and categories. Numbers not provided by the page are null. id indicates the page actually read; when a redirect occurs it differs from the requested key, and in that case redirected_from indicates the key that led to that page. yield describes the recipe's original number of servings and the converted number of servings, and each ingredient has scaling, with values scaled, rounded, or unscaled.
- Ingredient scaling (scale_ingredients): Performs the same arithmetic on any list of ingredient lines without making a request to the wiki. You can pass factor, or pass from_servings combined with to_servings. Returns the factor used, the converted ingredients in get_recipe format, as well as scaled_count, rounded_count, and unscaled_count.
- List recipes by category: list recipes by category archived by Cookbook, parameters can be combined, and the returned result will explain the search constructed from these parameters. Returns the rows of search_recipes, with query indicating the search the server constructed from the parameters; each parameter is echoed back as-is, or null if not provided.
About quantity conversion: quantities are presented in a unit suited to them, so after conversion the same line may use a different unit than the original recipe; for example, 200 g multiplied by twenty is displayed as 4 kg. How finely an ingredient can be divided depends on its nature: bread can be cut into two, three, or four portions, while eggs cannot be divided. Quantities falling between the two are rounded, so the converted recipe deviates slightly from the original ratio; that line will carry rounded, and its description will indicate the handling applied. These numbers are calculated by this server itself, and when displayed it should be stated that they were recalculated. A recipe whose page does not state the number of servings cannot be converted to a specified number of people, and the returned result will explain this.
Usage
There are two installation paths:
- One-click install: suitable for Claude Desktop, Cursor, and any client using the standard configuration format. Requires Node 24 or later, and no environment variables need to be set. Use -i in the command to keep standard input open (the protocol is transmitted through it), and do not use -t, because a TTY rewrites the data stream. The container needs outbound HTTPS to api.wikimedia.org; beyond that, no volumes, ports, or credentials are needed.
- Bundle without npm: download mcp-wikibooks-cookbook-2.1.0.mcpb from the latest release and open it; clients that support MCP bundles will install it automatically, with no npm and no configuration file editing. The bundle includes its dependencies, and nothing is downloaded during installation.
Using as a library: the layer that reads the wiki is released separately, with its own request pacing, caching, and error handling, and does not include the protocol. search and getRecipe each return { data, cached }, and throw an error with one of six error codes; between two requests, theThe minimum interval also applies here.
On the configuration side, every variable is optional and is set in the env block of the client configuration. Out-of-range values fall back to the defaults, with the reason written to stderr. Every failure carries one of six error codes, a message, and, when helpful, a hint indicating the next step.
You can ask things like:
- "Find a carbonara recipe in the Cookbook."
- "Read it out for six servings instead of four."
- "What Thai soups are in this collection?"
- "Which recipes are lentil-based?"
- "Multiply this ingredient list by 2.5."
The usual path goes from search to read: result rows carry an id (the page key), and get_recipe takes that key.
Request pacing and attribution
Requests are issued one at a time, at least one second apart, and regardless of how the server is configured, a half-second lower bound always applies. The User-Agent always ends with a project identifier and an address where a person can be reached. Read requests go to api.wikimedia.org, the host Wikimedia documents and maintains for developers. Every result carries the address of the page it was read from and the license under which that page is published.
Licensing and attribution
Cookbook pages are published under Creative Commons Attribution-ShareAlike 4.0. Reproducing a recipe requires attributing Wikibooks and the source page, and sharing anything built on it under the same license. get_recipe returns both the license and the page url, so the answer carries its attribution with it.
When to use it and limitations
It is suited to situations that require retrieving recipes from an open recipe library and adjusting ingredient amounts for a given number of servings. Limitations include: the search interface provides no total count and no pagination; recipes whose pages do not state a serving count cannot be converted to a specified number of servings; and rounding in conversions makes results deviate slightly from the original ratios. This project is unofficial and is not affiliated with Wikimedia or the Wikibooks community. The server does not collect user information and does not send anything to the authors; it runs on the user's machine, contacts only api.wikimedia.org, keeps answers in memory while running, and does not write to disk. PRIVACY.md explains what requests carry and which settings change that. Tests run against generated fixtures and make no network requests; the live test suite npm run test:live makes one request per route, and runs against the service itself every night.