An MCP server for cognee, an AI memory engine
11 stars2 watching2 forks

cognee-mcp-server

An MCP server for cognee, an AI memory engine.

Tools

  • Cognify_and_search : Builds knowledge graph from the input text and performs search in it.
    • Inputs:
      • text (String): Context for knowledge graph contstruction
      • search_query (String): Query for retrieval
      • graph_model_file (String, optional): Filename of a custom pydantic graph model implementation
      • graph_model_name (String, optional): Class name of a custom pydantic graph model implementation
    • Output:
      • Retrieved edges of the knowledge graph

Configuration

Usage with Claude Desktop

Add this to your claude_desktop_config.json:

<details> <summary>Using uvx</summary>
"mcpcognee": {
  "command": "uv",
  "args": [
    "--directory",
    "/path/to/your/cognee-mcp-server",
    "run",
    "mcpcognee"
  ],
  "env": {
    "ENV": "local",
    "TOKENIZERS_PARALLELISM": "false",
    "LLM_API_KEY": “your llm api key”,
    "GRAPH_DATABASE_PROVIDER": “networkx”,
    "VECTOR_DB_PROVIDER": "lancedb",
    "DB_PROVIDER": "sqlite",
    "DB_NAME": “cognee_db”
  }
}
</details>

Features

cognify
search
knowledge
graph
retrieval

Category

Knowledge & Memory