omem 永不遗忘记忆库 是 AI Skill Hub 本期精选MCP工具之一。综合评分 8.0 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。
omem 永不遗忘记忆库 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
omem 永不遗忘记忆库 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/ourmem/omem
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"omem--------": {
"command": "npx",
"args": ["-y", "omem"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 omem 永不遗忘记忆库 执行以下任务... Claude: [自动调用 omem 永不遗忘记忆库 MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"omem________": {
"command": "npx",
"args": ["-y", "omem"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
<p align="center"> <strong>OMEM</strong><br/> Shared Memory That Never Forgets </p>
<p align="center"> <a href="https://github.com/ourmem/omem/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-blue.svg" alt="License"></a> <a href="https://ourmem.ai"><img src="https://img.shields.io/badge/hosted-ourmem.ai-green.svg" alt="Hosted"></a> <a href="https://github.com/ourmem/omem"><img src="https://img.shields.io/github/stars/ourmem/omem?style=social" alt="Stars"></a> </p>
<p align="center"> <strong>English</strong> | <a href="README_CN.md">简体中文</a> </p>
---
🔗 Shared Across BoundariesThree-tier Spaces — Personal, Team, Organization — let knowledge flow across agents and teams with full provenance tracking. |
🧠 Never ForgetWeibull decay model manages the memory lifecycle — core memories persist, peripheral ones gracefully fade. No manual cleanup. |
🔍 Deep Understanding11-stage hybrid retrieval: vector search, BM25, RRF fusion, cross-encoder reranking, and MMR diversity for precise recall. |
⚡ Smart Evolution7-decision reconciliation — CREATE, MERGE, SUPERSEDE, SUPPORT, CONTEXTUALIZE, CONTRADICT, or SKIP — makes memories smarter over time. |
📖 Memory Pipeline Architecture — Technical deep-dive into how ourmem stores, retrieves, and evolves memories.
🔗 Memory Sharing Architecture — How memories flow across agents and teams: sharing, provenance, versioning, and cross-space search.
| Category | Feature | Details |
|---|---|---|
| **Platforms** | 4 platforms | OpenCode, Claude Code, OpenClaw, MCP Server |
| **Sharing** | Space-based sharing | Personal / Team / Organization with provenance |
| Provenance tracking | Every shared memory carries full lineage | |
| Quality-gated auto-sharing | Rules fire on memory creation (async, non-blocking) | |
| Vector-enabled shared copies | Shared copies carry source vector embeddings for full search | |
| Idempotent sharing | Re-sharing returns existing copy (no duplicates) | |
| Version tracking | Memories track version counter, shared copies detect staleness via ?check_stale=true | |
| Re-share stale copies | Refresh outdated shared copies with latest source content and vector | |
| Convenience sharing | One-step cross-user share (share-to-user) and bulk share (share-all-to-user) with auto-bridging | |
| Organization management | One-step org creation (org/setup) and publish (org/publish) with auto-share rules | |
| Cross-space search | Search across all accessible spaces at once | |
| **Ingestion** | Smart dedup | 7 decisions: CREATE, MERGE, SKIP, SUPERSEDE, SUPPORT, CONTEXTUALIZE, CONTRADICT |
| Noise filter | Regex + vector prototypes + feedback learning | |
| Admission control | 5-dimension scoring gate (utility, confidence, novelty, recency, type prior) | |
| Dual-stream write | Sync fast path (<50ms) + async LLM extraction | |
| Post-import intelligence | Batch import → async LLM re-extraction + relation discovery | |
| Adaptive import strategy | Auto/atomic/section/document — heuristic content type detection | |
| Content fidelity | Original text preserved, dual-path search (vector + BM25 on source text) | |
| Cross-reconcile | Discover relations between memories via vector similarity | |
| Batch self-dedup | LLM deduplicates facts within same import batch | |
| Privacy protection | <private> tag redaction before storage | |
| **Retrieval** | 11-stage pipeline | Vector + BM25 → RRF → reranker → decay → importance → MMR diversity |
| User Profile | Static facts + dynamic context, <100ms | |
| Retrieval trace | Per-stage explainability (input/output/score/duration) | |
| **Lifecycle** | Weibull decay | Tier-specific β (Core=0.8, Working=1.0, Peripheral=1.3) |
| Three-tier promotion | Peripheral ↔ Working ↔ Core with access-based promotion | |
| Auto-forgetting | TTL detection for time-sensitive info ("tomorrow", "next week") | |
| **Multi-modal** | File processing | PDF, image OCR, video transcription, code AST chunking |
| GitHub connector | Real-time webhook sync for code, issues, PRs | |
| **Deploy** | Open source | Apache-2.0 |
| Self-hostable | Single binary, Docker one-liner, ~$5/month | |
| musl static build | Zero-dependency binary for any Linux x86_64 | |
| Object storage | AWS S3 or any S3-compatible storage, with IAM role support | |
| Hosted option | ourmem.ai — nothing to deploy |
Single binary that runs on any Linux x86_64 — no glibc, no libraries, nothing.
```bash rustup target add x86_64-unknown-linux-musl
RUSTFLAGS="-C target-feature=+crt-static -C relocation-model=static" \ cargo build --release --target x86_64-unknown-linux-musl \ -p omem-server --no-default-features
ssh user@server "gunzip /opt/omem-server.gz && chmod +x /opt/omem-server && /opt/omem-server" ```
REST API with 48+ endpoints. Docker one-liner for self-deploy. Embed persistent memory into your own agents and workflows.
→ Jump to Self-Deploy
</td> </tr> </table>
One message to your AI agent. It handles everything — API key, plugin install, config, verification.
Hosted (ourmem.ai — nothing to deploy):
| Platform | Copy this to your agent |
|---|---|
| **OpenClaw** | Read https://ourmem.ai/SKILL.md and follow the instructions to install and configure ourmem for OpenClaw |
| **Claude Code** | Read https://ourmem.ai/SKILL.md and follow the instructions to install and configure ourmem for Claude Code |
| **OpenCode** | Read https://ourmem.ai/SKILL.md and follow the instructions to install and configure ourmem for OpenCode |
| **Cursor / VS Code** | Read https://ourmem.ai/SKILL.md and follow the instructions to install and configure ourmem as MCP Server |
Self-hosted (your own server):
| Platform | How to install |
|---|---|
| **OpenClaw** | Run openclaw skills install ourmem, then tell your agent: setup ourmem in self-hosted mode |
| **Claude Code** | Read https://raw.githubusercontent.com/ourmem/omem/main/skills/ourmem/SKILL.md and install ourmem for Claude Code, self-hosted mode |
| **OpenCode** | Read https://raw.githubusercontent.com/ourmem/omem/main/skills/ourmem/SKILL.md and install ourmem for OpenCode, self-hosted mode |
That's it. Your agent handles the rest.
Skill Install (alternative):
If you prefer CLI installation, install the ourmem skill directly:
npx skills add ourmem/omem --skill ourmem -g
This works with 44+ AI agents including Claude Code, OpenCode, Cursor, and more. See Vercel Skills CLI for details.
---
<details> <summary><b>Manual Install</b> (without agent assistance)</summary>
OpenCode: Add "plugin": ["@ourmem/opencode"] to opencode.json + configure plugin_config with apiUrl and apiKey in the same file.
Claude Code: /plugin marketplace add ourmem/omem + set env vars in ~/.claude/settings.json.
OpenClaw: openclaw plugins install @ourmem/ourmem + configure openclaw.json with apiUrl and apiKey.
MCP (Cursor / VS Code / Claude Desktop):
{
"mcpServers": {
"ourmem": {
"command": "npx",
"args": ["-y", "@ourmem/mcp"],
"env": {
"OMEM_API_URL": "https://api.ourmem.ai",
"OMEM_API_KEY": "your-api-key"
}
}
}
}
```bash
| Mode | Command | Binary | Bedrock | Runs on |
|---|---|---|---|---|
| **glibc (full)** | cargo build --release | Dynamic linked, ~218MB | ✅ AWS Bedrock | Same glibc version as build host |
| **musl (portable)** | See below | Static linked, ~182MB | ❌ OpenAI-compatible only | **Any Linux x86_64** |
```bash cargo build --release -p omem-server
By default ourmem stores data on local disk. For durability and scalability, configure AWS S3 or any S3-compatible object storage:
```bash
OMEM_S3_BUCKET=your-bucket # enables s3:// scheme AWS_ENDPOINT_URL=https://s3.amazonaws.com AWS_REGION=us-east-1
When you create a tenant, the returned id is your API Key. They're the same UUID. There is no separate "tenant ID".
```bash curl -X POST https://api.ourmem.ai/v1/tenants -d '{"name": "alice"}'
To share memories with another user, you pass their API Key as target_user:
```bash
Hosted:
```bash curl -sX POST https://api.ourmem.ai/v1/tenants \ -H "Content-Type: application/json" \ -d '{"name": "my-workspace"}' | jq .
**Self-deploy:**
bash docker run -d -p 8080:8080 -e OMEM_EMBED_PROVIDER=bedrock ghcr.io/ourmem/omem-server:latest curl -sX POST http://localhost:8080/v1/tenants \ -H "Content-Type: application/json" \ -d '{"name": "my-workspace"}' | jq . ```
Save the returned api_key — this reconnects you to the same memory from any machine.
docker run -d -p 8080:8080 ghcr.io/ourmem/omem-server:latest
| Method | Endpoint | Description |
|---|---|---|
| POST | /v1/tenants | Create workspace & get API key |
| POST | /v1/memories | Store memory or smart-ingest conversation |
| GET | /v1/memories/search | 11-stage hybrid search |
| GET | /v1/memories | List with filters & pagination |
| GET | /v1/profile | Auto-generated user profile |
| POST | /v1/spaces | Create shared space |
| POST | /v1/memories/:id/share | Share memory to a space |
| POST | /v1/files | Upload PDF / image / video / code |
| GET | /v1/stats | Analytics & insights |
Full API reference (48+ endpoints): docs/API.md
| Concept | What it is | Example | How many |
|---|---|---|---|
| **API Key** | Your identity. Goes in X-API-Key header. | a1b2c3d4-... | 1 per user |
| **Space ID** | A memory storage address. Each is an isolated database. | personal/a1b2c3d4-... | Multiple per user |
One API Key owns multiple Spaces:
API Key "a1b2c3d4"
│
├── personal/a1b2c3d4 ← auto-created, your private memories
├── team/e5f6g7h8 ← team space you created (you = Admin)
├── team/i9j0k1l2 ← team space you were invited to (you = Member)
└── org/m3n4o5p6 ← organization you joined (you = Reader)
OMEM_OSS_BUCKET=your-bucket # enables oss:// scheme OSS_ENDPOINT=https://oss-xx-internal.aliyuncs.com OSS_ACCESS_KEY_ID=your-ak # or use ECS RAM role (auto-discovered) OSS_ACCESS_KEY_SECRET=your-sk ```
If bothOMEM_S3_BUCKETandOMEM_OSS_BUCKETare set, OSS takes priority.
OMEM 是一个旨在实现“永不遗忘”的共享记忆系统。它通过创新的记忆管理机制,为 AI Agent 提供持久化的知识存储能力,确保信息在不同上下文和任务之间能够安全、有序地流动,打造真正具备长期记忆的智能体体验。
OMEM 提供跨越边界的共享能力,支持 Personal、Team 及 Organization 三层空间架构,并具备完整的溯源(Provenance)追踪功能。其核心采用 Weibull 衰减模型管理记忆生命周期,实现核心记忆持久化、边缘记忆自动淡化的智能化管理,无需手动清理。此外,它支持多种平台集成,并具备基于规则的质量门控自动共享机制。
本项目采用 musl static build 构建,具有极高的便携性与零依赖特性。生成的单二进制文件可在任何 Linux x86_64 环境下直接运行,无需安装 glibc 或其他系统库。开发者可以通过 Rust 的 musl target 进行编译,确保在不同 Linux 发行版间的无缝迁移。
针对 AI 产品开发者,提供包含 48 个以上端点的 REST API 以及 Docker 一键部署方案。对于 Agent 用户,推荐通过指令式安装:在 OpenClaw 或 Claude Code 中通过特定指令即可完成 API Key 配置与插件安装。此外,通过 MCP (Model Context Protocol) 协议,用户可以轻松将其集成至 Cursor、VS Code 或 Claude Desktop 中。
项目提供了快速入门指南。对于托管版本(ourmem.ai),用户无需部署即可直接使用;对于私有化部署,用户可以通过配置 API URL 和 API Key 来激活 Agent 的记忆功能。通过简单的指令或插件配置,即可让您的 AI 助手获得强大的记忆增强能力。
默认情况下,OMEM 将数据存储在本地磁盘。为了提升数据的持久性与扩展性,支持配置 AWS S3 或任何兼容 S3 协议的对象存储。开发者可以通过设置环境变量(如 OMEM_S3_BUCKET 和 AWS_ENDPOINT_URL)来完成存储后端的切换,确保大规模数据场景下的稳定性。
OMEM 的身份验证机制非常简洁:API Key 即为 Tenant ID,两者共享同一个 UUID。在创建 Tenant 后,返回的 ID 直接作为后续请求的身份凭证。在进行记忆共享时,只需将目标用户的 API Key 作为 `target_user` 参数传入,即可实现记忆的跨用户传递。
创新性MCP工具,解决AI代理记忆痛点。技术栈成熟,社区活跃度尚可。适合AI应用深度开发者,生产化需充分测试。
该工具使用 NOASSERTION 协议,商用场景请仔细阅读协议条款,必要时咨询法律意见。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
📄 NOASSERTION — 请查阅原始协议条款了解具体使用限制。
经综合评估,omem 永不遗忘记忆库 在MCP工具赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | omem |
| 原始描述 | 开源MCP工具:Shared Memory That Never Forgets — persistent memory for AI agents with Space-ba。⭐197 · Rust |
| Topics | AI记忆持久化存储向量数据库智能体工具MCP协议 |
| GitHub | https://github.com/ourmem/omem |
| License | NOASSERTION |
| 语言 | Rust |
收录时间:2026-05-21 · 更新时间:2026-05-30 · License:NOASSERTION · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端