# topoteretes/cognee [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/topoteretes/cognee/tree/dev/cognee-mcp  
**GitHub Stars:** 33550  
**Views:** 6  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/topoteretes-cognee

## Description
Memory manager for AI apps and Agents using various graph and vector stores and allowing ingestion from 30+ data sources

## Tools
Capabilities this server exposes over MCP:

- **remember** — Store data in memory. Pass `data` for text, or `filename` + `content_base64` to ingest an uploaded file (up to 10 MB). With `session_id`: fast session cache (text only). Without `session_id`: permanent graph memory
- **recall** — Search memory with auto-routing. Searches session cache first when `session_id` is provided, then falls through to the permanent graph
- **forget** — Delete memory by dataset name or id, a single data item by `data_id` (paired with its `dataset_id`, both shown by `recall` with `include_references=True`), or delete all owned memory with `everything=True`
- **cognify_status** — Check the progress of background ingestion started by `remember(background=True)`. Unadvertised by default; discoverable via `search_tools` and callable by name

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/topoteretes/cognee/tree/dev/cognee-mcp), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Start the server:

```sh
uv run fastmcp dev src/server.py:mcp
```

2. Install:

```sh
uv sync --reinstall
```

## Documentation

## What topoteretes/cognee does

topoteretes/cognee connects MCP clients to Cognee’s memory engine, which uses graph and vector stores to manage information for AI applications and agents. The memory API centers on three operations: `remember` stores information, `recall` searches it, and `forget` removes it.

Input can be plain text or an uploaded file represented by a filename and base64 content. Uploaded files are limited to 10 MB. Cognee also supports ingestion from more than 30 data sources through its broader configuration options.

A separate `code_search` capability supports queries against indexed code datasets. It can inspect symbols, dependencies, architecture, relationships, and potential change impact.

## How it works

`remember` uses `session_id` to choose between two storage paths. With a session ID, text is placed in a fast session cache. Without one, the data becomes permanent graph memory. `recall` checks the session cache first when a session ID is supplied, then searches the permanent graph if needed.

Memory can be removed by dataset name or ID, or by an individual data item using its `data_id` together with its `dataset_id`. Both item identifiers can be returned by `recall` when `include_references=True`. The `everything=True` option removes all memory owned by the caller.

Long-running ingestion can be started with `remember(background=True)`. Its progress is checked through `cognify_status`, which is discoverable with `search_tools` and callable by name even though it is not advertised by default.

Code-graph queries select an operation and pass operation-specific arguments. Supported operations include fact queries, exploration, traversal, path finding, impact analysis, insights, architecture, and delta checks, along with navigation operations such as search, neighbors, subgraphs, flows, hubs, and ask.

## Setup and configuration

The repository includes the MCP server in the `cognee-mcp` directory. A typical local setup uses `uv` to install the development dependencies, activates the resulting virtual environment, and starts `src/server.py`.

The default transport is stdio. The server can also run with SSE or Streamable HTTP; HTTP accepts a host, port, and MCP path and is intended for web deployments. Docker usage supports the same transport modes through `TRANSPORT_MODE`.

A minimal setup uses `LLM_API_KEY` in a `.env` file. The server can connect to Cognee Cloud with `--serve-url` or `COGNEE_SERVICE_URL`, or connect to an existing Cognee FastAPI server. Optional dependency groups cover storage backends, model providers, document processing, scraping, tracing, and related integrations.

If the MCP host provides sampling, `LLM_PROVIDER="mcp-sampling"` can delegate completions to the host instead of requiring an LLM API key. Embeddings still require a provider.

## Tools and capabilities

- `remember`: store text, session data, permanent graph memory, or a base64-encoded file.
- `recall`: search session and graph memory with optional session and search controls.
- `forget`: delete an item, dataset, or all owned memory.
- `cognify_status`: inspect background ingestion progress.
- `code_search`: query indexed code graphs using analysis and navigation operations.
- Multiple MCP transports: stdio, SSE, and Streamable HTTP.
- Rotating file logs, with console output in development.

## Limitations and notes

Session-cache storage is text-only, while file ingestion uses the 10 MB upload limit. `cognify_status` is not advertised in the default tool list and must be discovered through `search_tools` before use. Code-graph queries require an indexed code dataset. Available storage, model, and document features depend on the selected optional dependencies and configuration.

_Full upstream README: https://allmcps.com/mcp/topoteretes-cognee/readme_

