qdrant-mcp-server
by mhalder·★ 32·综合分 46
使用 Qdrant 向量数据库和多嵌入提供商实现的语义搜索 MCP 服务器。
概述
Qdrant MCP Server 提供本地优先架构的全面语义搜索功能,支持多种嵌入提供商,包括 Ollama、OpenAI、Cohere 和 Voyage AI。服务器具有先进的代码向量化功能,支持 AST 感知的分块、Git 历史索引,以及结合语义和关键字搜索的混合搜索。可以通过 stdio 传输方式在本地部署,或作为带有身份验证支持的 HTTP 服务器远程部署。
试试问 AI
装完之后,这里有 6 个你可以让 AI 做的事:
什么时候选它
当您需要具有本地隐私优先向量存储的语义搜索功能,或在使用现有 Qdrant 部署时选择它。
什么时候不要选它
如果您需要支持其他向量数据库如 Pinecone、Chroma 或 Weaviata,则避免使用,因为它紧密耦合到 Qdrant。
此 server 暴露的工具
从 README 抽取出 12 个工具create_collectionCreate collection with specified distance metric (Cosine/Euclid/Dot)
add_documentsAdd documents with automatic embedding (supports string/number IDs, metadata)
semantic_searchNatural language search with optional metadata filtering
hybrid_searchHybrid search combining semantic and keyword (BM25) search with RRF
index_codebaseIndex a codebase for semantic code search with AST-aware chunking
search_codeSearch indexed codebase using natural language queries
index_git_historyIndex git commit history for semantic search over past changes and fixes
search_git_historySearch indexed git history using natural language queries
contextual_searchCombined code + git history search with file-commit correlations
federated_searchSearch across multiple repositories with Reciprocal Rank Fusion (RRF) ranking
reindex_changesIncrementally re-index only changed files (detects added/modified/deleted)
delete_documentsDelete specific documents by ID
可对比工具
安装
安装
先决条件
- Node.js 22.x 或 24.x
- 支持 Compose 的 Podman 或 Docker
步骤
# 克隆并安装
git clone https://github.com/mhalder/qdrant-mcp-server.git
cd qdrant-mcp-server
npm install
# 启动服务
podman compose up -d # 使用 Podman
docker compose up -d # 使用 Docker
# 拉取嵌入模型
podman exec ollama ollama pull nomic-embed-text
# 构建
npm run buildClaude Desktop 配置
添加到 ~/.claude.json:
{
"mcpServers": {
"qdrant": {
"type": "stdio",
"command": "node",
"args": ["/path/to/qdrant-mcp-server/build/index.js"]
}
}
}FAQ
- 支持哪些嵌入提供商?
- 该服务器支持 Ollama(默认)、OpenAI、Cohere 和 Voyage AI 作为嵌入提供商。
- 我可以使用 Qdrant Cloud 吗?
- 可以,您可以使用 API 密钥身份验证连接到 Qdrant Cloud 或受保护的实例。
qdrant-mcp-server 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。