What is MCP-Mem0?
MCP-Mem0 is a reference implementation of an MCP (Model Context Protocol) server integrated with the Mem0 memory platform, providing AI agents with persistent, searchable long-term memory. It is designed for developers building MCP-compatible agents that need to store, retrieve, and semantically search information across sessions.
How to use MCP-Mem0?
Clone the repository, install dependencies with uv or build the Docker image, configure environment variables (transport, LLM provider, database URL), and run the server via uv run src/main.py or docker run. Connect any MCP client by pointing it to the SSE endpoint or by configuring stdio transport in the client's MCP settings.
Key features of MCP-Mem0
- Semantic indexing of stored information for relevance-based retrieval
- Three memory management tools: save, list all, and search memories
- Supports SSE and stdio transport protocols
- Compatible with multiple LLM providers (OpenAI, OpenRouter, Ollama)
- Docker-based deployment for containerized environments
Use cases of MCP-Mem0
- AI assistants that need to remember user preferences and conversation history across sessions
- Agents performing multi-step research that require persistent context
- Knowledge management tools that organize and retrieve information via natural language queries
Comments