loading…
Search for a command to run...
loading…
Provides cocktail recommendations using a Retrieval-Augmented Generation (RAG) pipeline powered by LangChain, FAISS, and Groq. It enables users to search for co
Provides cocktail recommendations using a Retrieval-Augmented Generation (RAG) pipeline powered by LangChain, FAISS, and Groq. It enables users to search for cocktail recipes and receive personalized drink suggestions through natural language.
MCP tool for cocktail recommendations using RAG (Retrieval-Augmented Generation).
Get Groq API key (free): 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 sync
Pre-download models (required):
Download embeddings and reranker models:
uv run python -c "from src.rag.rag import RAG; RAG(); print('Models downloaed!')"
Install for Claude Desktop:
uv run fastmcp install claude-desktop fastmcp.json --name cocktails --env-file .env
Edit config file:
~/Library/Application Support/Claude/claude_desktop_config.json%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 and GROQ_API_KEY with your API key.
# Test RAG pipeline directly
uv run python -m src.rag.rag
# Test MCP server locally
uv run python src/mcp/server.py
# Format code with black
uv tool run black .
# Sort imports with isort
uv tool run isort .
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 template
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"cocktails-rag-mcp-server": {
"command": "npx",
"args": []
}
}
}