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 分