Mem0 MCP
Product · Developer tool by Mem0
Persistent AI memory for your coding agents via Model Context Protocol.
It allows agents to autonomously manage long-term context across sessions and devices.
- Languages
- English
Category: AI Infrastructure
- Integrations
- Model Context Protocol (MCP) compatible clients
- Deployment
- Hosted by Mem0 via HTTPS
- Node.js Version
- 18+ required for npx setup
- Protocol
- Model Context Protocol (MCP) over HTTPS
- Server URL
- https://mcp.mem0.ai/mcp
- Authentication Methods
- Browser Sign-in, API Key (Bearer Token)
- Connects AI clients to Mem0 in minutes via MCP
- Persistent context across sessions and devices
- Hosted server at mcp.mem0.ai via HTTPS
Overview
Mem0 MCP is a Model Context Protocol implementation that connects AI clients to the Mem0 memory layer. It provides a set of memory tools that allow AI agents to autonomously save, search, and update information during a session. The server is hosted by Mem0, ensuring that memories are stored in the user's cloud account rather than locally for cross-device persistence. This product enables developers to give their coding assistants persistent context without manual configuration of local databases. The integration supports both browser-based sign-in and API key authentication for headless environments.
Core Functionality
- Agent Autonomy: The Mem0 MCP server provides a set of memory tools that allow AI agents to autonomously decide when to save, search, or update information.
- Cloud-Based Persistence: Memories are stored in the user's Mem0 account rather than on the local machine, ensuring persistence across different devices and sessions.
- Hosted Infrastructure: The server is hosted by Mem0 at mcp.mem0.ai and connects over HTTPS, requiring no local infrastructure setup.
- Quick Setup: Developers can point their clients at the hosted server using a single npx command to automate configuration.
Available Memory Tools
- add_memory: The add_memory tool saves text or conversation history for a specific user or agent entity.
- search_memories: The search_memories tool performs semantic search across existing memories with optional filters.
- update_memory: The update_memory tool allows agents to overwrite a memory's text and metadata after confirming the ID.
- Memory Deletion: The delete_memory and delete_all_memories tools enable targeted or bulk removal of stored information.
- Entity Management: The list_entities tool allows agents to enumerate stored users, agents, apps, and runs.
Access and Integration
- Browser Sign-in: The server supports browser-based authorization where the client opens a window to sign in to the Mem0 account.
- API Key Authentication: For headless environments or clients without browser support, the server accepts an API key as a bearer token.
- Real-time Webhooks: The server provides real-time notifications for memory events and updates through webhooks.
Use cases
- Developers add persistent memory to Cursor to maintain coding context across different projects and sessions.
- Engineering teams use Claude Code with Mem0 MCP to store and retrieve architectural decisions autonomously.
- AI agents in headless CI environments use API key authentication to access historical run data.
- Coding assistants use semantic search to find relevant snippets from past conversations with the user.
Specifications
- Editors and tools
- Claude Desktop, Claude Code, Codex, Cursor, Windsurf, VS Code, OpenCode
- Integrations
- Model Context Protocol (MCP) compatible clients
- Deployment
- Hosted by Mem0 via HTTPS
- Supported Clients
- Claude, Claude Code, Codex, Cursor, Windsurf, VS Code, OpenCode
- Node.js Version
- 18+ required for npx setup
- Protocol
- Model Context Protocol (MCP) over HTTPS
- Server URL
- https://mcp.mem0.ai/mcp
- Authentication Methods
- Browser Sign-in, API Key (Bearer Token)
- Storage Type
- Cloud-based (Mem0 Platform)
How it works
- Check Prerequisites: Ensure you have a Mem0 Platform account, an API key, and Node.js 18+ installed.
- Run Quick Setup: Use the npx mcp-add command to write the Mem0 server into your client's MCP configuration file automatically.
- Authenticate Client: The first time your agent uses a tool, authorize access via a browser window or set your API key as a bearer token.
- Restart and Use: Restart your AI client to pick up the new server and start using memory tools like add_memory and search_memories.
FAQ
How do I authenticate the MCP server?
Most clients handle authentication by opening a browser window the first time an agent uses a Mem0 tool. For headless environments, you can use your API key as a bearer token.
Does it work with Claude Desktop?
Yes, Claude Desktop is supported but requires manual setup through its Settings UI because it does not support the automated mcp-add command.
Added by AntSpace from public sources (docs.mem0.ai).