# Mem0 Memory MCP Server

> Give AI assistants memory across sessions.

- **URL**: https://followmcp.com/en/servers/mem0-mcp
- **Category**: Database
- **Origin**: Community
- **Stars**: 97
- **FMRS Score**: 52/100 (Grade D)
- **Source**: https://github.com/pinkpixel-dev/mem0-mcp
- **Transports**: stdio (local process)
- **Runtimes**: Node.js 18+
- **Auth**: API key / credential required

## Overview
Mem0 Memory MCP Server connects Mem0.ai through MCP so AI agents can store and retrieve information across sessions. It supports Mem0 cloud, Supabase, and local storage, with different capabilities across backends.

## Best for
- AI applications that need persistent memory and can configure Mem0 Cloud or Supabase.
- Development or testing that uses local in-memory storage.

## Not for
- Workflows that require local mode to persist data by default.
- Workflows that need cloud audit, event, or batch features on every backend.

## Required permissions
- Requires credentials for the selected backend: a Mem0 API key, or a Supabase URL and key; Supabase and local modes also require an OpenAI API key.
- Callers can use tools to read, write, or delete memories; the batch delete tool requires confirm to be true.

## Risks
- Local storage is in memory by default, so data is lost when the server restarts or the process terminates.
- Cloud-only tools are unavailable in Supabase and local modes.
- Memory content may include sensitive information; the source does not describe encryption, retention, or access-control details.

## Client config (JSON)
```json
{
  "mcpServers": {
    "mem0-mcp": {
      "command": "npx",
      "args": ["-y", "@pinkpixel/mem0-mcp"],
      "env": {
        "MEM0_API_KEY": "YOUR_MEM0_API_KEY_HERE",
        "DEFAULT_USER_ID": "user123",
        "DEFAULT_AGENT_ID": "your-agent-id",
        "DEFAULT_APP_ID": "your-app-id"
      }
    }
  }
}
```

## Tools (16)
- `add_memory`: Stores text or structured messages as a memory.
- `search_memories`: Searches memories with semantic and BM25 hybrid filters.
- `search_memory`: Backward-compatible alias for memory search.
- `list_memories`: Lists memories by identifiers and filters with pagination.
- `get_memory`: Retrieves one memory by ID.
- `update_memory`: Changes the text or metadata of an existing memory.
- `delete_memory`: Deletes a memory by ID.
- `get_memory_history`: Retrieves the memory revision audit trail (cloud only).
- `get_memory_capabilities`: Shows feature support for the active storage backend.
- `batch_update_memories`: Bulk updates the text of multiple memories (cloud only).
- `batch_delete_memories`: Bulk deletes multiple memories.
- `rate_memory`: Submits quality feedback for a memory (cloud only).
- `get_memory_event`: Retrieves details for a background processing event (cloud only).
- `list_memory_events`: Lists background memory processing events with pagination (cloud only).
- `create_memory_export`: Starts an asynchronous memory export job (cloud only).
- `get_memory_export`: Retrieves export job status and download metadata (cloud only).
