Mem0
Memory layer for AI agents that persists user, session, and agent context across conversations for personalized applications.
Quick decision
What it does
Mem0 describes itself as the memory layer for AI agents, providing drop-in memory infrastructure so context persists across sessions. The GitHub README introduction says it enhances assistants and agents with an intelligent memory layer that remembers user preferences, adapts to individual needs, and learns over time, with use cases in AI assistants, customer support, healthcare, productivity, and gaming.
Core capabilities listed include multi-level memory retaining user, session, and agent state, a developer-friendly API with cross-platform SDKs, and a fully managed service option. The README 2026 algorithm notes describe single-pass extraction, agent-generated facts as first-class memories, entity linking across memories, multi-signal retrieval combining semantic, keyword, and entity matching, and temporal reasoning for dated queries.
Delivery options cover a Python and npm library installed as mem0ai, a self-hosted server run with Docker Compose with dashboard and API key auth, and a hosted cloud platform at app.mem0.ai. The library requires an LLM for extraction, with OpenAI models as defaults for chat and embeddings, and supports other LLMs and embedding providers through configuration.
Verified capabilities
Memory
Multi-level persistent memory Source verified
Retain user, session, and agent state with adaptive personalization across conversations.
Automatic fact extraction Source verified
Extract memorable facts from conversation messages in a single LLM pass and store them for later retrieval.
Entity linking and graph memory Source verified
Extract and embed entities and link them across memories to boost retrieval, with graph memory on paid cloud tiers.
Retrieval
Hybrid retrieval Source verified
Search memories with semantic, BM25 keyword, and entity matching scored in parallel and fused for ranking.
Temporal reasoning Source verified
Time-aware retrieval that ranks dated instances for questions about current state, past events, and upcoming plans.
Developer Tools
CLI and agent skills Source verified
Terminal CLI to add and search memories and installable skills that teach coding assistants to build with Mem0.
Quick start
Add and search memory with the Python library
Install mem0ai from the README library quickstart, instantiate Memory, and use search and add in a chat loop with an OpenAI client as shown in the basic usage example.
pip install mem0ai
from mem0 import Memory
memory = Memory()
memory.add("Prefers dark mode", user_id="alice")
results = memory.search(query="What does Alice prefer?", filters={"user_id": "alice"}, top_k=3)
print(results)Source: https://github.com/mem0ai/mem0. Examples use placeholders only. Never paste a real key into a profile, config file you share, or a ticket.
MCP support: Mem0 integration references describe an MCP server option and editor plugins with MCP server connection, exposing memory profile, search, and conclude tools in compatible agents.
Works with
Packages
Python package mem0ai on PyPI and TypeScript package mem0ai on npm, plus mem0-cli and @mem0/cli for terminal use.
Frameworks
LangGraph and CrewAI integration guides and examples listed in the README, plus a browser extension for ChatGPT, Perplexity, and Claude.
API
REST API through the self-hosted FastAPI server and hosted platform SDK clients with API key auth.
Deployment
In-process library, self-hosted Docker server with pgvector and Neo4j, and zero-ops hosted cloud platform.
Only sourced support is listed. A missing framework means AgentsUse has not verified it yet, not that it cannot work.
Health and maintenance
66,781
Checked 2026-10-07
7,859
Checked 2026-10-07
Stars, forks, and Apache-2.0 license read from the fetched GitHub repository page. PyPI version 2.0.20 from a package comparison re-read from PyPI JSON on 2026-09-08. Weekly downloads not read, so omitted.
Pricing and license
Freemium model with open source self-hosting at no license cost, a free Hobby cloud tier with monthly add and retrieval request limits, and paid Starter and Pro cloud tiers priced per month with larger request allowances, unlimited projects on Pro, graph memory, and advanced analytics. Enterprise is custom with on-prem deployment, audit logs, SSO, and SLA support, and usage-based pricing is also offered.
Limitations and safety
- The README states managed platform benchmark scores include proprietary optimizations not available in the open source SDK, so open source users should expect directionally similar but not identical results.
- Mem0 requires an LLM to function for extraction, with OpenAI as the default, so self-hosted use still depends on a model provider or local model configuration.
- Advanced cloud features such as graph memory, Dream consolidation, advanced analytics, and private support are limited to Pro and Enterprise tiers on the pricing page.
Browser and data tools can read pages, fill forms, and download files. Start with a test account or read-only access, keep credentials in environment variables, and review agent actions before connecting anything that can spend money, send messages, or delete data.
Alternatives to Mem0
Zep
Managed agent memory built on temporal context graphs with dated facts and graph search for evolving business data.
Tradeoff: Cloud-first commercial service with credit-based pricing and deprecated community edition, versus Mem0 open source library and self-hosted server.
Langfuse
Observability platform that can trace memory-augmented agent behavior, prompts, and evaluations in production.
Tradeoff: Provides tracing and evals rather than a dedicated persistent memory store, so it complements rather than replaces a memory layer.
Common questions
What does Mem0 do for an AI agent?
Memory layer for AI agents that persists user, session, and agent context across conversations for personalized applications.
Is Mem0 open source?
Yes. This profile records the license as Apache-2.0 from the official repository.
Does Mem0 support MCP?
Mem0 integration references describe an MCP server option and editor plugins with MCP server connection, exposing memory profile, search, and conclude tools in compatible agents.
Sources and freshness
- GitHub repository: https://github.com/mem0ai/mem0
- Pricing: https://mem0.AI/pricing
- Documentation: https://docs.mem0.ai
Last checked 2026-10-07. Verification label: source verified, which means public claims trace to the sources above. It does not mean AgentsUse ran the tool. Spotted an error? Send a correction. Back to the tools directory.