Memory OS AI
概览
作者提供的说明(英文原文)
Adaptive memory for AI agents — FAISS search, chat extraction, cross-project linking
PopNx MCP 的三大支柱
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
- 用户评价i暂无评价评价功能将在后续阶段与账户功能一起开放
- 我们的基础检查i1 项中通过 1 项依据公开信息检查;尚未扫描代码
- 使用情况i非常新↓ 166/周 · ★ –
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 在你的电脑上运行
- 传输方式: stdio
- 分类: 搜索与 AI 记忆
安装
选择你使用的 AI 应用,然后复制设置。
安装之前
- 基础检查:1 项中通过 1 项
- 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
- 注册中心没有列出需要填写的密钥。
你需要
- PyPI已安装 Python 的 uv(用于 uvx 命令)
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"memory-os-ai": {
"command": "uvx",
"args": [
"memory-os-ai"
]
}
}
}在终端中运行这条命令
claude mcp add memory-os-ai -- uvx memory-os-ai或者自己复制设置
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"memory-os-ai": {
"command": "uvx",
"args": [
"memory-os-ai"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
或者自己复制设置
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"memory-os-ai": {
"type": "stdio",
"command": "uvx",
"args": [
"memory-os-ai"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 romainsantoli-web 验证,该账户拥有此仓库
- … 尚未检查
仍在维护
我们还没有从 GitHub 读取这个仓库
- … 尚未检查
有许可证
我们还没有从 GitHub 读取这个仓库
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与“搜索与 AI 记忆”中的其他服务器比较i
- 星标数多于此分类中其他 5688 个服务器的 0%
- 发布到注册中心的时间比此分类中其他 5688 个服务器的 4% 更新
- 基础检查结果等于或优于此分类中其他 5688 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
Memory OS AI 安全吗?
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于–,最新版本(3.0.1)于8个月前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
有什么可以替代它?
同一分类中有:Context7, Codebase Memory, Exa
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Codebase Memory
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Exa
Connect AI agents to Exa for web search, content fetching, and multi-step research.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Memory OS AI
Adaptive memory system for AI agents — universal MCP server for Claude Code, Codex CLI, VS Code Copilot, ChatGPT, and any MCP-compatible client.
Concept
Memory OS AI transforms your local documents (PDF, DOCX, images, audio) into a semantic memory queryable by any AI model through the MCP (Model Context Protocol).
┌──────────────────────────────────┐
│ AI Client (any MCP-compatible) │ │ Claude Code / Codex / Copilot │ │ ChatGPT / custom agents │ ├──────────────────────────────────┤ │ MCP Protocol │ │ stdio / SSE / Streamable HTTP │ ├──────────────────────────────────┤ │ Memory OS AI Server │ │ ┌────────┐ ┌───────────────┐ │ │ │ FAISS │ │ Chat Extractor│ │ │ │ Index │ │ (4 sources) │ │ │ └────────┘ └───────────────┘ │ │ ┌────────────────────────────┐ │ │ │ Cross-Project Linking │ │ │ └────────────────────────────┘ │ └──────────────────────────────────┘
Features
- 21 MCP tools for memory management, search, chat persistence, project linking, and cloud storage
- Semantic search with FAISS + SentenceTransformers (all-MiniLM-L6-v2)
- Multi-format ingestion: PDF, DOCX, TXT, images (OCR), audio (Whisper), PPTX
- Chat extraction: auto-detects Claude, ChatGPT, Copilot, and terminal history
- Cross-project linking: share memory across multiple workspaces
- Cloud storage overflow: auto-backup to Google Drive, iCloud, Dropbox, OneDrive, S3, Azure, Box, B2
- 3 transports: stdio (default), SSE (
--sse), Streamable HTTP (--http) - MCP Resources:
memory://documents/*,memory://logs/conversation,memory://linked/* - Local-first: all data on your machine by default, cloud only when disk runs low
21 MCP Tools
| Tool | Description |
|---|---|
memory_ingest | Index a folder of documents into FAISS |
memory_search | Semantic search across all indexed content |
memory_search_occurrences | Count keyword occurrences across documents |
memory_get_context | Get relevant context for the current task |
memory_list_documents | List all indexed documents with stats |
memory_transcribe | Transcribe audio files (Whisper) |
memory_status | Engine status (index size, model, device) |
memory_compact | Compact/deduplicate the FAISS index |
memory_chat_sync | Sync messages from configured chat sources |
memory_chat_source_add | Add a chat source (Claude, ChatGPT, etc.) |
memory_chat_source_remove | Remove a chat source |
memory_chat_status | Status of all chat sources |
memory_chat_auto_detect | Auto-detect chat workspaces on disk |
memory_session_brief | Full memory briefing for session start |
memory_chat_save | Persist conversation messages to memory |
memory_project_link | Link another project's memory |
memory_project_unlink | Unlink a project |
memory_project_list | List all linked projects |
memory_cloud_configure | Configure cloud storage backend for overflow |
memory_cloud_status | Show local disk + cloud storage status |
memory_cloud_sync | Push/pull/auto-sync between local and cloud |
Quick Start
Prerequisites
- Python 3.10+
- Optional:
tesseract(OCR),ffmpeg(audio),antiword(legacy .doc)
# macOS
brew install tesseract ffmpeg antiword
Ubuntu/Debian
sudo apt-get install tesseract-ocr ffmpeg antiword
Install
git clone https://github.com/romainsantoli-web/Memory-os-ai.git
cd Memory-os-ai pip install -e ".[dev,audio]"
Auto-Setup (recommended)
# Setup for your AI client:
memory-os-ai setup claude-code # Claude Code memory-os-ai setup codex # Codex CLI memory-os-ai setup vscode # VS Code Copilot memory-os-ai setup claude-desktop # Claude Desktop memory-os-ai setup chatgpt # ChatGPT (manual bridge) memory-os-ai setup all # All of the above
Check status:
memory-os-ai setup status
Manual Start
# stdio (default — Claude Code, VS Code, Codex)
memory-os-ai
SSE transport (port 8765)
memory-os-ai --sse
Streamable HTTP (port 8765)
memory-os-ai --http
Project Structure
Memory-os-ai/
├── src/memory_os_ai/ │ ├── init.py # Public API: MemoryEngine, ChatExtractor, TOOL_MODELS │ ├── main.py # python -m memory_os_ai entry point │ ├── server.py # MCP server — 21 tools, 3 transports, resources │ ├── engine.py # FAISS engine — indexing, search, compact, session brief │ ├── cloud_storage.py # 8 cloud backends (GDrive, iCloud, Dropbox, OneDrive, S3, Azure, Box, B2) │ ├── storage_router.py # Smart routing: local-first with cloud overflow │ ├── models.py # 21 Pydantic models + TOOL_MODELS registry │ ├── chat_extractor.py # 4 extractors: Claude, ChatGPT, Copilot, terminal │ ├── instructions.py # MEMORY_INSTRUCTIONS for AI clients │ └── setup.py # Auto-setup CLI for 5 AI clients ├── bridges/ │ ├── claude-code/ # CLAUDE.md with memory rules │ ├── claude-desktop/ # config.json for Claude Desktop │ ├── codex/ # AGENTS.md for Codex CLI │ ├── vscode/ # mcp.json for VS Code │ └── chatgpt/ # mcp-connection.json for ChatGPT ├── tests/ # 410+ tests — 96% coverage │ ├── test_memory.py # Engine + models (60 tests) │ ├── test_chat_extractor.py # Chat extraction (39 tests) │ ├── test_bridges.py # Bridge configs (22 tests) │ ├── test_gaps.py # Compact, cross-project, resources (34 tests) │ ├── test_server_dispatch.py # Server dispatch + async (61 tests) │ ├── test_setup.py # Setup CLI targets │ ├── test_z_coverage_boost.py # Coverage boost (35 tests) │ └── test_zz_full_coverage.py # Full coverage (97 tests) ├── pyproject.toml # v3.1.0 — deps, scripts, coverage config + cloud optional deps ├── Dockerfile # Container deployment └── README.md
Cloud Storage (v3.1.0)
When local disk runs low (< 500 MB free by default), memory data automatically overflows to a configured cloud backend.
Supported Providers
| Provider | Install | Credentials |
|---|---|---|
| Google Drive | pip install memory-os-ai[cloud-gdrive] | credentials_json or token_json + folder_id |
| iCloud Drive | *(macOS native, no extra deps)* | container name (default: memory-os-ai) |
| Dropbox | pip install memory-os-ai[cloud-dropbox] | access_token + folder |
| OneDrive | *(auto-detects mount)* or Graph API | mount_path or access_token |
| Amazon S3 | pip install memory-os-ai[cloud-s3] | bucket, aws_access_key_id, aws_secret_access_key |
| Azure Blob | pip install memory-os-ai[cloud-azure] | connection_string + container |
| Box | pip install memory-os-ai[cloud-box] | access_token + folder_id |
| Backblaze B2 | pip install memory-os-ai[cloud-b2] | application_key_id, application_key, bucket_name |
| All providers | pip install memory-os-ai[cloud-all] | — |
Usage
# Configure via environment (auto-activates on server start)
export MEMORY_CLOUD_PROVIDER=icloud export MEMORY_CLOUD_CONFIG='{"container": "memory-os-ai"}' memory-os-ai
Or configure at runtime via MCP tool:
memory_cloud_configure(provider="s3", credentials={"bucket": "my-bucket", ...})
memory_cloud_status() → local disk + cloud usage
memory_cloud_sync("push") → backup to cloud
memory_cloud_sync("pull") → restore from cloud
memory_cloud_sync("auto") → offload if disk low
Configuration
Environment Variables
| Variable | Default | Description |
|---|---|---|
MEMORY_CACHE_DIR | ~/.memory-os-ai | Cache / FAISS index directory |
MEMORY_MODEL | all-MiniLM-L6-v2 | SentenceTransformer model name |
MEMORY_API_KEY | *(none)* | Optional API key for SSE/HTTP auth |
MEMORY_CLOUD_PROVIDER | *(none)* | Cloud provider name (see table above) |
MEMORY_CLOUD_CONFIG | *(none)* | JSON credentials or path to JSON file |
MEMORY_DISK_THRESHOLD | 524288000 | Bytes free before cloud overflow (500 MB) |
Development
# Install dev dependencies
pip install -e ".[dev]"
Run tests
python -m pytest tests/ -v
Run with coverage
python -m pytest tests/ --cov=memory_os_ai --cov-report=term-missing
Coverage threshold: 80% (enforced in pyproject.toml)
License
GNU Lesser General Public License v3.0 (LGPL-3.0). See LICENSE for details.
For commercial licensing, contact romainsantoli@gmail.com.
Part of the OpenClaw Ecosystem
Memory OS AI is designed to work alongside the OpenClaw agent infrastructure:
| Repo | Description |
|---|---|
| setup-vs-agent-firm | Factory for AI agent firms — 28 SKILL.md, 5 SOUL.md, 15 sectors |
| mcp-openclaw-extensions | 115 MCP tools — security audit, A2A bridge, fleet management |
| Memory OS AI *(this repo)* | Semantic memory + chat persistence — universal MCP bridge |
Together they form a complete stack: memory (this repo) → skills & souls (setup-vs-agent-firm) → security & orchestration (mcp-openclaw-extensions).
Contributing
Contributions welcome! See CONTRIBUTING.md for guidelines.
⚠️ Contenu généré par IA — validation humaine requise avant utilisation.