A Mem MCP
A

A Mem MCP

A-MEM is a self-evolving memory system designed for coding agents. It uses a Zettelkasten-style knowledge graph structure, can automatically extract, associate, and evolve memories, supports semantic search and graph traversal, and integrates with agents such as Claude Code through the MCP protocol.
2.5 points
6.2K

What is A-MEM?

A-MEM is an intelligent memory system designed for programming assistants such as Claude Code. Different from simple storage, it can automatically organize knowledge into a network structure, discover associations between memories, and continuously evolve as new knowledge is added. It's like equipping your programming assistant with a second brain that can learn and grow.

How to use A-MEM?

After installing A-MEM, it will be automatically integrated into Claude Code. When the assistant communicates with you, it can actively store the learned project knowledge (such as code patterns, architectural decisions, API key locations, etc.) in A-MEM. Later, when the assistant needs relevant information, it will automatically search and extract from the memory to provide more coherent and personalized assistance.

Applicable scenarios

A-MEM is very suitable for complex projects that require long-term maintenance or iteration. It can help the assistant remember specific project configurations, resolved bugs, code specifications agreed upon by the team, integration methods of third-party services, etc., ensuring that the assistant can maintain an understanding of the project context even in different sessions.

Main features

Self-evolving memory
Memory is not static. When new knowledge is added, A-MEM will automatically find relevant old memories, strengthen the connections between them, and update context labels to make the entire knowledge network more intelligent.
Semantic and graph structure search
Combines vector similarity search and graph traversal. It can not only find memories by meaning but also explore other knowledge nodes related to the memory to achieve in-depth association.
Hierarchical retrieval (Peek and Drill)
First, conduct a broad search through lightweight metadata (such as keywords and tags) to find a list of relevant memories. Then, you can view the complete content of specific memories in depth, effectively balancing search efficiency and information integrity.
Multi-backend support
Supports multiple LLM backends such as OpenAI, local Ollama, and OpenRouter, making it convenient for users to choose according to their needs, budgets, and privacy requirements.
Flexible memory scope
Supports two modes: project-isolated memory (default) and globally shared memory, adapting to different scenarios of individual single-project development or multi-project collaboration.
Advantages
Improve assistant coherence: Enable the programming assistant to remember project details in different sessions and provide more consistent assistance.
Reduce repeated explanations: Developers don't need to repeat project backgrounds and resolved problems in each new session.
Automatic knowledge association: The system automatically discovers and links relevant knowledge to form an organic knowledge graph instead of fragmented pieces.
Easy to integrate: Seamlessly integrate with Claude Code through the MCP protocol, with simple installation and configuration.
Privacy controllable: Supports the use of local models (such as Ollama) to ensure that code and project information are not leaked.
Limitations
Currently mainly adapted to Claude Code: Full support for other MCP-supported assistants (such as Cursor) is still in the planning stage.
Requires an LLM backend: A configured LLM (such as the OpenAI API or local Ollama) is needed to handle the semantic understanding and organization of memories.
Initial learning cost: Users need to understand its concepts and trust the assistant to use it, which may require some adaptation time.
Storage occupation: The memory library of long-term projects may occupy a certain amount of local disk space.

How to use

Install A-MEM
Install A-MEM through the pip package manager.
Add to Claude Code
Run the command in the terminal to add the A-MEM MCP server to Claude Code. You need to prepare the API key of the LLM backend.
Start using
Restart Claude Code. After that, the assistant will receive a reminder to use the memory at the beginning of the session and automatically call the memory tool to store and retrieve knowledge during the conversation.
(Optional) Configure the memory scope
If you need to share memories across projects, you can set the global storage path through environment variables.

Usage examples

Example 1: Remember project architectural decisions
When developing a web application, you and the assistant discussed the authentication scheme and finally decided to use JWT.
Example 2: Associate resolved bugs
The project once encountered a database connection leak bug, which was resolved by adjusting the connection pool configuration.
Example 3: Search for relevant knowledge points
You want to review all the security practices and decisions in the project.

Frequently asked questions

Will A-MEM send my code and project information to external servers?
Are the memories independent for each project or shared across all projects?
How can I view or manage the stored memories?
If I no longer need A-MEM, how can I completely uninstall it?
Does A-MEM support AI programming assistants other than Claude?

Related resources

A-MEM research paper
An academic paper to understand the design concept of 'agent memory' behind A-MEM.
PyPI project page
View the latest version, download volume, and basic project information.
MCP official registry
View the A-MEM server in the official registry of the Model Context Protocol.
GitHub repository
Access the source code, report issues, or contribute code.

Installation

Copy the following command to your Client for configuration
{
  "mcpServers": {
    "a-mem": {
      "command": "a-mem-mcp",
      "env": {
        "LLM_BACKEND": "openai",
        "LLM_MODEL": "gpt-4o-mini",
        "OPENAI_API_KEY": "sk-..."
      }
    }
  }
}
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
7.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
4.9K
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
4.4K
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
4.9K
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.3K
4 points
P
Paperbanana
Python
6.4K
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
6.1K
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
7.6K
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
21.5K
4.5 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
24.7K
4.3 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
73.3K
4.3 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
34.6K
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
63.7K
4.5 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#
32.5K
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
21.1K
4.5 points
C
Context7
Context7 MCP is a service that provides real-time, version-specific documentation and code examples for AI programming assistants. It is directly integrated into prompts through the Model Context Protocol to solve the problem of LLMs using outdated information.
TypeScript
97.5K
4.7 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2026AIBase