Persistent memory across MCP clients (Claude, Cursor, Gemini CLI, Codex) A developer released OwlMem, an MCP server that gives Claude Code, Cursor, Gemini CLI, and Codex a shared, persistent memory layer so facts and documents recorded in one client can be recalled from any other. The server exposes kb_write/kb_read for Markdown pages tracked as git commits and kb_retain/kb_recall for short-lived facts, with kb_find searching both by meaning and keywords. Installation is handled via `npx -y owlmem install` or per-client config entries, and the Free plan covers two connected AIs. Every AI coding client has some kind of memory, and none of it leaves that client. Claude's memory stays in Claude, Cursor's rules live in files on your machine. Switch clients mid-task and you start from zero — again. The fix is a memory layer outside all of them: one MCP server every client connects to, holding the same knowledge base and facts. This guide connects Claude, Cursor, Gemini CLI, and Codex to OwlMem, so a decision recorded by one is recallable by the rest, in any later session. Every client below connects to one URL: https://mcp.owlmem.com/mcp The fastest way is to let the installer do all four at once — it finds the AI apps on your computer, merges OwlMem into their config files, and backs up anything it changes: npx -y owlmem install Or add each one by hand. The first connection opens an OwlMem page: sign in with your email, name the AI, and click Allow . No keys to copy. Claude Code. The easiest route is the plugin, which also teaches Claude Code when to look things up and when to save what it learned: /plugin marketplace add owlmemhq/owlmem-claude /plugin install owlmem@owlmem Then type /mcp , select owlmem , and choose Authenticate . Or add the server directly: claude mcp add --transport http --scope user owlmem https://mcp.owlmem.com/mcp Cursor. Add the entry to ~/.cursor/mcp.json or .cursor/mcp.json in a project : { "mcpServers": { "owlmem": { "url": "https://mcp.owlmem.com/mcp" } } } Then open Cursor Settings → MCP . OwlMem shows Needs login — click it and approve in the browser. Gemini CLI. Install the OwlMem extension, then authenticate: gemini extensions install https://github.com/owlmemhq/owlmem-gemini /mcp auth owlmem Or add it to ~/.gemini/settings.json by hand: { "mcpServers": { "owlmem": { "httpUrl": "https://mcp.owlmem.com/mcp" } } } Codex. Adding the server starts the sign-in right away: codex mcp add owlmem --url https://mcp.owlmem.com/mcp If the browser step timed out, run codex mcp login owlmem . Or add it to ~/.codex/config.toml by hand: mcp servers.owlmem url = "https://mcp.owlmem.com/mcp" Every connected AI shows up in the console under Agents & tools → Agents . The Free plan covers two AIs forever; add more on a paid plan. OwlMem keeps two kinds of memory, and both are shared: kb write , kb read : longer pages — how a system works, the fix that took an afternoon, a project record. Plain Markdown, and every change is a git commit you can diff and revert. kb retain , kb recall : short facts — a decision, a preference, a version. Facts that change keep only their current value when you pass a key; give them an expiry or a snapshot so they retire on their own. One search covers both: kb find searches documents, files, and memory at once, by meaning and keywords. A client asking about the auth refactor gets answers recorded by any other client, in any earlier session. Memories are stored as written — no model rewrites them, and OwlMem never reads your chats to extract them. Add these lines to CLAUDE.md , your Cursor project rules, and GEMINI.md the installer adds them to ~/.claude/CLAUDE.md , ~/.codex/AGENTS.md , and ~/.gemini/GEMINI.md for you : Team memory OwlMem - Before reading code or files, search OwlMem with kb find documents, files and memory at once ; use kb search only for an exact string such as a commit id, a path or an error message. - When you learn something reusable — a fix, a gotcha, a decision — save it with kb write under lessons/ or projects/