search_meals
Pack: recipes · Endpoint: https://gateway.pipeworx.io/recipes/mcp
Search for recipes by meal name. Returns meal IDs, names, and thumbnail images. Use get_meal to fetch full ingredients and cooking instructions.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | yes | Meal name or partial name to search for |
Example call
Arguments
{
"query": "pasta"
}
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":"search_meals","arguments":{"query":"pasta"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('search_meals', {
"query": "pasta"
});
More examples
{
"query": "chicken tikka"
}
Response shape
Always returns: total, meals
| Field | Type | Description |
|---|---|---|
total | integer | Number of meals matching the search query |
meals | array | List of meals matching the search query |
Full JSON Schema
{
"type": "object",
"properties": {
"total": {
"type": "integer",
"description": "Number of meals matching the search query"
},
"meals": {
"type": "array",
"description": "List of meals matching the search query",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "TheMealDB meal ID"
},
"name": {
"type": "string",
"description": "Meal name"
},
"category": {
"type": [
"string",
"null"
],
"description": "Meal category (e.g., dessert, seafood)"
},
"area": {
"type": [
"string",
"null"
],
"description": "Cuisine area/region (e.g., Italian, Indian)"
},
"instructions": {
"type": [
"string",
"null"
],
"description": "Cooking instructions"
},
"thumbnail_url": {
"type": [
"string",
"null"
],
"description": "URL to meal thumbnail image"
},
"youtube_url": {
"type": [
"string",
"null"
],
"description": "YouTube video URL for recipe"
},
"source_url": {
"type": [
"string",
"null"
],
"description": "Source website URL"
},
"tags": {
"type": "array",
"description": "List of meal tags/keywords",
"items": {
"type": "string"
}
},
"ingredients": {
"type": "array",
"description": "List of ingredients with measurements",
"items": {
"type": "object",
"properties": {
"ingredient": {
"type": "string",
"description": "Ingredient name"
},
"measure": {
"type": "string",
"description": "Measurement quantity and unit"
}
},
"required": [
"ingredient",
"measure"
]
}
}
},
"required": [
"id",
"name",
"category",
"area",
"instructions",
"thumbnail_url",
"youtube_url",
"source_url",
"tags",
"ingredients"
]
}
}
},
"required": [
"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.