docs/platform/mem0-mcp.mdx
Mem0 MCP Server exposes Mem0's memory capabilities as MCP tools, letting AI agents decide when to save, search, or update information. The cloud-hosted MCP server requires no local installation — just connect and start using memory.
Add Mem0 MCP to your preferred clients with a single command:
npx mcp-add \
--name mem0-mcp \
--type http \
--url "https://mcp.mem0.ai/mcp" \
--clients "claude,claude code,cursor,windsurf,vscode,opencode"
This automatically configures Mem0 MCP for all supported clients at once.
The MCP server exposes these memory tools to your AI client:
| Tool | Description |
|---|---|
add_memory | Save text or conversation history for a user/agent |
search_memories | Semantic search across existing memories with filters |
get_memories | List memories with structured filters and pagination |
get_memory | Retrieve one memory by its memory_id |
update_memory | Overwrite a memory's text after confirming the ID |
delete_memory | Delete a single memory by memory_id |
delete_all_memories | Bulk delete all memories in scope |
delete_entities | Delete a user/agent/app/run entity and its memories |
list_entities | Enumerate users/agents/apps/runs stored in Mem0 |
You can also configure individual clients:
<AccordionGroup> <Accordion title="Claude Desktop"> ```bash npx mcp-add \ --name mem0-mcp \ --type http \ --url "https://mcp.mem0.ai/mcp" \ --clients "claude" ```Or manually add to your Claude Desktop configuration (`claude_desktop_config.json`):
```json
{
"mcpServers": {
"mem0-mcp": {
"type": "http",
"url": "https://mcp.mem0.ai/mcp"
}
}
}
```
Or go to Cursor → Settings → MCP and add:
```json
{
"mcpServers": {
"mem0-mcp": {
"type": "http",
"url": "https://mcp.mem0.ai/mcp"
}
}
}
```
Once configured, your AI client can:
add_memorysearch_memoriesupdate_memorydelete_memorySample Interactions:
User: Remember that I love tiramisu
Agent: Got it! I've saved that you love tiramisu.
User: What do you know about my food preferences?
Agent: Based on your memories, you love tiramisu.
User: Update my project: the mobile app is now 80% complete
Agent: Updated your project status successfully.