Cognee MCP Server

Cognee - is a library for enriching LLM context with a semantic layer for better understanding and reasoning.

Remote serverstreamable-httpPython

What is the Cognee MCP server?

Cognee MCP server is a hosted integration for AI assistants that speak the Model Context Protocol. Cognee - is a library for enriching LLM context with a semantic layer for better understanding and reasoning.

What you get

Demo . Docs . Learn More · Join Discord · Join r/AIMemory . Community Plugins & Add-ons

Cognee is an open-source AI memory platform for AI Agents. Ingest data in any format, and Cognee continuously builds a self-hosted knowledge graph that gives your agents persistent long-term memory across sessions. Cognee combines vector embeddings, graph reasoning, and cognitive-science-grounded ontology generation to make documents both searchable by meaning and connected by relationships that evolve as your knowledge does.

  • Easily Build Company Brain - unify data from various sources in one place and enable Agents with your domain knowledge
  • Knowledge infrastructure — unified ingestion, graph/vector search, runs locally, ontology grounding, multimodal
  • Persistent and Learning Agents - learn from feedback, context management, cross-agent knowledge sharing
  • Reliable and Trustworthy Agents - agentic user/tenant isolation, traceability, OTEL collector, audit traits

What the assistant can call

Once Cognee is connected, these are the calls the assistant has available:

  • Prerequisites — The Prerequisites tool exposed by this server
  • Contributing — We welcome contributions from the community! Your input helps make Cognee better for everyone. See CONTRIBUTING.md to get started

Setting it up

Being a remote server, there is no local install. You register the endpoint with your client, authorise it once, and the tools appear.

Configuration and credentials

You will need 5 environment variables: LLM_API_KEY, COGNEE_BASE_URL, COGNEE_API_KEY, OPENAI_API_KEY, YOUR_OPENAI_API_KEY. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

  • Python 3.10 to 3.14

Choosing this one

Plenty of cloud and infrastructure servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Cognee's toolset — Prerequisites, Contributing — is a fair guide to whether it matches your workflow. It is maintained by Vasilije Markovic, Boris Arzentar; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Before you rely on it

  • Your data travels to the provider's service, so the usual questions apply about what you send and what they retain.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the cognee mcp server does with a few real requests.

Available tools

ToolWhat it does
PrerequisitesThe Prerequisites tool exposed by this server.
ContributingWe welcome contributions from the community! Your input helps make Cognee better for everyone. See [CONTRIBUTING.md](CONTRIBUTING.md) to get started.

How to install the Cognee MCP server

{
  "mcpServers": {
    "cognee": {
      "command": "npx",
      "args": ["-y", "@cognee/cognee-ts"],
      "env": {
        "LLM_API_KEY": "your-value",
        "COGNEE_BASE_URL": "your-value",
        "COGNEE_API_KEY": "your-value",
        "OPENAI_API_KEY": "your-value",
        "YOUR_OPENAI_API_KEY": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

  • Python 3.10 to 3.14
VariableDescriptionRequired
LLM_API_KEYCredential the server authenticates with.Yes
COGNEE_BASE_URLEndpoint or connection string the server talks to.Yes
COGNEE_API_KEYCredential the server authenticates with.Yes
OPENAI_API_KEYCredential the server authenticates with.Yes
YOUR_OPENAI_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • Use Cognee to Prerequisites.
  • Use Cognee to Contributing.

Frequently asked questions

It connects Cognee to MCP-compatible AI assistants such as Claude and Cursor, exposing 2 tools (Prerequisites, Contributing) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Cognee directly.