MealMastery
AI-powered meal planning, recipe management, and grocery list generation. Generate a personalized weekly meal plan, save your favorites, build a consolidated grocery list, and send it to Instacart or Kroger -- all through conversation.
Setup
- 1. Create a free account at mealmastery.ai
- Go to Settings > Developer API and create an API key
- Set the key in your environment:
CODEBLOCK0
MCP server configuration (~/.openclaw/config.json):
CODEBLOCK1
Verify the connection works by asking: "What are my meal planning preferences?"
Tools (24)
Meal Planning (7 tools)
generate_meal_plan get_latest_meal_plan get_meal_plan list_meal_plans regenerate_meal generate_and_add_meal INLINECODE7
Recipes (7 tools)
search_recipes get_recipe save_meal_as_recipe get_favorite_recipes favorite_meal get_meal_ratings INLINECODE14
Grocery Lists (4 tools)
generate_grocery_list get_grocery_list list_grocery_lists INLINECODE18
User & Checkout (6 tools)
get_user_context get_user_preferences update_user_preferences get_subscription_status get_checkout_providers INLINECODE24
Resources (3)
Read-only context that agents can fetch without using a tool call.
| URI | Description |
|---|
| INLINECODE25 | Latest meal plan with all meals, nutrition, and recipes |
| INLINECODE26 |
Dietary preferences, allergies, cooking skill, favorites |
|
mealmastery://grocery-list/current | Grocery list for the current meal plan |
Prompt Templates (4)
Pre-built workflow starters for common multi-step tasks.
| Prompt | Parameters | Description |
|---|
| INLINECODE28 | INLINECODE29 , INLINECODE30 | Full week planning: preferences, generate, review, grocery list, checkout |
| INLINECODE31 |
reason? | Replace a specific meal in the current plan |
|
order-groceries |
provider? | Preview and send grocery list to Instacart or Kroger |
|
quick-dinner |
max_minutes?,
ingredients? | Single quick meal idea with time/ingredient constraints |
Streaming
INLINECODE38 supports MCP progress notifications. Clients that send a progressToken receive real-time updates (0-100%) during AI generation via the SSE streaming endpoint. Clients without progress support fall back to the standard blocking endpoint.
Example Workflows
Weekly meal prep:
"Generate a healthy meal plan for 2 people, Mediterranean style, max 30 minutes prep. Then create the grocery list."
Uses: get_user_context -> generate_meal_plan -> INLINECODE42
Swap a meal:
"Replace Wednesday's dinner with something Thai."
Uses: get_latest_meal_plan -> INLINECODE44
Order groceries:
"Send my grocery list to Instacart."
Uses: checkout_grocery_list (dry_run=true first, then with confirmation)
Guardrails
- - Checkout safety. Always call
checkout_grocery_list with dry_run=true first and show the preview. Only execute the real checkout after explicit user confirmation. This adds items to a real shopping cart. - Preference changes. Confirm with the user before calling
update_user_preferences for dietary restrictions or allergies. These affect all future meal plans. - Destructive operations.
remove_meal permanently deletes a meal from a plan. Confirm before calling. - Rate limits. Meal plan generation counts against the user's subscription quota. Check
get_subscription_status if the user is on a free tier before generating. - AI generation time.
generate_meal_plan takes 30-60 seconds. regenerate_meal and generate_and_add_meal take 15-30 seconds. Inform the user these operations are running. - Daily quotas. Free tier: 1,000 requests/day. Paid tier: 10,000 requests/day. Quota info is available after token exchange.
Publisher
MealMastery Inc. -- mealmastery.ai | GitHub | Support
MealMastery
AI驱动的膳食规划、食谱管理和购物清单生成。通过对话即可生成个性化每周膳食计划、保存最爱食谱、创建整合购物清单,并发送至Instacart或Kroger。
设置
- 1. 在 mealmastery.ai 免费注册账户
- 前往 设置 > 开发者API 创建API密钥
- 在环境中设置密钥:
sh
export MEALMASTERYAPIKEY=mmlive...
MCP服务器配置(~/.openclaw/config.json):
json
{
mcpServers: {
mealmastery: {
command: npx,
args: [-y, @mealmastery/mcp-server],
env: {
MEALMASTERYAPIKEY: ${MEALMASTERYAPIKEY}
}
}
}
}
通过提问验证连接是否正常:我的膳食规划偏好是什么?
工具(24个)
膳食规划(7个工具)
generate
mealplan get
latestmeal
plan getmeal
plan listmeal
plans regeneratemeal generate
andadd
meal removemeal
食谱(7个工具)
search
recipes getrecipe save
mealas
recipe getfavorite
recipes favoritemeal get
mealratings get
allratings
购物清单(4个工具)
generate
grocerylist get
grocerylist list
grocerylists update
groceryitems
用户与结账(6个工具)
get
usercontext get
userpreferences update
userpreferences get
subscriptionstatus get
checkoutproviders checkout
grocerylist
资源(3个)
代理无需调用工具即可获取的只读上下文。
| URI | 描述 |
|---|
| mealmastery://meal-plan/current | 包含所有餐食、营养信息和食谱的最新膳食计划 |
| mealmastery://user/preferences |
饮食偏好、过敏信息、烹饪技能、收藏内容 |
| mealmastery://grocery-list/current | 当前膳食计划的购物清单 |
提示模板(4个)
针对常见多步骤任务的预构建工作流启动器。
| 提示 | 参数 | 描述 |
|---|
| weekly-meal-prep | focus?, days? | 整周规划:偏好设置、生成、审核、购物清单、结账 |
| swap-meal |
reason? | 替换当前计划中的特定餐食 |
| order-groceries | provider? | 预览购物清单并发送至Instacart或Kroger |
| quick-dinner | max_minutes?, ingredients? | 基于时间和食材限制的快速晚餐创意 |
流式传输
generatemealplan 支持MCP进度通知。发送 progressToken 的客户端可通过SSE流式传输端点接收AI生成期间的实时更新(0-100%)。不支持进度通知的客户端将回退至标准阻塞端点。
示例工作流
每周膳食准备:
为2人生成一份健康的膳食计划,地中海风格,准备时间不超过30分钟。然后创建购物清单。
使用:getusercontext -> generatemealplan -> generategrocerylist
替换餐食:
把周三的晚餐换成泰式料理。
使用:getlatestmealplan -> regeneratemeal
订购食材:
把我的购物清单发送到Instacart。
使用:checkoutgrocerylist(先执行dry_run=true,确认后再执行)
安全护栏
- - 结账安全。 始终先以 dryrun=true 调用 checkoutgrocerylist 并显示预览。仅在用户明确确认后执行实际结账。此操作会将商品添加到真实购物车。
- 偏好变更。 在调用 updateuserpreferences 修改饮食限制或过敏信息前,需与用户确认。这些变更会影响所有未来的膳食计划。
- 破坏性操作。 removemeal 会永久删除计划中的餐食。调用前需确认。
- 速率限制。 膳食计划生成会消耗用户的订阅配额。如果用户使用免费套餐,生成前请检查 getsubscriptionstatus。
- AI生成时间。 generatemealplan 需要30-60秒。regeneratemeal 和 generateandaddmeal 需要15-30秒。请告知用户这些操作正在运行。
- 每日配额。 免费套餐:每天1,000次请求。付费套餐:每天10,000次请求。配额信息可在令牌交换后获取。
发布方
MealMastery Inc. -- mealmastery.ai | GitHub | 支持