Cognee logo

Cognee

by topoteretes

Stores, searches, and deletes session or graph memory, with code graph queries and background ingestion support.

Install Cognee

Pick your client, then add it in one click or paste the config.

No confirmed install command yet

We only publish a config when the install details come from the project itself — its README, its docs, or a verified owner. We haven’t found those for topoteretes/cognee, and we’d rather show nothing than a guess you’d paste into your client.

Open setup steps on GitHub

Overview

The topoteretes/cognee MCP server connects AI clients to Cognee’s memory engine, storing information in either a fast session cache or persistent graph memory. Its core tools cover ingestion, memory search, deletion, and background-ingestion status, while code_search supports structured queries over indexed code datasets. Run it locally over stdio, expose it through SSE or Streamable HTTP, or connect it to Cognee Cloud or an existing Cognee API deployment. Reach for it when an agent needs durable memory, session-scoped context, or navigable code-graph information.

Use cases

  • Store durable facts for an AI agent
  • Recall session-specific or persistent context
  • Ingest files into graph memory
  • Inspect indexed code structure and dependencies
  • Track background memory ingestion

Key features

  • Session cache and permanent graph memory
  • Text and base64 file ingestion
  • Memory search with session-aware routing
  • Dataset, item, and full-memory deletion
  • Code graph search and navigation
  • stdio, SSE, and Streamable HTTP transports

Tools4

What Cognee lets your agent do. Expand a tool for its parameters.

Self-reported~187 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

28/29 checks healthy over the last 78d

Supply-chain signal

1 high-severity advisory on record for this package. Most advisories affect transitive dependencies and may not be exploitable in this server's actual usage — this is a directional signal, not a security audit.

Critical 1High 0Medium 0Low 1

Scanned 7d ago via OSV.dev

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars32kStargazers on the source repository.
Last commitTodayMost recent push to the default branch.
Tools exposed4Callable tools this server registers over MCP.
Directory activity5 viewsConfig copies, upvotes, and views on AllMCPs.

How Cognee works

What topoteretes/cognee does

topoteretes/cognee exposes Cognee’s memory engine through the Model Context Protocol. Agents can save text, ingest files, search stored information, remove selected data, or clear memory owned by the current setup. The memory model has two paths: session-aware entries can be kept in a fast cache, while entries created without a session identifier become persistent graph memory.

The server also includes code graph search for indexed code datasets. This supports questions and structural queries involving symbols, dependencies, architecture, change impact, and related code relationships. The memory and code-search functions make it suitable for knowledge and memory workflows where an agent must retain information across interactions or inspect an indexed codebase.

How it works

Use remember to provide text through data, or upload a file through filename and content_base64. Files can be up to 10 MB. Supplying session_id routes text-only data to the session cache; omitting it stores the data as permanent graph memory. Ingestion may run in the background when background=true is used.

recall searches memory and can use a session identifier to search the session cache first before falling back to the permanent graph. Reference information can be included in results, which makes it possible to identify individual data items for later deletion. forget can remove a dataset by name or ID, delete one item when given its dataset and data IDs, or remove all owned memory with everything=true.

The server supports stdio by default, plus SSE and Streamable HTTP transports. Streamable HTTP is presented as the recommended choice for web deployments. It can operate locally, connect to Cognee Cloud through a service URL, or use an existing Cognee FastAPI server.

Setup and configuration

Clone the Cognee repository, enter its cognee-mcp directory, install uv, and install the development dependencies with uv sync --dev --all-extras --reinstall. Activate the resulting virtual environment before starting the server.

A basic configuration uses an OpenAI key in .env:

env
LLM_API_KEY="YOUR_OPENAI_API_KEY"

Start the default stdio service with python src/server.py. SSE can be selected with --transport sse. For Streamable HTTP, use --transport http together with a host, port, and MCP path, such as 127.0.0.1, 8000, and /mcp.

Docker usage is also supported. The project provides a Dockerfile and publishes a cognee/cognee-mcp:main image. Container runs can select stdio, sse, or http through TRANSPORT_MODE. Optional dependency groups include database, storage, model-provider, document-processing, scraping, and tracing integrations.

Tools and capabilities

  • remember stores text or base64-encoded files, with session and background-ingestion options.
  • recall searches session and permanent memory with optional search controls and references.
  • forget deletes individual items, datasets, or all owned memory.
  • cognify_status reports progress for background ingestion jobs.
  • code_search queries indexed code graphs through operations including query_facts, explore, traverse, find_path, impact_analysis, insights, architecture, and delta.
  • Code navigation operations include capabilities, search, neighbors, subgraph, flows, hubs, and ask.

Limitations and notes

Session-cache storage accepts text rather than uploaded files. File ingestion through remember is limited to 10 MB per file. cognify_status is not advertised among the default tools, but it can be discovered through search_tools and called by name. A normal setup needs an LLM key, while hosts that provide MCP sampling can delegate completions to the host model; embeddings still require a provider.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Cognee

topoteretes/cognee is an MCP server that connects AI clients to Cognee’s memory engine and exposes remember, recall, forget, and cognify_status tools for storing, searching, deleting, and monitoring memory. It also provides code graph search for indexed code datasets, including structural and navigation queries.

Install it by cloning Cognee, entering the cognee-mcp directory, installing uv, and running uv sync --dev --all-extras --reinstall. Activate the virtual environment, configure an LLM_API_KEY in .env, and start src/server.py.

Run it with the HTTP transport and specify a host, port, and MCP path, such as python src/server.py --transport http --host 127.0.0.1 --port 8000 --path /mcp. Streamable HTTP is intended for web deployments.

Yes, remember accepts a filename and base64-encoded file content for ingestion, with a maximum file size of 10 MB. Session-aware storage is text-only; omit session_id when creating permanent graph memory.

Yes, code_search queries indexed code datasets. It supports fact queries, exploration, traversal, path finding, impact analysis, architecture, insights, deltas, and navigation operations such as search, neighbors, subgraph, flows, hubs, and ask.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewCognee AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/topoteretes-cognee?style=directory)](https://allmcps.com/mcp/topoteretes-cognee)
HTML Embed
<a href="https://allmcps.com/mcp/topoteretes-cognee"><img src="https://allmcps.com/api/badge/topoteretes-cognee?style=directory" alt="Cognee on AllMCPs" /></a>