Vectorsearch

io.github.CloudCorpRecords由 GitHub 账号 CloudCorpRecords 发布v0.1.0更新于 Nov 7, 2026

Store and retrieve text in a Qdrant vector database by similarity search.

已验证STDIO仅桌面数据库知识与记忆

概览

AI 生成的概览

一个小型本地记忆服务器,把文本存入 Qdrant 向量数据库,之后按相似度检索取回。

可以做什么
  • 把文本连同可选元数据作为数据点存入 Qdrant 集合,集合不存在时自动创建。
  • 用自然语言查询检索已存内容,返回最接近的条目及其负载和分数。
  • 每次调用可指定集合名称,未指定时使用默认集合。
适用场景
适合让助手跨会话保存简短笔记或事实并在之后查回,前提是你已自行运行 Qdrant 实例。它面向简单、自包含的记忆场景,而非高质量语义搜索。
运行要求
以本地 stdio 进程运行,可通过 npx 或 Docker 镜像启动。需要一个可访问的 Qdrant 服务;QDRANT_URL 用于指定非默认地址(默认 localhost:6333),COLLECTION_NAME 指定默认集合(默认 documents)。未声明账号或 API 密钥。
安装前请注意
存入的文本和元数据会写入你的 Qdrant 数据库;重复存入相同文本会更新同一条目而非新增。相似度来自本地基于哈希的嵌入与词元重叠,并非模型级语义嵌入,检索质量有限。服务器会把文本发送到所配置的 Qdrant 实例,请只指向你信任的服务。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Vectorsearch,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

vectorsearch

vectorsearch is a small memory for agents: store a piece of information now, then ask for it back later with a plain-language query. It keeps exactly two operations — store and find — and backs them with a Qdrant vector database over its REST API.

Set QDRANT_URL to reach a non-default service (it assumes http://localhost:6333). The collection used when a call does not name one comes from COLLECTION_NAME and defaults to documents. Storing into a collection that does not exist yet creates it first, sized to this tool's embedding dimension with cosine distance.

Install

bash
npx @reneturcios/vectorsearch find "how do we deploy the staging app"

Or run the container image:

bash
docker run -i ghcr.io/cloudcorprecords/vectorsearch

The container defaults to the MCP server (see below). Pass CLI arguments to use it as a CLI instead.

CLI

bash
# Store something (optionally into a named collection)vectorsearch store "the staging deploy runs from the release branch" --collection notes
# Ask for it backvectorsearch find "staging deploy" --collection notes
# Start the MCP servervectorsearch mcp
vectorsearch --version

Exit codes: 0 on success, 1 when the service call fails (the error includes the HTTP status), 2 for usage errors.

MCP server

One bin serves both faces. The mcp subcommand starts a stdio MCP server:

bash
npx -y @reneturcios/vectorsearch mcp

MCP client configuration:

json
{  "mcpServers": {    "vectorsearch": {      "command": "npx",      "args": ["-y", "@reneturcios/vectorsearch", "mcp"],      "env": {        "QDRANT_URL": "http://localhost:6333",        "COLLECTION_NAME": "documents"      }    }  }}

Tools

ToolRequiredOptionalPurpose
qdrant-storeinformation (string)metadata (object), collection_name (string)Store some information in the Qdrant database. The text and any metadata become the point payload.
qdrant-findquery (string)collection_name (string)Retrieve relevant information from the Qdrant database. Returns the closest stored entries with their payloads and scores.

About the embeddings

The reference design pairs Qdrant with an external embedding model. This rebuild deliberately calls no external embedding service. Instead it embeds text locally with a deterministic hash-based function: the same text always produces the same unit vector, and texts that share tokens land near each other, which keeps store and find self-consistent and fully offline. Be clear-eyed about the trade-off: this is a local fallback with token-overlap similarity, not model-grade semantic embeddings. Swapping in a real embedding provider later only changes the executor's vector function — the tools, schemas, and storage shape stay the same.

Point ids are likewise deterministic, derived from a hash of the text (and metadata when present), so re-storing the same information updates the same point instead of piling up duplicates.

Development

bash
npm installnpm run build   # tsc -> dist/npm test        # node test runner over test/*.test.ts, fakes only, no live servicenpm run dev     # run the CLI from source via tsx

Dispatch, default-collection resolution, and error propagation are tested against a fake executor; the Qdrant REST executor is tested against a fake fetch that records its requests (collection ensure / create-on-missing, point upsert shape, search mapping).

License

MIT — see LICENSE.

来源:README.md,提交 9626c3d

工具

2

qdrant-store

Store some information in the Qdrant database

输入参数metadatainformation必填collection_name

qdrant-find

Retrieve relevant information from the Qdrant database

输入参数query必填collection_name

版本历史

1
  1. v0.1.0最新Oct 31, 2026

评分

已满足适用检查项的 90%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分
  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分