Claude Code memory: share memory across tools with MCP
Updated November 2026
Claude Code has CLAUDE.md files and auto memory, both local to one machine. Add simplemem with one command to share memory between Claude Code, Cursor, Claude Desktop, and your agents.
How memory works in Claude Code today
Claude Code has two kinds of memory. CLAUDE.md files hold instructions you write, for one project or for all of them (~/.claude/CLAUDE.md). Auto memory is on by default: Claude writes notes to ~/.claude/projects/<project>/memory/MEMORY.md as it works, and loads the first 200 lines at the start of each session.
Both are files on one machine. Auto memory is kept per repository, and Anthropic's docs say it is not shared across machines or cloud environments. Nothing in it reaches Cursor or Claude Desktop. simplemem fills that gap: keep project instructions in CLAUDE.md, and use simplemem for facts about you and your setup that every tool and every machine should know.
Connect simplemem to Claude Code
- Sign in to simplemem with Google and generate an access key in the dashboard.
- Run the command below.
--scope usermakes simplemem available in every project; leave it out to add it to the current project only. - Run
claude mcp listand check that simplemem shows as connected. Inside a session,/mcpshows the same. - Optional: add a line to
~/.claude/CLAUDE.mdsuch as "Use the simplemem tools to look up and save durable facts about me and my setup." - Ask Claude Code to remember something, then open the dashboard to see it.
Configuration
claude mcp add --transport http --scope user simplemem https://simplemem.com/api/mcp --header "Authorization: Bearer YOUR_ACCESS_KEY"
{
"mcpServers": {
"simplemem": {
"type": "http",
"url": "https://simplemem.com/api/mcp",
"headers": {
"Authorization": "Bearer ${SIMPLEMEM_KEY}"
}
}
}
}Replace YOUR_ACCESS_KEY with the key from your simplemem dashboard. Treat it like a password.
Notes
- Scopes:
local(default, this project, just you),project(.mcp.json, shared through git),user(all your projects). - Each person should use their own key. If you use
.mcp.json, reference an environment variable instead of committing a key. - Remove it with
claude mcp remove simplemem.
What your assistant will save
Nothing is saved automatically. Claude Code writes a memory only when it calls add_memory, usually because you asked it to remember something. Each memory is one short line, and the dashboard shows which tool saved it:
- Uses fish shell and Homebrew on an M3 MacBook Pro.via Claude Code
- Prefers small commits with imperative commit messages.via Claude Code
- Deploys side projects to Fly.io.via Claude Code
- Wants tests run before every commit.via Claude Code
You can read, search, edit, delete, and export every memory from the dashboard.
Endpoint
Use https://simplemem.com/api/mcp (Streamable HTTP) with Authorization: Bearer YOUR_ACCESS_KEY. The server has four tools: get_memories, add_memory, update_memory, and delete_memory. See the API reference.
FAQ
Doesn't Claude Code already have memory?
Yes: CLAUDE.md files and auto memory. Both are local files for Claude Code on one machine. simplemem is shared across machines and with your other AI tools.
What should go in CLAUDE.md and what in simplemem?
Put project rules (build commands, code style for this repo) in CLAUDE.md. Put facts about you and your tools (preferred languages, your machines, how you like answers) in simplemem.
Which transport does Claude Code use?
--transport http, which is Streamable HTTP. That is what simplemem serves.
Can Claude Code and Cursor share memory?
Yes. See Share memory between Claude and Cursor.
Try simplemem
Sign in with Google, generate an access key, and connect your first AI tool. Free for 100 memories. Pro is $5/month or $48/year.