</>MCP Agents Market
MCP Server

claude-mem

by thedotmack90.9kJavaScriptUpdated 2026-08-16

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

Claude CodeClaude DesktopOpenClawCodexOpenCode

claude-mem is an MCP server that provides persistent memory and context management for AI coding agents across sessions. It automatically captures tool usage, generates semantic summaries using AI compression, and injects relevant historical context into future conversations. The server works with Claude Code, OpenClaw, Codex, Gemini, and other AI development environments, enabling agents to maintain continuity of project knowledge even after sessions end or reconnect.

Key Features

Automatic session observation capture and AI-powered semantic compression
Progressive disclosure memory system with 3-layer search workflow to minimize token usage
Four MCP tools for intelligent memory retrieval: search, timeline, get_observations, and batch queries
Local SQLite database with FTS5 full-text search and optional Chroma vector database for hybrid semantic search
Worker service with HTTP API and real-time web viewer UI for browsing memory streams
Privacy controls with <private> tags to exclude sensitive content from storage
Cloud sync support for backing up memories to cmem.ai without additional daemons
Multi-language mode support including English, Chinese, Japanese, and other languages

Use Cases

  • 01Maintaining project context and decisions across multiple coding sessions in Claude Code
  • 02Querying historical bug fixes and implementation patterns from past development work
  • 03Preserving agent knowledge about codebase architecture and dependencies between sessions
  • 04Reviewing chronological context around specific debugging or refactoring efforts
  • 05Enabling AI agents to remember user preferences and project-specific conventions
  • 06Syncing persistent memory across team members using cloud backup integration

Related MCP Servers

View more

claude-mem — FAQ

What is claude-mem?+

claude-mem is an MCP server that gives AI coding agents persistent memory across sessions by automatically capturing, compressing, and retrieving context from previous interactions. It uses lifecycle hooks to observe tool usage and generate semantic summaries that are injected into future conversations.

How do I install claude-mem?+

Run npx claude-mem install for Claude Code, or npx claude-mem install --ide opencode for OpenCode, or install via the plugin marketplace inside Claude Code with /plugin marketplace add thedotmack/claude-mem. Restart your client after installation to activate the memory system.

Which AI clients work with claude-mem?+

claude-mem works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode, and Antigravity CLI. It can also be integrated with Claude Desktop through the mem-search skill for querying memory from conversations.

Do I need API keys to use claude-mem?+

Yes, you need an AI provider API key (such as Anthropic, OpenAI, or others) for the semantic compression and summarization features. Configuration is managed in ~/.claude-mem/settings.json after first run.

Is claude-mem free to use?+

Yes, claude-mem is open source under the Apache License 2.0. You only pay for the AI provider API usage for compression and summarization, and optional cloud sync to cmem.ai if you choose to enable it.

What are the system requirements?+

claude-mem requires Node.js 20.0.0 or higher, the latest version of your AI client with plugin support, Bun (auto-installed), and optionally uv for vector search (auto-installed). SQLite 3 is bundled for persistent storage.

How do I install claude-mem?+

Open the source repository on GitHub and follow its README. claude-mem is a mcp server — MCP Agents Market links you directly to the official repo.

Is claude-mem free?+

claude-mem is an open-source project hosted on GitHub. Check the repository for its license and any usage requirements.

Related searches