Skip to main content
Gemini CLI supports the Model Context Protocol. Register Cognee as an MCP server and Gemini can remember, recall and forget against your Cognee Cloud workspace. The Gemini CLI card on the Integrations page shows the same steps with your workspace URL and API key filled in.

1. Install uv

Cognee runs through uvx, which comes with uv. There is nothing else to install.
  • macOS: brew install uv
  • macOS/Linux: curl -LsSf https://astral.sh/uv/install.sh | sh
  • Windows (PowerShell): powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

2. Add Cognee to your Gemini settings

Gemini CLI keeps its settings in ~/.gemini/settings.json. If the file or the ~/.gemini folder does not exist yet, run gemini once to create them, or create the file yourself. Add the cognee entry under mcpServers and save. Use your workspace URL and a key from the API keys page:
If you already have an mcpServers block, add only the cognee entry inside it instead of replacing the file.

3. Verify

  1. Start Gemini in your terminal with gemini.
  2. Type /mcp. You should see cognee listed with its tools.
  3. Ask What do you know from cognee? Gemini should call a cognee tool and answer from your memory.
If /mcp does not list cognee, Gemini usually cannot find uvx on its PATH. Run which uvx (Get-Command uvx on Windows) and use that absolute path as the command value.

Cloud MCP

How MCP clients connect to Cognee Cloud

All agent integrations

Every agent and tool that can use Cognee as memory