Claude Memory MCP Server
An MCP (Model Context Protocol) server implementation that provides persistent memory capabilities for Large Language Models, specifically designed to integrate with the Claude desktop application.
Overview
This project implements optimal memory techniques based on comprehensive research of current approaches in the field. It provides a standardized way for Claude to maintain persistent memory across conversations and sessions.
Features
- Tiered Memory Architecture: Short-term, long-term, and archival memory tiers
- Multiple Memory Types: Support for conversations, knowledge, entities, and reflections
- Semantic Search: Retrieve memories based on semantic similarity
- Automatic Memory Management: Intelligent memory capture without explicit commands
- Memory Consolidation: Automatic consolidation of short-term memories into long-term memory
- Memory Management: Importance-based memory retention and forgetting
- Claude Integration: Ready-to-use integration with Claude desktop application
- MCP Protocol Support: Compatible with the Model Context Protocol
- Docker Support: Easy deployment using Docker containers
Quick Start
Option 1: Using Docker (Recommended)
Configure Claude Desktop to use the containerized MCP server (see Docker Usage Guide for details).
Option 2: Standard Installation
- Prerequisites:
- Python 3.8-3.12
- pip package manager
- Installation:Copy
- Claude Desktop Integration:Add the following to your Claude configuration file:Copy
Using Memory with Claude
The Memory MCP Server enables Claude to remember information across conversations without requiring explicit commands.
- Automatic Memory: Claude will automatically:
- Remember important details you share
- Store user preferences and facts
- Recall relevant information when needed
- Memory Recall: To see what Claude remembers, simply ask:
- "What do you remember about me?"
- "What do you know about my preferences?"
- System Prompt: For optimal memory usage, add this to your Claude system prompt:Copy
See the User Guide for detailed usage instructions and examples.
Documentation
Examples
The examples
directory contains scripts demonstrating how to interact with the Memory MCP Server:
store_memory_example.py
: Example of storing a memoryretrieve_memory_example.py
: Example of retrieving memories
Troubleshooting
If you encounter issues:
- Check the Compatibility Guide for dependency requirements
- Ensure your Python version is 3.8-3.12
- For NumPy issues, use:
pip install "numpy>=1.20.0,<2.0.0"
- Try using Docker for simplified deployment
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
An MCP server that provides persistent memory capabilities for Claude, offering tiered memory architecture with semantic search, memory consolidation, and integration with the Claude desktop application.
Related MCP Servers
- -securityAlicense-qualityA Python-based server that implements the Model Context Protocol to interface with Claude Desktop as an MCP client, supporting interaction through efficient memory management.Last updated -1PythonMIT License
- AsecurityAlicenseAqualityA custom Memory MCP Server that acts as a cache for Infrastructure-as-Code information, allowing users to store, summarize, and manage notes with a custom URI scheme and simple resource handling.Last updated -231PythonMIT License
- AsecurityAlicenseAqualityA high-performance MCP server utilizing libSQL for persistent memory and vector search capabilities, enabling efficient entity management and semantic knowledge storage.Last updated -66451TypeScriptMIT License
- -securityFlicense-qualityAn MCP server that allows Claude and other LLMs to manage persistent memories across conversations through text file storage, enabling commands to add, search, delete and list memory entries.Last updated -2TypeScript