Python SDK
Works with any agent framework. Install Cognee, connect to your tenant, and callremember / recall from your agent code.
remember() and recall() from within tool functions, hooks, or middleware — regardless of whether you use LangGraph, CrewAI, OpenClaw, AutoGen, or a custom framework. See the integration guides for framework-specific examples.
MCP server
Cognee runs as a Model Context Protocol server. Any MCP-compatible client (Claude Desktop, Cursor, VS Code Copilot) can use it as a tool provider. Start the server:| Tool | Description |
|---|---|
remember | Ingest data and build the knowledge graph in one call |
recall | Retrieve information from the knowledge graph |
cognify | Build the knowledge graph from ingested data |
search | Query the knowledge graph with a specific search type |
forget_memory | Remove data from the knowledge graph |
improve | Enrich the knowledge graph with additional processing |
list_data | List datasets and their data items |
delete | Delete specific data from a dataset |
delete_dataset | Delete an entire dataset |
prune | Reset the knowledge graph |
save_interaction | Log user-agent interactions |
cognify_status | Check the status of the cognify pipeline |
REST API
Use the REST API directly from any language. Authenticate with an API key from the API Keys page.For lower-level control, you can use
add + cognify + search separately. See the HTTP API reference for details on these and other endpoints.