GoodMemory — Claude Code MCP server: memory and setup
GoodMemory saves selected user and project facts, then brings relevant context back for later turns. It fits work that spans multiple sessions.
claude mcp add goodmemory -- npx -y goodmemoryWhat GoodMemory does
GoodMemory can store chosen facts, retrieve relevant context, and add it to a later turn. Its API includes remember, recall, buildContext, feedback, forget, plus memory import and export. Persistent writeback is optional.
Memory is stored locally in SQLite by default, with no account or hosted service required. For Claude Code, add the server with npx; Codex also has a goodmemory setup flow. The integration includes lifecycle hooks and read-only MCP inspection. If you need facts written back persistently, note that writeback is opt-in.
What it helps with
- keep selected project facts across sessions
- retrieve context relevant to a new request
- inspect stored memory through MCP
- remove a memory that is no longer correct
Example prompts for the agent
- Remember that this project uses SQLite and where its database schema lives.
- Recall the saved project structure before changing the API.
- Forget the old project name.
How to install GoodMemory
Platform CLI
claude mcp add goodmemory -- npx -y goodmemoryPlatform CLI
codex mcp add goodmemory -- npx -y goodmemoryConfig file
{
"mcpServers": {
"goodmemory": {
"command": "npx",
"args": [
"-y",
"goodmemory"
]
}
}
}Config file
{
"servers": {
"goodmemory": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"goodmemory"
]
}
}
}Platform CLI
gemini mcp add goodmemory npx -y goodmemoryStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about GoodMemory
How do I install GoodMemory in Claude Code?
Run claude mcp add goodmemory -- npx -y goodmemory. This registers GoodMemory as an MCP server.
What does GoodMemory do?
It stores selected facts and retrieves relevant context for later turns. It also supports inspecting, exporting, and deleting memory.
Where does GoodMemory store its memory?
By default, it keeps data locally in SQLite. An account or hosted service is not required.