Claude Mem
MCP server by thedotmack Verified · npm:claude-mem
Gives AI coding agents persistent memory, so each new session starts where the last one left off. Works with Claude Code, Codex, Cursor, OpenCode and 11 more agents.
Install Claude Mem
Built from the published package, never by AI.
claude mcp add claude-mem -- npx -y claude-memRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"claude-mem": {
"args": [
"-y",
"claude-mem"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"claude-mem": {
"args": [
"-y",
"claude-mem"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"claude-mem": {
"args": [
"-y",
"claude-mem"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add claude-mem -- npx -y claude-mem{
"mcpServers": {
"claude-mem": {
"args": [
"-y",
"claude-mem"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add claude-mem npx -y claude-memGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the claude-mem block.
About
Claude-Mem gives AI coding agents memory that lasts between sessions. A second agent runs beside the main one, takes notes on each tool call, and writes a summary when the session ends. The next session opens with a short index of past observations and pulls in full details only when needed.
It works with Claude Code, Codex, Cursor, OpenCode and 11 more agents. Copilot CLI, Goose, Roo Code, Warp and Zed can search the memory, but their sessions are not recorded. Memory is stored locally in ~/.claude-mem, and cloud sync is opt-in. It suits developers who want their agents to stop re-reading the same files and repeating past mistakes.
Written from the project's README and checked against it.
Tools it gives your assistant
Session memory indexEach new session opens with a compact index of past observations, layered so full details load only when needed.mem-search skillSearches project history in three steps: index, timeline and details.My Work dashboardShows live requests, progress, human handoffs and a saved review queue at the worker URL.Private tagsContent wrapped in <private> tags is never stored.Screenshot memoryKeeps converted copies of tool screenshots locally and shows them in My Work.Observation citationsEvery observation has an ID that can be cited through the worker API or opened in the web viewer.Claude Desktop searchLets you search your memory from Claude Desktop conversations.
What you need
- A supported AI coding agent such as Claude Code or Codex
- An email sign-in to claude-mem for the hosted observer (no card needed to sign in)
- A payment method to start the 30 day free trial of the claude-mem observer
- Your own OpenRouter or Gemini key, or an Anthropic plan, for the memory provider
Try asking
- Search my project history for the earlier fix to the login bug.
- What did we decide about the database schema in my last sessions?
- Show me the timeline of changes from my previous work on this project.
Good to know
- Copilot CLI, Goose, Roo Code, Warp and Zed can search memory, but their sessions are not recorded.
- Memory injection starts on your second session in a project.
- When the observer free trial ends, memory falls back to your Anthropic plan unless you subscribe.
- Grok Bot awareness push is off by default and must be enabled.
Security check
C- Downloads a script from the internet and runs itIn
README.md:curl -fsSL https://install.cmem.ai/openclaw.sh | bash
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Claude Mem
All alternatives →Connects a Zotero research library to AI assistants such as Claude and ChatGPT through the Model Context Protocol. It lets the assistant search, read, annotate and add papers, in local mode or through the web API. Built for researchers who want their references available in chat.
AgentDB is a vector memory database for AI agents. It stores embeddings, indexes and learning state in one file and exposes 41 MCP tools to clients such as Claude Code, Cursor and Cline.
Genkitx MCP is listed as a Genkit plugin for Model Context Protocol interoperability. The source is the main Genkit framework README and does not describe this plugin, so its features cannot be confirmed.
QMD is an on-device search engine for markdown notes, meeting transcripts and documentation. It combines BM25 keyword search, vector search and LLM reranking, and exposes an MCP server for AI assistants.
RuVector is a Rust native vector database that gives AI agents persistent memory and local semantic retrieval. Its npm package includes an MCP server for MCP compatible clients, and it suits developers building agent memory in Node.js, Python, or Rust.
Agentmemory gives coding agents persistent memory across sessions and tools. It captures session events, makes decisions and fixes searchable, and lets agents recall them later. It is built for developers who use several coding assistants.
Compare with Zotero MCP, Agentdb or Genkitx MCP
Claude Mem: common questions
Where is my memory stored?
Memory lives in ~/.claude-mem on your machine. Cloud sync is opt-in and backs memory up to cmem.ai.
Does claude-mem keep secrets out of memory?
Yes. Anything wrapped in <private> tags is never stored, according to the source.
Does the npm package set up the plugin?
No. The source says the npm package installs the SDK or library only and does not register the plugin hooks or the worker service.
How do I install Claude Mem?
In Claude Code run claude mcp add claude-mem -- npx -y claude-mem. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Claude Mem the official server?
Claude Mem is published by npm:claude-mem from its verified domain in the official MCP Registry.
Is Claude Mem free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is Claude Mem safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade C (downloads a script from the internet and runs it). Review the code before you install. How grades work.
What are alternatives to Claude Mem?
Similar MCP servers: Zotero MCP, Agentdb, Genkitx MCP, Qmd.
Does Claude Mem work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
