认知MCP服务器
手动安装
MCP服务器项目
- 克隆 Cognee 仓库
- 安装依赖项
pip install uvbrew install postgresqlbrew install rustcd cognee-mcp
uv sync --dev --all-extras- 通过以下方式激活venv
source .venv/bin/activate- 将新服务器添加到您的Claude配置中:
文件应位于此处:~/Library/Application\\Support/Claude/ 如果claude_desktop_configure.json不存在,则需要在此文件夹中创建它
{
"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"
]
}
}
}重新启动Claude桌面。
通过Smithery安装
通过以下方式自动安装Cognee for Claude Desktop 史密瑟里:
npx -y @smithery/cli install cognee --client claude在server.py中定义cognify工具 重新启动Claude桌面。
