Backend API & MCP server for OpenMemory, your personal, open-source LLM memory layer.
2.1K
This Docker image contains the backend API and Model Context Protocol (MCP) server for OpenMemory.
OpenMemory is your personal memory layer for LLMs - private, portable, and open-source. Your memories live locally, giving you complete control over your data. Build AI applications with personalized memories while keeping your data secure.
add_memories and search_memory via Server-Sent Events (SSE).mem0 library.openmemory.db) within the container if DATABASE_URL is not specified.psycopg2-binary and a DATABASE_URL).This image is designed to be run as part of the OpenMemory stack, typically orchestrated with Docker Compose. For the easiest setup, refer to the docker-compose.yml or run.sh script in the main OpenMemory GitHub repository.
Basic Docker Run Example (requires a running Qdrant instance):
docker run -d \
--name openmemory-mcp-container \
-p 8765:8765 \
-e OPENAI_API_KEY="your_openai_api_key" \
-e USER="$(whoami)" \
-e QDRANT_HOST="your_qdrant_host_or_service_name" \
-e QDRANT_PORT="6333" \
# -e DATABASE_URL="your_database_url" # Optional: for external DB
# -e OLLAMA_HOST="host.docker.internal" # If using Ollama on host
skpassegna/openmemory-mcp:latest
Required Services:
docker run -d -p 6333:6333 -p 6334:6334 -v qdrant_storage:/qdrant/storage qdrant/qdrantOPENAI_API_KEY (Required for default OpenAI functionality): Your API key for OpenAI.
sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxUSER (Recommended): Sets a default user ID for operations.
yourusernameDATABASE_URL (Optional): Connection string for the SQL database. If not set, defaults to SQLite within the container (/usr/src/openmemory/openmemory.db).
postgresql://user:password@host:port/databaseQDRANT_HOST (Required if not using default Docker Compose networking): Hostname or IP of your Qdrant instance.
docker-compose.yml from the project: mem0_storeqdrant-serverQDRANT_PORT (Optional): Port for your Qdrant instance.
6333OLLAMA_HOST (Optional): If using Ollama as a provider and it's running on your Docker host machine, you might need to set this to host.docker.internal or the appropriate IP address for the container to reach it. The application attempts to auto-detect this for Docker environments.
host.docker.internal*_API_KEY (e.g., MISTRAL_API_KEY, ANTHROPIC_API_KEY): If you configure OpenMemory (via its UI/API settings) to use other LLM/Embedder providers that require API keys, you can set them as environment variables and reference them in the configuration (e.g., api_key: "env:MISTRAL_API_KEY").8765: The port on which the FastAPI application (API and MCP server) listens.Once the container is running, API documentation is available at:
http://<host_ip>:8765/docshttp://<host_ip>:8765/redocThe source code for this API and MCP server can be found in the api/ directory of the OpenMemory GitHub repository.
OpenMemory welcomes contributions! Please see the CONTRIBUTING.md file in the main repository for guidelines.
Content type
Image
Digest
sha256:bc55ae1df…
Size
141.7 MB
Last updated
over 1 year ago
docker pull skpassegna/openmemory-mcp