Awesome Agent Memory
mem0, Letta, Graphiti and more — agent memory frameworks, MCP servers, vector databases and knowledge graphs, compared by memory type, backend and MCP support.
If your agent forgets everything after a session, this list is your cure.
🔗 Building agent memory yourself? Start here
If this list is useful, these deep-dives on adityakarnam.com cover the harness, retrieval, and MCP layers that agentic memory plugs into.
🧠 Why Agentic Memory Matters
Without memory, every AI agent interaction starts from zero. With the right memory layer, agents can:
🗂️ What Is A-MEM (Agentic Memory for LLM Agents)?
A-MEM: Agentic Memory for LLM Agents is a memory architecture from the paper by Wujiang Xu et al., accepted at NeurIPS 2025, that organizes an agent's memories the way a Zettelkasten note-taking system organizes ideas: each new memory is written as a structured note, the system automatically links it to related existing notes, and — unlike most vector-store memory layers — older notes get updated and re-linked as new context arrives, so the memory network evolves instead of just growing. It uses ChromaDB as its default vector backend and has no built-in MCP server, which makes it a research-grade reference implementation rather than a drop-in production library.
How does A-MEM's Zettelkasten memory work?
Each time the agent stores a new memory, A-MEM generates a structured note containing the content, contextual keywords, and tags, then retrieves the most semantically related existing notes and creates links between them. Critically, it doesn't stop there — it also revisits and updates the linked notes' context in light of the new memory, so the network of notes keeps evolving rather than becoming a static, ever-growing log. This is what distinguishes it from flat semantic-search memory layers like a plain vector store: retrieval in A-MEM follows the link graph, not just embedding similarity.
A-MEM vs mem0 vs Letta: what's the difference?
mem0 is a production-oriented universal memory layer (semantic + episodic + knowledge graph) with 14M+ downloads and first-party MCP support — pick it when you want a drop-in memory API today. Letta (formerly MemGPT) manages memory the way an operating system manages virtual memory, with core/archival/recall tiers built for long-running stateful agents. A-MEM is the one built specifically around interconnected, self-evolving notes — it's the strongest fit when your agent needs to reason over how memories relate to each other over time, not just recall the most similar past fact. It is a research implementation, not a hosted service, so expect to build the production wrapper yourself.
📊 Framework Comparison
🗄️ Memory Frameworks & Libraries
Production-grade open-source libraries for adding persistent memory to AI agents.
mem0
Universal memory layer combining vector search, knowledge graphs, and key-value storage.
14M+ downloads · $24M Series A · AWS chose it as their exclusive memory provider
from mem0 import Memory
m = Memory()
m.add("I prefer TypeScript", user_id="alice")
results = m.search("preferences", user_id="alice")View on GitHub →Letta (formerly MemGPT)
OS-inspired virtual memory management for LLMs. Agents maintain core, archival, and recall memory.
MemGPT paper: LLMs as Operating Systems · .af portable agent format
from letta import create_client
client = create_client()
agent = client.create_agent(name="my_agent")
# Agent remembers across sessions automaticallyView on GitHub →Graphiti (by Zep)
Temporal knowledge graph engine where every fact has a validity window.
Outperforms MemGPT on DMR benchmark · Sub-200ms retrieval · 20k stars in <12 months
from graphiti_core import Graphiti
g = Graphiti(uri, user, password)
await g.add_episode(name="pref",
episode_body="Alice prefers TypeScript")View on GitHub →Cognee
ECL pipeline combining vector + graph search. Memory in 6 lines of code.
$7.5M seed backed by OpenAI and FAIR founders · GitHub Secure Open Source Graduate
import cognee
await cognee.add("Alice joined in 2023")
await cognee.cognify()
results = await cognee.search("About Alice")View on GitHub →A-MEM (Agentic Memory)
Dynamic memory using Zettelkasten principles — creates interconnected knowledge networks.
NeurIPS 2025 · Agents dynamically index, link, and evolve memory structures
# Dynamic Zettelkasten memory
# Auto-links related concepts
# Evolves knowledge graph over timeView on GitHub →Supermemory
Claims #1 on LongMemEval, LoCoMo, and ConvoMem benchmarks. Extremely fast and scalable.
Works across all LLMs · No login required · Open MemoryBench framework
# Works with any MCP client
# Claude Desktop, Cursor, Windsurf
# No API key requiredView on GitHub →OMEGA Memory
Persistent memory for AI coding agents. 25 MCP tools. Fully local, zero cloud.
95.4% on LongMemEval · SQLite backend · Auto-capture and auto-surface · bge-small embeddings
# 25 tools: capture, search,
# consolidation, timeline,
# auto-surface on session startView on GitHub →Hindsight
Biomimetic 4-network architecture (world facts, experiences, entity summaries, evolving beliefs).
91.4% on LongMemEval with open-source 20B model
# World facts network
# Experience network
# Entity summary network
# Evolving belief networkView on GitHub →MemOS
OS-inspired memory management for LLMs. Redis Streams scheduling, multi-modal memory.
EMNLP 2025 Oral · Persistent skill memory · Multiple active implementations
# MemTensor/MemOS — coding agents
# BAI-LAB/MemoryOS — EMNLP Oral
# agiresearch/MemOS — flexible mgmtView on GitHub →Memoripy
Python library with short/long-term storage, semantic clustering, optional memory decay.
Supports OpenAI, Azure OpenAI, OpenRouter, Ollama · Graph-based associations
# Short/long-term storage
# Memory decay simulation
# Graph-based associationsView on GitHub →🔌 MCP Memory Servers
Model Context Protocol (MCP) has become the standard for plugging memory into AI tools. Every major memory framework now ships an MCP server.
🤖 Agent Frameworks with Memory
Major agent orchestration frameworks with built-in or native memory support.
LangChain's official memory library. Extracts facts, optimizes prompts, maintains long-term memory via LangGraph's Store.
Role-playing multi-agent framework. Unified Memory class: short-term (ChromaDB), long-term (SQLite), entity, procedural.
The original autonomous agent. Goal-driven with Pinecone-backed vector memory and modular memory components.
Microsoft's framework for agentic AI. Pluggable memory components. Merging with Semantic Kernel into Microsoft Agent Framework.
5000x faster instantiation than LangGraph. Built-in session management, long-term user learning, 100+ integrations.
TypeScript AI agent framework from the Gatsby team. $13M funding. Memory with libSQL and Postgres. 300k+ weekly npm downloads.
Simulates software development roles. Shared memory across PM, architect, engineer, and QA agents.
Open-source AI orchestration with explicit memory control. InMemoryChatMessageStore + Mem0MemoryStore integration.
Visual AI agent builder with 100+ integrations. Drag-and-drop conversational agents with built-in memory.
Enterprise-grade multi-agent orchestration. Agent = LLM + Tools + Memory. Production-ready.
💻 Coding Agent Memory — Quick Reference
Every major AI coding tool now has a memory ecosystem.
🗃️ Vector Databases
The storage layer for semantic memory — where embeddings live.
Sub-10ms latency at scale. Built-in embeddings, rerankers. Official MCP server. $130M+ raised.
Sophisticated filtering + vector similarity. Best free tier (1GB forever). HNSW indexing.
GPU-accelerated billion-scale. Multi-vector, hybrid search, sparse+dense. Official MCP plugin.
The developer-friendly default. Local-first, SQLite-backed, rich Python API. Default for many frameworks.
Graph + vector hybrid. Built-in BM25, OpenAI/Cohere integrations. Multi-tenancy native.
Bring vector search to existing Postgres. HNSW + IVFFlat. Zero new infra for Postgres shops.
Serverless, embedded columnar format. Zero server, works inside Python process. Multi-modal native.
Battle-tested billion-scale similarity search from Meta. GPU support. The backbone of many production systems.
🕸️ Knowledge Graphs
Structured relational memory backends for multi-hop reasoning.
The dominant graph database. Native graph storage, Cypher query language, full-text + vector hybrid search. Enterprise support.
Sub-millisecond graph query using sparse adjacency matrices. Redis-compatible. Used by Graphiti (Zep) as primary backend.
High-performance embedded graph DB. In-process, no server needed. Used by kuzu-memory-graph-mcp for sub-3ms recall.
Fully managed graph database on AWS. Supports both property graphs (Gremlin) and RDF (SPARQL). Graphiti-compatible.
⭐ Featured Projects
Notable open-source tools built by the community — from knowledge base generation to graph visualization.
Embenx
Agentic Memory Layer · Knowledge Base GeneratorPython-native retrieval library and universal agentic memory layer. Sits between raw vector indices and full-blown vector databases. Provides a high-level Collection API with filtering, reranking, quantization, and synthetic data generation across 20+ backends.
✨ New: OpenSearch integration · Hybrid search · MCP-native · 20+ vector backends
Graphify
Knowledge Graph Builder · Graph VisualizationOpen-source tool for building and visualizing knowledge graphs from unstructured data. Transforms raw text, documents, and data sources into structured, navigable graph representations — enabling agents to reason over interconnected knowledge.
✨ Graph extraction · Entity linking · Visual exploration · Agent-ready output
📄 Key Research Papers
Foundational and recent papers driving the field forward.
Introduced OS-inspired virtual context management. Foundation for Letta.
Zettelkasten-inspired dynamic memory organization with interconnected knowledge networks.
Temporal validity windows for every fact. Outperforms MemGPT on DMR benchmark.
4-network biomimetic architecture achieving 91.4% on LongMemEval with 20B open model.
OS-inspired memory management for LLMs with Redis Streams scheduling and multi-modal memory.
🌟 See the Full List
This page covers the highlights. The full awesome list includes RAG frameworks, industry verticals (chip design, pharma, healthcare, space, agriculture, climate), benchmarks, learning resources, and hundreds more tools.
View on GitHub →
Curated with ❤️ · Contribute a project · Licensed CC0
More from adityakarnam.com: AI Research · AI Toolkit · Field Notes · About