codex-agent-mem
by MarceloCaporale·★ 21·综合分 43
本地优先的 MCP 内存层,使用 SQLite + FTS5 压缩上下文包,支持多种 AI 编程工作流。
概述
codex-agent-mem 是一个可移植、可审计的本地优先 MCP 内存层,专为 MCP 兼容的 AI 代理和编程工作流设计。它使用 SQLite 数据库和 FTS5 索引本地存储所有数据,将操作上下文压缩为更小的包,以减少令牌使用并改善连续性。该 MCP 服务器支持只读模式、可选的守护进程/stdio 桥接,并与多种 AI 环境兼容,包括 Codex CLI/桌面版、Claude Code、Gemini CLI、Qwen/DeepSeek/Ollama 以及其他本地代理堆栈。所有处理都在本地进行,不会将内存或遥测数据发送到外部服务器。
试试问 AI
装完之后,这里有 3 个你可以让 AI 做的事:
什么时候选它
当您需要为必须离线运行或具有严格隐私要求的AI代理提供持久本地记忆时,特别是对于长期编码工作流,选择这个。
什么时候不要选它
如果您需要基于云的记忆共享、实时多用户协作功能或需要写入权限(此服务器默认为只读模式),则不适合。
此 server 暴露的工具
从 README 抽取出 10 个工具mem_context_packCompacts repeated session context into smaller working packs for token efficiency
mem_searchSearches through stored memory and project data
mem_note_createCreates and indexes manual notes in the local memory store
mem_snapshot_createCreates a snapshot of the current project state with provenance tracking
mem_open_workTracks and manages open work items across sessions
mem_completion_checkChecks if all defined criteria for work completion have been met
mem_session_listLists recent memory sessions for session-aware retrieval
mem_scope_resolveRanks persisted memory lanes from explicit thread/path hints
mem_bootstrap_contextAvoids project-wide startup packs for ambiguous containers
mem_health_runtimeChecks runtime health and diagnostics
可对比工具
安装
通过 pip 安装 codex-agent-mem:
pip install codex-agent-mem对于 Claude Desktop,添加到 config.json:
{
"mcpServers": {
"codex-agent-mem": {
"command": "codex-agent-mem",
"args": ["--read-only", "--profile", "minimal"]
}
}
}该服务器还支持 stdio 模式,可为其他 MCP 兼容客户端提供多种运行时配置文件(minimal、standard、full)和配置选项。
codex-agent-mem 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。