
CP Memory
io.github.CJhuochai由 GitHub 账号 CJhuochai 发布v1.8.1更新于 Oct 24, 2026
Local-first, governable long-term memory for AI coding agents
发布方自己的服务:Memory.fit
概览
CP Memory 为 AI 编程助手提供本地、可治理的长期记忆,让项目规则和决策跨会话保留。
- 可以做什么
- 它把事实、偏好、进行中的工作、事件、决策和对话检查点存入本地 SQLite 数据库,并通过 MCP 工具和生命周期钩子恢复相关上下文。它可以从明确陈述中保守地自动提取长期记忆候选,按 repo、project、workspace 范围优先处理当前项目记忆,并支持审查收件箱、摘要、冲突建议和更正状态。记忆可以被标记为错误、过期或限定范围,而不是被静默覆盖。
- 适用场景
- 当你希望编程助手跨会话记住项目规则、偏好和决策,而不依赖托管记忆服务时使用。它适合希望检查、更正和治理记忆内容,而不是无差别积累一切的用户。
- 运行要求
- 作为本地 stdio 进程运行。通用方式需要 Python 3.10+ 和 uv,通过 uvx cp-memory-mcp 启动。增强的 Codex 插件方式在 Windows 上通过市场安装,在 macOS/Linux 上使用源码安装脚本创建私有 Python 运行时。未声明认证、环境变量或请求头。
安装
在 SourceWeft 中
- 打开 控制台中的 CP Memory,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
CP Memory
Local-first, governable memory for AI coding agents.
Remember project rules across sessions, recall only what matters, and correct bad memory without hiding history.
简体中文 | English
[License: MIT] [Local first] [MCP server] [Cross-platform CI]
Why CP Memory
For reproducible package, protocol and recall checks, see verification evidence and limits.
- Local first: memory stays in
~/.cp-memory/memory.dbby default. - Governable: inspect, review, correct, scope, or retire memory instead of silently overwriting it.
- MCP-ready, Codex-enhanced: the stdio MCP server is the portable baseline; the Codex plugin adds Skills and lifecycle Hooks.
Quick Start — Portable MCP
With Python 3.10+ and uv installed, any stdio MCP client can start CP Memory with:
The public package passed a clean-cache MCP handshake with all 40 tools and a write/search/correct flow. See MCP client setup for Codex, Claude Code, Cursor, VS Code, and Gemini CLI examples.
For the enhanced Codex integration with lifecycle Hooks and Skills, install the plugin:
Restart Codex after installation and approve the lifecycle Hooks if prompted.
See The Result In 30 Seconds
- Tell Codex a project rule, such as: “Releases must start on a branch, run tests, and merge through a PR.”
- In a later session, CP Memory restores the relevant rule from the local primary store so Codex can continue following it.
- If the rule is wrong, preserve correction history and mark the old record wrong, stale, or scoped instead of silently overwriting it.
CP Memory is a local-first memory plugin for Codex. It stores facts, preferences, ongoing work, episodes, decisions, and conversation checkpoints in a local SQLite database, then restores relevant context through MCP tools and lifecycle hooks.
The goal is not to remember as much as possible. The goal is memory that remains trustworthy after long-term use: explainable, reviewable, correctable, and governable.
Current Capabilities
- Context restore: restores relevant local-primary memory on startup and eligible prompts.
- Automatic extraction: conservatively creates long-term personal memory candidates from explicit statements.
- Project scope: prioritizes current-project memories with
repo:,project:, andworkspace:scopes. - Reviewable governance: supports review inbox, review digests, conflict suggestions, correction states, and startup reminders.
- Safe maintenance: weekly maintenance runs health checks, governance preflight, and low-risk expiry cleanup only.
30-Second Example
You tell Codex:
In a later session, you ask:
CP Memory restores the relevant memory from the local primary store first, and Codex follows that rule. If the memory is wrong, you can mark it wrong, mark it stale, or write a corrected version.
See more anonymized examples in docs/examples.md.
For a GIF, short video, or launch post, use the sanitized 30-second demo script.
Install
For any stdio MCP client, use the verified public package:
Client-specific commands and JSON files are in docs/mcp-clients.md.
For Windows, the recommended path is GitHub Marketplace installation:
Restart Codex after installation. If Codex asks you to trust hooks, approve the CP Memory lifecycle hooks in the hooks view.
For macOS/Linux, use the source installer. It creates a private Python runtime for the plugin and installs the MCP dependency:
Restart Codex when it finishes. Do not treat GitHub Marketplace installation on macOS/Linux as an equivalently verified path: Marketplace does not run install.sh, so it does not create that private runtime.
Platform Support
Manual smoke testing of real Codex desktop Hook injection on macOS/Linux is still pending access to physical devices. This release is accepted through three-platform CI; the boundary does not affect the installer and MCP-startup checks already covered, but it is not a substitute for full desktop manual acceptance.
Safety
- Do not commit your real
memory.db, logs, private summaries, or environment files. - Automatic extraction is intentionally conservative. Generated memories can be reviewed, corrected, marked stale, or marked wrong.
- When memories need review, the current version injects a reminder into assistant context. It is not a user-facing popup or visible review panel, and it does not auto-delete memory or auto-resolve conflicts.
- Weekly maintenance runs health checks, governance preflight, and low-risk expiry cleanup only; long-term personal memories, tasks, and decisions are protected by default.
- Examples and screenshots use sanitized content, so you do not need to expose your real memory database.
Comparison
If you have seen other memory projects, start with docs/comparison.md. CP Memory's main difference is Codex lifecycle integration plus memory governance, not just storage and search.
Roadmap
See docs/roadmap.md for future directions. The roadmap prioritizes local-first behavior, explainability, correctability, and privacy safety.
See CHANGELOG.md for version history.
Local Development
Windows users normally do not need to run install.ps1. It is mainly for local development, refreshing the personal marketplace cache, and migrating old global hook wiring from earlier versions.
For local macOS/Linux development, run:
Python 3 with python3 on PATH is required. The installer creates a private virtual environment in the plugin directory and installs runtime dependencies; this is the currently verified installation path for macOS/Linux.
Run the test suite:
Validate the installer in an isolated temporary profile without touching your real Codex configuration:
License
MIT
来源:README.md,提交 a584f64
工具
0版本历史
1- v1.8.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
其他 Memory 集成

Memory.fit
fit.memory官方发布者
托管式 Memory.fit 服务器,让 AI 读取你的训练、睡眠、恢复与饮食数据,并写回每周计划、每日目标和饮食计划。
pg.ddx.io: the PostgreSQL community's memory
io.ddx.pg官方发布者
pg.ddx.io: the PostgreSQL community's memory 的托管 MCP 服务,由 pg.ddx.io 发布;无需登录;Streamable HTTP;29 个工具。
var.gg Naming Memory
gg.var官方发布者
远程 MCP 服务器,可根据领域概念推荐并检索韩、日、中、越、英多语言的代码标识符名称,并提供 ERD 结构查询。

Counterparts
ai.counterparts
面向 Claude Code 与 Claude Desktop 的本地优先长期记忆:助手自行写下关于你和项目的笔记,并在之后的会话中回忆起来。

LAHZE - Persian AI Memory Platform
由 GitHub 账号 pedramgholizadeh 发布
以波斯语为先的地理记忆平台:发现地点,起草并发布仅限波斯语的记忆。AI 翻译