Comparison
Mem0 vs Zep
Mem0 and Zep both give an agent memory that outlives a single conversation, so a later session can recall what a user said or did earlier. Both extract facts from conversations and expose search for pulling relevant memory back into a prompt; Zep also keeps the source episodes and thread messages those facts came from. They organize that memory differently. Facts below come from each vendor's README, documentation, and pricing page, checked on 2026-11-03.
Mem0 (Apache-2.0, LICENSE file) is available as a Python and npm library, a self-hosted server run with Docker Compose, and a hosted cloud platform. Its README describes multi-level memory for user, session, and agent state, and a memory algorithm updated in April 2026: single-pass extraction that only adds memories, entity linking, and retrieval that scores semantic, keyword, and entity signals in parallel, with time-aware ranking for questions about current state, past events, and plans. The README's benchmark table covers its managed platform, which it says includes optimizations not in the open-source SDK.
Zep is a commercial service built around a temporal context graph. The Zep docs describe users, threads, and a graph of facts and relationships; when new data invalidates a prior fact, the time it became invalid is stored on that fact's edge. Graphiti, the open-source Apache-2.0 Python framework behind that idea, tracks facts with validity windows and traces each back to the episodes that produced it, and the Graphiti README points to Zep's paper, A Temporal Knowledge Graph Architecture. The getzep/zep repository holds examples and integrations rather than the product itself.
The deciding question is whether your agent mostly needs the latest known facts about a user, or must also answer what was true at an earlier time and how it changed. Mem0 fits the first need with a small integration and a library you can run yourself. Zep fits the second, and fits teams that want a managed graph with governance features on its Enterprise plan. AgentsUse has not benchmarked either memory system, and the benchmark numbers vendors publish are their own.
Side by side
| Dimension | Mem0 | Zep |
|---|---|---|
| Pricing model | Freemium (hosted paid tiers) | Freemium (hosted paid tiers) |
| License / terms | Apache-2.0 | Not open source |
| Deployment | library, self-hosted, cloud | cloud, cloud-byok, byoc |
| 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. | Zep documentation describes a Memory MCP Server at a remote Streamable HTTP endpoint with OAuth sign-in, also present as a zep-mcp-server directory in the repository and as seat allocations on pricing plans. |
| Primary package | PyPI: mem0ai 2.2.1 | PyPI: zep-cloud 4.0.1 |
| Authentication | API keys for hosted platform and self-hosted server, with admin registration for self-hosted deployments | Account sign-up with API access for cloud, and OAuth 2.1 with PKCE through an identity provider for the Memory MCP Server |
| GitHub stars (checked 2026-10-29) | 68,059 | 4,981 |
| Vendor | Mem0 | Zep |
AgentsUse has not benchmarked these tools head to head. This page records documented differences; it does not declare a winner.
Each cell comes from the published profiles, which record the official repository, package page, and documentation checked on the dates shown. Pricing cells name the model, not a price. Follow the profile to the official pricing page for current terms.
Differences that decide the choice
- Memory model: Mem0's README says its current extraction is ADD-only, so memories accumulate and nothing is overwritten, and temporal reasoning happens at retrieval by ranking the right dated instance. Zep's docs and the Graphiti README describe invalidation at write time: old facts are marked invalid with a time rather than deleted, so you can query what is true now or at an earlier point.
- Retrieval: Mem0 describes hybrid retrieval with semantic, BM25 keyword, and entity matching fused for ranking, and an optional reranker disabled until configured; the README says to install mem0ai[nlp] for the BM25 keyword matching and entity extraction. Zep exposes graph.search_edges for low-level search, thread.get_context for a high-level assembled context block, and search over nodes, episodes, observations, and thread summaries.
- Deployment: Mem0 can run as a library, as a self-hosted server using pgvector by default, or as a cloud platform. The library defaults to a local Qdrant store, OpenAI gpt-5-mini for extraction, and OpenAI text-embedding-3-small for embeddings, all overridable. Zep's product is Zep Cloud; its pricing page lists Enterprise deployment as Zep Cloud, Zep Cloud with your own encryption keys, or your VPC. Graphiti is the self-run option, requiring a graph database.
- Graphiti requirements: its README lists Python 3.10 or higher and Neo4j 5.26, FalkorDB 1.1.2, or Amazon Neptune with OpenSearch Serverless, and marks Kuzu as deprecated. Running Graphiti means you operate the graph store and the language model calls that build it; Zep Cloud wraps that into a service.
- LLM dependency: Mem0 needs an LLM for extraction, with OpenAI as the default, so even a self-hosted setup depends on a model provider or a local model. Graphiti likewise builds its graph with model calls, and Zep Cloud runs ingestion for you under credit billing.
- Cost model, Mem0: its pricing page (checked 2026-11-03) lists a Free plan with 10,000 add requests and 1,000 retrieval requests per month for the first 30 days on Mem0 hosted models, or 50,000 and 10,000 with your own LLM key, and a Custom plan that includes graph memory and advanced analytics.
- Cost model, Zep: its pricing page (checked 2026-11-03) lists Free at 10,000 credits per month, Flex at $125 per month for 50,000 credits, Flex Plus at $375 for 200,000, and Enterprise custom, with overage priced per block of credits. Rate limits are 600 requests per minute on Flex and 1,000 on Flex Plus, and Zep says Free and Flex limits may be lowered depending on service usage. Credits and request counts are different units, so convert with your own traffic before comparing.
- Governance: Zep lists audit logs, a DPA for EU customers, SOC 2 Type II, HIPAA BAA, and your-VPC deployment on Enterprise. Mem0 lists SSO, audit logs, SLA, and on-prem deployment on its Custom plan.
- Agent access: Mem0's README documents a CLI and installable agent skills for coding assistants, and its docs describe a hosted Mem0 MCP server at https://mcp.mem0.ai/mcp for the Platform. Zep lists a Context MCP Server with seat allocations per plan, using OAuth sign-in for per user access from clients such as Claude and Cursor.
Choose Mem0 when
Choose Mem0 when you want a memory layer in an agent quickly, and want the option of running it yourself as a library or a Docker server before moving to a hosted plan. It fits per-user fact recall for assistants and support agents where the latest known facts matter most. Remember it still calls an LLM for extraction, and that vendor benchmark scores reflect its managed platform, not necessarily the open-source SDK.
Choose Zep when
Choose Zep when facts change over time and the agent must tell what was true at a given moment, how it changed, and where the fact came from, or when you want a managed context graph with Enterprise governance features. If you want to run the graph yourself, evaluate Graphiti and budget for a graph database and model calls. Zep Cloud is credit billed, and the main repository is examples, so judge the product through its docs and a trial.
Sources and freshness
Compared from the published profiles for Mem0 (checked 2026-10-29) and Zep (checked 2026-10-29). Send corrections through the contact page.