mem0-mcp
by pinkpixel-dev
The mem0-mcp is a Model Context Protocol (MCP) server that integrates with Mem0.ai to provide persistent memory capabilities for LLMs. It allows AI agents to store and retrieve information across sessions.
Last updated: N/A
What is mem0-mcp?
The mem0-mcp server is a Model Context Protocol (MCP) server designed to provide persistent memory capabilities for Large Language Models (LLMs). It acts as an intermediary, allowing AI agents to store and retrieve information across different sessions, effectively giving them a long-term memory.
How to use mem0-mcp?
The server can be installed and configured using either npx
or by cloning the repository. You then configure your MCP client (e.g., Claude Desktop, Cursor) to communicate with the server. The server provides tools like add_memory
, search_memory
, and delete_memory
that can be called by the client to manage memories. It supports both cloud storage (using Mem0 API) and local storage (using OpenAI API).
Key features of mem0-mcp
Persistent memory for LLMs
Integration with Mem0.ai
Supports cloud and local storage
Provides tools for adding, searching, and deleting memories
Configurable via environment variables
Supports advanced Mem0 API parameters for fine-grained memory management
Use cases of mem0-mcp
Enabling AI agents to remember past conversations
Providing context for LLMs to improve response accuracy
Storing user preferences for personalized experiences
Creating AI assistants that can learn and adapt over time
FAQ from mem0-mcp
What is the difference between cloud and local storage?
What is the difference between cloud and local storage?
Cloud storage uses Mem0's servers for persistent storage and requires a Mem0 API key. Local storage uses an in-memory vector database and requires an OpenAI API key. Local storage is not persistent by default.
How do I configure the server?
How do I configure the server?
The server is configured using environment variables such as MEM0_API_KEY
or OPENAI_API_KEY
. You can also set a DEFAULT_USER_ID
for convenience.
What are the required prerequisites?
What are the required prerequisites?
For cloud storage, you need a Mem0 API key. For local storage, you need an OpenAI API key.
How do I add a memory?
How do I add a memory?
Use the add_memory
tool, providing the content
, userId
, and optionally sessionId
, agentId
, and metadata
.
How do I search for a memory?
How do I search for a memory?
Use the search_memory
tool, providing the query
, userId
, and optionally sessionId
, agentId
, filters
, and threshold
.