Skip to main content
Glama
bozkurt6838

mem0-mcp-selfhosted

by bozkurt6838

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MEM0_HOSTNoHost for SSE/HTTP transports0.0.0.0
MEM0_PORTNoPort for SSE/HTTP transports8081
MEM0_LLM_URLNoOllama base URL for the main LLM. Cascades: MEM0_LLM_URL → MEM0_OLLAMA_URL → http://localhost:11434. Only used when MEM0_LLM_PROVIDER=ollama
MEM0_USER_IDNoDefault user ID for memory scopinguser
MEM0_PROVIDERNoTop-level provider (anthropic or ollama). Cascades to MEM0_LLM_PROVIDER and MEM0_GRAPH_LLM_PROVIDER when those are not set. Does not affect MEM0_EMBED_PROVIDER.anthropic
GOOGLE_API_KEYNoGoogle API key (required for gemini/gemini_split graph providers)
MEM0_EMBED_URLNoOllama URL for embeddings. Cascades: MEM0_EMBED_URL → MEM0_OLLAMA_URL → http://localhost:11434
MEM0_LLM_MODELNoModel for the selected LLM provider. Defaults to claude-opus-4-6 for Anthropic, qwen3:14b for Ollama
MEM0_LOG_LEVELNoLogging level (DEBUG, INFO, WARNING, ERROR)INFO
MEM0_NEO4J_URLNoNeo4j Bolt endpointbolt://127.0.0.1:7687
MEM0_TRANSPORTNoTransport: stdio, sse, or streamable-httpstdio
MEM0_COLLECTIONNoQdrant collection namemem0_mcp_selfhosted
MEM0_EMBED_DIMSNoEmbedding vector dimensions1024
MEM0_NEO4J_USERNoNeo4j usernameneo4j
MEM0_OLLAMA_URLNoShared Ollama base URL. Cascades to MEM0_LLM_URL, MEM0_EMBED_URL, and MEM0_GRAPH_LLM_URL when those are not set.http://localhost:11434
MEM0_QDRANT_URLNoQdrant REST API URLhttp://localhost:6333
MEM0_EMBED_MODELNoEmbedding model namebge-m3
MEM0_OAT_HEADERSNoOAT identity headers: auto or noneauto
ANTHROPIC_API_KEYNoStandard Anthropic API key (priority 3)
MEM0_ENABLE_GRAPHNoEnable graph memory (entity extraction to Neo4j)false
MEM0_LLM_PROVIDERNoMain LLM provider: anthropic or ollama. Inherits from MEM0_PROVIDER when not set.
MEM0_OLLAMA_THINKNoSet to true to re-enable qwen3 thinking mode (disabled by default to prevent thinking + format:"json" collision)false
MEM0_GRAPH_LLM_URLNoOllama base URL for graph LLM. Cascades: MEM0_GRAPH_LLM_URL → MEM0_LLM_URL → MEM0_OLLAMA_URL → http://localhost:11434
MEM0_EMBED_PROVIDERNoEmbedding provider (ollama or openai)ollama
MEM0_LLM_MAX_TOKENSNoMax tokens for LLM responses (Anthropic only)16384
MEM0_NEO4J_DATABASENoNeo4j database name (multi-database setups)
MEM0_NEO4J_PASSWORDNoNeo4j passwordmem0graph
MEM0_QDRANT_API_KEYNoQdrant API key (for Qdrant Cloud)
MEM0_QDRANT_ON_DISKNoStore vectors on disk (reduces RAM, slower search)false
MEM0_QDRANT_TIMEOUTNoQdrant REST API timeout in seconds (e.g., 30). Only set if you hit ReadTimeout during collection operations
MEM0_ANTHROPIC_TOKENNoAnthropic OAT or API token (priority 1)
MEM0_GRAPH_LLM_MODELNoGraph model. Inherits MEM0_LLM_MODEL for anthropic/ollama; defaults to gemini-2.5-flash-lite for gemini/gemini_split
MEM0_GRAPH_THRESHOLDNoEmbedding similarity threshold for node matching0.7
MEM0_HISTORY_DB_PATHNoSQLite path for memory change history
MEM0_NEO4J_BASE_LABELNoCustom Neo4j base label for node type grouping
MEM0_OLLAMA_KEEP_ALIVENoHow long Ollama keeps the model in VRAM between calls (e.g., 1h, 5m). Prevents model unload during multi-call graph pipelines30m
MEM0_GRAPH_LLM_PROVIDERNoGraph LLM provider (anthropic, anthropic_oat, ollama, gemini, gemini_split). Inherits from MEM0_PROVIDER when not set.
MEM0_GRAPH_CONTRADICTION_LLM_MODELNoContradiction model in gemini_split mode. Defaults to claude-opus-4-6 for anthropic/anthropic_oat providers; inherits MEM0_LLM_MODEL for others.
MEM0_OAT_REFRESH_THRESHOLD_SECONDSNoSeconds before expiry to trigger proactive OAT token refresh1800
MEM0_GRAPH_CONTRADICTION_LLM_PROVIDERNoContradiction LLM provider in gemini_split mode (anthropic, anthropic_oat, ollama)anthropic

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Maintenance

ActivityActive
ResponsivenessNo issues