Cezzis Cocktails
Search for cocktail recipes using the cezzis.com API.
Cezzis.com Cocktails MCP Server
Part of the broader Cezzis.com digital experience for discovering and sharing cocktail recipes with a broad community of cocktail enthusiasts and aficionados.
An MCP (Model Context Protocol) server that gives AI agents secure, firstβclass access to Cezzis.com cocktail data. It provides highβlevel tools for searching cocktails, retrieving detailed recipes and metadata, authenticating users, and submitting ratings. The server runs over HTTP only and exposes a streamable MCP endpoint.
π§© Cezzis.com Project Ecosystem
This server works alongside several sibling repositories:
- cocktails-mcp (this repo) β Model Context Protocol services that expose cocktail data to AI agents
- cocktails-api β ASP.NET Core backend and REST API consumed by the site and integrations
- cocktails-web β React SPA for the public experience
- cocktails-common β Shared libraries and utilities reused across frontends, APIs, and tooling
- cocktails-images (private) β Source of curated cocktail imagery and CDN assets
- cocktails-shared-infra β Terraform compositions specific to the cocktails platform
- shared-infrastructure β Global Terraform modules that underpin multiple Cezzis.com workloads
βοΈ Cloud-Native Footprint (Azure)
Infrastructure is provisioned with Terraform (/terraform) and deployed into Azure using shared modules:
- Azure Container Apps β Hosts the MCP service (HTTP mode) with HTTPS ingress
- Azure API Management β Optional faΓ§ade when exposing HTTP endpoints; routes and policies managed via Terraform
- Azure Container Registry β Stores container images published from CI/CD
- Azure Key Vault β Holds secrets (Cezzis API subscription keys)
- Azure Monitor β Telemetry collection (logs/traces) via OpenTelemetry and OTLP exporter over HTTP/protobuf
- Shared Infrastructure Modules β Sourced from the reusable Terraform modules repo for consistency
π MCP Tools
The server exposes the following MCP tools:
search_cocktails
- Purpose: Search cocktails by natural language query
- Parameters:
freeText(string, required): Search terms (name, ingredients, style)
- Returns: Array of cocktails with IDs, titles, images, and summaries
get_cocktail
- Purpose: Retrieve full details for a specific cocktail
- Parameters:
cocktailId(string, required): ID from search results
- Returns: Full recipe with ingredients, instructions, images, ratings, and notes
auth_login
- Purpose: Initiate login using Auth0 Device Authorization flow
- Parameters: none
- Returns: Verification URL and user code to complete in your browser
auth_status
- Purpose: Check if youβre authenticated
- Parameters: none
- Returns: Text status
auth_logout
- Purpose: Log out and clear stored tokens
- Parameters: none
- Returns: Text confirmation
cocktail_rate
- Purpose: Rate a cocktail (requires authentication)
- Parameters:
cocktailId(string, required)stars(string, required, 1β5)
- Returns: Text confirmation of submitted rating
HTTP Endpoints
GET /healthzβ Health checkGET /versionβ Version infoGET|POST /mcpβ Streamable MCP endpoint over HTTP
π οΈ Technology Stack
Core
- Language: Go 1.25+
- Protocol: Model Context Protocol over HTTP (streamable)
- Server: Lightweight MCP server with tool registry and health/version endpoints
- Logging: zerolog (structured JSON logs)
Integrations
- Cezzis.com Cocktails API: Upstream data source (requires subscription key)
- Azure AI Search: Powers semantic/lucene queries in the upstream API
- Azure CosmosDB: Used for secure token storage and account-related data (see
internal/repos/cosmos_token_repository.go). - Auth0: Used for OAuth 2.1 / OIDC authentication and secure token management (see
internal/auth/). - Telemetry: All telemetry (logs, traces, metrics) is sent via OpenTelemetry using OTLP exporters over HTTP/protobuf.
Authentication & Security
- API Access:
COCKTAILS_API_XKEYsubscription key injected via env/Key Vault - Auth0 OAuth 2.1 / OIDC: Endβuser authentication for personalized features (e.g., ratings). Auth0 is used for device code login, token issuance, and secure refresh flows. See
internal/auth/oauth_manager.goandinternal/auth/token_storage.gofor implementation details. - CosmosDB: Used for secure storage of user tokens and account data. See
internal/repos/cosmos_token_repository.go. - Secrets: Managed via environment files locally and Azure Key Vault in cloud
- Transport: HTTP/HTTPS for MCP endpoint
ποΈ Project Structure
cocktails.mcp/
βββ src/
β βββ cmd/ # Application entry point
β βββ internal/
β β βββ api/ # Generated API client code
β β βββ config/ # Configuration management
β β βββ logging/ # Structured logging helpers
β β βββ middleware/ # HTTP middleware (HTTP mode)
β β βββ server/ # MCP server and protocol wiring
β β βββ testutils/ # Testing utilities
β β βββ tools/ # MCP tool implementations
β βββ .env # Environment configuration (local)
β βββ go.mod # Go module definition
βββ dist/ # Build outputs
βββ terraform/ # Azure resources (ACA, APIM, Key Vault, etc.)
π Development Setup
-
Prerequisites
- Go 1.25.1 or newer
- Make (build automation)
- Optional: Docker (container builds), Azure CLI / Terraform (infrastructure)
-
Install Dependencies
make tidy -
Environment Setup Create a
.envfile in./cocktails.mcp/src/:
# Required: Cezzis.com API Configuration
COCKTAILS_API_HOST=https://api.cezzis.com/prd/cocktails
COCKTAILS_API_XKEY=your_api_subscription_key_here
# Auth0 (required for user-authenticated features)
AUTH0_DOMAIN=your-tenant.us.auth0.com
AUTH0_CLIENT_ID=your_public_client_id
AUTH0_AUDIENCE=https://cezzis-cocktails-api
AUTH0_SCOPES="openid offline_access profile email read:owned-account write:owned-account"
# Optional: OpenTelemetry/OTLP (telemetry)
OTEL_EXPORTER_OTLP_ENDPOINT=https://your-otlp-endpoint
OTEL_EXPORTER_OTLP_HEADERS=key1=value1,key2=value2
# Optional: Logging
LOG_LEVEL=info
ENV=local
Supported environment files: .env, .env.local, .env.test.
- Run locally (HTTP)
# Build binary
make compile
# Run HTTP server (choose a port)
./cocktails.mcp/dist/linux/cezzis-cocktails --http :8080
- Testing
Generates coverage artifacts (make testcoverage.out,cobertura.xml).
π OAuth and Authentication
This server uses Auth0 for endβuser authentication to enable personalized features (e.g., ratings).
Flow (HTTP): Device Authorization Grant
- The
auth_logintool returns a verification URL and user code. - Visit the URL, enter the code, and complete login.
- The server polls Auth0 and stores tokens securely once available.
Token handling:
- Access and refresh tokens are stored encrypted under
~/.cezzis/.cezzis_tokens.enc. - Tokens are automatically refreshed using the refresh token when near expiry.
- Logout clears stored tokens.
Required settings:
AUTH0_DOMAINβ e.g.,your-tenant.us.auth0.comAUTH0_CLIENT_IDβ public SPA/native client ID configured in Auth0- Optional:
AUTH0_AUDIENCEif the API expects a specific audience - Optional:
AUTH0_SCOPES(default:openid profile email offline_access)
Auth tools available to MCP clients:
auth_loginβ Initiates device code login and returns instructions.auth_statusβ Returns whether youβre currently authenticated.auth_logoutβ Clears stored tokens.
οΏ½π» MCP Client Setup
Claude Desktop
Configure ~/.config/Claude/claude_desktop_config.json for HTTP MCP:
{
"mcpServers": {
"cezzis-cocktails": {
"url": "http://localhost:3001/mcp",
"type": "http"
}
}
}
Cursor
Configure ~/.cursor/mcp.json or via Settings UI for HTTP MCP:
{
"mcpServers": {
"cezzis-cocktails": {
"url": "http://localhost:3001/mcp",
"type": "http"
}
}
}
GitHub Copilot (HTTP MCP)
Configure VS Code User/mcp.json (Copilot MCP servers):
{
"servers": {
"cezzis-mcp": {
"url": "http://localhost:3001/mcp",
"type": "http"
}
},
"inputs": []
}
Start the server locally with --http :8080 and Copilot Chat can call its tools over HTTP.
π¦ Build & Deployment
- Build:
make compile(outputs./cocktails.mcp/dist/linux/cezzis-cocktails) - Container:
make docker-build(builds image for ACA) - Infra: Terraform under
/terraformfor ACA, APIM, Key Vault, etc. - CI/CD: GitHub Workflows build, test, and publish artifacts/images
π Code Quality
golangci-lintfor static analysisgofmtand imports tooling enforced via Make targets- Unit tests with coverage reports
π Security Features
- API subscription key required for upstream API access
- Secrets sourced from env files locally and Azure Key Vault in cloud
- HTTP/HTTPS transport for MCP endpoint
- Validated tool inputs and structured error handling
π Monitoring
- Telemetry (logs, traces, metrics) is collected using OpenTelemetry and exported via the OTLP protocol over HTTP/protobuf. This enables integration with Azure Monitor and other observability platforms that support OTLP over HTTP.
- Health checks exposed in HTTP mode for probes
π€ What is MCP?
The Model Context Protocol (MCP) is an open standard that enables AI assistants to securely connect with external data sources and tools. Using MCP here allows agents to:
- Ask for cocktails in natural language
- Get contextual recommendations based on ingredients and styles
- Retrieve rich recipe data with measurements and techniques
- Integrate seamlessly across MCPβcompatible tools and IDEs
π Community & Support
- π€ Contributing Guide β see CONTRIBUTING.md
- π€ Code of Conduct β see CODE_OF_CONDUCT.md
- π Support Guide β see SUPPORT.md
- π Security Policy β see SECURITY.md
π License
This project is proprietary software. All rights reserved. See LICENSE for details.
Related Servers
PubTator MCP Server
A server for biomedical literature annotation and relationship mining, based on PubTator3.
MCP Gemini Grounded Search
A Go-based MCP server providing grounded search functionality using Google's Gemini API.
Weather MCP
A weather server providing weather information for locations within the United States.
ArXiv-MCP
Search and retrieve academic papers from arXiv based on keywords.
Genji MCP Server
Search and analyze classical Japanese literature using the Genji API, with advanced normalization features.
λ 립μ 곡μ 곡νλ‘
Query records of Korean independence activists from the Ministry of Patriots and Veterans Affairs.
Yandex Search MCP Server
Perform real-time web searches using the Yandex Search API.
Researcher MCP
A research assistant powered by Perplexity AI for intelligent search, documentation retrieval, and code assistance.
DevRag
Free local RAG for Claude Code - Save tokens & time with vector search. Indexes markdown docs and finds relevant info without reading entire files (40x fewer tokens, 15x faster).
Qdrant MCP Server
Semantic code search using the Qdrant vector database and OpenAI embeddings.