The Model Context Protocol (MCP) implementation in RAG Kit enables AI models to interact with vector databases for Retrieval-Augmented Generation (RAG) through a standardized interface.
- Go 1.23.2 or higher
- Qdrant vector database
- OpenAI API access
- Install the server:
go install github.com/nguyenvanduocit/rag-kit@latest
- Create a
.env
file with your configuration:
# Required for Qdrant
QDRANT_HOST= # Required: Qdrant server host
QDRANT_PORT= # Required: Qdrant server port
QDRANT_API_KEY= # Required: Qdrant API key
# Required for OpenAI
OPENAI_API_KEY= # Required: OpenAI API key
# Optional configurations
ENABLE_TOOLS= # Optional: Comma-separated list of tool groups to enable (empty = all enabled)
PROXY_URL= # Optional: HTTP/HTTPS proxy URL if needed
- Configure your Claude's config:
{
"mcpServers": {
"rag_kit": {
"command": "rag-kit",
"args": ["-env", "/path/to/.env"]
}
}
}
The ENABLE_TOOLS
environment variable is a comma-separated list of tool groups to enable. Available groups are:
rag
- RAG (Retrieval-Augmented Generation) tools
Leave it empty to enable all tools.
Index a content into memory, can be inserted or updated
Index a local file into memory
Create a new vector collection in memory
Delete a vector collection in memory
List all vector collections in memory
Search for memory in a collection based on a query
Delete a vector index by filePath