# Mem0 (MCP Server)

> Hosted long-term memory for AI agents and clients

- Type: MCP server
- Publisher: Mem0 (official)
- Categories: AI & ML, Productivity
- Website: https://github.com/mem0ai/mem0/blob/main/docs/platform/mem0-mcp.mdx
- Docs: https://docs.mem0.ai/platform/mem0-mcp
- Source: https://github.com/mem0ai/mem0
- Transport: streamable-http
- Server URL: https://mcp.mem0.ai/mcp
- Sign-in: oauth
- Environment variables: MEM0_API_KEY
- GitHub stars: 66421
- Listed: 2025-02-18

## About

Mem0's hosted MCP server gives AI clients tools to add, search, update and delete memories stored in a Mem0 account. Clients connect over HTTPS and sign in via OAuth, or use a Mem0 API key as a bearer token. The earlier local mem0-mcp repo is archived.

## Install

1. **Connect it in ChatGPT** Turn on Developer mode in ChatGPT (Settings → Security and login), open Plugins, select + and paste https://mcp.mem0.ai/mcp as the MCP server URL, then sign in with OAuth. Add it to a chat from the composer's tools menu.

2. **Or add it to Codex or the API**

   Codex CLI:

   ```bash
   codex mcp add mem0 --url https://mcp.mem0.ai/mcp
   codex mcp login mem0
   ```

   config.toml:

   ```toml
   [mcp_servers.mem0]
   url = "https://mcp.mem0.ai/mcp"
   ```

   Responses API:

   ```python
   import os
   from openai import OpenAI
   
   client = OpenAI()
   
   response = client.responses.create(
       model="gpt-6-astra",
       tools=[{
           "type": "mcp",
           "server_label": "mem0",
           "server_url": "https://mcp.mem0.ai/mcp",
           "authorization": os.environ["MEM0_API_KEY"],
           "require_approval": "never",
       }],
       input="Remember that I'm vegetarian and allergic to nuts",
   )
   print(response.output_text)
   ```

## Tools

- `add_memory`
- `search_memories`
- `get_memories`
- `get_memory`
- `update_memory`
- `delete_memory`
- `delete_all_memories`
- `list_entities`
- `delete_entities`
- `list_events`
- `get_event_status`

## Example prompts

- "Remember that I'm vegetarian and allergic to nuts"
- "What do you remember about my travel preferences?"
- "Update my memory: I moved to Berlin"
- "Delete all memories about project X"

## Related

- [Notion](https://chatgptplugins.directory/mcp/notion.md): Search, read, and write Notion pages, databases, and comments via hosted MCP
- [Excalidraw](https://chatgptplugins.directory/mcp/excalidraw.md): Draw hand-drawn Excalidraw diagrams live inside ChatGPT, Claude and VS Code
- [Atlassian Rovo (Jira & Confluence)](https://chatgptplugins.directory/mcp/atlassian-rovo.md): Work with Jira issues and Confluence pages through Atlassian's hosted MCP
- [Browser Use](https://chatgptplugins.directory/mcp/browser-use.md): Run Browser Use cloud browser agents or control a local browser over MCP
- [Filesystem](https://chatgptplugins.directory/mcp/filesystem.md): Secure local file operations with configurable directory access
- [Memory](https://chatgptplugins.directory/mcp/memory.md): Knowledge graph-based persistent memory across conversations

---
Source: https://chatgptplugins.directory/mcp/mem0 · Index: https://chatgptplugins.directory/llms.txt · Independent and community-run. Not affiliated with or endorsed by OpenAI. ChatGPT is a trademark of OpenAI.
