mem0 Memory System

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MEM0_HOSTNoHost address for the MCP server0.0.0.0
MEM0_PORTNoPort for the MCP server8000
MEM0_DATA_DIRNoDirectory to store memory data~/mem0_memories
MEM0_PROVIDERNoThe LLM provider to use (openai, anthropic, google, deepseek, openrouter, or ollama)openai
OPENAI_API_KEYNoYour OpenAI API key when using the OpenAI provider
MEM0_EMBEDDING_PROVIDERNoThe embedding provider to use (openai, huggingface, or ollama)openai

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools