← Blog

Why Claude Code memory stops at one laptop, and how to share it over MCP

John Jeong

If you only need repository build commands and style rules, stick with CLAUDE.md in Git. If you want Claude Code, Codex, Cursor, Claude desktop, and ChatGPT to remember last week's architecture decision, yesterday's meeting transcript, and your open todos, local coding-agent memory breaks down quickly and you need a shared MCP memory layer.

We hit this problem building Char itself. An engineer finishes a design call on Mac, discusses pricing constraints inside a chat, and opens Claude Code or Codex an hour later. Inside the terminal, the coding agent knows every file in the repository and nothing about the decision made two hours earlier.

Why does native Claude Code memory stay trapped?

Claude Code splits persistence into two local mechanisms, and both solve narrower jobs than cross-agent work memory:

  • CLAUDE.md handles static repo instructions. You check it into Git so anyone cloning the repo gets build commands, test filters, and architecture boundaries. Keeping it short works well, and mixing in personal meeting context pollutes the repository for teammates.
  • Auto-memory (MEMORY.md) stays on one laptop. Claude Code writes learned preferences and workflow fixes to a local folder under your home directory, with an index budget around 200 lines or 25 KB. Swap machines, open Cursor, run Codex, or ask a question in ChatGPT, and that learned context is invisible.

Neither file hears your calls, tracks what changed across Gmail or Linear, or gives a teammate or another AI client a clean permission boundary.

Claude Code's /memory panel separates user-level ~/.claude/CLAUDE.md, project ./CLAUDE.md, and local auto-memory toggles on one machine. Terminal capture via @kunchenguid on X, cropped to the dialog.

How do MCP memory options compare in 2026?

In the table below, Char behavior reflects our hosted MCP implementation at api.char.com/v2/mcp; third-party tools are summarized from public documentation and repositories as of November 2026.

OptionWhere state livesTransport & setupHuman inspection & editingBest fit
CLAUDE.md + MEMORY.mdGit repo + local laptop config folderBuilt into Claude Code; zero external setupPlain text files on diskRepo rules and one-machine coding quirks
Basic MemoryLocal Markdown + SQLite/index on your machineLocal stdio MCP serverEdit local .md files directlySingle-machine local knowledge base with explicit agent tool calls
Mem0 MCPManaged cloud API or self-hosted vector/graph storeHosted API or local/self-hosted MCP setupSDK/dashboard inspection rather than daily workspace PagesApplication developers embedding programmatic user memory in custom agent backends
Zep / Graphiti MCPTemporal knowledge graph databaseSelf-hosted/cloud server + MCP adapterGraph queries and entity inspection toolsEngineering teams modeling temporal entity graphs in custom pipelines
Char MCP (api.char.com/v2/mcp)Cloud-synced Char Library (local-first Mac cache + server)Hosted Streamable HTTP + OAuth 2.1 PKCE (char:read, char:write, char:delete, char:charlie)Ordinary Pages, Home, Collections, and History timeline you read and edit in CharPeople coordinating coding agents, meetings, todos, and daily work across apps

The biggest practical gap is who the memory is built for. Developer libraries store embeddings and graph edges inside backend services; a workspace notepad stores Pages that a human already opens every morning.

How does shared memory work in Char?

Char stores your work in Markdown-backed Pages (including your Home page home, daily pages daily-YYYY-MM-DD, project Pages, and entity Collections for people, organizations, projects, and meetings) plus an append-only History timeline inside Charpedia.

When an external agent connects over MCP, it sees the exact same Library that Charlie uses inside the app:

Local Claude Code files stay scoped to one repository or laptop. Char's hosted OAuth MCP endpoint puts Claude Code, Codex, Cursor, Claude, ChatGPT, and Charlie on the same editable Pages and Charpedia memory.

  • 20 default tools plus progressive discovery. Out of the box, the server lists core tools (agenda_get, calendar_list_events, pages_search, pages_read, pages_create, pages_edit, todos_list, todos_add, pages_set_todo_status, todos_suggest, meetings_list, meetings_get, meetings_get_transcript, contacts_search, contacts_get, history_read_day) along with tools_search, tools_read, tools_write, and tools_delete so clients do not burn their context window on dozens of unused schemas. Clients with native tool search can also inspect the full catalog via ?tools=all.

Claude Code's /context view makes upfront tool bloat visible. Keeping Char's default MCP surface at 20 tools plus tools_search protects context budget before a session starts. Terminal capture via @trq212 / @d4m1n on X, cropped to the /context block.

  • Safe writes instead of silent overwrites. Calling pages_edit against a block requires the current sourceRevision, and edits land as suggestions you accept or undo in Char. Proactive follow-ups use todos_suggest, filing grouped proposals at the top of Home rather than mutating your todo list behind your back.
  • Append-only History with provenance. Every line Charlie writes inside a Collections Page keeps source chips back to the meeting, chat, or Page it came from. Corrections add a superseding atom rather than rewriting the past.
  • Explicit privacy tradeoffs. Char is not end-to-end encrypted: your Library syncs to Char's cloud so hosted AI and OAuth-connected agents can work with it. Model providers run with zero data retention and do not train on customer content. Raw Awareness capture stays stored only on your Mac and is sent transiently for zero-retention cloud analysis, then deleted from your Mac once distilled or within 24 hours at most.

How do you connect Char to Claude Code, Codex, Cursor, or ChatGPT?

Because https://api.char.com/v2/mcp is a hosted Streamable HTTP endpoint backed by OAuth 2.1 (https://auth.char.com), there is no local Python or Node server to run in the background. Inside Char desktop, Settings -> Apps configures supported agents in one click, or you can register the server directly:

ClientCommand or configurationSign-in step
Claude Codeclaude mcp add --transport http --scope user char https://api.char.com/v2/mcpRun /mcp, pick char, and approve access in browser
Codexcodex mcp add char --url https://api.char.com/v2/mcpRun codex mcp login char
CursorAdd "char": { "type": "http", "url": "https://api.char.com/v2/mcp" } under mcpServers in ~/.cursor/mcp.jsonSign in from Cursor's MCP settings panel
OpenCodeAdd "char": { "type": "remote", "url": "https://api.char.com/v2/mcp", "enabled": true } under mcp in ~/.config/opencode/opencode.jsonRun opencode mcp auth char
Claude / ChatGPTSettings -> Connectors -> Add custom connector (ChatGPT developer mode) with https://api.char.com/v2/mcpComplete OAuth sign-in when prompted

If your agent supports skills, point it to our MCP setup guide or install the public char skill from SKILL.md so the model calls agenda_get, pages_search, and history_read_day accurately instead of guessing Page IDs. Read our handbook guide on connecting agents for full scope rules.

When should you pick another tool?

Shared cloud MCP memory is the wrong fit in three common cases:

  1. You only need repo coding rules. Keep compiler flags, lint quirks, and directory maps in CLAUDE.md. They belong with the code in version control.
  2. You require zero-cloud, disk-only storage. If nothing beyond your codebase may touch a hosted service, run a strictly local stdio MCP server such as Basic Memory with local Markdown files on your laptop.
  3. You are building a multi-tenant agent backend for your own customers. Purpose-built agent memory infrastructure like Mem0 or Zep/Graphiti fits SDK integration far better than a personal productivity workspace.

If your daily bottleneck is the handoff between meetings, written decisions, and coding sessions across tools, shared Pages close that gap. See how we designed one continuous Page that remembers and why we rebuilt around what happens after the meeting ends.

Join the private beta →

Frequently asked questions

Does Claude Code share its built-in memory across Cursor, Codex, or ChatGPT?
No. Repository CLAUDE.md files follow Git commits, and Claude Code's automatic MEMORY.md files live locally on one machine with a compact index limit. Other agents outside Claude Code do not automatically share or update that personal memory store.
What is the difference between CLAUDE.md and a shared MCP memory server?
CLAUDE.md holds static, repository-scoped build and coding rules committed in Git. A hosted MCP memory server stores living context across meetings, decisions, todos, and cross-tool sessions so multiple agents can query and propose updates with OAuth permissions.
How does Char connect to Claude Code, Codex, Cursor, and ChatGPT?
Char exposes a hosted Streamable HTTP MCP server at https://api.char.com/v2/mcp with OAuth 2.1 PKCE sign-in and four scopes: char:read, char:write, char:delete, and char:charlie. Clients add the single URL and sign in through a browser without running a local daemon.
Can an external coding agent overwrite my Char Pages silently?
No. Page edits through pages_edit land as suggestions that you accept or undo inside Char, and proactive follow-ups via todos_suggest appear at the top of Home for explicit approval.
Should I pick Basic Memory, Mem0, Zep/Graphiti, or Char?
Pick CLAUDE.md for repo conventions, Basic Memory for offline local Markdown files under a single user folder, Mem0 or Zep/Graphiti for backend agent pipelines that need programmatic APIs, and Char if you want human-readable Pages, meeting transcripts, todos, and Charpedia History shared across your AI apps.