codex-memory
Provides a long-term memory system for OpenAI's Codex CLI, enabling it to store, search, index, and revise atomic facts as Markdown files with decay, deduplication, and consolidation.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@codex-memorysearch memory for how we configured the CI pipeline"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
codex-memory
English | 简体中文
Curated long-term memory for Codex CLI, delivered as an MCP server. It stores atomic facts as plain Markdown files, deduplicates on write, retrieves via a lightweight index, and — crucially — forgets: entries decay by type-aware half-life and are archived after human review.
Core idea: raw experience accumulates, but knowledge is what survives distillation — so forgetting is treated as a feature on equal footing with remembering.
4 MCP tools:
memory_index/memory_search/memory_write/memory_reviseOne memory per Markdown file, git-versioned, human-auditable — no database
Built-in dedup (weighted token overlap, CJK-aware), source ranking (
user-correctionwins)Global/project scopes prevent repository-specific knowledge from leaking into unrelated tasks; optional provenance points back to supporting sessions
Development schema is strict:
cwd,scope, counters, dates, type, and source must satisfy the current contract; no legacy defaults or migrationsDecay scoring, an archive buffer with 90-day expiry, driven by a small CLI
Explicit memory graduation promotes proven global preferences/lessons into a managed AGENTS.md region and retains a permanent audit copy
Weekly
consolidatejob — semantic dedup, pattern promotion, and an episodic bridge from Codex's built-in memories, powered bycodex exec(no extra LLM dependency), one git commit per runBuilt-in evals: repeat-mistake rate, write-burst and project-coverage signals (
eval), plus the index growth curve (growth)
Documentation
Agent instruction templates (append to ~/.codex/AGENTS.md): English · 中文
Related MCP server: Codex Memory
License
MIT © Xiandong Liu (刘宪东)
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityBmaintenanceProvides a persistent, local-first memory for coding agents over MCP, enabling automatic recall and recording of past work, failures, and decisions to reduce repetition and token usage.MIT
- AlicenseBqualityCmaintenanceLocal Markdown-backed memory tools for Codex and other MCP-capable agents. Exposes durable agent knowledge via CLI and MCP server.5MIT
- AlicenseBqualityAmaintenanceProvides local cross-session memory for Codex by importing transcripts, indexing in SQLite, and exposing search, context, and memory management through MCP tools.13MIT
- Alicense-qualityBmaintenanceProvides persistent, cross-session memory for CLI agents via MCP tools, enabling them to recall, distill, and share experiences across projects and tools.6MIT
Related MCP Connectors
User-owned memory for AI agents, Copilot, Claude, IDEs, CLIs, and chat apps over remote MCP.
Token-efficient MCP memory for Markdown vaults. Tiered search, GraphRAG, AI memories.
Cross-AI personal memory. Save once in ChatGPT, recall in Claude, Mistral, Grok, or any MCP client.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/a4913994/codex-memory'
If you have feedback or need assistance with the MCP directory API, please join our Discord server