
yoloshii/clawmem 是一个从 https://github.com/yoloshii/clawmem. 导入的 MCP 服务器候选服务器。
概览
yoloshii/clawmem 是一个从 https://github.com/yoloshii/clawmem. 导入的 MCP 服务器候选服务器。
概述(AI 翻译)
设备内存可存储Claude Code、OpenClaw、Hermes和AI代理。 在单一本地系统中支持检索增强搜索、钩子和MCP服务器。无API密钥,无云依赖。
ClawMem 融合了最新研究,构建了一个代理实际使用的检索增强记忆层。混合架构结合了基于 QMD 的多信号检索(BM25 + 向量搜索 + 互易秩融合 + 查询展开 + 交叉编码器重新排序)、受 SAME 启发的复合评分(近期衰减、置信度、内容类型半衰期、共激活强化)、MAGMA 风格的意图分类与多图遍历(语义、时间和因果束搜索),以及 A-MEM 自我演化的记忆笔记,丰富文档的关键词、标签和条目间因果链接。从 Engram 提取模式增加了去重窗口、基于频率的耐久性评分和时间导航。
通过 Claude Code 钩子、MCP 服务器(支持任何兼容 MCP 客户端)、原生 OpenClaw 插件或 Hermes Agent MemoryProvider 插件进行集成。所有路径写入同一个本地 SQLite vault。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
ClawMem — On-device memory layer for Claude Code, OpenClaw, and Hermes agents
On-device memory for Claude Code, OpenClaw, Hermes, and AI agents. Retrieval-augmented search, hooks, and an MCP server in a single local system. No API keys, no cloud dependencies.
ClawMem fuses recent research into a retrieval-augmented memory layer that agents actually use. The hybrid architecture combines QMD-derived multi-signal retrieval (BM25 + vector search + reciprocal rank fusion + query expansion + cross-encoder reranking), SAME-inspired composite scoring (recency decay, confidence, content-type half-lives, co-activation reinforcement), MAGMA-style intent classification with multi-graph traversal (semantic, temporal, and causal beam search), and A-MEM self-evolving memory notes that enrich documents with keywords, tags, and causal links between entries. Pattern extraction from Engram adds deduplication windows, frequency-based durability scoring, and temporal navigation.
Integrates via Claude Code hooks, an MCP server (works with any MCP-compatible client), a native OpenClaw plugin, or a Hermes Agent MemoryProvider plugin. All paths write to the same local SQLite vault. A decision captured during a Claude Code session shows up immediately when an OpenClaw or Hermes agent picks up the same project.
TypeScript on Bun. MIT License.
What It Does
ClawMem turns your markdown notes, project docs, and research dumps into persistent memory for AI coding agents. It automatically:
- Surfaces relevant context on every prompt (context-surfacing hook)
- Bootstraps sessions with your profile, latest handoff, recent decisions, and stale notes
- Captures decisions, preferences, milestones, and problems from session transcripts using a local GGUF observer model
- Imports conversation exports from Claude Code, ChatGPT, Claude.ai, Slack, and plain text via
clawmem mine, with optional post-import LLM fact extraction (--synthesize) that pulls structured decisions / preferences / milestones / problems and cross-fact links out of otherwise full-text conversation dumps (v0.7.2). Imports preserve authorship time (v0.27.0): ranking recency and temporal queries run on when content was actually written, so historical conversations mined today don’t rank as fresh — with a metadata-only--backfill-dateslane for vaults mined earlier - Generates handoffs at session end so the next session can pick up where you left off
- Learns what matters via a feedback loop that boosts referenced notes and decays unused ones
- Guards against prompt injection in surfaced content
- Classifies query intent (WHY / WHEN / ENTITY / WHAT) to weight search strategies
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"clawmem": {
"command": "/absolute/path/to/clawmem/bin/clawmem",
"args": ["mcp"]
}
}
}