npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

n8n-nodes-cognee

v0.3.0

Published

n8n node to call Cognee Cloud API and its memory services

Readme

n8n-nodes-cognee

Use Cognee Cloud's AI memory and context engineering directly in your n8n workflows.

This community node lets you:

  • Add text data to a Cognee dataset
  • Turn data into AI memory with cognify to build knowledge-graph-based memory
  • Run search over your AI memory datasets
  • Delete datasets or individual data items

n8n is a fair-code licensed workflow automation platform.

Table of contents

Installation

Install from within n8n:

  1. In n8n, go to Settings → Community Nodes
  2. Click Install and search for n8n-nodes-cognee, or paste the package name directly
  3. Confirm the installation

Or install in your n8n instance directory:

npm install n8n-nodes-cognee

Restart n8n after installation if required.

Credentials

Get your Cognee API key and Base URL from your Cognee Cloud dashboard (API Keys page).

Create credentials of type Cognee API in n8n. The node uses these values to authenticate every request:

  • Base URL: The base URL of your Cognee Cloud instance, e.g. https://tenant-xxx.cloud.cognee.ai/api.
  • API Key: Your Cognee API key, sent via the X-Api-Key header.

Operations

The node exposes four resources. Each operation maps to a Cognee API endpoint.

Resource: Add Data

  • Operation: Add
  • Endpoint: POST /add_text
  • Fields:
    • Dataset Name (datasetName, required): Name of the Cognee dataset to add text to
    • Text Data (textData, required, multiple): Array of strings to store

Example body sent by the node:

{
  "datasetName": "support_docs",
  "textData": [
    "FAQ: Reset password via account settings.",
    "Guide: Export data as CSV from dashboard."
  ]
}

Resource: Cognify

  • Operation: Cognify
  • Endpoint: POST /cognify
  • Fields:
    • Datasets (datasets, required, multiple): One or more dataset names to cognify

Example body sent by the node:

{
  "datasets": ["support_docs"]
}

Resource: Search

  • Operation: Search
  • Endpoint: POST /search
  • Fields:
    • Search Type (searchType): One of GRAPH_COMPLETION, GRAPH_COMPLETION_COT, RAG_COMPLETION
    • Datasets (datasets, required, multiple)
    • Query (query, required)
    • Top K (topK, optional number): Defaults to 10

Example body sent by the node:

{
  "searchType": "GRAPH_COMPLETION",
  "datasets": ["support_docs"],
  "query": "How do I export my data?",
  "topK": 5
}

Resource: Delete

  • Operation: Delete Dataset

  • Endpoint: DELETE /datasets/{datasetId}

  • Fields:

    • Dataset ID (datasetId, required): The UUID of the dataset to delete
  • Operation: Delete Data

  • Endpoint: DELETE /datasets/{datasetId}/data/{dataId}

  • Fields:

    • Dataset ID (datasetId, required): The UUID of the dataset
    • Data ID (dataId, required): The UUID of the data item to remove

Usage examples

End-to-end example workflow:

  1. Add Data (Cognee)
    • Resource: Add Data → Operation: Add
    • Dataset Name: support_docs
    • Text Data: Add one or more strings with your content
  2. Cognify (Cognee)
    • Resource: Cognify → Operation: Cognify
    • Datasets: support_docs
  3. Search (Cognee)
    • Resource: Search → Operation: Search
    • Search Type: GRAPH_COMPLETION
    • Datasets: support_docs
    • Query: Your question, e.g. "How do I export my data?"
    • Top K: 5
  4. Delete (Cognee)
    • Resource: Delete → Operation: Delete Dataset
    • Dataset ID: UUID of the dataset to remove

Troubleshooting:

  • 401/403 errors: Check the API key and that X-Api-Key is accepted by your Cognee instance.
  • Connection errors: Verify Base URL and network access from your n8n host.

Compatibility

  • Node.js: >= 20.15
  • n8n Nodes API: v1

The node depends on n8n-workflow at runtime (peer dependency). It should work on current n8n releases supporting community nodes.

Resources

Version history

  • 0.3.0: Add request timeouts for all operations (5 min default, 10 min for Cognify). Enable usableAsTool for AI agent compatibility. Migrate tooling to @n8n/node-cli. Add GitHub Actions CI and publish workflows with npm provenance.
  • 0.2.0: Add Delete resource (Delete Dataset, Delete Data operations). Update API endpoints and base URL to Cognee Cloud.
  • 0.1.0: Initial release with Add Data, Cognify, and Search operations.

License

MIT