
How to add Mem0 MCP Server to Claude Desktop
Archived official Mem0 server for long-term agent memory: add, search, update, and delete memories via the Mem0 API. Paste the config into ~/Library/Application Support/Claude/claude_desktop_config.json and restart Claude Desktop.
Last updated June 14, 2026 ยท 655โ ยท stdio ยท apikey ยท official
Claude Desktop config for Mem0 MCP Server
pip install mem0-mcp-server{
"mcpServers": {
"mem0-mcp-server": {
"command": "uvx",
"args": [
"mem0-mcp-server"
],
"env": {
"MEM0_API_KEY": "<your-mem0-api-key>",
"MEM0_DEFAULT_USER_ID": "<your-user-id>"
}
}
}
}Requires `uv` (the Python package runner). Install it from https://docs.astral.sh/uv/ if `uvx` is not found.
Setup steps
- 1Open Claude Desktop โ Settings โ Developer โ Edit Config (this opens ~/Library/Application Support/Claude/claude_desktop_config.json).
- 2Paste the Mem0 MCP Server config below under the top-level "mcpServers" key.
- 3Fill in any placeholder secrets (API keys, paths) in the snippet.
- 4Save the file, then fully quit and reopen Claude Desktop.
- 5Open a chat and confirm Mem0 MCP Server's tools appear under the ๐ tools menu.
Before you start
- A Mem0 platform account and API key (m0-...) from app.mem0.ai
- uv/uvx (recommended) or pip with Python to run mem0-mcp-server
- Optional: MEM0_DEFAULT_USER_ID env var to scope memories to a user handle (defaults to 'mem0-mcp')
What Mem0 MCP Server can do in Claude Desktop
add_memorySave text or conversation history (or explicit message objects) for a user/agent.
search_memoriesSemantic search across existing memories with filters and limit.
get_memoriesList memories with structured filters and pagination.
get_memoryRetrieve one memory by its memory_id.
update_memoryOverwrite a memory's text once the user confirms the memory_id.
delete_memoryDelete a single memory by memory_id.
delete_all_memoriesBulk delete all memories in the confirmed scope (user/agent/app/run).
delete_entitiesDelete a user/agent/app/run entity and its memories.
Security
This repo is archived (read-only since March 2026): no maintenance, no security patches โ Mem0 now points users at its hosted MCP endpoint instead. The server sends memory content to the Mem0 cloud API under your MEM0_API_KEY, and delete_all_memories / delete_entities are destructive bulk operations, so scope the key carefully.
Mem0 MCP Server + Claude Desktop FAQ
Where is the Claude Desktop config file?
Claude Desktop reads MCP servers from ~/Library/Application Support/Claude/claude_desktop_config.json. Paste the Mem0 MCP Server config there under the "mcpServers" key and restart the client.
Is Mem0 MCP Server safe to use with Claude Desktop?
This repo is archived (read-only since March 2026): no maintenance, no security patches โ Mem0 now points users at its hosted MCP endpoint instead. The server sends memory content to the Mem0 cloud API under your MEM0_API_KEY, and delete_all_memories / delete_entities are destructive bulk operations, so scope the key carefully.
Is mem0-mcp still safe to use?
It still works, but the repo has been a public archive since March 2026: no bug fixes, no security patches, no releases. For anything new, Mem0 recommends its hosted MCP server at https://mcp.mem0.ai/mcp; for local-first memory, OpenMemory in the mem0 monorepo is the sibling project.
What replaced mem0-mcp โ and where does OpenMemory fit?
Two paths. The direct successor is Mem0's cloud-hosted MCP endpoint (https://mcp.mem0.ai/mcp), which needs no local process. OpenMemory is the local alternative from the same company: it runs the whole memory stack on your machine (Docker + dashboard), whereas mem0-mcp was a local shim that stored everything in the Mem0 cloud.
Where do my memories actually live?
In Mem0's cloud platform, not on your machine. The server is a stdio bridge that calls the Mem0 API with your MEM0_API_KEY, and responses are raw JSON from that API โ so data residency and retention follow your Mem0 account, and revoking the key cuts off access.