Skip to content

Working with clients? Stay ahead of what they ask for.

CommunityAI / ML

Cognee MCP

by topoteretes

Knowledge graph plus vector memory engine for AI agents, exposed as an MCP server with V2 session-aware memory tools (remember, recall, forget, improve) and classic V1 ingestion pipelines (cognify, codify). Three transports: stdio, SSE, Streamable HTTP. 16,965 GitHub stars, Apache-2.0.

★ 16,997·8 listed tools·Released JAN 2024·Apache-2.0
uv pip install cognee
Share:

“Knowledge graph plus vector memory engine for AI agents, exposed as an MCP server with V2 session-aware memory tools (remember, recall, forget, improve) and classic V1 ingestion pipelines (cognify, codify). 100 commits on main in the last 30 days, top cadence in this batch. Three transports (stdio, SSE, Streamable HTTP). 16,965 GitHub stars and a published Apache-2.0 licence.”

Reviewed by M. Nouriel · MAY 2026

INSTALL THIS SERVER

Access optionsCloud Mode requires a Cognee Cloud account and COGNEE_SERVICE_URL. API Mode requires a self-hosted Cognee FastAPI endpoint. Local mode runs against an embedded engine with configured graph and vector backends.
{ "mcpServers": { "cognee": { "command": "uv", "args": [ "--directory", "/path/to/cognee/cognee-mcp", "run", "cognee-mcp", "--transport", "stdio" ], "env": { "LLM_API_KEY": "<your-llm-key>" } } } }
PrereqInstall cognee via uv pip install cognee. Clone the repo for the cognee-mcp subdirectory. Configure graph and vector backends via environment variables (Neo4j, Postgres, Qdrant supported). PyPI: `cognee`. Cloud Mode: set COGNEE_SERVICE_URL to a Cognee Cloud endpoint. Path: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS).
{ "mcpServers": { "cognee": { "command": "uv", "args": [ "--directory", "/path/to/cognee/cognee-mcp", "run", "cognee-mcp", "--transport", "stdio" ], "env": { "LLM_API_KEY": "<your-llm-key>" } } } }
{ "mcpServers": { "cognee": { "command": "uv", "args": [ "--directory", "/path/to/cognee/cognee-mcp", "run", "cognee-mcp", "--transport", "stdio" ], "env": { "LLM_API_KEY": "<your-llm-key>" } } } }
{ "mcpServers": { "cognee": { "command": "uv", "args": [ "--directory", "/path/to/cognee/cognee-mcp", "run", "cognee-mcp", "--transport", "stdio" ], "env": { "LLM_API_KEY": "<your-llm-key>" } } } }
{ "mcpServers": { "cognee": { "command": "uv", "args": [ "--directory", "/path/to/cognee/cognee-mcp", "run", "cognee-mcp", "--transport", "stdio" ], "env": { "LLM_API_KEY": "<your-llm-key>" } } } }

8 SELECTED TOOLS

remember
Write a session-scoped memory entry into the graph
Write
recall
Retrieve session-scoped memory by query
Read
forget
Delete a memory entry from the current session
Write
improve
Refine an existing memory based on new context
Write
cognify
Run the full ingestion pipeline on text or files
Write
codify
Ingest source code into the developer_rules nodeset
Write

OUR ASSESSMENT

Cognee builds memory for agents through a knowledge graph plus vector index. The cognee-mcp subdirectory packages this engine as an MCP server. Three transport modes available: stdio (default), SSE for real-time streaming, and Streamable HTTP for web deployments. Cloud Mode connects to Cognee Cloud via --serve-url or COGNEE_SERVICE_URL. API Mode connects to a self-hosted Cognee FastAPI instance. V2 Memory API ships session-aware tools alongside the V1 cognify and codify pipelines. Background pipelines run off-thread; status tools poll progress.

Strengths
  • 100 commits on main in the last 30 days, top cadence in this batch.
  • 16,965 GitHub stars and Apache-2.0 licence.
  • Three transports: stdio, SSE, Streamable HTTP.
  • V2 session-aware memory tools (remember, recall, forget, improve) alongside classic V1 (cognify, codify).
  • Background pipeline execution with status polling for long-running ingestion.
  • Cloud Mode and API Mode connect to existing Cognee deployments.
  • Local file ingestion supports .md, source files, Cursor rule sets.
  • One-call developer-rules bootstrap indexes .cursorrules, .cursor/rules, AGENT.md, and similar files.
Weaknesses
  • Setup complexity: graph plus vector store configuration (Neo4j, Postgres, or alternatives).
  • Documentation is split across the main repo, the cognee-mcp subdirectory, and Cognee Cloud docs.
  • Cloud Mode requires a Cognee Cloud account.
  • Knowledge graph schema decisions affect retrieval quality; tuning is the responsibility of the operator.
Security Notes

The MCP server runs with the same data access as the underlying Cognee instance. In Cloud Mode, traffic flows to Cognee Cloud over the --serve-url endpoint; review the Cognee Cloud data policy before sending sensitive content. In API Mode, point at a private Cognee FastAPI on a network the agent host trusts. Local file ingestion reads any path passed to the ingest tools; scope the agent filesystem access accordingly.

Best For

Agent builders who want persistent memory across sessions with both graph and vector retrieval; teams with a Cognee Cloud or self-hosted Cognee FastAPI instance who want MCP access to the same memory store the application uses; coding agents that benefit from indexed .cursorrules, AGENT.md, and similar developer-rule files via the developer_rules nodeset.

TECHNICAL DETAILS

Language
python
Transport
stdiossestreamable-http
Clients
Claude DesktopClaude CodeCursorVS CodeWindsurf
License
Apache-2.0
GitHub
topoteretes/cognee · ★ 16,997
npm
cognee
Last Release
v1.0.4.dev0APR 25, 2026
First Released
JAN 15, 2024

RECORDED ADOPTION METRICS

Saved directory snapshots. Record last checked MAY 3, 2026. The review date above does not refresh these figures.

// GitHub Stars
16,997

// Recorded note16,965 stars on the parent topoteretes/cognee repo. 100 commits on main in the last 30 days drive the editorial weight.

// Popularity Rank
#1
Recorded directory rank · #1 in AI / ML

// Recorded noteFirst-ranked in ai-ml on commit cadence, star count, and tool surface combined.

SOURCES & RECORDED CHECKS

These are the directory listings and check details held in this record. Client compatibility, directory listings and installation testing are separate signals. Recorded client names describe the scope of a check; they do not establish a security assessment or a recurring test schedule.

01
Discovered
Source not recorded
First indexed MAY 1, 2026
02
Directory listings
5 directories
PulseMCP, MCP.so, Glama, Smithery, Awesome MCP Servers
03
Recorded client testing
Claude Desktop, Claude Code, Cursor
Check current setup against the provider documentation
04
Record last checked
MAY 3, 2026
Record date; functional retest scope may differ
// How other directories see it

The same server, 5 different lenses. We reconcile these signals into our editorial score, which is why our number sometimes diverges from a directory-aggregate star count.

SourceTheir ratingTheir star countTheir downloadsLast synced
AutomationSwitch This page4.6editorial16,997—MAY 3, 2026
PulseMCP— unratedunavailableunavailableMAY 1, 2026
MCP.so— unratedunavailableunavailableMAY 1, 2026
Glama— unratedunavailableunavailableMAY 1, 2026
Smithery— unratedunavailableunavailableMAY 1, 2026
Awesome MCP Servers— unratedunavailableunavailableMAY 1, 2026

// Counts are directory-reported; we don't adjust them. Discrepancies usually come from different snapshot times or star-caching.

OTHER AI / ML MCP SERVERS

Official4.6

HeyGen Hyperframes

HeyGen

Write HTML, render video. Built for agents. HeyGen's framework that turns HTML templates into video output via MCP. 16,400 GitHub stars and 100 commits on main in the last 30 days.

6 tools★ 16,400
Community4.6

Codebase Memory MCP

DeusData

High-performance code intelligence MCP server for AI coding agents. Indexes a codebase into a queryable knowledge graph in milliseconds, with 14 MCP tools spanning structural search, call-chain tracing, impact analysis, dead-code detection, and Cypher queries. Single static C binary, 66 languages via tree-sitter, zero runtime dependencies.

9 tools★ 2,021
Vendor4.5

Arize Phoenix MCP

Arize AI

LLM observability platform exposing prompts, projects, traces, spans, sessions, datasets, and experiments through MCP. Published to npm as @arizeai/phoenix-mcp, current 4.0.8 (2026-04-29). 9,496 stars on parent monorepo, Elastic License 2.0.

8 tools★ 9,496
Vendor4.5

Qdrant MCP Server

Qdrant

Official Qdrant vector database MCP server. Acts as a semantic memory layer on top of Qdrant: store information with metadata, retrieve via similarity search. Two tools, very small surface area, exceptionally maintained by the Qdrant team. Configurable embedding provider (fastembed default), supports remote and local Qdrant clusters.

2 tools★ 1,373
Community4.4

Mastra

mastra-ai (Gatsby team)

TypeScript framework for building AI-powered applications and agents, with built-in MCP server support. From the team behind Gatsby. 23,680 GitHub stars and 100 commits on main in the last 30 days.

6 tools★ 23,680
Official4.4

Amazon Bedrock AgentCore MCP

AWS Labs

Official AWS Labs MCP server for Amazon Bedrock AgentCore: agent runtime, memory, gateway, identity, and observability. Tools fetch curated AgentCore documentation and surface deployment guides for runtime, memory, and gateway resources. Apache-2.0 within awslabs/mcp monorepo (8,924 parent stars).

5 tools★ 8,924
// Get in touch

DISCUSS YOUR
MCP REQUIREMENTS.

Evaluating a server, scoping an internal deployment, or working out whether MCP is the right fit at all. Start the conversation and we will point you at the right piece of the ecosystem.

Discuss Your MCP Requirements →