
官方的Qdrant模型上下文协议(MCP)服务器实现
概览
模型上下文协议(MCP)是一种开放协议,能够实现LLM应用与外部数据源及工具之间的无缝集成。无论你是在构建AI驱动的集成开发环境、增强聊天界面,还是创建自定义AI工作流程,MCP都为LLM与所需的上下文提供了标准化连接方式。 该仓库展示了如何为向量搜索引擎Qdrant创建MCP服务器的示例。 官方的模型上下文协议服务器,用于在Qdrant向量搜索引擎中保存和检索记忆。它作为Qdrant数据库之上的语义存储层。 1. qdrant-store - 在 Qdrant 数据库中存储一些信息 - 输入:- 信息(字符串):要存储的信息 - 元数据(JSON):可选的存储元数据 - collection_name(字符串):用于存储信息的集合名称。如果没有默认集合名称,则该字段为必填。如果存在默认集合名称,则该字段不启用。
概述(AI 翻译)
模型上下文协议(MCP)是一种开放协议,能够 LLM应用与外部数据源及工具之间的无缝集成。无论你是在构建一个 AI 驱动的集成开发环境(IDE)、增强聊天界面或创建自定义 AI 工作流程,MCP 提供了一种标准化的方式 将大型语言模型与它们所需的上下文连接起来。
该仓库展示了如何为向量搜索引擎Qdrant创建MCP服务器的示例。
概述
一个官方的模型上下文协议服务器,用于在Qdrant向量搜索引擎中保存和检索记忆。 它作为Qdrant数据库之上的语义存储层。
组成部分
工具
qdrant-store
- 在Qdrant数据库中存储部分信息
- 输入:
information(字符串):存储信息metadata(JSON):可选存储元数据collection_name(字符串):存储信息的集合名称。如果没有默认集合名称,则此字段为必需。 如果有默认集合名称,该字段不会被启用。- 退货:确认信息
qdrant-find
- 从Qdrant数据库中检索相关信息
- 输入:
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
mcp-server-qdrant: A Qdrant MCP server
The Model Context Protocol (MCP) is an open protocol that enables seamless integration between LLM applications and external data sources and tools. Whether you’re building an AI-powered IDE, enhancing a chat interface, or creating custom AI workflows, MCP provides a standardized way to connect LLMs with the context they need.
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Overview
An official Model Context Protocol server for keeping and retrieving memories in the Qdrant vector search engine. It acts as a semantic memory layer on top of the Qdrant database.
Components
Tools
qdrant-store- Store some information in the Qdrant database
- Input:
information(string): Information to storemetadata(JSON): Optional metadata to storecollection_name(string): Name of the collection to store the information in. This field is required if there are no default collection name. If there is a default collection name, this field is not enabled.
- Returns: Confirmation message
qdrant-find- Retrieve relevant information from the Qdrant database
- Input:
query(string): Query to use for searchingcollection_name(string): Name of the collection to store the information in. This field is required if there are no default collection name. If there is a default collection name, this field is not enabled.
- Returns: Information stored in the Qdrant database as separate messages
Environment Variables
Configuration is done via environment variables. The only command-line argument is --transport, used to select the transport protocol.
[!NOTE] You cannot provide both
QDRANT_URLandQDRANT_LOCAL_PATHat the same time.
| Name | Description | Default Value |
|---|---|---|
QDRANT_URL |
URL of the Qdrant server | None |
QDRANT_API_KEY |
API key for the Qdrant server | None |
COLLECTION_NAME |
Name of the default collection to use. | None |
安装
uvx mcp-server-qdrant