How n8n connects to your own Qdrant for retrieval workflows
If your n8n workflows or AI agents need a vector store, that store has to stay inside your infrastructure, and the connection between the two services is where most of the control sits. The n8n Qdrant Vector Store node calls the Qdrant API using a URL and API key credential, so the integration is a server-to-server connection rather than anything n8n hosts for you. The node can run in insert mode to write embedded documents into a collection and in retrieve mode to query it, and it can also be attached to an AI agent as a tool so the agent searches Qdrant during a run. Confirm the exact node options, parameter names and credential fields against the n8n version you run, because the node's behavior has changed across releases and the n8n release notes are the place to check what changed.
Qdrant is secure only if you configure it. By default, self-deployed Qdrant listens on all network interfaces and has no authentication, so the n8n connection should use a key that is scoped as narrowly as your version of Qdrant allows, with a read-only key for retrieval workflows and a separate write-capable key for insert workflows. Qdrant's API keys and per-collection JWT permissions are the controls that limit what the n8n credential can reach, and TLS protects the traffic between the two services. Decide where n8n sits relative to Qdrant: a private network path, a shared Kubernetes namespace or a restricted security group are all ways to keep the Qdrant port off the public internet. Ask your team to test that the Qdrant port is unreachable from outside the intended network.
Plan for credentials and workflow access as well. n8n stores credentials in its database and encrypts them with the instance encryption key, and in queue mode that key must be shared with every worker and webhook processor, so anyone who can open the workflow editor or export credentials can reach Qdrant with the key. Give the Qdrant key only to the workflows that need it, rotate it when people or workflows change, and record which n8n users can create or edit credentials. For metadata filters and agent tool calls, test the workflow with a sample of real queries before release, since a poorly scoped filter or an overly broad tool can return data the requesting user should not see.
What you need running before you add the Qdrant node
The n8n Qdrant Vector Store node only works once both services are running, reachable from each other, and set up in a way your security and compliance teams can review. The cards below cover the storage, licensing, access and network decisions to settle before you open the node settings.
Qdrant on block storage
Qdrant needs block-level storage with a POSIX-compatible file system, so it cannot run on NFS or on object storage such as S3. Confirm the volume type before installing, because a Qdrant container placed on a network share can appear to work until data durability or performance becomes a problem. SSD or NVMe drives are the recommended choice. Check the storage rules in the installation docs for your chosen deployment path.
Qdrant installation docsSelf-hosted n8n license check
n8n is licensed under the Sustainable Use License, which permits use for your own internal business purposes but not as a commercial hosted service for others. Any file with .ee in its name or directory requires a valid n8n Enterprise License. Before you build workflows, confirm with your legal or procurement team which edition and features your organization is allowed to run, and whether SSO or multi-main high availability depends on a paid plan.
Qdrant API key and TLS decisions
A default self-deployed Qdrant listens on all network interfaces with no authentication configured. Decide before the first workflow runs which API key the n8n credential will use, whether it is an admin or read-only key, and whether traffic between n8n and Qdrant is encrypted with TLS. Store the key in n8n's credential store, not in workflow notes, and plan how you will rotate it.
Qdrant security docsPrivate network route between services
n8n must reach the Qdrant REST or gRPC port, and nothing outside your network should reach Qdrant directly. Place both services on a private subnet or Docker network, and restrict Qdrant's port to the n8n host or service. Confirm the URL the n8n node will use, including the port and protocol, and test it from the n8n container, because localhost inside one container points to that container, not to Qdrant.
n8n encryption key and storage
n8n encrypts stored credentials, including the Qdrant API key, with an encryption key held by the main instance. Back up that key alongside the n8n database, since losing it makes stored credentials unreadable. If you run queue mode, every worker and webhook processor must share the same key. Record where the key lives and who can read it.
Single-node or clustered Qdrant
A single Qdrant node is enough to test the integration, but production clusters are recommended to run at least three nodes so quorum survives a node failure. Decide the topology before you create collections, because the node's collection setup and replication factor affect how the n8n node writes and reads. Ask your platform team which deployment path and replica count they will support.
Distributed deployment docsWhere n8n, Qdrant and the embedding model sit in your network
The diagram starts with a trigger, such as a webhook or a chat message to an AI agent, which calls n8n inside the internal network. n8n makes two outbound calls: one to the embedding model to turn text into vectors, and one to Qdrant over REST or gRPC, authenticated with an API key. Qdrant sits inside the boundary and is not exposed publicly. In queue mode, worker processes make the same Qdrant calls, so every caller should be checked against the same key and network rules. Confirm which embedding endpoint your workflows reach and that nothing else can reach Qdrant directly.
Callers reach Qdrant only through the internal network, with API key authentication.
Configuring the Qdrant Vector Store node step by step
This sequence takes you from a reachable, authenticated Qdrant server to an n8n agent that retrieves answers from your own collection, with a check at each stage so faults are caught before the next step depends on them.
Confirm the Qdrant server is reachable and secured
Before touching n8n, confirm your Qdrant instance is running inside your network with an API key set, since self-deployed Qdrant ships without authentication and listens on all interfaces by default. Your platform or security team does this on the Qdrant host, and it should be done with the Qdrant security settings reviewed first. You know it is done when a request to the REST port without a key is rejected and the same request with the key returns the collection list from a machine on the same network path n8n will use.
Create the Qdrant credential in n8n
In n8n, open the credentials panel and create a Qdrant API credential. Enter the URL of your Qdrant server as your network team defines it, which should be an internal address rather than a public one, and paste the API key your Qdrant administrator issued. Keep the admin key out of workflows that only read data, and use a read-only key where the agent only retrieves. You know it is done when the credential's connection test succeeds. If it fails, check the URL port, the scheme, and whether the key matches the one your Qdrant host accepts.
Create or confirm the collection and vector size
Confirm a collection exists with a vector size equal to the output dimension of the embedding model you will use for both inserts and queries. Mismatched dimensions are the most common cause of failed inserts or empty retrieval. Your data team or the Qdrant administrator creates the collection through the Qdrant API or the dashboard, and the distance metric should match the one your embedding model documents. You know it is done when the collection's info call returns the expected vector size and a point count of zero for a new collection.
Build and run the insert workflow
Create a workflow that reads source content, generates embeddings with your chosen model node, and passes them to the Qdrant Vector Store node set to insert mode. Map the document text and metadata fields you want to filter on into the payload, and keep the metadata keys consistent because filters depend on exact names. Run it with a small sample of documents, not the full dataset. You know it is done when the collection's point count rises by the number of sample documents and a stored point shows the expected payload fields.
Build and test the retrieve workflow
Create a second workflow that uses the Qdrant Vector Store node in retrieve mode, connected to the same embedding model used for inserts. Send a test question, and if you need to limit results to one customer, team, or document type, set a metadata filter on the payload key you defined in the insert step. You know it is done when the test returns the expected number of results and each result's payload matches the document you know should answer the question. If results are off, confirm the embedding model and the filter key names first.
Attach the node to an AI agent as a tool
In an AI agent workflow, connect the Qdrant Vector Store node as a tool the agent can call, and write a tool description that tells the model what the collection contains and when to use it. Keep the tool limited to the retrieve operation, not inserts, unless the agent is meant to write. Confirm the n8n edition and plan you run supports the features your team needs by checking n8n's pricing and license terms before rollout. You know it is done when the agent answers a question that needs your collection and its execution log shows the tool call and returned payloads.
Verify network paths and access before go-live
Confirm that n8n and Qdrant talk over a private network path, that the Qdrant port is closed to other networks, and that n8n's own access to workflows and credentials is restricted to the staff who need it. If you run n8n in queue mode, the encryption key must be shared with worker and webhook processors so they can read stored credentials, so verify that step too. You know it is done when a scan from outside the internal network cannot reach the Qdrant port and each workflow runs successfully from a worker process.
Using metadata filters so retrieval returns only permitted content
Metadata filters decide which stored vectors a retrieval step can see, so the payload fields you write at insert time become the filter keys you query on later. In the n8n Qdrant Vector Store node, metadata attached to each document during insert is stored as Qdrant payload, and a retrieve step can then narrow the search with conditions on those same keys, such as a tenant identifier, a department, a classification label or a document owner. Decide these field names, their types and their allowed values before the first load. A field that was never written cannot be filtered, and a field written under an inconsistent name, such as Department in one workflow and dept in another, will silently split your data. Plan one naming convention for the whole deployment and document it next to your collection design.
The workflow is where user or tenant constraints enter the query. An n8n workflow receives the caller's identity from a trigger, a webhook or an upstream authentication step, maps it to the permitted values, and passes those values into the retrieval node's filter configuration, typically as an expression built from trusted data rather than from free text typed by the user. Confirm in the n8n version you run how the node exposes filter parameters, whether they accept expressions, and how an empty or missing value behaves, because a filter that silently drops when a value is absent can return more content than intended. Test each case with a known identity: a permitted user, a user from another tenant and a request with no identity. Also confirm what happens when the AI agent tool calls the store, since the model can supply tool arguments, so the permitted values should be fixed by the workflow and not left to the model.
Filters are a relevance and scoping control, not a security boundary. Anyone who holds a Qdrant API key with access to the collection can search without the n8n filter, and a misconfigured workflow can omit the filter entirely. Enforce the boundary in Qdrant itself with per-collection read permissions, a read-only key for the retrieval workflow and separate credentials for insert, as described in the Qdrant security documentation, and keep the n8n workflow's credential scoped to what it needs. For multi-tenant data, consider whether separate collections or shards suit your isolation requirement better than payload filters alone, and have your security team review that choice. Finally, add a retest of the filters to your change process whenever a workflow, node version or payload schema changes.
Mapping n8n fields to Qdrant collections, vectors and payloads
This table maps each n8n item field to the Qdrant concept it fills, who decides it, and what to confirm in the node documentation before the first insert. Read it as a checklist: a mismatch in vector size or distance metric is the most common reason retrieval silently returns poor results, and metadata keys must be settled before filters are written.
| Qdrant element | What n8n supplies | Decision owner | What to confirm |
|---|---|---|---|
| Collection name | A fixed collection name set in the Qdrant Vector Store node, not built from user input | Platform owner with the data owner | The collection exists or the node is allowed to create it, and one collection serves one embedding model |
| Point ID | A unique ID per chunk, such as a hash of source document and chunk position | Workflow author | Re-running the workflow overwrites the same IDs instead of creating duplicates |
| Vector | Embedding output from the connected embeddings node, passed as the vector for each item | Architect choosing the embedding model | The vector length equals the size set when the collection was created |
| Vector size | Fixed by the embedding model's output dimension, not chosen in n8n | Architect and model owner | The dimension documented by the model matches the collection config before any insert |
| Distance metric | Set on the collection, not per item in the workflow | Architect and search owner | The metric matches what the embedding model recommends, and is the same across all inserts and queries |
| Payload text | The chunk text, stored as a payload key so retrieval can return readable content | Workflow author and privacy reviewer | Whether chunk text is allowed to sit in the vector store under your data classification rules |
| Payload metadata keys | Source, owner, department, classification, and date fields mapped from the input item | Data owner and security team | Key names are lowercase and stable, and each filter in the agent or retrieval step uses the same names |
| Access scope | Not set by n8n; enforced by Qdrant API keys or JWT per-collection permissions | Security team | The n8n credential has only the permissions its insert or retrieve mode needs |
Keeping n8n, credentials and Qdrant inside your network
An n8n workflow that writes to or retrieves from Qdrant holds two sets of secrets: n8n's stored credentials and the Qdrant API keys it uses. The controls below cover how each service is reached, who can read what, and where traffic and logs stay. Check each one on both sides of the connection before workflows go live.
Scoped Qdrant keys for retrieval
Create a read-only API key for workflows that only retrieve, and reserve the admin key for the team that manages collections. A retrieval-only workflow stored with an admin key can delete or overwrite vectors if a node is misconfigured or a workflow is copied. Use a separate key per workflow or environment so you can rotate one without breaking the others. Confirm the key types your Qdrant version supports before you design the split.
Qdrant security docsPer-collection JWT permissions
JWT-based access control lets you grant read or write permissions per collection, so an insert workflow can reach only the collection it feeds. This matters when one Qdrant cluster serves several n8n workflows or other applications. Confirm that the Qdrant version you run supports this feature and that the n8n Qdrant node accepts the token configuration you need. Test a denied collection request before you rely on the boundary.
- JWT access control
- v1.9.0
TLS between n8n and Qdrant
Qdrant supports TLS for both REST and gRPC, and n8n sends its API key with every request. Without TLS, the key and the vectors and payloads cross the network in cleartext. Confirm which protocol and port the n8n Qdrant node uses, then configure the certificate chain so n8n trusts your internal certificate authority. Keep certificate renewal on a schedule that covers both services.
- TLS support added
- v1.2.0
Qdrant listen addresses and firewall rules
A self-deployed Qdrant listens on all network interfaces and has no authentication until you configure it. Bind the service to the private interface that n8n uses, and allow only the n8n host or subnet to reach the Qdrant ports through host and network firewall rules. Keep the dashboard and admin paths off any route that n8n webhooks or other public services can reach. Verify the result from outside the allowed network with a port scan.
Encryption key sharing in queue mode
n8n stores credentials encrypted with a key from the main instance. In queue mode, every worker and webhook processor must receive the same encryption key, or workers cannot read the Qdrant credential and executions fail. Store the key in your secrets manager, inject it into each process, and record where each copy lives. Changing the key later makes existing stored credentials unreadable unless you plan the migration first.
n8n queue mode docsAudit logging on the Qdrant side
Qdrant can write JSON audit logs of authenticated API operations, which records who wrote, read or deleted vectors through a given key. Send these logs to your central log platform and link each entry to the n8n workflow that owns the key. Review them for unexpected deletes or collection changes, and confirm retention meets your policy. Logs from n8n execution history cover the workflow side, so compare both sources during an investigation.
- Audit logging added
- v1.17.0
Testing inserts, retrieval quality and failure handling before go-live
Before go-live, test the three things that fail quietly in this setup: whether inserts land in the right collection with the right payload, whether retrieval returns the documents a person would expect, and whether a Qdrant outage stops the workflow visibly instead of letting the agent answer from nothing. Build a test set of known documents with expected results. Load a small, labeled corpus into a dedicated test collection, then run fixed queries through the Qdrant Vector Store node in retrieve mode and record which document IDs come back and in what order. Include queries with no correct answer, because a retrieval step that always returns something will otherwise look healthy. Repeat the same run after each change to the embedding model, chunk size or collection settings, and keep the results so you can see when quality moves.
Next, check filter behavior with users who should and should not see records. If your workflow passes metadata filters from a chat user or a webhook payload, run the same query as at least one user from each access group, plus one user with no group, and confirm that restricted payload values never appear in the output. Test the boundary values as well: missing metadata fields, empty strings and mixed-case tenant names. Remember that the n8n workflow enforces this filter only as far as the workflow builds it. The Qdrant API key or JWT permissions you set on the Qdrant side, as described in the Qdrant security documentation, are the control that holds if a workflow change drops the filter, so test that a key scoped for read-only access cannot write or delete records.
Then test agent tool calls with adversarial prompts. When the vector store runs as a tool for an AI agent, send instructions that try to make it search outside its scope, reveal filter values, insert or overwrite records, or pass a different collection name. Log each tool call and its parameters, and confirm the agent cannot change the collection or filter fields that the workflow sets. Finally, verify that a Qdrant outage produces a visible workflow failure. Stop the Qdrant service in a test environment, run a chat and a scheduled insert, and confirm that the execution is marked as failed in n8n and that an alert reaches an owner. An agent that answers without retrieved context after a silent failure is a defect. Confirm the exact error handling behavior of your n8n version in its release notes before relying on it.
Why the n8n Qdrant connection fails and how to fix it
This table lists the failures teams most often hit when an n8n Qdrant Vector Store node talks to a self-hosted Qdrant server, with the likely cause and the fix for each. Read each row against the symptom you see in the node output or the n8n execution log, then work through the checks in order.
| Failure | Likely cause | Fix |
|---|---|---|
| Authentication error (401 or 403) | The API key credential is missing, mistyped or was created as a read-only key, and Qdrant does not authenticate by default | Set an API key on the Qdrant server, enter the same key in the n8n Qdrant credential, and use an admin key for insert and a read-only key only where retrieve is enough |
| Dimension mismatch on insert or search | The embedding model output size differs from the vector size the collection was created with | Recreate the collection with the embedding model's dimension, or switch the embedding node to the model that produced the original vectors |
| Empty results from a metadata filter | The payload key in the filter does not match the key written during insert, often through a case or nesting difference | Inspect a stored point in Qdrant, copy the exact payload key path, and create a payload index on fields you filter by |
| Connection refused | Qdrant listens on all interfaces by default, but the host, port or container network in the credential points elsewhere, or a firewall blocks the REST or gRPC port | Confirm the URL and port from the n8n container, check the Qdrant listen address and published ports, and open only the port n8n uses |
| TLS certificate trust error | Qdrant serves TLS with a certificate issued by a private CA that the n8n runtime does not trust | Add the private CA certificate to the n8n container trust store, then retest the credential before rebuilding workflows |
| Credentials fail after an encryption key change in queue mode | Workers or webhook processors use a different n8n encryption key than the main instance, so stored credentials cannot be decrypted | Set the same encryption key on the main instance and every worker and webhook processor, then restart them and retest each credential |
Questions teams ask before connecting n8n to self-hosted Qdrant
How much does it cost to connect n8n to self-hosted Qdrant?
The Qdrant engine is free to self-host under the Apache-2.0 license, and the n8n Community edition is free to self-host, so software licenses for a basic setup are zero. The real costs are the servers or cloud accounts that run both services, the time to configure credentials, embeddings and filters, and the testing that proves the workflows behave correctly. Infrastructure recurs every month, while configuration and testing are mostly one-time work that repeats when you change a workflow or upgrade. Ask any quote to itemize hosts, storage, backups, configuration hours and test effort separately, so you can see what each component buys.
Can our own team connect n8n to a self-hosted Qdrant alone?
A team with container, network and secrets experience can usually build a working connection alone, because the n8n Qdrant Vector Store node is configured with a URL, a collection and an API key credential. The harder parts are sizing the Qdrant host, keeping the API key and TLS settings correct, choosing an embedding model that matches the collection, and designing metadata filters that reflect your access rules. Teams without those skills, or without time to test retrieval quality, often bring in a partner for scoped help. Either way, confirm your own skills against the Qdrant security and installation docs before you commit.
What does the work need from our team?
Plan to provide three things before work starts:
- A host for Qdrant that meets the storage rules in the installation docs, with block storage and no network file system or object storage for the data directory.
- An n8n instance, with a decision on whether it runs in queue mode and where the encryption key is kept.
- A named owner for embeddings and metadata filters, who decides which embedding model is used, which payload fields exist, and who may see which records.
You will also need someone who can approve network rules that keep both services off the public internet.
Does the n8n Sustainable Use License allow internal business use?
Yes, the Sustainable Use License allows use or modification for your own internal business purposes, along with non-commercial and personal use. It does not allow you to offer n8n as a hosted service to outside customers or to distribute it free of charge for commercial purposes. Files with .ee in their name or directory fall outside that license and require a valid n8n Enterprise License. Have counsel read the license text in the n8n LICENSE.md file before you embed n8n in a product or customer-facing service.
When do n8n Business or Enterprise features matter for a Qdrant workflow?
The Community edition covers workflows that use the Qdrant node, but some features only appear in higher plans. SAML single sign-on, environments with Git and log streaming are included only in the Business and Enterprise plans, according to the n8n pricing page. Multi-main high availability is limited to Enterprise self-hosted deployments. If your security team requires SSO for workflow editors, audit-grade log export or an HA control plane, price those plans against your requirement. Confirm current plan terms directly with n8n, since pricing pages change.
How long does it take to connect n8n to self-hosted Qdrant?
Duration depends on scope: the number of collections, the number of workflows that read or write vectors, whether you run queue mode or multiple Qdrant nodes, how many source systems feed the store, and how much retrieval testing is required. A single collection with one insert workflow and one agent tool is a much smaller job than several collections with metadata filters, TLS and an audit trail. No fixed duration applies to all setups. Ask for a written scope and timeline that lists each collection, workflow and test before accepting any date.
What breaks most often when n8n writes to or reads from Qdrant?
The most common failures come from configuration rather than the nodes themselves. Qdrant listens on all interfaces with no authentication by default, so an unsecured instance is easy to reach. Other frequent problems include a collection created with the wrong vector size for the embedding model, metadata filters that reference payload fields never indexed or populated, and queue-mode workers missing the shared encryption key, which stops them reading stored credentials. Check each of these during build, and test retrieval results against known documents.
How DeployOpen scopes and delivers this integration
DeployOpen starts with a written scope agreed with your team before any work begins. For this integration, that scope names the Qdrant deployment being connected (its version, topology and storage), the n8n edition and hosting model, the collections n8n will read and write, the workflows in question, and the identity and network boundaries both services must respect. Most engagements are fixed-scope, so the deliverables and timeline are fixed in writing before the build starts, and the quote follows from that document. The decisions that most affect cost are the number of collections and workflows, whether n8n runs in queue mode, and whether the Qdrant cluster already exists or must be built first.
On the Qdrant side, DeployOpen works in your infrastructure to put the server behind an access model before n8n connects to it. That typically means creating admin and read-only API keys, enabling TLS, restricting network exposure, and deciding which n8n workflows need write access at all. On the n8n side, the work covers creating the Qdrant credential, storing the API key and encryption key in the locations your policy requires, wiring the Vector Store node into insert and retrieve workflows, and checking that AI agent tool calls cannot reach collections they should not. Where n8n runs in queue mode, the shared encryption key and worker placement are included in the design.
Testing is part of delivery, not a final step. DeployOpen checks that metadata filters return only the records a given workflow or user should see, that read-only credentials fail on writes, that unauthenticated requests are rejected, and that credentials do not appear in workflow exports or logs. Findings are fixed and the affected checks are repeated. After handover, a retainer can cover Qdrant and n8n upgrades, which must be sequenced with the client SDK and node versions, periodic access reviews and re-testing after workflow changes. Ask any partner, DeployOpen included, to confirm in writing which of these tasks sit in the fixed scope and which recur under a retainer.

