meals_by_ingredient

Pack: recipes · Endpoint: https://gateway.pipeworx.io/recipes/mcp

Find all recipes using a specific ingredient (e.g., “chicken”, “garlic”, “pasta”). Returns meal names and IDs to pass to get_meal.

Parameters

NameTypeRequiredDescription
ingredientstringyesIngredient name to filter by

Example call

Arguments

{
  "ingredient": "chicken"
}

curl

curl -X POST https://gateway.pipeworx.io/recipes/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"meals_by_ingredient","arguments":{"ingredient":"chicken"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('meals_by_ingredient', {
  "ingredient": "chicken"
});

More examples

{
  "ingredient": "garlic"
}

Response shape

Always returns: ingredient, total, meals

FieldTypeDescription
ingredientstringThe ingredient that was searched
totalintegerNumber of meals containing the ingredient
mealsarrayList of meals containing the ingredient
Full JSON Schema
{
  "type": "object",
  "properties": {
    "ingredient": {
      "type": "string",
      "description": "The ingredient that was searched"
    },
    "total": {
      "type": "integer",
      "description": "Number of meals containing the ingredient"
    },
    "meals": {
      "type": "array",
      "description": "List of meals containing the ingredient",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "TheMealDB meal ID"
          },
          "name": {
            "type": "string",
            "description": "Meal name"
          },
          "thumbnail_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "URL to meal thumbnail image"
          }
        },
        "required": [
          "id",
          "name",
          "thumbnail_url"
        ]
      }
    }
  },
  "required": [
    "ingredient",
    "total",
    "meals"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "recipes": {
      "url": "https://gateway.pipeworx.io/recipes/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026