From 0ee77b788a2a63945f1a501fefe94141b15ca1eb Mon Sep 17 00:00:00 2001
From: hajdul88 <52442977+hajdul88@users.noreply.github.com>
Date: Mon, 30 Jun 2025 13:19:35 +0200
Subject: [PATCH] chore: adds docker description to cognee-mcp (#1031)
## Description
Adds docker description to cognee-mcp
## DCO Affirmation
I affirm that all code in every commit of this pull request conforms to
the terms of the Topoteretes Developer Certificate of Origin.
---
cognee-mcp/README.md | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/cognee-mcp/README.md b/cognee-mcp/README.md
index fb439daca..7915d9519 100644
--- a/cognee-mcp/README.md
+++ b/cognee-mcp/README.md
@@ -84,6 +84,28 @@ Please refer to our documentation [here](https://docs.cognee.ai/how-to-guides/de
You can do more advanced configurations by creating .env file using our template.
To use different LLM providers / database configurations, and for more info check out our documentation.
+
+## 🐳 Docker Usage
+
+If you’d rather run cognee-mcp in a container, you have two options:
+
+1. **Build locally**
+ 1. Make sure you are in /cognee root directory and have a fresh `.env` containing only your `LLM_API_KEY` (and your chosen settings).
+ 2. Remove any old image and rebuild:
+ ```bash
+ docker rmi cognee/cognee-mcp:main || true
+ docker build --no-cache -f cognee-mcp/Dockerfile -t cognee/cognee-mcp:main .
+ ```
+ 3. Run it:
+ ```bash
+ docker run --env-file ./.env -p 8000:8000 --rm -it cognee/cognee-mcp:main
+ ```
+2. **Pull from Docker Hub** (no build required):
+ ```bash
+ # With your .env file
+ docker run --env-file ./.env -p 8000:8000 --rm -it cognee/cognee-mcp:main
+
+
## 💻 Basic Usage
The MCP server exposes its functionality through tools. Call them from any MCP client (Cursor, Claude Desktop, Cline, Roo and more).