
rawmem
io.github.Liyuan1992由 GitHub 账号 Liyuan1992 发布v0.7.1更新于 Oct 25, 2026
Read-only MCP access to a local append-only evidence ledger for AI agent sessions.
概览
rawmem 是一个本地只读 MCP 适配器,用于查询记录 AI 代理会话、命令、文件变更和网页摘录的追加式证据账本。
- 可以做什么
- 读取本地证据库中不含路径的状态与健康信息,默认不暴露文件系统路径或正文内容。获取有限数量的近期事件,默认只返回摘要,只有在显式授予 read:full 范围时才返回原始文本。列出已封存只读历史账本的归档元数据。账本本身由独立的后台守护进程写入,它会跟踪 Claude Code、Codex、Cursor 等会话日志、Shell 历史、Git 钩子、文件监视以及受令牌保护的浏览器采集端点;MCP 服务器只负责查询。
- 适用场景
- 适合希望助手回顾以往编码会话、命令或项目变更,而不必重新阅读原始日志,并且本机已在运行 rawmem 采集守护进程的场景。它是查询层,不是记忆提炼或摘要工具。
- 运行要求
- 作为本地 stdio 进程在用户机器上运行(仅桌面端)。需安装 MCP 附加组件,例如带 mcp 附加项的 Python 包或提供的 MCP 打包文件;README 说明源码安装需要 Python 3.10+ 和 Git。需要有位于默认位置或显式指定路径的已有账本才能得到有意义的结果。未声明 API 密钥或环境变量。
安装
在 SourceWeft 中
- 打开 控制台中的 rawmem,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
rawmem
rawmem is a tiny local-first evidence ledger for AI and human workflows.
The idea is deliberately small:
Store now, understand later.
AI memory systems often start by summarizing. rawmem starts one layer lower:
append-only raw evidence. A chat turn, a 2px UI tweak, a bug fix, a command run,
a git snapshot, a browser clip, or a coding-agent completion can all become the
same kind of local event.
The hard boundary is simple: capture is not recall. The ledger is a source layer. Review, filtering, MemoryDSL conversion, preference mining, and project rules can be derived later.
Why This Exists
Small facts look noisy alone. Repeated across time and projects, they become patterns:
- "This icon is too small; make it 2px bigger."
- "The AI forgot to update the desktop package again."
- "This project prefers append-only bug records."
- "The same class of boundary bug appeared in three repos."
Disk is cheap. Missing history is expensive.
Install
New to programming? Choose the Windows app (EXE). An EXE is a Windows program you open by double-clicking. Running it requires no Python installation or terminal commands.
Choose one approach; you do not need both. There is currently no downloadable release of the new EXE preview. A developer must build it from source first. Users unfamiliar with programming can wait for an EXE release instead of following the Python commands below.
Windows app (EXE preview)
Once you have a built rawmem.exe, double-click it, choose a storage folder,
decide whether to start at logon, and click to begin recording. Browser saving
requires the optional extension. See Windows recorder
for setup and build instructions. This preview is unsigned and the extension
still requires manual developer-mode installation.
Python CLI (for developers)
EXE users can skip this section. With Python 3.10+ and Git installed, run these commands in PowerShell:
The core runtime has no third-party dependencies. DeepSeek Harness compressed session capture and the MCP server are optional extras:
To install the published v0.7.1 wheel without cloning the repository:
Make sure the user Scripts
directory (e.g. %APPDATA%\Python\Python312\Scripts) is on PATH so rawmem
works from any directory.
One-Time Setup
After this the daemon passively tails Claude Code, Codex, and Cursor sessions,
tails PowerShell history, watches configured directories, and serves the
browser-capture endpoint — with zero per-event action from you. Clipboard
polling is available but disabled by default; enable it explicitly in config
or with rawmem config --include-clipboard.
The guiding principle is passive over self-report: evidence is pulled
from logs other tools already write, not pushed by agents remembering to
report back.
See docs/SETUP.md for the full setup matrix and the browser extension.
For DeepSeek Harness capture plus bounded read-only MCP access, see docs/DEEPSEEK_HARNESS.md.
[rawmem DeepSeek Harness demo]
Commands
Background capture (the primary path):
Preview or remove integrations:
Inspect the ledger:
rawmem export uses the stable rawmem.cursor.v1 contract and never needs to
load the whole ledger. Cursors bind to a ledger identity plus a byte offset and
boundary hash, so truncation, replacement, or rotation is reported explicitly
instead of silently skipping or duplicating evidence. See
docs/LEDGER_PROTOCOL.md.
rawmem verify is strictly read-only: it never creates or refreshes lock/state
sidecars. rawmem seal keeps historical bytes unchanged, records the full
verification report and every accepted previous_hash_mismatch, marks the old
ledger ReadOnly on Windows, and creates a chain-complete active ledger at the
same configured path. Archive reads require --archive; they hash the complete
archive before returning results, default to a body-free metadata projection,
and surface recorded integrity warnings.
Manual and scripted capture:
Current Coverage
Capture preserves complete supported text without a character cap, including
when old configurations still contain max_chars. Source batch sizes are
processing budgets and never split complete records. Browser capture saves
only the loaded document on an explicit click; it does not fetch hidden history.
Storage
By default, events are written to:
Use --local to write to the current project's private ledger:
Use --ledger <path> or RAWMEM_LEDGER for an explicit ledger path.
Capture policy is configured under privacy in ~/.rawmem/config.json.
Optional project/path allowlists fail closed, common secret shapes are redacted
before append, and artifacts default to metadata references rather than
embedded content. Daemon status and rawmem doctor expose source coverage,
skipped events, redactions, and cursor health without printing captured text.
.rawmem/ is ignored by Git because raw evidence can contain private text,
paths, command output, and local work context.
Event Shape
Each line is JSON:
The previous_hash / content_hash chain is a lightweight tamper-evidence
mechanism. It is not a security boundary, but it makes accidental rewrites more
visible.
Adapter Strategy
rawmem should not chase every AI tool with one giant integration. The stable
piece is the ledger. Capture adapters can be small and optional:
- CLI wrappers for Codex, Claude Code, shell commands, and build scripts.
- Generic JSON ingest for tools like WorkBuddy, QWork, or custom scripts.
- Git/file watchers for tools that ultimately change a repo.
- Localhost browser capture, bookmarklets, and later browser extensions for web AI chats, issue pages, docs, and web clips.
- App-specific adapters when a tool exposes logs, exports, plugins, or APIs.
- Manual hotkey/clipboard capture as a low-friction fallback.
All adapters should emit the same event schema.
MCP is a query adapter, not a promotion path. rawmem-mcp exposes only
path-free status, bounded recent events, and archive metadata. Summary access
is the default; raw bodies require an explicit read:full scope.
Privacy Principles
- Local first.
- No upload by default.
- No automatic memory promotion.
- Background capture must be opt-in.
- Clipboard polling is off by default.
- Browser capture requires the local token created in
~/.rawmem/config.json. - The extension options page can test daemon connectivity and token acceptance.
- Machine-wide Git hook setup requires
--yes. rawmem uninstallpreserves captured data unless--remove-home --yesis explicit.- Store raw events separately from reviewed or derived memory.
- Prefer allowlists for browser/app capture.
See PRIVACY.md and SECURITY.md before enabling background capture on a daily driver machine.
Development
来源:README.md,提交 c8351d7
工具
0版本历史
1- v0.7.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分