
Weasley DeepMind
io.github.potatohoney-p由 GitHub 帳號 potatohoney-p 發布v1.0.0更新於 Oct 24, 2026
Secure, fragment-based long-term memory for MCP-compatible AI agents.
概覽
自架式長期記憶伺服器,讓 AI 助理透過 MCP 儲存、連結並回想小型的具型別記憶片段。
- 可以做什麼
- 儲存記憶片段,可單筆或批次寫入,並帶有型別、來源、重要性與生命週期狀態
- 在 token 預算內以關鍵字、PostgreSQL GIN、圖鄰居與選用向量檢索合併排序後回想上下文
- 修改、遺忘與連結片段,並瀏覽記憶圖譜
- 對已存記憶進行反思與整併,並檢視記憶統計
- 檢視片段歷史、重建歷史並搜尋呼叫軌跡
- 適用情境
- 適合希望助理跨工作階段保留上下文、又不想把整段對話歷史塞回提示詞的情境,前提是你願意自行執行 PostgreSQL 資料庫。也適合希望記憶資料留在自有基礎設施上的團隊。
- 執行需求
- 需要 Node.js 20.19 或更新版本,以及安裝 pgvector 擴充功能的 PostgreSQL 15 或更新版本;Redis 7 為選用。需要 DATABASE_URL 連線字串,語意回想可選配 EMBEDDING_API_KEY。可透過 npx 以本機 stdio 程序執行,或作為僅監聽本機的 HTTP 伺服器執行並搭配 bearer 存取金鑰。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Weasley DeepMind,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Weasley DeepMind
Weasley DeepMind is a self-hosted memory server for AI agents. It stores small, typed memory fragments, links related evidence, and recalls the right context through MCP without forcing an entire conversation history back into every prompt.
It is part of the Weasley Open Source family and is released under Apache-2.0.
Why DeepMind
- Useful recall, not a transcript dump. Keyword, PostgreSQL GIN, graph-neighbor, and optional pgvector search are merged and ranked within a token budget.
- Memory with structure. Facts, decisions, procedures, preferences, episodes, and errors keep provenance, importance, links, and lifecycle state.
- MCP-native. Use a local stdio process or the Streamable HTTP endpoint at
/mcp. - Fail-closed HTTP security. The HTTP server rejects requests when no access key is configured. Authentication can only be disabled explicitly for local development.
- Self-hosted data. PostgreSQL is the system of record. Redis and external embedding or LLM providers are optional.
- Operationally ready. Migrations are serialized with a PostgreSQL advisory lock, secrets are redacted from logs, and updates refuse dirty Git checkouts.
Requirements
- Node.js 20.19 or newer
- PostgreSQL 15 or newer with the
pgvectorextension - Redis 7 (optional, for cache and low-latency keyword lookup)
For a reproducible offline check of correction/retraction recall and content-token
budgets, run npm run --silent eval:recall with Node.js 24. This uses production
recall code and synthetic storage, with no database or model required. See the
offline recall evaluation for the
negative control, report definitions and limits.
Install from npm
Create a PostgreSQL database with pgvector, then configure the connection:
The HTTP server listens on http://127.0.0.1:57332 by default. Its MCP endpoint is http://127.0.0.1:57332/mcp.
Add it to an MCP client
The npm package includes a newline-delimited stdio transport. A generic MCP client configuration looks like this:
For an already-running HTTP deployment, point the client at /mcp and send Authorization: Bearer <WEASLEY_DEEPMIND_ACCESS_KEY>.
Run the repository locally
The development Compose file exposes PostgreSQL at localhost:35432 and Redis at localhost:36379. Update .env to match those ports before starting the server.
Core flow
The main tool set includes remember, batch_remember, recall, forget, amend, link, reflect, context, memory_stats, memory_consolidate, graph_explore, fragment_history, reconstruct_history, and search_traces. Tool availability can be limited by API-key permissions and operating mode.
Configuration
See .env.example, configuration, and the installation guide for the complete matrix.
Local transformer embeddings are intentionally excluded from the default install so the core MCP server does not inherit an optional native-image dependency. Follow the pinned setup in docs/embedding-local.md before selecting EMBEDDING_PROVIDER=transformers.
CLI
Run weasley-deepmind --help or see the CLI reference for every command.
Security defaults
- Keep the HTTP listener on loopback unless you have a trusted reverse proxy and an explicit origin allowlist.
- Use a unique, high-entropy
WEASLEY_DEEPMIND_ACCESS_KEYand never commit.env. - Stdio mode trusts the local MCP host process; protect the host account and database credentials accordingly.
- Report vulnerabilities privately using the instructions in SECURITY.md.
Development
Architecture and operations details live in docs/architecture.en.md and docs/operations. Contributions are welcome through CONTRIBUTING.md.
License
Copyright 2026 Weasley Open Source.
Licensed under the Apache License 2.0. See NOTICE for attribution information.
來源:README.md,提交 762f5c7
工具
0版本歷史
1- v1.0.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分