
Memwyre
io.github.memwyreai由 GitHub 账号 memwyreai 发布v1.0.0更新于 Oct 24, 2026
Universal persistent memory and knowledge retrieval layer for AI agents and LLMs.
概览
Memwyre 是一个托管的持久记忆与知识检索层,让助手在不同 AI 工具之间保存、搜索和读取记忆。
- 可以做什么
- 通过语义检索与事实检索搜索已存储的记忆和知识
- 将新记忆、文档或对话内容保存到记忆库
- 按引用获取某个已存储的文档
- 把记忆限定在特定项目或工作区范围内,避免跨项目混用
- 借助后台富化、摘要生成和按时间衰减淘汰过时事实
- 适用场景
- 适合希望上下文在会话、编辑器和不同助手之间延续而不丢失的场景,也适合为 Cursor、VS Code 或 Claude Desktop 建立共享、可搜索的知识库。
- 运行要求
- 需要 Memwyre 远程端点,无需本地运行时或安装包。需要从 Memwyre 控制台生成的 bearer 令牌,通过 Authorization 请求头发送。隐含需要 Memwyre 账号和网络访问。
安装
在 SourceWeft 中
- 打开 控制台中的 Memwyre,将其添加到工作区。
- 连接 Authorization token 凭据。它们会被私密存储,绝不会在公开页面上展示。
- 为需要使用其工具的对话启用该服务。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
交给智能体安装
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/io.github.memwyreai%2Fmemwyre/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。其他 MCP 客户端
把它添加到你客户端的 mcpServers 配置中。
{
"mcpServers": {
"memwyre": {
"type": "http",
"url": "https://server.memwyre.tech/mcp/",
"headers": {
"Authorization": "Bearer <YOUR_TOKEN>"
}
}
}
}README
Memwyre
Persistent Shared Memory for Every AI.
Website · Documentation · Console / App · Twitter / X
[FastAPI] [Vue 3] [Chrome Extension] [MCP] [LoCoMo Accuracy] [License: Apache 2.0]
Memwyre is an open-source, universal memory infrastructure and persistent knowledge retrieval layer for Large Language Models (LLMs), AI agents, and custom applications.
Rather than treating AI as stateless and losing context every time you switch between ChatGPT, Claude, Cursor, or different agent environments, Memwyre sits externally as a unified personal brain. It securely ingests, chunks, and structures your documents, web pages, conversations, and workflows—making them instantly retrievable across your entire AI toolchain.
Quickstart
Table of Contents
- Quickstart
- Core Features
- Ecosystem Tiers
- System Architecture & Core Workflows
- The LoCoMo Benchmark Evaluation
- Database Schema & Multi-Tenancy
- Installation & Setup
- Environment Configuration
- License
Core Features
- Decoupled Persistent Memory: Acts as an external, LLM-agnostic memory layer. Your knowledge base follows you whether you are using OpenAI, Google Gemini, Anthropic Claude, or local model configurations.
- Asynchronous Enrichment: Automatically refines memories, stripping filler text, generating summaries, extracting key entities, and producing atomic factual associations.
- Dynamic Context Pruning & Recency Decay: Utilizes an Ebbinghaus-inspired logarithmic decay to deprecate outdated or contradictory user preferences chronologically, keeping context sizes optimized.
- Approval-Based Inbox Flow: Introduces a memory dashboard inbox, allowing you to review, edit, approve, or reject auto-captured memories before committing them to long-term vector indexes.
- Project-Scoped Containerization: Restricts vector searches and factual associations to specific workspaces or project scopes, providing robust multi-tenant containerization.
Ecosystem Tiers
Memwyre provides multiple ways to ingest and retrieve information:
- 1. Web Application & Dashboard (Deployed on memwyre.tech): The main web app written in Vue 3 (Vite + Tailwind CSS), incorporating an onboarding tour, Monaco Editor for document management, billing integration, and a visual retrieval simulator to debug and verify vector rankings.
- 2. Chrome Extension (Manifest V3) (Available on Chrome Web Store): Auto-injects context into web chat clients, maps authentication tokens, and allows users to save articles, code snippets, or conversational logs directly to their vault with a single click.
- 3. Model Context Protocol (MCP) Server: A Python server mapping memory tools (
search_memory,save_memory,get_document) directly into IDEs like Cursor and VS Code, or desktop assistants like Claude Desktop. - 4. CLI Tool: A Node-based Command Line Interface (
cli/) providing terminal-level interaction, query testing, and batch document uploads. - 5. OpenClaw Plugin: A dedicated integration module (
openclaw-plugin/) allowing multi-agent platforms to interface directly with the Memwyre memory vault.
System Architecture & Core Workflows
High-Level Components
Memwyre connects user clients to local or cloud vector search services and AI providers:
Ingestion Pipeline
Ingesting a memory triggers background worker tasks to process, embed, and structure raw data asynchronously:
Parallelized Retrieval (RAG)
Retrieval queries run exact relational Fact lookups and fuzzy Semantic Search in parallel to feed LLM contexts with ultra-low latency:
The LoCoMo Benchmark Evaluation
The LoCoMo-10 (Long Conversational Memory) benchmark, introduced by Snap Research in "Evaluating Very Long-Term Conversational Memory of LLM Agents" (2024), evaluates AI agent systems on long-term memory, factual consistency, temporal alignment, and multi-hop reasoning over lengthy, multi-session dialog flows (up to 32 sessions and 26,000 tokens per conversation).
Performance Metrics (Memwyre vs. Flat Vector Systems)
[!TIP] Context Compression: Memwyre achieves a 88.5% context length reduction (retrieving 3,000 tokens instead of the 26,000-token raw conversational dialog) while significantly outperforming flat vector indexing in accuracy.
Architectural Enablers of LoCoMo Performance
- Dynamic Context Pruning: Strips out conversational noise (filler words, greetings, and distractors) during chunk enrichment.
- Two-Stage Re-ranking: Employs a broad, high-recall vector fetch stage followed by a Cross-Encoder re-ranker to pick only the most contextually relevant memory items.
- Ebbinghaus Logarithmic Recency Decay: Automatically deprecates older user preferences or conflicting facts chronologically when newer entries override them.
- Adversarial Immunity: Utilizes strict semantic containment, causing the retriever to fail cleanly and refuse hallucinations when queried on non-existent information.
Database Schema & Multi-Tenancy
Memwyre uses a hybrid storage model: metadata, relational facts, and user credentials reside in SQL tables (PostgreSQL/SQLite), while document chunks and enriched fact strings are mirrored in vector databases (Pinecone/ChromaDB).
👉 View the Detailed Database Schema for a complete breakdown of the Core Entities (users, projects, memories, documents, chunks, facts) and the Entity Relationship Diagram.
Fact Supersession & Project Containerization
- Supersession: When a new fact matching the same
subjectandpredicateis written (e.g. user moves from Berlin to Tokyo), the database marks the old record'sis_supersededflag astrueand updatesvalid_untilto the current timestamp. This guarantees that temporal inquiries return state-accurate facts. - Containerization: Every memory, document, chunk, and fact contains a
project_id. When querying, filters strictly enforce containment matching the current workspace'sproject_id, preventing leakage across different project environments.
Installation & Setup
Prerequisites
- Python 3.11 or 3.12 (UV package manager recommended)
- Node.js 18+ & npm
- Redis server (for background Celery tasks)
- PostgreSQL database (Optional; SQLite is used by default)
1. Backend API Setup
Navigate to the backend directory, initialize the environment, install dependencies, and start the FastAPI server:
API Swagger UI documentation will be available at http://localhost:8000/docs.
2. Background Ingestion Worker
Ensure Redis is running, then start the Celery background worker to process ingestion queues:
3. Frontend Dashboard Setup
Install frontend packages and spin up the Vite development server:
The web dashboard runs at http://localhost:5173.
4. Chrome Extension Installation
- Open Chrome and navigate to
chrome://extensions/ - Enable Developer mode (top-right toggle)
- Click Load unpacked (top-left)
- Select the
extension/folder from the root of this project. - In the Web App, go to Settings -> Copy Extension Token and paste it into the Extension popup to link your session.
5. MCP Server Integration
Claude Desktop
Add the following to your Claude Desktop config (located at %APPDATA%\Claude\claude_desktop_config.json on Windows or ~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
Cursor / VS Code
Configure your editor's MCP settings to run the server via command line:
6. Node CLI Setup
Install dependencies and run the command line tool globally:
Environment Configuration
Copy the example environment file in the backend/ directory and configure the variables:
Key environment parameters:
License
This project is licensed under the Apache License, Version 2.0 (Apache-2.0). See the LICENSE and NOTICE files for details.
来源:README.md,提交 e7f083d
工具
0版本历史
1- v1.0.0最新Sep 16, 2026
评分
已满足适用检查项的 60%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通必需25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式必需10 分
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分