MCP服务器

Cognee MCP服务器是一个用于Claude桌面的本地开发服务器,支持文件系统和模型上下文协议。

  • by JeromyJSmith
  • Python
  • 本地部署
  • 1 星标
  • 更新于
在 GitHub 查看 jeromyjsmith/cognee-mcp-server

使用说明

认知MCP服务器

手动安装

MCP服务器项目

  1. 克隆 Cognee 仓库

  2. 安装依赖项

pip install uv
brew install postgresql
brew install rust
cd cognee-mcp
uv sync --dev --all-extras
  1. 通过以下方式激活venv
source .venv/bin/activate
  1. 将新服务器添加到您的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桌面。