What it does
Search the Wikibooks Cookbook, read a recipe and rescale it to any number of servings.
- Connects 在你的电脑上运行
- Account or key No key needed
- Category 游戏、体育、美食与学习
为什么排在这里
列表按使用分(满分 100)排序,由以下部分组成
| 热度 | 0/80 | GitHub 星标或每周下载量:较大的计 60,较小的计 20 |
|---|---|---|
| 新鲜度 | 12/12 | 30 天内有发布或代码更新得满分 |
| 仍在响应 | 0/8 | 上次检查时云端端点有响应 |
| 使用分 | 12/100 |
质量: 基础检查通过 3/3 项(仅展示,不用于排序) · 上升势头: 暂无数据 (只用于“上升中”标签)
安装
选择你使用的 AI 应用,然后复制设置。
用一句话让 AI 帮你安装
请帮我安装 MCP Wikibooks Cookbook。按照 https://mcp.popnx.com/i/smeet666-mcp-wikibooks-cookbook.md 操作,先把命令给我看,等我同意后再运行。粘贴到能在你电脑上工作的 AI(如 Claude Code、Cursor)。它会读取我们的步骤,先给你看命令,等你同意。无需密钥,无需注册。 · 查看 AI 会读取的全文
通过 3/3 项检查 · 在你的电脑上运行 · ✓ 命令已检查 2026年11月14日
第一步:你用哪个 AI?
选择你用的应用,步骤会显示在下方。
可连接 Claude,但需要先准备
不需要密钥,不用安装程序 · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
双击文件,然后在电脑版 Claude 应用中点击 Install
试一试
用 MCP Wikibooks Cookbook 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude 说正在使用 MCP Wikibooks Cookbook,或回答中出现 MCP Wikibooks Cookbook 的工具名称,就表示连接成功
7 项可选设置(不填也能用)
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
WB_USER_AGENT标识您自己的客户端。本项目的标识符会继续附加在后面,以便 Wikimedia 始终能够联系到真人。查看英文原文
Identify your own client. This project's identifier stays appended, so Wikimedia can always reach a human.WB_MIN_INTERVAL_MS请求之间的最短间隔(毫秒)。默认 1000,下限 500,上限 60000。查看英文原文
Minimum milliseconds between requests. Default 1000, floor 500, ceiling 60000.WB_TIMEOUT_MS单次请求的超时时间,单位为毫秒。默认值为 20000。查看英文原文
Deadline for one request, in milliseconds. Default 20000.WB_MAX_RETRIES在网关繁忙或受速率限制时重试。默认值为 3。查看英文原文
Retries on a busy or rate-limited gateway. Default 3.WB_CACHE_TTL_MS内存缓存的存活时间,单位为毫秒。默认值为 900000。设为 0 可关闭。查看英文原文
In-memory cache lifetime, in milliseconds. Default 900000. Set 0 to turn it off.WB_CACHE_MAX_ENTRIES内存缓存大小。默认值为 200。查看英文原文
In-memory cache size. Default 200.WB_LOG_LEVELsilent、error、info 或 debug。默认值为 error。日志输出到 stderr。查看英文原文
silent, error, info or debug. Default error. Logs go to stderr.
说明为自动翻译,变量名保持原样;不确定时请查看原文。
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
ChatGPT 暂时无法连接 MCP Wikibooks Cookbook
MCP Wikibooks Cookbook 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器
你可以改用这些方式
A · 使用能连接 MCP Wikibooks Cookbook 的应用
- 不需要密钥,不用安装程序 · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
- 需要先在电脑上安装 Node.js(只需一次)
- 需要先在电脑上安装 Node.js(只需一次)
- 需要先在电脑上安装 Node.js(只需一次)
B · 游戏、体育、美食与学习 类中能连接 ChatGPT 的其他服务器
从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的
- ShipSwift✓ ChatGPT
- Anime Garden✓ ChatGPT
- Summer Engine✓ ChatGPT
可连接 Claude Code,但需要先准备
需要先在电脑上安装 Node.js(只需一次)
让 AI 帮你安装
把这段话复制到 Claude Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Claude Code 安装 MCP server MCP Wikibooks Cookbook,按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):claude mcp add --scope user wikibooks-cookbook -- npx -y mcp-wikibooks-cookbook 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) 不需要密钥。5) 按约定执行,然后确认 MCP Wikibooks Cookbook 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
安装 Node.js(如果还没有)
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
node -v- 显示版本号(例如 v26.13.1)= 已安装,可跳过这一步
- 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
怎么打开终端
Mac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令
装好后关掉终端再打开,重新运行同一条命令,应显示版本号:
node -v安装一次,所有需要 Node.js 的工具都能用
打开终端
Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell
粘贴这条命令并按 Enter
claude mcp add --scope user wikibooks-cookbook -- npx -y mcp-wikibooks-cookbook在 Claude Code 中输入 /mcp
应能看到 MCP Wikibooks Cookbook 在列表中并显示已连接
试一试
用 MCP Wikibooks Cookbook 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude Code 说正在使用 MCP Wikibooks Cookbook,或回答中出现 MCP Wikibooks Cookbook 的工具名称,就表示连接成功
7 项可选设置(不填也能用)
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
WB_USER_AGENT标识您自己的客户端。本项目的标识符会继续附加在后面,以便 Wikimedia 始终能够联系到真人。查看英文原文
Identify your own client. This project's identifier stays appended, so Wikimedia can always reach a human.WB_MIN_INTERVAL_MS请求之间的最短间隔(毫秒)。默认 1000,下限 500,上限 60000。查看英文原文
Minimum milliseconds between requests. Default 1000, floor 500, ceiling 60000.WB_TIMEOUT_MS单次请求的超时时间,单位为毫秒。默认值为 20000。查看英文原文
Deadline for one request, in milliseconds. Default 20000.WB_MAX_RETRIES在网关繁忙或受速率限制时重试。默认值为 3。查看英文原文
Retries on a busy or rate-limited gateway. Default 3.WB_CACHE_TTL_MS内存缓存的存活时间,单位为毫秒。默认值为 900000。设为 0 可关闭。查看英文原文
In-memory cache lifetime, in milliseconds. Default 900000. Set 0 to turn it off.WB_CACHE_MAX_ENTRIES内存缓存大小。默认值为 200。查看英文原文
In-memory cache size. Default 200.WB_LOG_LEVELsilent、error、info 或 debug。默认值为 error。日志输出到 stderr。查看英文原文
silent, error, info or debug. Default error. Logs go to stderr.
说明为自动翻译,变量名保持原样;不确定时请查看原文。
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
可连接 Cursor,但需要先准备
需要先在电脑上安装 Node.js(只需一次)
让 AI 帮你安装
把这段话复制到 Cursor 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Cursor 安装 MCP server MCP Wikibooks Cookbook,按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "mcpServers": { "wikibooks-cookbook": { "command": "npx", "args": [ "-y", "mcp-wikibooks-cookbook" ] } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) 不需要密钥。5) 按约定执行,然后确认 MCP Wikibooks Cookbook 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
安装 Node.js(如果还没有)
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
node -v- 显示版本号(例如 v26.13.1)= 已安装,可跳过这一步
- 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
怎么打开终端
Mac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令
装好后关掉终端再打开,重新运行同一条命令,应显示版本号:
node -v安装一次,所有需要 Node.js 的工具都能用
在 Cursor 中以 Agent 模式打开 AI 聊天
试一试
用 MCP Wikibooks Cookbook 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Cursor 说正在使用 MCP Wikibooks Cookbook,或回答中出现 MCP Wikibooks Cookbook 的工具名称,就表示连接成功
7 项可选设置(不填也能用)
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
WB_USER_AGENT标识您自己的客户端。本项目的标识符会继续附加在后面,以便 Wikimedia 始终能够联系到真人。查看英文原文
Identify your own client. This project's identifier stays appended, so Wikimedia can always reach a human.WB_MIN_INTERVAL_MS请求之间的最短间隔(毫秒)。默认 1000,下限 500,上限 60000。查看英文原文
Minimum milliseconds between requests. Default 1000, floor 500, ceiling 60000.WB_TIMEOUT_MS单次请求的超时时间,单位为毫秒。默认值为 20000。查看英文原文
Deadline for one request, in milliseconds. Default 20000.WB_MAX_RETRIES在网关繁忙或受速率限制时重试。默认值为 3。查看英文原文
Retries on a busy or rate-limited gateway. Default 3.WB_CACHE_TTL_MS内存缓存的存活时间,单位为毫秒。默认值为 900000。设为 0 可关闭。查看英文原文
In-memory cache lifetime, in milliseconds. Default 900000. Set 0 to turn it off.WB_CACHE_MAX_ENTRIES内存缓存大小。默认值为 200。查看英文原文
In-memory cache size. Default 200.WB_LOG_LEVELsilent、error、info 或 debug。默认值为 error。日志输出到 stderr。查看英文原文
silent, error, info or debug. Default error. Logs go to stderr.
说明为自动翻译,变量名保持原样;不确定时请查看原文。
菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同
可连接 VS Code,但需要先准备
需要先在电脑上安装 Node.js(只需一次)
让 AI 帮你安装
把这段话复制到 VS Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 VS Code 安装 MCP server MCP Wikibooks Cookbook,按顺序:1) 用 node -v 检查是否有 Node.js。没有的话,请让我从 https://nodejs.org/en/download 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "servers": { "wikibooks-cookbook": { "type": "stdio", "command": "npx", "args": [ "-y", "mcp-wikibooks-cookbook" ] } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) 不需要密钥。5) 按约定执行,然后确认 MCP Wikibooks Cookbook 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
安装 Node.js(如果还没有)
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
node -v- 显示版本号(例如 v26.13.1)= 已安装,可跳过这一步
- 显示 "command not found"(Windows 显示 "is not recognized")= 还没安装,或刚装好但需要关掉终端再重新打开
怎么打开终端
Mac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: 打开官方下载页,选择 LTS 版本和点选式安装程序:Mac 用 .pkg · Windows 用 .msi。双击后一路下一步即可,不需要 curl 命令
装好后关掉终端再打开,重新运行同一条命令,应显示版本号:
node -v安装一次,所有需要 Node.js 的工具都能用
在 VS Code 中以 Agent 模式打开 AI 聊天
试一试
用 MCP Wikibooks Cookbook 告诉我你能帮我做什么,然后做一件给我看✓ 如果 VS Code 说正在使用 MCP Wikibooks Cookbook,或回答中出现 MCP Wikibooks Cookbook 的工具名称,就表示连接成功
7 项可选设置(不填也能用)
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
WB_USER_AGENT标识您自己的客户端。本项目的标识符会继续附加在后面,以便 Wikimedia 始终能够联系到真人。查看英文原文
Identify your own client. This project's identifier stays appended, so Wikimedia can always reach a human.WB_MIN_INTERVAL_MS请求之间的最短间隔(毫秒)。默认 1000,下限 500,上限 60000。查看英文原文
Minimum milliseconds between requests. Default 1000, floor 500, ceiling 60000.WB_TIMEOUT_MS单次请求的超时时间,单位为毫秒。默认值为 20000。查看英文原文
Deadline for one request, in milliseconds. Default 20000.WB_MAX_RETRIES在网关繁忙或受速率限制时重试。默认值为 3。查看英文原文
Retries on a busy or rate-limited gateway. Default 3.WB_CACHE_TTL_MS内存缓存的存活时间,单位为毫秒。默认值为 900000。设为 0 可关闭。查看英文原文
In-memory cache lifetime, in milliseconds. Default 900000. Set 0 to turn it off.WB_CACHE_MAX_ENTRIES内存缓存大小。默认值为 200。查看英文原文
In-memory cache size. Default 200.WB_LOG_LEVELsilent、error、info 或 debug。默认值为 error。日志输出到 stderr。查看英文原文
silent, error, info or debug. Default error. Logs go to stderr.
说明为自动翻译,变量名保持原样;不确定时请查看原文。
菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同
开发者专用:终端命令和 JSON 设置
安装在电脑上
Claude Code
claude mcp add --scope user wikibooks-cookbook -- npx -y mcp-wikibooks-cookbookClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"wikibooks-cookbook": {
"command": "npx",
"args": [
"-y",
"mcp-wikibooks-cookbook"
]
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"wikibooks-cookbook": {
"command": "npx",
"args": [
"-y",
"mcp-wikibooks-cookbook"
]
}
}
}VS Code (mcp.json)
{
"servers": {
"wikibooks-cookbook": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-wikibooks-cookbook"
]
}
}
}需要你填写的值
WB_USER_AGENTenv标识您自己的客户端。本项目的标识符会继续附加在后面,以便 Wikimedia 始终能够联系到真人。查看英文原文
Identify your own client. This project's identifier stays appended, so Wikimedia can always reach a human.WB_MIN_INTERVAL_MSenv请求之间的最短间隔(毫秒)。默认 1000,下限 500,上限 60000。查看英文原文
Minimum milliseconds between requests. Default 1000, floor 500, ceiling 60000.WB_TIMEOUT_MSenv单次请求的超时时间,单位为毫秒。默认值为 20000。查看英文原文
Deadline for one request, in milliseconds. Default 20000.WB_MAX_RETRIESenv在网关繁忙或受速率限制时重试。默认值为 3。查看英文原文
Retries on a busy or rate-limited gateway. Default 3.WB_CACHE_TTL_MSenv内存缓存的存活时间,单位为毫秒。默认值为 900000。设为 0 可关闭。查看英文原文
In-memory cache lifetime, in milliseconds. Default 900000. Set 0 to turn it off.WB_CACHE_MAX_ENTRIESenv内存缓存大小。默认值为 200。查看英文原文
In-memory cache size. Default 200.WB_LOG_LEVELenvsilent、error、info 或 debug。默认值为 error。日志输出到 stderr。查看英文原文
silent, error, info or debug. Default error. Logs go to stderr.
说明为自动翻译,变量名保持原样;不确定时请查看原文。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
一览
哪些应用可以使用它
依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。
在你的电脑上运行,适用于
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月19日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 smeet666 验证,该账户拥有此仓库
- ✓ 通过
仍在维护
代码最后更新于今天
- ✓ 通过
有许可证
使用 MIT
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
已公开的漏洞(OSV.dev)
OSV.dev 中没有 mcp-wikibooks-cookbook@2.2.0 的记录
只检查这个版本的包本身,不包括所有依赖 · 检查于 2026年11月16日
作者:申请重新检查或报告信息错误
给作者:在 README 中加徽章
如果你是作者,可把这段代码贴到 README。徽章会链接回本页。
[](https://mcp.popnx.com/en/servers/smeet666-mcp-wikibooks-cookbook)讨论
提问、分享技巧或报告无法使用。按“有帮助”数量排序。
用户评价
还没有评价
与“游戏、体育、美食与学习”中的其他服务器比较i
- 星标数多于此分类中其他 1619 个服务器的 0%
- 发布到注册中心的时间比此分类中其他 1619 个服务器的 56% 更新
- 基础检查结果等于或优于此分类中其他 1619 个服务器的 99%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
MCP Wikibooks Cookbook 安全吗?
它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于今天,最新版本(2.2.0)于21天前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js, MCPB。
有什么可以替代它?
同一分类中有:Anime Garden, WilmAI, Lumify Sports Intelligence, Savecraft, GoodWatch
功能相近的其他选择
同一分类、其他作者、命令已通过检查。官方的排在前面,再按星标排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
WilmAI
Finland's Wilma school system for parents and students: schedule, homework, exams and messages.
Lumify Sports Intelligence
Schedules, scores, odds, splits & explainable AI bet confidence — 8+ sports, free instant key.
Savecraft
Savecraft serves real save game data and expert game knowledge to AI assistants.
GoodWatch
Find movies and TV shows, track watches, and get suggestions based on your taste.
| 本项 MCP Wikibooks Cookbook | Anime Garden | WilmAI | Lumify Sports Intelligence | Savecraft | GoodWatch | |
|---|---|---|---|---|---|---|
| 运行位置 | 需要安装在电脑上 | 在云端运行,无需安装 | 需要安装在电脑上 | 在云端运行,无需安装 | 在云端运行,无需安装 | 在云端运行,无需安装 |
| 需要密钥 | 否 | 否 | 否 | 是 | 否 | 否 |
| 可在 Claude 中按 + 添加 | 否 | 否 | 否 | 否 | 否 | 否 |
| 基础检查 | 3/3 | 4/4 | 3/3 | 4/4 | 3/4 | 4/4 |
| 许可证 | MIT | AGPL-3.0 | MIT | MIT | Apache-2.0 | MIT |
| 价格 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 |
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
mcp-wikibooks-cookbook
The Cookbook is the recipe collection of the English Wikibooks, a Wikimedia project. Thousands of recipes are written and maintained there in the open, each with its ingredients, the equipment it calls for, its steps, the tips and variations its authors added, and the categories it files itself under: a cuisine, a kind of dish, a main ingredient. The pages are published under Creative Commons Attribution-ShareAlike 4.0.
This server connects a chat client to that collection. You can search the recipes by dish or by ingredient, list them by cuisine, kind of dish or main ingredient, read one with its ingredients rescaled to the number of people at your table, and rescale any ingredient list of your own. It needs no API key and no account.
_Version française_
Install
One-click install
Claude Code
claude mcp add wikibooks-cookbook -- npx -y mcp-wikibooks-cookbook
Claude Desktop, Cursor, and any client using the standard config format
{
"mcpServers": { "wikibooks-cookbook": { "command": "npx", "args": ["-y", "mcp-wikibooks-cookbook"] } } }
Node 24 or later is required, and no environment variable has to be set.
With Docker
{
"mcpServers": { "wikibooks-cookbook": { "command": "docker", "args": ["run", "-i", "--rm", "ghcr.io/smeet666/mcp-wikibooks-cookbook:2.2.0"] } } }
-i keeps stdin open, which is where the protocol travels, and -t is left out because a TTY rewrites the stream. The container needs outbound HTTPS to api.wikimedia.org, and nothing else: no volume, no port, no credential.
Bundle, without npm
Download mcp-wikibooks-cookbook-2.2.0.mcpb from the latest release and open it. A client that supports MCP bundles installs it on its own, with no npm and no configuration file to edit. The bundle carries its dependencies, so nothing is fetched at install time.
What you can ask
- "Find me a carbonara recipe in the Cookbook."
- "Read it for six people instead of four."
- "What Thai soups does the collection hold?"
- "Which recipes are built on lentils?"
- "Scale this ingredient list by 2.5 for me."
The ordinary path runs from a search to a reading: a row carries an id, the page key, and get_recipe takes that key.
Tools
| Tool | What it does |
|---|---|
search_recipes | Finds recipes by dish or by ingredient. |
get_recipe | Reads one recipe, rescaled to a number of servings on request. |
scale_ingredients | Rescales any ingredient list, with no request to the wiki. |
list_recipes | Lists recipes by cuisine, kind of dish or main ingredient. |
search_recipes
Searches the Cookbook, either across the whole text of its pages or across their titles alone.
| Argument | Type | Required | What it does |
|---|---|---|---|
query | string, 1 to 300 characters | yes | A dish, such as carbonara, or an ingredient, such as guanciale. |
search | text or title, default text | no | text reads the whole page; title matches the page name alone. |
limit | integer, 1 to 50, default 10 | no | Rows to serve. |
In return: rows carrying id, the page key get_recipe takes; title; url; image_url; description, the short gloss the wiki keeps for a page; and excerpt, the matching passage with the highlight markup taken off. Each of the last three is null where the search offered none. total_available is always null: the search route publishes no total and no paging, so result_count counts the rows this call returned.
get_recipe
Reads one recipe, and rescales its ingredients when a number of servings is given.
| Argument | Type | Required | What it does |
|---|---|---|---|
id | string, 1 to 300 characters | yes | The page key, such as Cookbook:Spaghetti_alla_Carbonara. |
servings | integer, 1 to 500 | no | Rescale the ingredients to this many servings. |
max_description_chars | integer, 100 to 20000, default 1200 | no | How much of the page's prose to serve. |
In return: title, url, ingredients, equipment, steps, tips for the notes and variations the page publishes, prep_minutes, cook_minutes, total_minutes, time_text in the page's own wording, time_phases, category and categories for every category the page files itself under. A figure the page states nothing for is null. id names the page that was read, which differs from the key asked for after a redirect, and redirected_from then names the key that led there. yield says what the recipe was written for and what it was rescaled to, and each ingredient carries scaling, reading scaled, rounded or unscaled.
scale_ingredients
Applies the same arithmetic to any list of ingredient lines, with no request to the wiki.
| Argument | Type | Required | What it does |
|---|---|---|---|
ingredients | array of 1 to 100 strings, up to 300 chars | yes | The lines to rescale. |
factor | number, above 0 and up to 100 | one of two | The multiplier to apply. |
from_servings | number, above 0 and up to 500 | one of two | How many servings the list is written for. |
to_servings | number, above 0 and up to 500 | one of two | How many servings are wanted. |
Pass factor, or the from_servings and to_servings pair.
In return: the factor used, the rescaled ingredients in the shape get_recipe returns, and scaled_count, rounded_count and unscaled_count.
list_recipes
Lists recipes along the categories the Cookbook files them under. The arguments combine, and the answer says which search was built from them.
| Argument | Type | Required | What it does |
|---|---|---|---|
cuisine | string, up to 80 characters | no | A cuisine or a country, such as Italian or Thai. |
dish_type | string, up to 80 characters | no | A kind of dish, such as soup, dessert or bread. |
main_ingredient | string, up to 80 characters | no | The ingredient a recipe is built on. |
limit | integer, 1 to 50, default 15 | no | Rows to serve. |
In return: the rows search_recipes returns, with query naming the search this server built from the arguments, and each argument echoed back or null where it was left out.
Rescaling the quantities
A quantity is stated in the unit that suits it, so a line can come back in a different unit from the one the recipe used: 200 g multiplied by twenty reads 4 kg.
How finely an ingredient can be divided depends on what it is. A loaf can be cut in two, in three or in four; an egg cannot be shared out. A quantity landing between the two is rounded, and the rescaled recipe then departs a little from the proportions of the original. The line carries rounded, and its note says what was done.
The figures are this server's arithmetic, so say they were recomputed when you show them. A recipe whose page states no number of servings cannot be put to a number of people, and the answer says so.
Licence and attribution
Cookbook pages are published under Creative Commons Attribution-ShareAlike 4.0. Repeating a recipe means crediting Wikibooks and the page it came from, and sharing what is built on it under the same licence. get_recipe returns both license and the page url, so an answer carries the credit with it.
Configuration
Every variable is optional. Set them in the env block of your client config.
| Variable | Default | What it does |
|---|---|---|
WB_USER_AGENT | the project identity | Names your application to Wikimedia, with an address where a person can be reached. |
WB_MIN_INTERVAL_MS | 1000 | Gap between two requests, from 500 to 60000. |
WB_TIMEOUT_MS | 20000 | Deadline for one request, from 1000 to 120000. |
| WB_MAX_RETRIES | 3 | Attempts after a transient failure, from 0 to 8.