{
 "schema_version": 1,
 "generated": "2026-11-09",
 "id": "topoteretes-cognee--self-host-cognee-api-ui-and-mcp-server",
 "repo": "topoteretes/cognee",
 "repo_url": "https://github.com/topoteretes/cognee",
 "repo_slug": "topoteretes-cognee",
 "title": "Self-host the Cognee API, UI and MCP server",
 "page_title": "How to self-host the Cognee API, UI and MCP server with Cognee",
 "summary": "Run the prebuilt Docker image or the compose profiles so other tools and MCP clients can use shared memory.",
 "who": "A team lead who wants one shared memory service for several agents.",
 "problem": "Each agent keeping its own memory leads to duplicated and conflicting context.",
 "outcome": "Cognee running with the API on 8000, the UI on 3000 and MCP on 8001.",
 "steps": [
  "Try the bundled graph first with `cognee-cli demo`",
  "Run the API image with `docker run --rm -it -p 8000:8000` and the LLM_API_KEY, ENABLE_BACKEND_ACCESS_CONTROL and volume flags shown in the README",
  "From a source checkout, copy .env.template to .env and run `docker compose --profile ui --profile mcp up`",
  "Open the local UI with `cognee-cli -ui` to inspect the graph"
 ],
 "agent_prompt": "Using topoteretes/cognee, start the stack with `docker compose --profile ui --profile mcp up` from a checkout, load <my docs>, and confirm the API on port 8000 and MCP on port 8001 respond.",
 "agents": [
  "claude-code",
  "codex",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Intermediate",
 "time": "1 hour",
 "basis": "readme",
 "caveat": "Running the whole memory layer on Postgres is a demo feature per the README.",
 "category": "Research",
 "tags": [
  "Research"
 ],
 "lang": "python",
 "requirements": [
  "Python 3.10 to 3.14; install with `uv pip install \"cognee[gliner]\"` for the local extraction model",
  "Optional: an LLM key (LLM_API_KEY) for generated answers instead of retrieved passages",
  "Optional: Docker for the API, UI and MCP server; Node.js/npm for the local UI launcher"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "security",
   "notice": "ENABLE_BACKEND_ACCESS_CONTROL=false is the single-user local posture; configure authentication before going beyond a local demo."
  }
 ],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/topoteretes-cognee/self-host-cognee-api-ui-and-mcp-server/",
 "md": "https://dedupedai.com/use-cases/topoteretes-cognee/self-host-cognee-api-ui-and-mcp-server/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/topoteretes-cognee--self-host-cognee-api-ui-and-mcp-server.json",
 "api_version": "v1"
}
