Memory MCP
M

Memory MCP

A persistent memory MCP service designed for Claude Code, which can automatically save conversation histories and intelligently retrieve relevant contexts in subsequent conversations, achieving memory continuity across sessions.
2.5 points
6.2K

What is the Memory MCP Service?

The Memory MCP Service is an intelligent memory system specifically designed for Claude Code. It acts like an assistant that never forgets, automatically recording every conversation you have with Claude and intelligently recalling relevant histories in future conversations. Whether you're developing a project, learning new knowledge, or making plans, it ensures that Claude always understands your background and preferences.

How to use the Memory MCP Service?

It's very simple to use: After installation, configure the automatic hook, and then all conversations will be automatically saved and retrieved. You can also manually call the memory tool to record specific information or search the history. The system supports two storage methods: user - level (shared across projects) and project - level (isolated).

Applicable scenarios

It is suitable for scenarios that require context continuity, such as long - term project development, continuous learning, and complex problem - solving. It is particularly suitable for users such as developers, researchers, and students who need to interact with AI assistants multiple times.

Main features

Automatically save conversations
By configuring hooks, the system can automatically save user messages and AI responses without manual operation.
Semantic search and retrieval
Based on vector embedding technology, it can understand the semantic meaning of queries and find the most relevant historical conversations.
Dual - layer storage architecture
User - level storage (sharing preferences and habits across projects) + Project - level storage (project - specific decisions and architectures).
Knowledge entity extraction
Automatically extract key entities (decisions, preferences, concepts, etc.) from conversations to form a structured knowledge base.
Conversation episode management
Each conversation session is recorded as an "episode", including an automatically generated summary and timestamp.
Claude Code hook integration
Deeply integrated with Claude Code's event system, supporting events such as SessionStart and UserPromptSubmit.
Advantages
๐Ÿš€ Fully automated: No manual operation is required after configuration. Conversations are automatically saved and retrieved.
๐Ÿง  Intelligent association: Find the most relevant historical context based on semantic understanding.
๐Ÿ“Š Structured storage: Convert conversations into searchable knowledge entities.
๐Ÿ”’ Privacy protection: All data is stored locally and not uploaded to the cloud.
โšก Fast response: Retrieving relevant memories usually takes 1 - 2 seconds.
๐Ÿ”„ Continuous across sessions: Ensure context continuity for long - term projects.
Limitations
๐Ÿ“ฆ Approximately 400MB of vector models need to be downloaded for the initial installation.
๐Ÿ Requires Python 3.10 - 3.13 and does not support Python 3.14+.
๐Ÿ’พ Local storage space increases with the growth of conversations.
๐Ÿ”ง Some technical knowledge is required for initial configuration.
๐Ÿ”„ Only supports Claude Code and does not support other AI assistants.

How to use

Install prerequisite tools
First, install uv (Python package manager), which is a prerequisite tool for running the Memory MCP Service.
Initialize the vector model
Download the necessary vector model files (about 400MB, only need to be downloaded once) when using it for the first time.
Add to Claude Code
Add the Memory MCP Service as an MCP server to Claude Code.
Configure automatic hooks (recommended)
Configure automatic hooks to achieve fully automated memory saving and retrieval. Edit the ~/.claude/settings.json file.
Verify the installation
Check if the Memory MCP Service is successfully connected.

Usage examples

Long - term project development
When developing a web application, each session can recall previous architectural decisions, technology selections, and implementation details.
Learning a new framework
When learning the React framework, the system will remember the concepts you have mastered and common problems you have encountered.
Personal preference recording
Record your code style preferences, such as using 2 - space indents, camelCase for function names, etc.

Frequently Asked Questions

Will the Memory MCP Service save my private data?
How long does the installation take?
How to clean up old memory data?
Which Python versions are supported?
Can it still be used if the hooks are not configured?
What is the accuracy of memory retrieval?

Related resources

GitHub repository
Source code and latest updates
PyPI package page
Python package release page
uv installation guide
Installation instructions for the Python package manager uv
Model Context Protocol documentation
Official documentation of the MCP protocol
Claude Code documentation
Claude Code usage guide

Installation

Copy the following command to your Client for configuration
Note: Your key is sensitive information, do not share it with anyone.

Alternatives

A
Airweave
Airweave is an open - source context retrieval layer for AI agents and RAG systems. It connects and synchronizes data from various applications, tools, and databases, and provides relevant, real - time, multi - source contextual information to AI agents through a unified search interface.
Python
16.2K
5 points
V
Vestige
Vestige is an AI memory engine based on cognitive science. By implementing 29 neuroscience modules such as prediction error gating, FSRS - 6 spaced repetition, and memory dreaming, it provides long - term memory capabilities for AI. It includes a 3D visualization dashboard and 21 MCP tools, runs completely locally, and does not require the cloud.
Rust
9.5K
4.5 points
M
Moltbrain
MoltBrain is a long-term memory layer plugin designed for OpenClaw, MoltBook, and Claude Code, capable of automatically learning and recalling project context, providing intelligent search, observation recording, analysis statistics, and persistent storage functions.
TypeScript
10.1K
4.5 points
B
Bm.md
A feature-rich Markdown typesetting tool that supports multiple style themes and platform adaptation, providing real-time editing preview, image export, and API integration capabilities
TypeScript
14.8K
5 points
S
Security Detections MCP
Security Detections MCP is a server based on the Model Context Protocol that allows LLMs to query a unified security detection rule database covering Sigma, Splunk ESCU, Elastic, and KQL formats. The latest version 3.0 is upgraded to an autonomous detection engineering platform that can automatically extract TTPs from threat intelligence, analyze coverage gaps, generate SIEM-native format detection rules, run tests, and verify. The project includes over 71 tools, 11 pre-built workflow prompts, and a knowledge graph system, supporting multiple SIEM platforms.
TypeScript
6.7K
4 points
P
Paperbanana
Python
8.9K
5 points
B
Better Icons
An MCP server and CLI tool that provides search and retrieval of over 200,000 icons, supports more than 150 icon libraries, and helps AI assistants and developers quickly obtain and use icons.
TypeScript
8.7K
4.5 points
A
Assistant Ui
assistant - ui is an open - source TypeScript/React library for quickly building production - grade AI chat interfaces, providing composable UI components, streaming responses, accessibility, etc., and supporting multiple AI backends and models.
TypeScript
10.0K
5 points
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
24.8K
4.5 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
38.1K
5 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
80.3K
4.3 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
28.5K
4.3 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
38.4K
5 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
69.6K
4.5 points
G
Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
24.0K
4.5 points
M
Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
56.4K
4.8 points