Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MEM0_HOSTNoHost for SSE/HTTP transports.0.0.0.0
MEM0_PORTNoPort for SSE/HTTP transports.8081
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 scoping.user
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 endpoint.bolt://127.0.0.1:7687
MEM0_TRANSPORTNoTransport: `stdio`, `sse`, or `streamable-http`.stdio
MEM0_COLLECTIONNoQdrant collection name.mem0_mcp_selfhosted
MEM0_EMBED_DIMSNoEmbedding vector dimensions.1024
MEM0_NEO4J_USERNoNeo4j username.neo4j
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 URL.http://localhost:6333
MEM0_EMBED_MODELNoEmbedding model name.bge-m3
MEM0_OAT_HEADERSNoOAT identity headers: `auto` or `none`.auto
ANTHROPIC_API_KEYNoStandard Anthropic API key (priority 3 in the token fallback chain). Only useful for non-Claude-Code deployments (Docker, CI, standalone).
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 password.mem0graph
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 in the token fallback chain). Use to override the automatically-read Claude Code OAT token.
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 matching.0.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 pipelines.30m
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 refresh.1800
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
ResponsivenessResponsive