Airogel Editor
Build and inspect browser-based 3D games: projects, scenes, Lua scripts, assets and publishing.
作者提供的说明(英文原文)
Cooklang recipes for AI agents: validate, meal plans, shopping lists, pantry, nutrition
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
COOK_RECIPES_DIR你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"cook": {
"command": "npx",
"args": [
"-y",
"@cookmd/mcp"
],
"env": {
"COOK_RECIPES_DIR": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add cook --env COOK_RECIPES_DIR=your-value -- npx -y @cookmd/mcp运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"cook": {
"command": "npx",
"args": [
"-y",
"@cookmd/mcp"
],
"env": {
"COOK_RECIPES_DIR": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"cook": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@cookmd/mcp"
],
"env": {
"COOK_RECIPES_DIR": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
COOK_RECIPES_DIR env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
注册名称已通过 GitHub 账户 cook-md 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.2.3)于32天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:Airogel Editor, Prospre, RSS.com MCP by usefulapi
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Build and inspect browser-based 3D games: projects, scenes, Lua scripts, assets and publishing.
Log food, plan meals, fix the diary, build the grocery list and move macro targets in Prospre.
Read podcasts and episodes; create and edit episodes, chapters and transcripts in RSS.com.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
An MCP server that gives your AI agent (Claude Code, Claude Desktop, Cursor, ChatGPT, or any other MCP client) access to your Cooklang recipe collection. Recipes stay as plain .cook and .menu files in a folder you own. The agent can read, search, validate and write them, build shopping lists, track a pantry and render reports, all locally and without an account. With a cook.md login it can also compute nutrition and import recipes from photos and social links.
Claude Code:
claude mcp add cook -- npx -y @cookmd/mcp
Any client that takes an mcpServers config:
{
"mcpServers": { "cook": { "command": "npx", "args": ["-y", "@cookmd/mcp"], "env": { "COOK_RECIPES_DIR": "/path/to/recipes" } } } }
If COOK_RECIPES_DIR is not set, the server uses the workspace folder your client shares, or the folder the client was started in. See How the recipe folder is chosen.
Supported platforms: macOS (arm64, x64) and Linux (x64, arm64, glibc 2.35 or newer). There are no Windows builds yet.
Setup notes for specific clients: https://cook.md/help/mcp
Claude Code users can install the cooklang plugin instead of adding the server by hand. It lives in cooklang/cooklang-skills and bundles this server plus the skills below:
/plugin marketplace add cooklang/cooklang-skills
/plugin install cooklang@cooklang-skills
The plugin starts the server with your Claude Code project folder as the recipe root, and Claude Code picks the right skill from what you ask ("plan dinners for next week", "is this recipe valid?"). If you already added the server with claude mcp add cook, remove that entry so you don't run two copies.
The skills (also served by this server as cooklang://skills/ resources):
| Skill | Use it for |
|---|---|
cooklang-editing | Write a new recipe or edit and fix a .cook file |
cooklang-validation | Check recipes, a folder or the whole collection for errors and broken references |
metadata | Add or fix YAML frontmatter (title, tags, servings, times), including bulk changes |
recipe-import | Import a recipe from a URL, photos or pasted text |
recipe-search | Find recipes by ingredient, tag, cuisine, course or a remembered phrase |
scale-recipe | Show a recipe for more or fewer servings |
export-recipe | Turn a recipe into Markdown, JSON, plain text or HTML |
organize-collection | Folder layout, metadata audit, aisle and pantry config, whole-library checks |
meal-planning | Build or edit a .menu meal plan |
shopping-list | Shopping lists from recipes or plans, grouped by aisle, minus the pantry |
pantry | Track stock, expiry and low items; what can I cook with what I have |
report-authoring | Custom Jinja reports and printouts with render_report |
nutrition-reports | Nutrition evaluation and screening (Cook Basic or Pro) |
nutrition-goals | Change a recipe or plan to hit nutrition targets (Cook Basic or Pro) |
skills/ in this repo is the canonical copy; the plugin repo syncs from it. Each skill is skills/ /SKILL.md.
| Tool | What it does |
|---|---|
list_recipes | List recipes, meal plans or report templates (kind: recipe, menu, template, all) |
read_recipe | Read a recipe or menu: source plus parsed ingredients, cookware, steps and metadata; optional scaling |
search_recipes | Search names and contents, optionally filtered by tag |
validate | Check a file, a folder, the whole collection, or unsaved content for errors and broken references |
write_recipe | Save a .cook recipe (validated first) |
write_menu | Save a .menu meal plan (validated first) |
write_config | Save config/aisle.conf, config/pantry.conf, or a .jinja report template under reports/ or config/reports/ |
shopping_list | Build a shopping list from recipes and/or menus: merges duplicates, groups by aisle, subtracts the pantry |
pantry_list | Show the pantry, by section |
pantry_expiring | Items expiring soon |
pantry_depleted | Items at or below their low-stock threshold |
pantry_recipes | Which recipes you can cook with what is in the pantry |
pantry_update | Add, update or remove pantry items |
render_report | Render a jinja report template against a recipe or menu (plain templates need no login) |
| Tool | What it does |
|---|---|
login | Start a cook.md device login; shows a code and a URL |
auth_status | Show login status, plan and import allowance |
get_nutrition | Nutrition facts for one ingredient amount |
aggregate_nutrition | Sum nutrition across many ingredient lines |
lookup_ingredient | Fuzzy-search the ingredient catalog |
convert_units | Convert between units (volume to mass needs a density) |
check_category | Check whether an ingredient belongs to a category |
branded_lookup | Look up a packaged product by barcode or text |
reference_intakes | Daily reference-intake tables (RDA/DV) |
import_recipe | Convert a web page, photos or pasted text to Cooklang |
import_recipe from a web page or pasted text works without a login. Photos and social-media links need a cook.md account and use your import allowance. It returns Cooklang text and does not save it; the agent validates it and calls write_recipe. Nutrition functions inside render_report also need Cook Basic or Pro.
Prompts: meal-planning, shopping-list, pantry, import-recipe, edit-recipe, nutrition-report, nutrition-goals, scale-recipe.
Resources:
cooklang://spec: the Cooklang specificationcooklang://syntax: a syntax referencecooklang://menu-format: the .menu meal plan formatcooklang://skills/ : working guides for the agent, one per skill in the table above: cooklang-editing, cooklang-validation, export-recipe, meal-planning, metadata, nutrition-goals, nutrition-reports, organize-collection, pantry, recipe-import, recipe-search, report-authoring, scale-recipe, shopping-list>> metadata syntax is refused. Use YAML frontmatter.@./ reference, may still be followed. This only matters if you put symlinks pointing outside the folder into your recipes.| Var | Default | Meaning |
|---|---|---|
COOK_RECIPES_DIR | the client's roots, then its working directory | Recipe root. Every path is relative to it. Always wins when set. |
COOKMD_BASE_URL | https://cook.md | Login, entitlements, import |
NUTRITION_API_URL | https://nutrition.cook.md | Nutrition service |
NUTRITION_API_TOKEN | none | Org key or pre-made token. Takes priority over the stored login. |
COOK_MCP_AUTH_PATH | ~/.config/cook-mcp/auth.json | Token store. The old NUTRITION_MCP_AUTH_PATH still works as an alias. |
COOK_RECIPES_DIR, if set. Nothing else is consulted.file:// root that is an existing folder becomes the recipe root. The server asks on the first recipe tool call and again whenever the client reports that its roots changed. If the client doesn't answer within 5 seconds, the server uses the working directory and asks again later (at most once every 30 seconds).A root is a folder you opened on purpose, so it is used unless it is /, your home folder or inside an agent plugin install folder (for example ~/.codex/plugins/cache/..., ~/.gemini/extensions/... or the folder CLAUDE_PLUGIN_ROOT points to). The working directory is checked more strictly: it is also refused when it, or a folder up to four levels above it, has .claude-plugin/plugin.json, an Agent Plugins plugin.json or gemini-extension.json, because a plugin that starts the server in its own install folder would otherwise expose the wrong files and write recipes into a folder that is wiped on update. When nothing usable is found, recipe tools say that no recipe folder is set, why, and that COOK_RECIPES_DIR fixes it; auth_status shows recipe_root_source: "unset". Otherwise recipe_root_source is env, roots or cwd.
What each client does:
COOK_RECIPES_DIR: codex mcp add cook --env COOK_RECIPES_DIR=/path/to/recipes -- npx -y @cookmd/mcp
COOK_RECIPES_DIR in the server's config.cargo build --release
cargo test
The binary is target/release/cook-mcp. It speaks MCP over stdio. cook-mcp login and cook-mcp logout manage the cook.md login from a terminal.
@cookmd/nutrition-mcp keeps working: it is now a thin shim that runs @cookmd/mcp. To switch, change the package name in your MCP config to @cookmd/mcp. Your login carries over.
Two things changed. Recipe tools need COOK_RECIPES_DIR (old configs did not set it), or start the client in your recipe folder; without either, recipe tools tell the agent that no recipe folder is set. And render_report paths are now relative to the recipe folder.
MIT