Codex Memory Brain
БесплатноНе проверенLocal durable memory MCP server for Codex and OpenCode using SQLite with full-text search.
Описание
Local durable memory MCP server for Codex and OpenCode using SQLite with full-text search.
README
Local, repo-aware durable memory for Codex and OpenCode.
Codex Memory Brain exposes a local memory layer through MCP. It stores engineering memory in SQLite with FTS5 search, runs fully on your machine, and makes no cloud calls.
Install
Codex
macOS or Linux:
bash -c "$(curl -fsSL https://raw.githubusercontent.com/ccycv/codex-memory-brain/HEAD/install.sh)"
Then open a new Codex chat or restart Codex.
Verify:
codex mcp get codex-memory-brain
You should see enabled: true.
OpenCode
macOS or Linux:
bash -c "$(curl -fsSL https://raw.githubusercontent.com/ccycv/codex-memory-brain/HEAD/opencode/install.sh)"
Then start a new OpenCode session.
Verify:
opencode mcp list
You should see codex-memory-brain enabled. The OpenCode installer also adds a global instruction file so OpenCode knows to call memory_resume_project, memory_context, and memory_task_checkpoint during long-running work.
OpenCode Goal
Install a /goal-like local goal tracker for OpenCode:
bash -c "$(curl -fsSL https://raw.githubusercontent.com/ccycv/codex-memory-brain/HEAD/opencode-goal/install.sh)"
Then restart OpenCode and use:
/goal Ship the current feature end to end
/goal-status
/goal-complete Done and tested
For a controlled autonomous loop with hard stop conditions:
opencode-goal-run --model opencode-go/qwen3.6-plus --max-steps 8 --goal "Ship the current feature end to end"
What It Adds
For Codex, the plugin registers the codex-memory-brain MCP server and the codex-memory skill.
For OpenCode, the installer registers the same local MCP server under ~/.config/opencode/opencode.jsonc and adds opencode/memory-brain-instructions.md to OpenCode's instructions.
Data is stored locally:
~/.codex-memory/memory.db
Override the storage location:
export CODEX_MEMORY_HOME=/path/to/memory-home
Daily Use
Start a project session with:
Use codex-memory. Resume this project first, then continue the task.
End substantial work with:
Save a task checkpoint with files, tests, blockers, and next steps.
Build memory for a new repo:
Use codex-memory. Run memory_audit_repo for this repo with save=false and show me the proposed memories.
Then:
Save the audit memories.
Tools
memory_context(task, cwd, files?, limit?)memory_search(query, cwd?, files?, scope?, type?, limit?)memory_remember(content, cwd?, scope, type, files?, tags?, confidence?)memory_update(id, content?, files?, tags?, confidence?, archived?)memory_forget(id)memory_status(cwd?)memory_audit_repo(cwd, save?, limit?)memory_task_checkpoint(cwd, summary?, files?, changes?, decisions?, blockers?, next_steps?, tests_run?, tests_not_run?, branch?, commit?, tags?, confidence?)memory_resume_project(cwd, task?, files?, limit?, checkpoint_limit?)memory_timeline(cwd, days?, limit?, type?)
Resources
memory://user/profilememory://repo/current/briefmemory://repo/current/commandsmemory://repo/current/decisionsmemory://repo/current/gotchasmemory://repo/current/resumememory://repo/current/timeline
Prompts
memory-checkmemory-statusmemory-savememory-auditmemory-checkpointmemory-resumememory-timeline
If the Codex UI surfaces MCP prompts or resources from the plus menu, these entries give Memory Brain visible options there. The skill also prints a short Memory Brain: status line when it checks, searches, saves, updates, archives, resumes, or checkpoints memory.
Project Continuity
For multi-day work, this is the most important workflow:
- Start with
memory_resume_project. - Work normally.
- End with
memory_task_checkpoint. - Use
memory_timelinewhen you need to ask what happened recently or yesterday.
Checkpoints capture:
- changed files
- decisions made
- blockers
- next steps
- tests run
- tests not run
- branch and commit when available
Install From A Local Checkout
git clone https://github.com/ccycv/codex-memory-brain.git
cd codex-memory-brain
bash install.sh
Dry run:
bash install.sh --dry-run
Install OpenCode support from a local checkout:
bash opencode/install.sh
Custom install source:
CODEX_MEMORY_REPO_URL=https://github.com/YOUR_ORG/codex-memory-brain.git bash -c "$(curl -fsSL https://raw.githubusercontent.com/YOUR_ORG/codex-memory-brain/HEAD/install.sh)"
Development
Run tests:
python3 -m unittest discover -s tests
Validate the plugin manifest if you have the Codex plugin creator skill available:
uv run --with pyyaml python ~/.codex/skills/.system/plugin-creator/scripts/validate_plugin.py .
Run the Codex CLI memory benchmark:
python3 benchmarks/codex_memory_benchmark.py --repo /path/to/repo --runs 1 --max-tasks 8
The built-in benchmark tasks are Askio-oriented. The runner writes results.json, per-run event logs, final answers, and benchmark_report.md under benchmarks/results/<timestamp>/.
Safety
The server rejects likely secrets, .env dumps, private keys, oversized content, and common prompt-injection phrases before saving memory.
memory_forget archives memories instead of hard-deleting them.
License
MIT
Установка Codex Memory Brain
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/ccycv/codex-memory-brainFAQ
Codex Memory Brain MCP бесплатный?
Да, Codex Memory Brain MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Codex Memory Brain?
Нет, Codex Memory Brain работает без API-ключей и переменных окружения.
Codex Memory Brain — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Codex Memory Brain в Claude Desktop, Claude Code или Cursor?
Открой Codex Memory Brain на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
wenb1n-dev/SmartDB_MCP
A universal database MCP server supporting simultaneous connections to multiple databases. It provides tools for database operations, health analysis, SQL optim
автор: wenb1n-devPostgres Server
This server enables interaction with PostgreSQL databases through the Model Context Protocol, optimized for the AWS Bedrock AgentCore Runtime. It provides tools
автор: madhurprashPostgres
Query your database in natural language
автор: AnthropicPostgreSQL
Read-only database access with schema inspection.
автор: modelcontextprotocolCompare Codex Memory Brain with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории data
