Skip to main content
Cognee MCP currently exposes 14 tools for memory management, retrieval, and dataset operations. Unless noted otherwise, parameter names and defaults below reflect the current MCP server implementation.
Some MCP parameters use compact transport-friendly encodings:
  • datasets and session_ids are comma-separated strings, not JSON arrays.
  • top_k must be between 1 and 100.
  • cognify.data accepts either a single string or a JSON array of strings for batch ingestion.
With backend access control enabled, dataset names are resolved against datasets owned by the current user. Shared datasets that the user can access but did not create may not be targetable by name through MCP retrieval tools.

Available Tools

Still available for lower-level control or existing integrations.
Transform ingested data into a structured knowledge graph.If graph_model_file is set, graph_model_name should also be provided.
Retrieve memory with explicit lower-level search control.
search can scope by dataset name only. If the dataset was created by another user and shared with you, datasets="shared_dataset" may not work even if you have access. When you need to search one specific shared dataset, use the Python SDK or REST API with dataset_ids instead.
Reset the local MCP-managed store for a fresh start.This tool has no parameters.
prune is not available in API mode.
Use these after retrieval when you need a fuller document view or nearby chunk context.
Retrieve a source document and its chunks.
Retrieve nearby chunks from the same document.
get_document and get_chunk_neighbors are not available in API mode.
Store a user-assistant exchange so Cognee can process it into memory and related rules.
List datasets and their data items with IDs for deletion operations.
Remove a specific data item from a dataset.
Delete an entire dataset by name.
Check current and recent pipeline runs for a dataset.Works in both direct and API mode. In API mode the dataset id is resolved over HTTP and the pipeline state is read from the server’s GET /api/v1/datasets/status endpoint.
delete_dataset is not available in API mode. list_data(dataset_id=...) also requires direct mode for detailed per-item listing.

Usage Notes

  • For new integrations, start with remember to store data and recall to retrieve it.
  • Use improve when you want to enrich an existing graph or bridge session memory into permanent memory.
  • Use forget to remove a dataset or wipe all memory owned by the current user.
  • Reach for cognify, search, and prune only when you need lower-level control or are maintaining an older workflow.
  • Use get_document or get_chunk_neighbors after a CHUNKS result when the initial match is too narrow.
  • Use cognify_status to verify indexing before querying a freshly processed dataset.
  • In shared-dataset setups, prefer the Python SDK or REST API when you need UUID-based dataset scoping for a dataset the current user did not create.

Next Steps

Client Integrations

Learn how to use these tools with your AI development environment