# Memory Tool (verified)

Save, search, and manage long-term memories across users and apps. Quickly recall facts, preferences, and past conversations with semantic search and structured filters. Update or delete specific ent…

## Quick Start

```bash
# Connect this server (installs CLI if needed)
npx -y @smithery/cli@latest mcp add mem0ai/mem0-memory-mcp

# Browse available tools
npx -y @smithery/cli@latest tool list mem0ai/mem0-memory-mcp

# Get full schema for a tool
npx -y @smithery/cli@latest tool get mem0ai/mem0-memory-mcp add_memory

# Call a tool
npx -y @smithery/cli@latest tool call mem0ai/mem0-memory-mcp add_memory '{}'
```

## Direct MCP Connection

Endpoint: `https://mem0-memory-mcp--mem0ai.run.tools`

**Required config:**
- `mem0_api_key` (query) — Mem0 API key (required)

## Tools (9)

- `add_memory` — Store a new preference, fact, or conversation snippet. Requires at least one: user_id, agent_id, or run_id.
- `search_memories` — Run a semantic search over existing memories.
- `get_memories` — Page through memories using filters instead of search.
- `delete_all_memories` — Delete every memory in the given user/agent/app/run but keep the entity.
- `list_entities` — List which users/agents/apps/runs currently hold memories.
- `get_memory` — Fetch a single memory once you know its memory_id.
- `update_memory` — Overwrite an existing memory’s text.
- `delete_memory` — Delete one memory after the user confirms its memory_id.
- `delete_entities` — Remove a user/agent/app/run record entirely (and cascade-delete its memories).

```bash
# Get full input/output schema for a tool
npx -y @smithery/cli@latest tool get mem0ai/mem0-memory-mcp <tool-name>
```

## Prompts (1)

- `memory_assistant` — Get help with memory operations and best practices.

---

Source: https://github.com/mem0ai/mem0-mcp
