Mem0

•
1
•

Establishes a self-hosted Model Context Protocol server for AI memory, utilizing PostgreSQL with pgvector for efficient data storage and retrieval.

Mem0 offers a powerful, self-hosted solution for managing AI memory, integrating seamlessly with the Model Context Protocol. It leverages PostgreSQL and pgvector for robust, scalable memory storage, allowing users to maintain full control over their data. The server supports multiple LLM providers, including Gemini, OpenAI, and Anthropic, with flexible fallback chains for both LLM and embedding models, ensuring reliable AI interactions. Designed for zero manual setup, it simplifies deployment, requiring only a database URL and API keys to get started.

Key Features

01Multi-provider LLM support (Gemini, OpenAI, Anthropic, Groq, DeepSeek, Mistral)
02Self-hosted PostgreSQL for data sovereignty (Neon/Supabase supported)
031 GitHub stars
04Configurable fallback chains for LLM models and API keys
05Zero-manual setup requiring only DATABASE_URL and API_KEYS
06Graph memory for SQL-based relationship tracking alongside vector memory

Use Cases

01Providing persistent, self-managed memory for AI agents and applications
02Storing user preferences and contextual information for personalized AI interactions
03Implementing complex knowledge graphs and relationships for AI memory retrieval