cocktails_by_ingredient
Pack: cocktails · Endpoint: https://gateway.pipeworx.io/cocktails/mcp
Find all cocktails containing a specific ingredient (e.g., “vodka”, “lime juice”, “gin”). Returns matching recipes with full ingredient lists.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
ingredient | string | yes | Ingredient name to filter by (e.g., “vodka”, “gin”) |
Example call
Arguments
{
"ingredient": "vodka"
}
curl
curl -X POST https://gateway.pipeworx.io/cocktails/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"cocktails_by_ingredient","arguments":{"ingredient":"vodka"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('cocktails_by_ingredient', {
"ingredient": "vodka"
});
More examples
{
"ingredient": "lime juice"
}
Response shape
Always returns: ingredient, count, cocktails
| Field | Type | Description |
|---|---|---|
ingredient | string | Ingredient searched for |
count | integer | Number of cocktails found |
cocktails | array | List of cocktails containing the ingredient |
Full JSON Schema
{
"type": "object",
"properties": {
"ingredient": {
"type": "string",
"description": "Ingredient searched for"
},
"count": {
"type": "integer",
"description": "Number of cocktails found"
},
"cocktails": {
"type": "array",
"description": "List of cocktails containing the ingredient",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Cocktail ID"
},
"name": {
"type": "string",
"description": "Cocktail name"
},
"thumbnail": {
"type": "string",
"description": "Thumbnail image URL"
}
},
"required": [
"id",
"name",
"thumbnail"
]
}
}
},
"required": [
"ingredient",
"count",
"cocktails"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"cocktails": {
"url": "https://gateway.pipeworx.io/cocktails/mcp"
}
}
}
See Getting Started for client-specific install steps.