cognee/cognee-mcp
Vasilije cf4737b0a2
Update cognee-mcp/cognee_mcp/server.py
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-01-12 16:13:21 +01:00
..
cognee_mcp Update cognee-mcp/cognee_mcp/server.py 2025-01-12 16:13:21 +01:00
.python-version ruff format 2025-01-05 19:09:08 +01:00
pyproject.toml fix: refactor mcp 2024-12-23 15:37:24 +01:00
README.md Fix instructions 2024-12-27 11:51:18 +01:00
uv.lock Fix ollama, work on visualization 2025-01-06 19:09:58 +01:00

cognee MCP server

Installing Manually

A MCP server project

  1. Clone the cognee repo

  2. Install dependencies

pip install uv
brew install postgresql
brew install rust
cd cognee-mcp
uv sync --dev --all-extras
  1. Activate the venv with
source .venv/bin/activate
  1. Add the new server to your Claude config:

The file should be located here: ~/Library/Application\ Support/Claude/ You need to create claude_desktop_config.json in this folder if it doesn't exist



{
	"mcpServers": {
		"cognee": {
			"command": "/Users/{user}/cognee/.venv/bin/uv",
			"args": [
        "--directory",
        "/Users/{user}/cognee/cognee-mcp",
        "run",
        "cognee"
      ],
      "env": {
        "ENV": "local",
        "TOKENIZERS_PARALLELISM": "false",
        "LLM_API_KEY": "sk-"
      }
		},
    "filesystem": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "/Users/{user}/Desktop",
        "/Users/{user}/Projects"
      ]
    }
	}
}

Restart your Claude desktop.

Installing via Smithery

To install Cognee for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install cognee --client claude

Define cognify tool in server.py Restart your Claude desktop.