What is cognee-mcp?
maincognee-mcp allows you to run Cognee's memory engine as a Model Context Protocol (MCP) server. This enables AI agents to build and query memory through any MCP-compatible client, such as an IDE or terminal.
Key features include:
- Multiple Transports: Supports
stdio(default),sse(real-time streaming), andhttp(recommended for web deployments). - Connection Modes: Supports Cloud Mode (connecting to Cognee Cloud via
--serve-urlorCOGNEE_SERVICE_URL), API Mode (connecting to an existing Cognee FastAPI server), and local execution. - Minimal Memory API: Exposes core tools:
remember(session cache or permanent graph memory),recall(focused querying), andforget(deletion). - Session-aware Memory: One
remembertool handles both fast session cache and permanent graph memory.