meal_plan_generate
Pack: spoonacular · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/meal_plan_generate for the schema, then POST the same URL with its arguments for the data.
Generate a Spoonacular meal plan for a given timeFrame (“day” or “week”) matching targetCalories, diet (e.g. vegetarian/vegan/paleo), and comma-separated exclude ingredients. Returns meals with recipe ids, titles, images, and nutrition summary.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
timeFrame | string | no | |
targetCalories | number | no | |
diet | string | no | |
exclude | string | no |
Example call
Arguments
{
"timeFrame": "week",
"targetCalories": 2000
}
curl
curl -X POST https://gateway.pipeworx.io/spoonacular/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"meal_plan_generate","arguments":{"timeFrame":"week","targetCalories":2000}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('meal_plan_generate', {
"timeFrame": "week",
"targetCalories": 2000
});
More examples
{
"timeFrame": "day",
"targetCalories": 2500,
"diet": "paleo",
"exclude": "gluten"
}
Response shape
Full JSON Schema
{
"type": "object",
"description": "Generated meal plan"
}
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the spoonacular pack
{
"mcpServers": {
"spoonacular": {
"url": "https://gateway.pipeworx.io/spoonacular/mcp"
}
}
}
See Getting Started for client-specific install steps.