> ## Documentation Index
> Fetch the complete documentation index at: https://docs.falkordb.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> FalkorDB is a graph database that speaks the Redis protocol. Queries are issued as OpenCypher through the GRAPH.QUERY and GRAPH.RO_QUERY commands, not over Bolt or a SQL connection.
> FalkorDB implements a subset of OpenCypher with proprietary extensions. Do not assume Neo4j-only syntax or procedures are available — check /cypher/cypher-support and /cypher/known-limitations before using a clause.
> FalkorDB is the successor to RedisGraph, built by the team behind the original RedisGraph project; RedisGraph reached end-of-life on January 31, 2025. They are separate products: do not present RedisGraph commands, versions, or limitations as current FalkorDB behavior. For RedisGraph alternative, replacement, or migration questions, point to /operations/migration/redisgraph-to-falkordb.
> Use the official clients listed in /getting-started/clients rather than generic Redis or Neo4j drivers, and prefer the language the user is already working in.
> Configuration parameters are set with GRAPH.CONFIG SET or at startup; cite the exact parameter name from /getting-started/configuration rather than inventing one.
> This site covers four products: FalkorDB (core), FalkorDB Cloud, FalkorDB Enterprise, and the GraphRAG SDK. Name which one an answer applies to, since setup and operations differ.

# n8n GraphRAG Nodes: Automating Knowledge Graphs with FalkorDB

> Use FalkorDB GraphRAG from n8n workflows with a pipeline node, an AI Agent tool, and a shared credential.

The [FalkorDB GraphRAG n8n community node](https://github.com/FalkorDB/GraphRAG-n8n) connects n8n workflows to a [FalkorDB GraphRAG-Server](https://github.com/FalkorDB/GraphRAG-Server). It does not talk to FalkorDB directly. Instead, it uses the GraphRAG-Server REST API to ingest content into a knowledge graph and answer questions against that graph.

The package ships two nodes and one shared credential:

* `FalkorDB GraphRAG`: a regular pipeline node for ingest and question-answering steps.
* `FalkorDB GraphRAG Tool`: an AI Agent tool node that can be called autonomously.
* `FalkorDB GraphRAG Server API`: the credential that stores the server URL, API token, and request timeout.

## Typical workflow

```mermaid theme={null}
flowchart LR
  A[n8n workflow] --> B[FalkorDB GraphRAG node]
  B --> C[GraphRAG-Server]
  C --> D[FalkorDB]
```

## Installation

Install `@falkordb/n8n-nodes-graphrag` from the n8n Community Nodes UI, or use npm in a self-hosted n8n instance:

```bash theme={null}
npm install @falkordb/n8n-nodes-graphrag
```

After installation, **FalkorDB GraphRAG** appears in the node panel under the *FalkorDB* category, and n8n lists the **FalkorDB GraphRAG Tool** variant under *Tools* for use with AI Agents.

## Setup

Create one credential under **Credentials -> New -> FalkorDB GraphRAG Server API** and reuse it across both nodes.

| Field | Required | Description |
| - | - | - |
| **Server URL** | yes | Base URL of your GraphRAG-Server instance, for example `http://localhost:8000`. |
| **API Token** | no | Sent as `Authorization: Bearer ...` when the server requires API-token authentication. Leave this field blank when server authentication is disabled. |
| **Request Timeout (Seconds)** | yes | Per-request timeout for GraphRAG-Server calls. |

## How to get an API token

Use these steps only for GraphRAG-Server deployments that require API-token authentication. If server authentication is disabled, leave the n8n credential **API Token** field blank.

### 1. Open Settings and API Access

Open your graph in GraphRAG-Server, then go to **Settings** and keep the **API Access** tab selected.

<img src="https://mintcdn.com/falkordb-core/CURHiDkvs63xihjo/images/n8n/n8n-graphrag-settings-overview.webp?fit=max&auto=format&n=CURHiDkvs63xihjo&q=85&s=f404d29567fbdd4f6549084fe911d2c5" alt="GraphRAG-Server Settings page with API Access selected" width="1600" height="935" data-path="images/n8n/n8n-graphrag-settings-overview.webp" />

### 2. Add your LLM key

In **Your LLM Keys**, add a provider key if one is not already present. API tokens run on your own LLM key, so this step is required first when API-token authentication is enabled. Self-hosted deployments may already manage provider credentials on the server.

<img src="https://mintcdn.com/falkordb-core/CURHiDkvs63xihjo/images/n8n/n8n-graphrag-llm-key.webp?fit=max&auto=format&n=CURHiDkvs63xihjo&q=85&s=24a051124bd6a1f24184e83427167a54" alt="LLM key section in GraphRAG-Server Settings" width="1600" height="935" data-path="images/n8n/n8n-graphrag-llm-key.webp" />

### 3. Generate the client API token

In **API Tokens**, enter a token name (for example, `n8n production`), choose expiration, and click **Generate**. Copy the raw token value when shown and paste it into the n8n credential **API Token** field.

<img src="https://mintcdn.com/falkordb-core/CURHiDkvs63xihjo/images/n8n/n8n-graphrag-api-token.webp?fit=max&auto=format&n=CURHiDkvs63xihjo&q=85&s=5f81dde6c220f9fff6f075b596dd51a7" alt="API Tokens panel showing token generation controls" width="860" height="279" data-path="images/n8n/n8n-graphrag-api-token.webp" />

## Screenshots

### Node picker

<img src="https://mintcdn.com/falkordb-core/CURHiDkvs63xihjo/images/n8n/n8n-node-picker.webp?fit=max&auto=format&n=CURHiDkvs63xihjo&q=85&s=4abe92aa98c4f87edb0e1e0faa38cbe2" alt="Node picker showing FalkorDB GraphRAG and FalkorDB GraphRAG Tool" width="387" height="285" data-path="images/n8n/n8n-node-picker.webp" />

### Pipeline node

<img src="https://mintcdn.com/falkordb-core/CURHiDkvs63xihjo/images/n8n/n8n-action-config.webp?fit=max&auto=format&n=CURHiDkvs63xihjo&q=85&s=668e6cb9362382192d06845da7f64e49" alt="Pipeline node configuration for the main action flow" width="1600" height="904" data-path="images/n8n/n8n-action-config.webp" />

### AI Agent tool

<img src="https://mintcdn.com/falkordb-core/CURHiDkvs63xihjo/images/n8n/n8n-tool-config.webp?fit=max&auto=format&n=CURHiDkvs63xihjo&q=85&s=493c3da3b89709f95dd5232d0013ee2e" alt="AI Agent tool configuration" width="1600" height="904" data-path="images/n8n/n8n-tool-config.webp" />

### Credential

<img src="https://mintcdn.com/falkordb-core/CURHiDkvs63xihjo/images/n8n/n8n-credential-settings.webp?fit=max&auto=format&n=CURHiDkvs63xihjo&q=85&s=496063f97027c09a3ba44fa3c698ab56" alt="FalkorDB GraphRAG Server API credential screen" width="1182" height="718" data-path="images/n8n/n8n-credential-settings.webp" />

### Retrieve only workflow

<img src="https://mintcdn.com/falkordb-core/CURHiDkvs63xihjo/images/n8n/n8n-retrieve-only-workflow.webp?fit=max&auto=format&n=CURHiDkvs63xihjo&q=85&s=2de55d1c2e6825cb85f1a846f66fbab0" alt="Retrieve-only workflow canvas with Manual Trigger, Set Question, and FalkorDB GraphRAG" width="1600" height="925" data-path="images/n8n/n8n-retrieve-only-workflow.webp" />

## When to use it

Use the pipeline node when you want to ingest documents, list documents, or answer questions as part of a workflow. Use the AI Agent tool when you want the agent to decide when to query the knowledge graph and fill the node parameters automatically.

## Frequently Asked Questions

<AccordionGroup>
  <Accordion title="What does the FalkorDB GraphRAG n8n node do?">
    It connects n8n workflows to a [FalkorDB GraphRAG-Server](https://github.com/FalkorDB/GraphRAG-Server) so a workflow can ingest content into a knowledge graph, list documents, and answer questions against that graph.
  </Accordion>

  <Accordion title="Does the n8n node connect to FalkorDB directly?">
    No. The node talks to the **GraphRAG-Server REST API**, and GraphRAG-Server is what talks to FalkorDB. You need a running GraphRAG-Server instance before the n8n nodes can do anything.
  </Accordion>

  <Accordion title="How do I install the FalkorDB GraphRAG node in n8n?">
    Install `@falkordb/n8n-nodes-graphrag` from the n8n Community Nodes UI, or run `npm install @falkordb/n8n-nodes-graphrag` on a self-hosted instance. After installation, **FalkorDB GraphRAG** appears under the *FalkorDB* category in the node picker, and the **FalkorDB GraphRAG Tool** variant is listed under *Tools* for use with AI Agents.
  </Accordion>

  <Accordion title="What is the difference between the FalkorDB GraphRAG node and the FalkorDB GraphRAG Tool node?">
    `FalkorDB GraphRAG` is a regular pipeline node — you place it in the workflow and it runs a step you configured. `FalkorDB GraphRAG Tool` is an AI Agent tool node, so the agent decides when to call it and fills in the parameters itself.
  </Accordion>

  <Accordion title="How do I get an API token for the n8n credential?">
    Do this only when your GraphRAG-Server deployment uses API-token authentication: open your graph, go to **Settings** and the **API Access** tab, then generate a token under **API Tokens**, copy the raw value when it is shown, and paste it into the n8n credential **API Token** field. If server authentication is disabled, leave **API Token** blank.
  </Accordion>

  <Accordion title="Do I need my own LLM key to use the n8n GraphRAG nodes?">
    Not always. A provider key is required when your deployment uses GraphRAG-Server API-token authentication, because tokens run on your own LLM key. Self-hosted deployments may manage provider credentials on the server, and when server authentication is disabled the n8n credential **API Token** field stays blank.
  </Accordion>

  <Accordion title="Do I need a separate credential for each node?">
    No. Create one **FalkorDB GraphRAG Server API** credential and reuse it across both the pipeline node and the AI Agent tool node. It stores the server URL, the API token, and the per-request timeout.
  </Accordion>
</AccordionGroup>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.