How to Give Claude Desktop a Persistent Memory

Claude forgets everything between sessions. MemoryCode fixes that — set up once, and Claude automatically knows who you are every time you start a conversation.

Why Claude Forgets You Every Session

Claude Desktop, like all current AI models, has no persistent memory across conversations. Every time you open a new chat, you start from scratch — Claude doesn't know your name, your background, your current project, or how you prefer to work.

For most users, this means repeating the same context at the start of every session: who you are, what you're working on, what kind of response you need. It's friction that adds up — and it's completely avoidable.

Two Things Claude Needs to Truly Know You

A persistent AI experience requires two layers of context — and most system prompt templates only give you one.

Layer 1 — Your Identity

Who you are: name, role, background, goals, life experiences, areas of expertise. This stays constant across all your conversations.

Layer 2 — Your Cognitive Chip

How you want Claude to think right now: reasoning style, output format, communication tone, behavioral rules. This switches based on your task — Structured Output for reports, Rigorous Analysis for research, Creative Divergence for brainstorming.

MemoryCode manages both layers and connects them to Claude automatically.

Method 1 — QuickCopy (Zero Setup, 30 Seconds)

If you use Claude.ai in the browser, QuickCopy is the fastest way to get started. No installation required.

  1. Open MemoryCode and fill in your Identity (name, role, background).
  2. Select or create a Cognitive Chip that matches your current task.
  3. Click Copy in the output panel.
  4. In Claude, go to Settings → Project Instructions and paste.

Claude will now read your identity and chip preferences at the start of every conversation in that Project. Update your chip in MemoryCode and re-paste whenever your task context changes.

Method 2 — MCP Server (Automatic, Permanent)

For Claude Desktop, the MCP integration is the more powerful option. Once configured, Claude automatically reads your current identity and active cognitive chip at the start of every conversation — no copy-paste, no manual updates.

Requirements

  • Claude Desktop installed (download at claude.ai)
  • Node.js 18+ installed (includes npx)
  • MemoryCode open in your browser

Step 1 — Export your MCP config

In MemoryCode, open the MCP Connect tab and click Export config. Save the file as memorycode-mcp.json somewhere stable, for example ~/memorycode/memorycode-mcp.json.

Step 2 — Add MemoryCode to Claude Desktop's MCP config

Open Claude Desktop's config file at:

~/Library/Application Support/Claude/claude_desktop_config.json

Add the following inside mcpServers:

"memorycode": {
  "command": "npx",
  "args": [
    "-y",
    "@memorycode/mcp-server",
    "--file",
    "~/memorycode/memorycode-mcp.json"
  ]
}

Replace ~/memorycode/memorycode-mcp.json with the actual path where you saved the file in Step 1.

Step 3 — Restart Claude Desktop

Fully quit and reopen Claude Desktop. MemoryCode will appear in the MCP tools panel. Claude can now call get_user_profile and get_expertise to read your identity and active chip automatically.

What Claude Sees After Setup

Once connected, Claude receives a structured context block at the start of each session. Here's an example of what it looks like:

## MEMORYCODE CONTEXT
[IDENTITY]
Role: Product Designer
Background: Blake, 8yr experience

[CHIP: Structured Output]
Rule_1: Lead with conclusion
Rule_2: No filler words
## END MEMORYCODE

Your identity stays constant. Switch your cognitive chip in MemoryCode and it updates automatically in the next conversation — no reconfiguration needed.

Frequently Asked Questions

Does MemoryCode upload my data to any server?

No. Your identity, memory, and cognitive chip configurations are stored only in your browser's local storage. MemoryCode never transmits this data to our servers or uses it for model training.

Do I need technical skills to set this up?

The MCP integration requires editing a JSON config file and having Node.js installed — about a 5-minute setup if you're comfortable with files and folders. QuickCopy requires zero technical setup.

What is a Cognitive Chip?

A Cognitive Chip is a reusable AI behavior preset that defines how Claude thinks and responds — its reasoning style, output format, and communication tone. You can switch chips instantly without changing your identity. MemoryCode includes 8 built-in chips covering structured output, analysis, strategy, execution, creativity, teaching, review, and communication.

Is MemoryCode free?

Yes. Core features — identity setup, cognitive chips, QuickCopy, and MCP integration — are free to start with no account required.

Need the complete configuration reference?

The full MCP setup guide covers all supported clients with paths and JSON snippets. Short web guides: Cursor, Windsurf, LM Studio, OpenClaw.

View the full MCP setup guide →
How to Give Claude Desktop a Persistent Memory — MemoryCode MCP Guide