claude-conversation-memory-mcp
Verified Safeby xiaolai
Overview
Provides long-term memory for AI coding agents by indexing conversation history, tracking decisions and mistakes, and enabling semantic search across projects.
Installation
npx -y cccmemoryEnvironment Variables
- EMBEDDING_PROVIDER
- EMBEDDING_MODEL
- EMBEDDING_DIMENSIONS
- EMBEDDING_BASE_URL
- OPENAI_API_KEY
- CCCMEMORY_DB_PATH
- CCCMEMORY_GLOBAL_INDEX_PATH
- LOG_LEVEL
Security Notes
The server uses `better-sqlite3` for local database storage and `simple-git` for Git integration. SQL queries are generally parameterized, mitigating SQL injection risks. File system operations for project data and backups leverage built-in Node.js `fs` module, with efforts made in path sanitization (`sanitization.ts`) to prevent path traversal attacks. Environment variables are used for sensitive information like `OPENAI_API_KEY` rather than hardcoding. The `execFileSync` calls in `worktree.ts` for Git commands appear to use controlled arguments, reducing command injection risk. Network interaction for embeddings is with specified LLM APIs (Ollama, OpenAI, or local Transformers.js). Overall, good practices are in place, but local file system interaction always presents some inherent risk if configured maliciously by an untrusted host.
Similar Servers
mcp-memory-keeper
Provides persistent context management for Claude AI coding assistants, ensuring work history, decisions, and progress are preserved across sessions and context limits.
claude-memory-mcp
Provides local, persistent, and searchable memory for AI assistants like Claude Desktop, enabling them to store and recall information efficiently.
mcp-structured-memory
Provides structured, domain-specific memory management for AI agents to use in ongoing projects, storing accumulated context in local markdown files.
claude-memory
Provides Claude Code with persistent memory by indexing past conversations, enabling recall of decisions, context, and work across sessions.