Skip to main content

Claude Desktop + MCP Integration

Give Claude Desktop persistent memory across conversations. Once configured, Claude can remember facts, preferences, and context from previous chats — no copy-pasting required.

What You'll Build

By the end of this guide, Claude Desktop will be able to:

  • Store information you tell it ("remember that my preferred language is Python")
  • Recall that information in future conversations ("what's my preferred language?")
  • Search semantically across everything it has remembered

Under the hood, Claude uses MemoryRelay's MCP tools — memory_store and memory_search — to persist and retrieve memories via the MemoryRelay API.

Prerequisites

Step 1: Get Your API Key

  1. Sign up or log in at https://app.memoryrelay.ai.
  2. Navigate to Settings → API Keys.
  3. Click Create Key and copy the key (it starts with mem_).
Keep your key safe

Your API key is shown only once. Store it in a password manager or secure location. If you lose it, you can always generate a new one from the dashboard.

Step 2: Install the MCP Server

Install the MemoryRelay MCP server globally:

npm install -g @memoryrelay/mcp-server

Verify the installation:

npx @memoryrelay/mcp-server --version

Step 3: Configure Claude Desktop

Open your Claude Desktop configuration file:

OSPath
macOS~/Library/Application Support/Claude/claude_desktop_config.json
Windows%APPDATA%\Claude\claude_desktop_config.json
Linux~/.config/Claude/claude_desktop_config.json

Add the MemoryRelay MCP server to the mcpServers section:

{
"mcpServers": {
"memoryrelay": {
"command": "npx",
"args": ["@memoryrelay/mcp-server"],
"env": {
"MEMORYRELAY_API_KEY": "mem_your_key_here"
}
}
}
}

Replace mem_your_key_here with the API key you copied in Step 1.

Existing configuration?

If you already have other MCP servers configured, add "memoryrelay": { ... } alongside them inside the existing mcpServers object. Do not overwrite your other servers.

Step 4: Restart Claude Desktop

Quit Claude Desktop completely and reopen it. The MCP server connects during startup, so a full restart is required.

After restarting, you should see the MemoryRelay tools available in Claude's tool list (look for the hammer icon in the chat input area). The following tools will be available:

ToolDescription
memory_storeSave a new memory
memory_searchSearch memories by semantic similarity
memory_listList recent memories
memory_getRetrieve a specific memory by ID
memory_updateUpdate an existing memory
memory_deleteDelete a memory
entity_createCreate a knowledge graph entity
entity_linkLink a memory to an entity
memory_healthCheck MemoryRelay API connectivity

Step 5: Test It Out

Store a memory

In a new conversation, type:

Remember that my preferred programming language is Python and I use VS Code as my editor.

Claude will call the memory_store tool behind the scenes:

Tool: memory_store
Arguments: {
"content": "User's preferred programming language is Python. Uses VS Code as their editor.",
"metadata": {
"type": "preference",
"category": "development"
}
}

Claude will confirm that it stored the memory.

Recall in a new conversation

Open a new conversation (this is the key part — memory persists across sessions) and ask:

What's my preferred programming language?

Claude will call memory_search:

Tool: memory_search
Arguments: {
"query": "preferred programming language"
}

The search returns the memory you stored earlier, and Claude responds with: Python — pulled from MemoryRelay, not from the current conversation.

How It Works

┌─────────────────┐     MCP Protocol     ┌─────────────────────┐     HTTPS     ┌──────────────────┐
│ Claude Desktop │ ◄──────────────────► │ @memoryrelay/ │ ◄───────────► │ MemoryRelay API │
│ (Chat UI) │ stdio transport │ mcp-server │ REST API │ (Cloud) │
└─────────────────┘ └─────────────────────┘ └──────────────────┘
  1. You say something Claude should remember.
  2. Claude decides to call memory_store via the MCP protocol.
  3. The MCP server sends the memory to the MemoryRelay API, which generates an embedding and stores it.
  4. In a later conversation, Claude calls memory_search with a natural language query.
  5. MemoryRelay performs semantic (vector) search and returns the most relevant memories.
  6. Claude incorporates those memories into its response.

Tips for Effective Use

Be explicit about what to remember

Claude is more reliable at storing memories when you say "remember that..." or "save this for later." You can also ask Claude to "remember everything important from this conversation" at the end of a session.

Organize with entities

Ask Claude to create entities for people, projects, or concepts: "Create an entity for Project Atlas and link my notes to it." This builds a knowledge graph you can query later.

Check what Claude remembers

You can ask "What do you remember about me?" or "Search your memory for anything about Project Atlas" to see what has been stored.

Troubleshooting

IssueSolution
Tools not appearing in ClaudeRestart Claude Desktop. Check that claude_desktop_config.json is valid JSON.
"Authentication failed" errorsVerify your API key starts with mem_ and is correctly set in the config.
MCP server not startingRun npx @memoryrelay/mcp-server manually in a terminal to see error output.
Memories not being recalledAsk Claude to "search memory for [topic]" to trigger an explicit search.

Next Steps