MCP Catalogs
首页

codex-agent-mem

by MarceloCaporale·21·综合分 43

本地优先的 MCP 内存层,使用 SQLite + FTS5 压缩上下文包,支持多种 AI 编程工作流。

ai-llmdeveloper-toolsproductivity
3
Forks
0
活跃 Issue
本月
最近提交
2 天前
收录于

概述

codex-agent-mem 是一个可移植、可审计的本地优先 MCP 内存层,专为 MCP 兼容的 AI 代理和编程工作流设计。它使用 SQLite 数据库和 FTS5 索引本地存储所有数据,将操作上下文压缩为更小的包,以减少令牌使用并改善连续性。该 MCP 服务器支持只读模式、可选的守护进程/stdio 桥接,并与多种 AI 环境兼容,包括 Codex CLI/桌面版、Claude Code、Gemini CLI、Qwen/DeepSeek/Ollama 以及其他本地代理堆栈。所有处理都在本地进行,不会将内存或遥测数据发送到外部服务器。

试试问 AI

装完之后,这里有 3 个你可以让 AI 做的事:

:通过本地持久化内存改善长时间运行 AI 编程工作流的上下文连续性
:通过将重复的操作上下文压缩为更小的包来减少 AI 代理的令牌使用
:为敏感的开发项目创建可审计的内存系统,避免数据外传

什么时候选它

当您需要为必须离线运行或具有严格隐私要求的AI代理提供持久本地记忆时,特别是对于长期编码工作流,选择这个。

什么时候不要选它

如果您需要基于云的记忆共享、实时多用户协作功能或需要写入权限(此服务器默认为只读模式),则不适合。

此 server 暴露的工具

从 README 抽取出 10 个工具
  • mem_context_pack

    Compacts repeated session context into smaller working packs for token efficiency

  • mem_search

    Searches through stored memory and project data

  • mem_note_create

    Creates and indexes manual notes in the local memory store

  • mem_snapshot_create

    Creates a snapshot of the current project state with provenance tracking

  • mem_open_work

    Tracks and manages open work items across sessions

  • mem_completion_check

    Checks if all defined criteria for work completion have been met

  • mem_session_list

    Lists recent memory sessions for session-aware retrieval

  • mem_scope_resolve

    Ranks persisted memory lanes from explicit thread/path hints

  • mem_bootstrap_context

    Avoids project-wide startup packs for ambiguous containers

  • mem_health_runtime

    Checks runtime health and diagnostics

可对比工具

claude-memsemantic-mcpchroma-mcpmemgpt

安装

通过 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 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。