Skip to content

Best Agent Memory MCP

Best Agent Memory MCP servers, ranked and compared: long-term memory for Claude Code, Codex, Cursor and any MCP client. Glen, Mem0, Supermemory, Zep, Hindsight, Basic Memory…

Install: claude mcp add cognee -t http http://localhost:8000/mcp

Works with Claude Code, Codex, Cursor · 238 GitHub stars

Install

$claude mcp add cognee -t http http://localhost:8000/mcp

Install command taken from the project's README or registry entry. Always review code before running it.

Best Agent Memory MCP

The best agent memory MCP servers, ranked: long-term memory for Claude Code, Codex, Cursor and any MCP client.

Best Agent Memory MCP compares 25 memory MCP servers that let an AI agent keep facts, decisions and past conversations between sessions. Hosted services (Glen, Mem0, Zep, Supermemory) sit next to open-source servers you run yourself (Hindsight, Basic Memory, Graphiti, Cognee, the official MCP memory server), and every entry says where memory is stored, whether capture is automatic or waits for the agent to call a tool, whether a team can share it, and what it costs. All of them connect to Claude Code, Cursor or Codex over MCP; the entries note which clients each project documents.

Short answer. For memory shared across a team's agents, start with Glen. For a hosted personal memory with a free tier, Mem0. For self-hosting with hybrid retrieval, Hindsight. For memory you can read and edit as files, Basic Memory. For a zero-dependency baseline, the official memory server.

Disclosure: this list is maintained by the Glen team, and Glen is ranked first. Every other entry is ranked on the published criteria, and its facts link to their sources.

Contents

At a glance

Star badges are live. Several projects keep their MCP server inside a larger monorepo, so their star count covers the whole repo, not the server; the entries say where that applies.

# Name Hosted or local Memory stored as Capture Team sharing License Stars
1 Glen Hosted Shards and observations on Glen's servers Plugin or CLI hooks; MCP alone is search only Org-wide, access checked per observation Plugin MIT; hosted service site
2 Mem0 Hosted Mem0 Platform memories (graph on Custom plan) Agent calls a tool Not documented for MCP Apache-2.0 (core repo)
3 Supermemory Hosted; self-host option Supermemory cloud, organized in spaces Agent calls a tool; hooks via separate plugins Team spaces MIT
4 Zep Context MCP Hosted; BYOC option Temporal knowledge graph Agent calls a tool Shared Context Graphs with ABAC Proprietary closed source
5 Hindsight Self-hosted or Hindsight Cloud Postgres + pgvector Agent calls a tool; auto-ingest via coding-agents package Shared server or Cloud MIT
6 mcp-memory-service Local or self-hosted SQLite with local ONNX embeddings Hooks (Claude Code, Codex) or tool calls Self-hosted HTTP sync Apache-2.0
7 Basic Memory Local; paid cloud Markdown files + SQLite index

Similar plugs

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype…

Java 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发

MCP serverDatabases+105 this week

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

Explore related