Mem0 MCP is an MCP server that integrates with Mem0.ai to provide persistent memory capabilities for LLMs and AI agents across sessions. It connects LLM interfaces to Mem0 Cloud, a self-hosted Supabase database, or a local in-memory store. Developers building interactive coding assistants, customer support agents, and personal productivity tools use this server to retain context, preferences, and factual notes over time. The server provides a full suite of memory management tools, allowing agents to store memories from plain text or conversational message arrays, update contents, manage deletions, and query information using semantic and BM25 hybrid search. When using Mem0 Cloud, it further supports features such as memory version history tracking, asynchronous export query jobs, background event status inspection, and user rating evaluations. By decoupling short-term conversational context from long-term memory, the server ensures assistants recall relevant user specifics while avoiding context window overflow.
Category: AI Memory & Context
Tags: context, mem0, persistent-memory, rag, supabase
bash npm install -g @pinkpixel/mem0-mcp Alternatively, install via Smithery for Claude Desktop: bash npx -y @smithery/cli install @pinkpixel-dev/mem0-mcp-server --client claude 2. Open your MCP client configuration file (such as Claude Desktop or Cursor configuration) and add the server definition under mcpServers using your preferred storage backend. For Mem0 Cloud mode: json { "mcpServers": { "mem0-mcp": { "command": "npx", "args": ["-y", "@pinkpixel/mem0-mcp"], "env": { "MEM0_API_KEY": "YOUR_MEM0_API_KEY_HERE", "DEFAULT_USER_ID": "user123" } } } } For Supabase mode, supply SUPABASE_URL, SUPABASE_KEY, and OPENAI_API_KEY in the env object instead. 3. Save the configuration and restart your client to enable the memory tools.Part of MCP Servers
You can install Mem0 MCP globally using npm install -g @pinkpixel/mem0-mcp, run it directly via npx @pinkpixel/mem0-mcp, or install it automatically for Claude Desktop using the Smithery CLI command. You then configure the executable and required environment variables in your client configuration file.
Mem0 MCP supports three storage backends: Mem0 Cloud mode using an official Mem0 API key, Supabase mode for self-hosting with Supabase credentials and an OpenAI API key, and a local development mode running an in-memory vector database with an OpenAI API key.
The server provides tools such as add_memory, search_memories, list_memories, get_memory, update_memory, and delete_memory. When running in Mem0 Cloud mode, it adds tools for revision history, batch updates, ratings, background event monitoring, and memory exports.
Mem0 MCP works with any Model Context Protocol compliant host client that supports stdio process execution, including Claude Desktop, Cursor, Cline, and Roo Code.
Yes, Mem0 MCP is open source software released under the MIT license, with the source code publicly hosted on GitHub.