cocktail-recipes-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@cocktail-recipes-mcplist all cocktail recipes"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
cocktail-recipes-mcp
Dockerized Python 3.11 MCP server for the Aephir/cocktail-recipes REST API.
This server is designed for Claude Desktop and other MCP clients. It authenticates against the cocktail app via session-cookie login (POST /api/auth/login) and uses REST-only calls.
Features
Python 3.11 MCP server with typed models and validation
Session-cookie auth with automatic re-login on
401Safe retries for idempotent calls (read-only and dry-run operations)
No blind retries for non-idempotent apply calls
Dry-run safety defaults for destructive tools
Structured response and error schema
Capability probing tool for backend endpoint readiness
Operation log tool for recent MCP actions
Related MCP server: Coolify MCP Server
Implemented Tools
list_recipesget_recipecreate_recipe(defaultsdry_run=true)update_recipe(defaultsdry_run=true)delete_recipe(defaultsdry_run=true)list_ingredientslist_toolsmerge_ingredients(dry_run=truedefault)merge_tools(dry_run=truedefault)recategorize_recipes(dry_run=truedefault)update_tags_bulk(dry_run=truedefault)operation_log_recentapi_capabilities
Safety Behavior
All destructive tools default to dry_run=true (create/update/delete/merge/recategorize/tag bulk).
To apply, pass explicit dry_run=false.
Each destructive tool returns:
preview (
affectedIDs and count)apply_executedbooleanbackend result payload
If backend admin endpoints are not available yet, tool responses return structured not_implemented with an actionable message.
Required Environment Variables
COCKTAIL_API_BASE_URLCOCKTAIL_API_USERNAMECOCKTAIL_API_PASSWORD
Optional variables are in .env.example.
Transport Modes
stdio(default in.env.example): process-local MCP over stdin/stdout, no published port.streamable-http: network-reachable MCP over HTTP, requires a published port or reverse proxy.
For Claude running on a different machine, use streamable-http.
Local Run
Create env file:
cp .env.example .envInstall dependencies and run:
python3.11 -m venv .venv
source .venv/bin/activate
pip install -U pip
pip install -e .[test]
python -m cocktail_recipes_mcp.mainDocker Run
Build image:
docker build -t cocktail-recipes-mcp:latest .Run container:
docker run --rm -i --env-file .env cocktail-recipes-mcp:latestCompose example:
docker compose up --build cocktail-recipes-mcpNote: docker-compose.yml reads values from environment variables. For local CLI usage, export them or place them in a local .env file before running docker compose.
For remote clients, set MCP_TRANSPORT=streamable-http and publish MCP_HTTP_PUBLISH_PORT.
Portainer Deployment (Recommended)
Use this when you run both the cocktail app and this MCP server as containers.
Deploy both services on the same Docker network.
Set MCP environment variables in Portainer for the MCP service:
COCKTAIL_API_BASE_URLCOCKTAIL_API_USERNAMECOCKTAIL_API_PASSWORD
MCP_TRANSPORT=streamable-httpMCP_HTTP_HOST=0.0.0.0MCP_HTTP_PORT=8000MCP_HTTP_PATH=/mcpMCP_HTTP_PUBLISH_PORT=8000(or another host port)
Use internal service URL for
COCKTAIL_API_BASE_URLwhen possible, for example:http://cocktail-app:3000
Start the cocktail app first, then start the MCP service.
In Claude, call
api_capabilitiesandlist_recipesto validate connectivity.
Portainer Error: .env not found
If you saw an error like env file /data/compose/<id>/.env not found, the stack was expecting a physical .env file inside Portainer's compose directory.
This repo now avoids that requirement by reading COCKTAIL_API_* from stack environment variables directly.
In Portainer Stack deployment:
Add these variables in the Stack
Environment variablesUI:COCKTAIL_API_BASE_URLCOCKTAIL_API_USERNAMECOCKTAIL_API_PASSWORD
Redeploy the stack.
Your example values are valid for this setup.
Portainer Error: pull access denied for cocktail-recipes-mcp
This happens when Portainer tries to pull cocktail-recipes-mcp:latest from a registry.
This project is intended to build from source in the stack, not pull from Docker Hub.
Resolution:
Use the current compose file from this repo (it uses
buildandpull_policy: never).In Portainer stack deployment, disable any "pull latest image" behavior for this stack.
Redeploy the stack so the image is built locally on the Docker host.
FQDN vs Internal URL
If MCP and cocktail app are in the same Docker network, prefer internal URL (
http://service-name:port).If MCP is outside that network, use a reachable external URL/FQDN (for example
https://cocktails.example.com).
For MCP client access:
Same LAN/VPN:
http://<host-ip>:<published-port><MCP_HTTP_PATH>Internet-facing: put SWAG/Nginx in front and use
https://<fqdn><MCP_HTTP_PATH>
Example Portainer Stack Snippet
services:
cocktail-recipes-mcp:
image: cocktail-recipes-mcp:latest
build:
context: .
dockerfile: Dockerfile
environment:
COCKTAIL_API_BASE_URL: http://cocktail-app:3000
COCKTAIL_API_USERNAME: admin
COCKTAIL_API_PASSWORD: change-me
MCP_TRANSPORT: streamable-http
MCP_HTTP_HOST: 0.0.0.0
MCP_HTTP_PORT: 8000
MCP_HTTP_PATH: /mcp
ports:
- "8000:8000"
restart: unless-stopped
stdin_open: true
tty: true
networks:
- cocktail_net
networks:
cocktail_net:
external: trueGo-Live Checklist
MCP and app containers share a network.
MCP env vars are set in Portainer.
Login endpoint is reachable from MCP (
POST /api/auth/login).api_capabilitiessucceeds.list_recipessucceeds.For admin operations, run
dry_run=truefirst and apply only withdry_run=false.
Claude Desktop Connection
Add an MCP server entry to your Claude Desktop config.
Local Python command
{
"mcpServers": {
"cocktail-recipes": {
"command": "/absolute/path/to/cocktail-recipes-mcp/.venv/bin/python",
"args": ["-m", "cocktail_recipes_mcp.main"],
"env": {
"COCKTAIL_API_BASE_URL": "http://localhost:3000",
"COCKTAIL_API_USERNAME": "admin",
"COCKTAIL_API_PASSWORD": "change-me"
}
}
}
}Docker command
{
"mcpServers": {
"cocktail-recipes": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"--env-file",
"/absolute/path/to/cocktail-recipes-mcp/.env",
"cocktail-recipes-mcp:latest"
]
}
}
}Remote HTTP MCP (different machine)
When running in Portainer with MCP_TRANSPORT=streamable-http, use your reachable URL:
Direct host/port example:
http://10.0.30.51:8000/mcpSWAG/FQDN example:
https://mcp.example.com/mcp
If your Claude client supports URL-based MCP servers, register this URL there.
Tests
Run minimal tests:
pytestExample Transcript
See docs/example_transcripts.md for a dry_run/apply merge example (Cucumber vs cucumber).
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Aephir/cocktail-recipes-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server