Claude Memory Management
STDIOA server for structured memory management across chat sessions for project-based work.
A server for structured memory management across chat sessions for project-based work.
A Model Context Protocol (MCP) server for Claude Desktop that provides structured memory management across chat sessions, specifically designed for project-based work.
This MCP server is specifically designed to help Claude maintain context and knowledge within project directories when used with Claude Desktop. It allows Claude to:
This approach is ideal for long-term projects where maintaining context between sessions is crucial, such as software development, research, writing, or any collaborative work with Claude.
Memories are stored in a hierarchical structure within your project:
/your-project-directory
/memory # Memory store created by Claude
/entities/ # Information about specific entities (people, projects, etc.)
/concepts/ # Abstract concepts or knowledge
/sessions/ # Session-specific memories
/index.json # Lunr.js search index
/metadata.json # Overall memory metadata
/README.md # Auto-generated documentation
This structure keeps all project-related memories organized and accessible within your project directory.
Add this to your claude_desktop_config.json:
{ "mcpServers": { "memory": { "command": "node", "args": ["path/to/mcp-memory/dist/index.js"] } } }
You can also set a custom memory directory using an environment variable:
{ "mcpServers": { "memory": { "command": "node", "args": ["path/to/mcp-memory/dist/index.js"], "env": { "MEMORY_DIR": "/path/to/custom/memory/directory" } } } }
This workflow ensures that Claude maintains context and knowledge specific to each project, making it more effective as a long-term collaborator.
This repository includes an instructions_template.md
file that provides a comprehensive template for Claude project instructions. You can customize this template for your specific projects to help Claude effectively use the memory system.
The template includes:
# Install dependencies npm install # Build the project npm run build # Start the server npm start # Development mode (watch for changes) npm run dev
This server is built using:
MIT