GnistAI GnistAI
Log in

Cocktail Recipes

Curated cocktail recipe database — 60+ recipes with ingredients, instructions, and metadata. Search by name, ingredient, spirit, or category.

Overview   |   MCP   |   REST API   |   OpenAPI   |   CLI   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 7 tools tools 7 7 type: open dataset type type open dataset open dataset lifecycle: maintained lifecycle lifecycle maintained maintained Food & Drink

Data source: In-memory curated collection

MCP Endpoint (Streamable HTTP) https://context.gnist.ai/mcp/cocktails/
Authentication

All requests require a Gnist-API-Key header (or api_key query parameter).

Free tier: 100 calls/day. Get your API key.

Tools (7)

get_cocktail

Get a specific cocktail recipe by its ID.

Returns full recipe including ingredients, instructions, and metadata.

ParameterTypeRequiredDescription
cocktail_idstringrequiredCocktail slug ID (e.g. 'margarita', 'old-fashioned').
JSON-RPC Request
{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "get_cocktail",
    "arguments": {
      "cocktail_id": "example"
    }
  }
}
list_cocktails

List cocktail recipes with optional filters.

Returns matching cocktails filtered by category, base spirit, or alcoholic status.

ParameterTypeRequiredDescription
categoryanyoptionalFilter by category (e.g. Classic, Tiki, Sour, Highball, Martini, Shot, Mocktail).
base_spiritanyoptionalFilter by base spirit (e.g. Vodka, Gin, Rum, Tequila, Whiskey).
alcoholicanyoptionalFilter by alcoholic (true) or non-alcoholic (false).
JSON-RPC Request
{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "list_cocktails",
    "arguments": {}
  }
}
search_cocktails

Search for cocktail recipes by keyword.

Searches across cocktail names, ingredient names, and descriptions. Case-insensitive.

ParameterTypeRequiredDescription
querystringrequiredSearch keyword — matches cocktail name, ingredients, or description.
max_resultsanyoptionalMaximum number of results (default: 20, max: 100).
JSON-RPC Request
{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "search_cocktails",
    "arguments": {
      "query": "example"
    }
  }
}
get_random_cocktail

Get a random cocktail recipe.

Returns a random cocktail, optionally filtered by alcoholic or non-alcoholic.

ParameterTypeRequiredDescription
alcoholicanyoptionalFilter by alcoholic (true) or non-alcoholic (false). Omit for any.
JSON-RPC Request
{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "get_random_cocktail",
    "arguments": {}
  }
}
search_cocktails_by_ingredient

Find cocktails containing a specific ingredient.

Partial, case-insensitive match on ingredient names.

ParameterTypeRequiredDescription
ingredientstringrequiredIngredient name to search for (e.g. 'lime', 'bourbon', 'mint').
JSON-RPC Request
{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "search_cocktails_by_ingredient",
    "arguments": {
      "ingredient": "example"
    }
  }
}
list_base_spirits

List all base spirits in the cocktail database.

Returns the spirit names that can be used to filter cocktails.

JSON-RPC Request
{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "list_base_spirits",
    "arguments": {}
  }
}
report_feedback

Report a bug, feature request, or general feedback for this data source.

Use this when something doesn't work as expected, when you'd like
a new feature, or when you have suggestions for improvement.

Args:
feedback: Describe the issue or suggestion.
feedback_type: One of 'bug', 'feature_request', or 'general'.

ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")
JSON-RPC Request
{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "report_feedback",
    "arguments": {
      "feedback": "example"
    }
  }
}

Quick Start

Shell
curl -X POST "https://context.gnist.ai/mcp/cocktails/" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "get_cocktail", "arguments": {"cocktail_id": "example"}}}'
Python
import httpx

resp = httpx.post(
    "https://context.gnist.ai/mcp/cocktails/",
    headers={"Gnist-API-Key": "YOUR_API_KEY", "Content-Type": "application/json"},
    json={
  "jsonrpc": "2.0",
  "method": "tools/call",
  "id": 1,
  "params": {
    "name": "get_cocktail",
    "arguments": {
      "cocktail_id": "example"
    }
  }
},
)
print(resp.json())

Related Toolkits (Food & Drink)

Resources