Qdrant MCP 服务器
关于此服务器
Qdrant 官方 MCP 服务器。让 AI 智能体直接操作 Qdrant 向量数据库:创建和搜索集合、插入向量数据、执行语义搜索,无需手动编写 API 请求。
安装方式
npx -y @qdrant/mcp-server-qdrant官方 README 安装指南(英文原文)
Using uvx
When using uvx no specific installation is needed to directly run *mcp-server-qdrant*.
QDRANT_URL="http://localhost:6333" \
COLLECTION_NAME="my-collection" \
EMBEDDING_MODEL="sentence-transformers/all-MiniLM-L6-v2" \
uvx mcp-server-qdrantTransport Protocols
The server supports different transport protocols that can be specified using the --transport flag:
QDRANT_URL="http://localhost:6333" \
COLLECTION_NAME="my-collection" \
uvx mcp-server-qdrant --transport sseSupported transport protocols:
stdio(default): Standard input/output transport, might only be used by local MCP clientssse: Server-Sent Events transport, perfect for remote clientsstreamable-http: Streamable HTTP transport, perfect for remote clients, more recent than SSE
The default transport is stdio if not specified.
When SSE transport is used, the server will listen on the specified port and wait for incoming connections. The default
port is 8000, however it can be changed using the FASTMCP_SERVER_PORT environment variable.
QDRANT_URL="http://localhost:6333" \
COLLECTION_NAME="my-collection" \
FASTMCP_SERVER_PORT=1234 \
uvx mcp-server-qdrant --transport sseUsing Docker
A Dockerfile is available for building and running the MCP server:
# Build the container
docker build -t mcp-server-qdrant .
# Run the container
docker run -p 8000:8000 \
-e FASTMCP_SERVER_HOST="0.0.0.0" \
-e QDRANT_URL="http://your-qdrant-server:6333" \
-e QDRANT_API_KEY="your-api-key" \
-e COLLECTION_NAME="your-collection" \
mcp-server-qdrant> [!TIP]
> Please note that we set FASTMCP_SERVER_HOST="0.0.0.0" to make the server listen on all network interfaces. This is
> necessary when running the server in a Docker container.
Installing via Smithery
To install Qdrant MCP Server for Claude Desktop automatically via Smithery:
npx @smithery/cli install mcp-server-qdrant --client claudeManual configuration of Claude Desktop
To use this server with the Claude Desktop app, add the following configuration to the "mcpServers" section of your
claude_desktop_config.json:
{
"qdrant": {
"command": "uvx",
"args": ["mcp-server-qdrant"],
"env": {
"QDRANT_URL": "https://xyz-example.eu-central.aws.cloud.qdrant.io:6333",
"QDRANT_API_KEY": "your_api_key",
"COLLECTION_NAME": "your-collection-name",
"EMBEDDING_MODEL": "sentence-transformers/all-MiniLM-L6-v2"
}
}
}For local Qdrant mode:
{
"qdrant": {
"command": "uvx",
"args": ["mcp-server-qdrant"],
"env": {
"QDRANT_LOCAL_PATH": "/path/to/qdrant/database",
"COLLECTION_NAME": "your-collection-name",
"EMBEDDING_MODEL": "sentence-transformers/all-MiniLM-L6-v2"
}
}
}This MCP server will automatically create a collection with the specified name if it doesn't exist.
By default, the server will use the sentence-transformers/all-MiniLM-L6-v2 embedding model to encode memories.
For the time being, only FastEmbed models are supported.
常见问题
Qdrant MCP 能做什么?
让 AI 智能体直接操作 Qdrant 向量数据库:创建和管理集合(Collection)、插入和更新向量数据、执行语义相似度搜索、管理索引和过滤器。适用于构建 RAG(检索增强生成)应用、语义搜索、推荐系统等场景。
Qdrant MCP 需要连接 Qdrant 实例吗?
需要连接一个正在运行的 Qdrant 实例(可以是本地 Docker 部署或 Qdrant Cloud)。MCP 服务器通过 Qdrant 客户端 API 连接,需要配置实例的 URL 和 API Key(如有)。
Qdrant MCP 免费吗?
MCP 服务器本身开源免费(Apache 2.0)。Qdrant 提供开源版(可自托管,免费)和 Qdrant Cloud(有免费额度,超出后按量计费)。