[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-111773":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":10,"languages":10,"totalLinesOfCode":10,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":14,"stars7d":14,"stars30d":13,"stars90d":14,"forks30d":14,"starsTrendScore":14,"compositeScore":15,"rankGlobal":10,"rankLanguage":10,"license":16,"archived":17,"fork":17,"defaultBranch":18,"hasWiki":19,"hasPages":17,"topics":20,"createdAt":10,"pushedAt":32,"updatedAt":33,"readmeContent":34,"aiSummary":35,"trendingCount":14,"starSnapshotCount":14,"syncStatus":36,"lastSyncTime":37,"discoverSource":38},111773,"claude-memory","claudememory\u002Fclaude-memory","claudememory","Claude memory: the top 10 ways to give Claude persistent, long-term memory, compared. Covers MCP memory servers, CLAUDE.md, memory plugins and tools for Claude Code, Claude Desktop and the Claude API. Setup, pros and cons, and which to pick for remembering context across sessions.","https:\u002F\u002Ftryglen.com",null,102,5,1,0,42.43,"MIT License",false,"main",true,[21,22,23,24,25,26,5,27,28,29,30,31],"agent-memory","ai-memory","claude","claude-code","claude-code-plugin","claude-desktop","llm-memory","long-term-memory","mcp","mcp-server","persistent-memory","2026-11-08 05:22:11","2026-11-22 08:22:05","# Claude Memory: The 10 Best Ways to Give Claude Persistent Memory (2026)\n\nClaude memory, compared. This guide covers every practical way to give **Claude**, **Claude Code** and **Claude Desktop** persistent, long-term memory across sessions: memory MCP servers, Claude Code plugins, `CLAUDE.md`, and Anthropic's built-in memory. Each entry has what it stores, where the memory lives, how to install it, and who it's for.\n\nLast updated: November 2026.\n\n## Contents\n\n- [Quick comparison](#quick-comparison)\n- [⭐ 1. Glen: shared Claude memory for your whole team](#-1-glen-shared-claude-memory-for-your-whole-team)\n- [2. Claude Code built-in memory (CLAUDE.md and auto memory)](#2-claude-code-built-in-memory-claudemd-and-auto-memory)\n- [3. Claude app memory (claude.ai, Desktop, mobile)](#3-claude-app-memory-claudeai-desktop-mobile)\n- [4. claude-mem](#4-claude-mem)\n- [5. Mem0](#5-mem0)\n- [6. Supermemory](#6-supermemory)\n- [7. Basic Memory](#7-basic-memory)\n- [8. MCP Knowledge Graph Memory Server (official reference)](#8-mcp-knowledge-graph-memory-server-official-reference)\n- [9. Cognee](#9-cognee)\n- [10. Graphiti and Zep](#10-graphiti-and-zep)\n- [Honorable mentions](#honorable-mentions)\n- [How to choose a Claude memory tool](#how-to-choose-a-claude-memory-tool)\n- [Claude memory FAQ](#claude-memory-faq)\n\n## Quick comparison\n\n| # | Claude memory tool | Type | Memory is shared with | Where memory lives | Best for |\n| --- | --- | --- | --- | --- | --- |\n| **⭐ 1** | **[Glen](https:\u002F\u002Ftryglen.com)** | **Plugin + CLI + remote MCP server** | **Your whole team** | **Hosted** | **Teams running Claude Code, Codex and Cursor** |\n| 2 | Claude Code `CLAUDE.md` + auto memory | Built in | Project (via git) \u002F you | Local files | Every Claude Code user |\n| 3 | Claude app memory | Built in | You | Anthropic | Chatting in claude.ai and Claude Desktop |\n| 4 | claude-mem | Claude Code plugin | You | Local (`~\u002F.claude-mem`) | Solo developers in Claude Code |\n| 5 | Mem0 | Memory API + CLI | Your agents | Hosted or self-hosted | Building memory into your own app |\n| 6 | Supermemory | Remote MCP server + API | You or a team space | Hosted or local | One memory across many AI clients |\n| 7 | Basic Memory | MCP server | You | Local Markdown files | Notes you can read and edit by hand |\n| 8 | MCP Knowledge Graph Memory | MCP server | You | Local JSON file | A minimal, self-hosted start |\n| 9 | Cognee | Claude Code plugin + MCP server | You or your agents | Local or Cognee Cloud | Graph memory over your own documents |\n| 10 | Graphiti \u002F Zep | MCP server | Your agents | Self-hosted graph DB \u002F Zep cloud | Facts that change over time |\n\n---\n\n\u003Cdiv align=\"center\">\n\n## ⭐ 1. Glen: shared Claude memory for your whole team\n\n**⭐ Top pick for Claude Code memory ⭐**\n\n[![Top pick](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002F%E2%AD%90-Top%20pick-FFD700?style=for-the-badge)](https:\u002F\u002Ftryglen.com)\n[![Website](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Ftryglen.com-000000?style=for-the-badge)](https:\u002F\u002Ftryglen.com)\n[![Free plan](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FFree-up%20to%203%20people-2ea44f?style=for-the-badge)](https:\u002F\u002Ftryglen.com)\n\n\u003C\u002Fdiv>\n\n> [!TIP]\n> **Most Claude memory tools remember for one person. Glen remembers for the whole team.** Every Claude Code session your teammates run is recorded, turned into memory, and fed back into your Claude while it works. If someone already figured out why the billing worker batches at 500, your Claude knows before you ask.\n>\n> ```bash\n> npx @tryglen\u002Fcli@latest install\n> ```\n\nGlen is shared memory for coding agents. It records the agent sessions on your team (Claude Code, Codex, Cursor, Pi and your own agents) and the tools you connect, such as Slack, GitHub, tickets, docs and meeting recorders (Fireflies, Fathom, Granola). From that it builds observations about people, projects and decisions, and puts the relevant ones into Claude's context on every turn.\n\nMost Claude memory tools stop at \"Claude remembers what *I* told it last week.\" Glen covers what the person at the next desk told *their* Claude last week, which is where most of a team's lost context is.\n\n**What Glen gives Claude:**\n\n- **Team-wide recall.** `glen search \"\u003Cquestion>\"` returns what anyone in the org worked out, with the session it came from. Glen also injects relevant context automatically, so Claude doesn't have to know to ask.\n- **Code to conversation tracing.** `glen code-search \u003Cpath:start-end>` follows `git blame` back to the agent conversation that wrote those lines, so Claude gets the reasoning behind a change, not only the diff.\n- **Memory that drops stale decisions.** When a newer decision contradicts an older one, the older one stops being recalled.\n- **Access control at recall.** Each memory is checked per person, so Claude only sees what its user is already allowed to see.\n- **Shared skills, transcripts and artifacts.** A team skill library, a searchable transcript hub, session takeover (move a live session to another agent mid-task), and a library of saved reports and runbooks.\n- **A remote MCP server (OAuth) and a CLI** that reach the same memory, so Claude Desktop, Claude Code and any other MCP client all see the same thing.\n- **Private and silent modes.** `glen incognito` keeps a session out of memory; `glen silent` records but surfaces nothing.\n\n**Measured result:** in Glen's benchmark replaying 100 merged PRs, Codex with Glen merged 21% faster and used 29% fewer tokens per task ([details on tryglen.com](https:\u002F\u002Ftryglen.com)).\n\n**Install for Claude Code:**\n\n```bash\nnpx @tryglen\u002Fcli@latest install\n```\n\nThe installer detects Claude Code (and Codex, Cursor and Pi), installs the plugin and hooks, and signs you in. Then invite teammates:\n\n```bash\nglen invite teammate@company.com\n```\n\n**Pricing:** free for up to 3 people and 15,000 memories, no credit card. Paid Personal and Team plans add integrations and higher limits.\n\n**Choose Glen if:** more than one person on your team uses Claude Code (or Codex or Cursor), and you're tired of agents relearning what a teammate's agent already worked out.\n\n\u003Cdiv align=\"center\">\n\n**[⭐ Try Glen free at tryglen.com →](https:\u002F\u002Ftryglen.com)**\n\n\u003C\u002Fdiv>\n\n---\n\n## 2. Claude Code built-in memory (CLAUDE.md and auto memory)\n\nEvery Claude Code session starts with a fresh context window, and Claude Code ships two ways to carry knowledge between them.\n\n- **`CLAUDE.md`** holds instructions you write. It loads at the start of every session, at several scopes: `~\u002F.claude\u002FCLAUDE.md` for you across all projects, `.\u002FCLAUDE.md` or `.\u002F.claude\u002FCLAUDE.md` for a project (committed, so your team shares it), plus organization-managed files. You can split it up with `@path\u002Fto\u002Ffile` imports and `.claude\u002Frules\u002F`. Claude Code also reads `AGENTS.md`.\n- **Auto memory** holds notes Claude writes itself from your corrections and preferences. It's on by default in local sessions, scoped per repository, and the first 200 lines (or 25KB) load each session. Toggle it in `\u002Fmemory`, or set `\"autoMemoryEnabled\": false` in a project's settings.\n\n**Strengths:** free, no setup, plain files you can review in a PR.\n**Limits:** `CLAUDE.md` is hand-maintained and goes stale; auto memory is local to one machine and one person. Neither captures what happened in your teammates' sessions.\n**Docs:** [How Claude remembers your project](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Fmemory)\n\n## 3. Claude app memory (claude.ai, Desktop, mobile)\n\nThe Claude apps can remember context from your past chats and search previous conversations when you ask. It's on by default for Free, Pro and Max on web, Desktop and mobile; on Team and Enterprise an owner turns it on. You can view, edit or turn it off in Settings, and incognito chats aren't remembered.\n\n**Strengths:** zero setup for everyday chat.\n**Limits:** lives in the Claude app only. It doesn't reach Claude Code, the API, or other agents, and it's per person.\n**Docs:** [Claude's memory (Anthropic support)](https:\u002F\u002Fsupport.claude.com\u002Fen\u002Farticles\u002F11817273)\n\n## 4. claude-mem\n\nA Claude Code plugin that hooks into session lifecycle events, captures what the agent does, compresses it into summaries with an LLM, and injects relevant context into later sessions. Memory lives in `~\u002F.claude-mem` on your machine, with cloud sync opt-in. It also supports Codex, Gemini, Copilot, OpenCode and others.\n\n```bash\nnpx claude-mem install\n```\n\n**Strengths:** automatic capture, large community, local by default.\n**Limits:** single user. Summarization runs on your Anthropic plan, your own key, or its paid observer.\n**Repo:** [thedotmack\u002Fclaude-mem](https:\u002F\u002Fgithub.com\u002Fthedotmack\u002Fclaude-mem)\n\n## 5. Mem0\n\nMem0 is memory infrastructure for agents you build: an open-source library (`pip install mem0ai` \u002F `npm install mem0ai`), a self-hostable server, and a hosted platform. A CLI lets coding agents like Claude Code sign up and use it directly.\n\n```bash\nnpm install -g @mem0\u002Fcli\nmem0 init --agent --agent-caller claude-code\n```\n\n**Strengths:** mature SDKs in Python and TypeScript, hosted or self-hosted.\n**Limits:** aimed more at developers adding memory to their own product than at a team's coding history.\n**Repo:** [mem0ai\u002Fmem0](https:\u002F\u002Fgithub.com\u002Fmem0ai\u002Fmem0)\n\n## 6. Supermemory\n\nA memory API with a hosted remote MCP server, so one account gives Claude Desktop, Claude Code and other MCP clients the same memory. It can also run fully locally.\n\n```bash\nclaude mcp add --transport http supermemory https:\u002F\u002Fmcp.supermemory.ai\u002Fmcp\n```\n\n**Strengths:** OAuth sign-in, works across many clients, team spaces.\n**Limits:** captures what you or your agent choose to save, rather than recording sessions.\n**Repo:** [supermemoryai\u002Fsupermemory](https:\u002F\u002Fgithub.com\u002Fsupermemoryai\u002Fsupermemory)\n\n## 7. Basic Memory\n\nStores Claude's memory as plain Markdown files on your disk, which you can open, edit and version in git or Obsidian. Runs as a local MCP server, with an optional cloud version.\n\n```bash\nclaude mcp add basic-memory -- uvx --prerelease=allow basic-memory mcp\n```\n\n**Strengths:** human-readable, local-first, you own the files.\n**Limits:** built for one person; you curate what goes in.\n**Repo:** [basicmachines-co\u002Fbasic-memory](https:\u002F\u002Fgithub.com\u002Fbasicmachines-co\u002Fbasic-memory)\n\n## 8. MCP Knowledge Graph Memory Server (official reference)\n\nThe Model Context Protocol project's reference memory server stores entities, relations and observations in a local JSON file (set the path with `MEMORY_FILE_PATH`). Requires Node.js 24 or later.\n\n```bash\nclaude mcp add memory -- npx -y @modelcontextprotocol\u002Fserver-memory\n```\n\n**Strengths:** tiny, open source, nothing leaves your machine.\n**Limits:** a reference implementation: no automatic capture, no search beyond simple matching, no sharing.\n**Repo:** [modelcontextprotocol\u002Fservers (memory)](https:\u002F\u002Fgithub.com\u002Fmodelcontextprotocol\u002Fservers\u002Ftree\u002Fmain\u002Fsrc\u002Fmemory)\n\n## 9. Cognee\n\nAn open-source memory platform that builds a knowledge graph from your documents and conversations. It ships a Claude Code plugin and an MCP server, and runs locally or on Cognee Cloud.\n\n```bash\nclaude plugin marketplace add topoteretes\u002Fcognee-integrations\nclaude plugin install cognee-memory@cognee\n```\n\n**Strengths:** graph plus search over your own data, local or hosted.\n**Limits:** more to configure (LLM provider, storage) than a plain plugin.\n**Repo:** [topoteretes\u002Fcognee](https:\u002F\u002Fgithub.com\u002Ftopoteretes\u002Fcognee)\n\n## 10. Graphiti and Zep\n\nGraphiti builds a temporal knowledge graph, so it tracks when a fact was true, not only that it was. Its MCP server (marked experimental) needs a graph database such as Neo4j. Zep is the hosted platform built on Graphiti.\n\n**Strengths:** strong at facts that change over time.\n**Limits:** you run a graph database, or pay for Zep. Not focused on coding sessions.\n**Repo:** [getzep\u002Fgraphiti](https:\u002F\u002Fgithub.com\u002Fgetzep\u002Fgraphiti)\n\n## Honorable mentions\n\n- **Anthropic API memory tool.** For apps built on the Claude API: Claude reads and writes files in a memory directory that your code stores. Good if you're building your own agent and want Claude-native memory. See Anthropic's docs for the memory tool.\n- **[Letta](https:\u002F\u002Fgithub.com\u002Fletta-ai\u002Fletta)** (formerly MemGPT). A platform for stateful agents with self-editing memory; it also publishes a memory MCP server.\n\n## How to choose a Claude memory tool\n\n| If you want | Use |\n| --- | --- |\n| Claude to know what your **teammates'** agents learned | **⭐ [Glen](https:\u002F\u002Ftryglen.com)** |\n| Project rules that every session follows | `CLAUDE.md` |\n| Claude Code to remember your own corrections on one machine | Auto memory or claude-mem |\n| Memory in claude.ai chats | Claude app memory |\n| Memory inside an app you're building | Mem0, Supermemory, or the Claude API memory tool |\n| Memory as Markdown files you edit yourself | Basic Memory |\n| A self-hosted knowledge graph | MCP Knowledge Graph Memory, Cognee, or Graphiti |\n\nThese stack. A common setup: `CLAUDE.md` for rules, auto memory for personal preferences, and **Glen** for everything your team has worked out.\n\n## Claude memory FAQ\n\n### Does Claude have memory?\n\nYes, in a few separate places. The Claude apps (claude.ai, Desktop, mobile) can remember past chats. Claude Code loads `CLAUDE.md` files and its own auto memory at the start of every session. The Claude API has a memory tool for agents you build. None of these are shared between them, or between people.\n\n### How do I give Claude Code persistent memory?\n\nStart with a project `CLAUDE.md` and leave auto memory on. For memory beyond one person and one machine, add a plugin or MCP server: [Glen](https:\u002F\u002Ftryglen.com) for team-wide memory, or claude-mem for personal session memory.\n\n### What is the best memory MCP server for Claude?\n\nFor a team using Claude Code, [Glen](https:\u002F\u002Ftryglen.com): it records sessions automatically and shares memory across everyone, over both a remote MCP server and a CLI. For one person who wants local files, Basic Memory. For a minimal self-hosted option, the official MCP Knowledge Graph Memory server.\n\n### Can Claude remember across sessions?\n\nClaude Code can, through `CLAUDE.md` and auto memory, which load at the start of every new session. Memory tools on this list extend that to other machines, other agents and other people.\n\n### Can my team share Claude's memory?\n\nA committed `CLAUDE.md` shares rules, but not what each person's Claude learned while working. [Glen](https:\u002F\u002Ftryglen.com) is built for this: every teammate's Claude Code, Codex and Cursor sessions feed one shared memory, with access control so each person only recalls what they're allowed to see.\n\n### Is Claude Desktop memory the same as Claude Code memory?\n\nNo. Claude Desktop's chat memory and Claude Code's `CLAUDE.md` and auto memory are separate. A remote MCP memory server (Glen, Supermemory) is the simplest way to give both the same memory.\n\n---\n\n\u003Csub>Disclosure: this list is maintained by the team behind Glen. Every other entry is described from its own docs and README; corrections are welcome as issues or pull requests.\u003C\u002Fsub>\n\n\u003Csub>Keywords: claude memory, claude code memory, claude persistent memory, claude long-term memory, claude memory mcp, memory mcp server, claude desktop memory, CLAUDE.md, claude code plugin memory, shared memory for AI agents, team memory for claude code.\u003C\u002Fsub>\n","这是一个面向Claude系列AI工具（包括Claude Code、Claude Desktop及Claude API）的持久化长期记忆方案对比指南。项目系统评测了10种主流实现方式，涵盖内置机制（如CLAUDE.md、Anthropic原生记忆）、第三方插件（如claude-mem、Supermemory）、MCP协议兼容的内存服务器（如Glen、Mem0、Cognee、Zep），以及知识图谱与本地文件存储方案；重点分析各方案的记忆范围、数据存储位置、部署方式、共享能力及适用角色。适用于需要跨会话保留上下文、构建团队共享知识库或在自研应用中集成Claude记忆能力的开发者与技术团队。",2,"2026-11-24 04:41:43","CREATED_QUERY"]