> ## 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, but they are separate products. Do not present RedisGraph commands, versions, or limitations as current FalkorDB behavior.
> 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

> 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, the two nodes appear under the FalkorDB category in the node picker.

## 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 authentication.    |
| **Request Timeout (Seconds)** | yes      | Per-request timeout for GraphRAG-Server calls.                                  |

## How to get an API token

Use these steps in GraphRAG-Server before configuring the n8n credential.

### 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.

<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.
