Cocktails RAG MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Cocktails RAG MCP Server
MCP server for looking up cocktails and suggesting recipes from a local dataset. It retrieves recipes with FAISS, reranks the matches with a Hugging Face model, and sends the selected context to Groq to generate an answer.
Requirements
Python 3.11+
uv package manager - https://docs.astral.sh/uv/getting-started/installation/
Related MCP server: Cocktail By Api Ninjas
Quick Start
Get a Groq API key: https://console.groq.com/keys
Setup:
# Clone the repository git clone https://github.com/00200200/cocktails-rag-mcp.git cd cocktails-rag-mcp # Copy environment template cp .env.example .env # Edit .env and add your GROQ_API_KEY nano .env # Install dependencies uv syncInitialize the pipeline:
This loads the embedding and reranker models and creates or loads the FAISS index. Model weights are downloaded on first use; the Groq API key must be set.
uv run python -c "from src.rag.rag import RAG; RAG(); print('Pipeline initialized')"Install for Claude Desktop:
Automatic (Recommended)
uv run fastmcp install claude-desktop fastmcp.json --name cocktails --env-file .envManual
Edit config file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{ "mcpServers": { "cocktails": { "command": "uv", "args": [ "run", "--with","faiss-cpu", "--with","fastmcp", "--with","jq", "--with","langchain", "--with","langchain-community", "--with","langchain-groq", "--with","langchain-huggingface", "--with","pandas", "--with","python-dotenv", "--with","sentence-transformers", "fastmcp", "run", "/ABSOLUTE/PATH/TO/src/mcp/server.py:mcp" ], "env": { "GROQ_API_KEY": "your_groq_api_key_here" } } } }Replace
/ABSOLUTE/PATH/TO/with your project path andGROQ_API_KEYwith your API key.
Example Usage
Local Testing
# Test RAG pipeline directly
uv run python -m src.rag.rag
# Test MCP server locally
uv run python src/mcp/server.pyDevelopment
Code Formatting
# Format code with black
uv tool run black .
# Sort imports with isort
uv tool run isort .Project Structure
RAG/
├── src/
│ ├── mcp/ # MCP server implementation (FastMCP)
│ ├── rag/ # RAG pipeline (retrieve, rerank, generate)
│ ├── db/ # FAISS vector database handler
│ └── data/ # Data loading utilities
├── data/ # Cocktail dataset
├── faiss_index/ # Generated FAISS index (auto-created on first run)
├── notebooks/ # EDA notebook
├── fastmcp.json # FastMCP configuration
├── pyproject.toml # Project dependencies
└── .env.example # Environment templateTech Stack
MCP Framework: FastMCP
RAG Framework: LangChain
Embeddings: BAAI/bge-m3 (local via HuggingFace)
Vector DB: FAISS (local)
Reranker: BAAI/bge-reranker-v2-m3 (local via HuggingFace)
LLM: Groq API (llama-3.1-8b-instant)
Package Manager: uv
This server cannot be deployed
Maintenance
Related MCP Connectors
LLM Orchestration Agent (Langchain)
Ingest, manage, and retrieve documents for RAG-powered AI applications
LLM Orchestration Agent (Langchain Openai)
LLM Orchestration Agent (Langgraph)
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables intelligent cocktail discovery and recipe retrieval from Bar Assistant instances with natural language search, similarity matching, batch processing, and ingredient analysis capabilities.33MIT
- AlicenseCqualityDmaintenanceEnables searching for cocktail recipes by name or ingredients using the API Ninjas Cocktail API, supporting partial matches and ingredient-based filtering.1MIT
- FlicenseAqualityDmaintenanceEnables natural language search for cocktail recipes and ingredient information through TheCocktailDB API. Supports searching by cocktail name, ingredient, category, or alcohol content to discover recipes and recommendations.5-
- AlicenseNot gradedqualityBmaintenanceEnables searching for cocktail recipes by name, ingredient, or randomly, and retrieving full cocktail details including ingredients, measurements, and instructions via TheCocktailDB API.435 npmMIT