To self-host n8n means running the n8n workflow automation software on a server you control, in a European data centre of your choice, instead of using the vendor’s cloud service. It makes sense for GDPR when your workflows move personal or confidential data and you want to decide exactly where it is stored, who can reach it and how long logs are kept, and you have the skills to run and secure a server. This guide explains when self-hosting is the right call, the steps to set it up properly, how long it takes and the mistakes that undo the privacy benefit.
Last updated: 29 November 2026.
What is n8n and what does self-hosting change?
n8n is a workflow automation tool: you connect apps and services with visual workflows, such as “when a form is submitted, create a contact in the CRM, send a welcome email and post a note to the sales channel”. It can call APIs, transform data, run code steps and, increasingly, call AI models as part of a workflow.
You can use it in two ways:
- n8n Cloud: the vendor runs the software for you.
- Self-hosted: you install n8n on your own server or cloud account, using the official n8n hosting documentation, and run it yourself.
Self-hosting changes who is in control of the infrastructure. The data your workflows handle, the execution logs and the stored credentials sit on a machine you choose and manage. That control is the GDPR argument, but it comes with the duty to secure and maintain the machine.
At Odduel, a creative and technology agency in Barcelona and São Paulo, we design and run automation as part of our AI development service, and self-hosted n8n is one of the options we weigh with clients.
In short: self-host n8n when workflows carry personal or sensitive data, when you need full control of location and logs, or when policy requires it, and when someone will patch, back up and monitor the server. Otherwise a managed service with a proper data processing agreement may be the safer choice.
Does self-hosting make n8n GDPR compliant?
No tool is compliant on its own; compliance depends on how you process personal data. The General Data Protection Regulation asks for a lawful basis, data minimisation, appropriate security (Article 32), records of processing and care with transfers outside the European Economic Area.
Self-hosting helps with some of these:
- Location: you choose the data centre and can keep data within the EU.
- Fewer processors: one less third party handling the workflow data itself.
- Retention: you decide how long execution data and logs are kept, and can switch off storing successful runs.
- Access: you control who can log in, from where, and how.
It does not remove other obligations. Every service a workflow connects to (a CRM, an email platform, an AI model API) is still a processor or recipient of the data, with its own location and terms. And a self-hosted server that is badly secured is a greater risk than a well-run managed service.
When does it make sense to self-host n8n?
| Situation | Self-host | Managed cloud |
|---|---|---|
| Workflows carry health, financial, HR or other sensitive data | Strong fit, with proper security | Possible with a suitable agreement; check location and logs |
| Company policy or a client contract requires data on own infrastructure | Usually required | Often not acceptable |
| Need to reach internal systems not exposed to the internet | Strong fit (runs on your own infrastructure) | Needs tunnels or exposed endpoints |
| No one in-house can run a server | Only with a partner who maintains it | Strong fit |
| A few simple workflows with low-risk data | Often more effort than it is worth | Strong fit |
| High volumes of executions | Can be cost-effective with the right set-up | Depends on plan limits |
A clear sign in favour of self-hosting is the need to connect to systems that never leave your own infrastructure, such as an on-premises ERP or a database that should never face the internet. A clear sign against is the absence of anyone who will apply updates within days of a security release.
Can a small business self-host n8n?
Yes, and many do, but the work is the same whatever the size of the company: a server, updates, backups and monitoring. For a small business the question is less “can we install it?” and more “who looks after it on a Tuesday in August?”. If the answer is nobody, choose a managed service or a partner who runs the instance for you under a maintenance agreement.
What are the steps to self-host n8n for GDPR?
- Map the data. List the workflows you plan, the personal data each touches and the services it sends data to. This becomes part of your record of processing.
- Choose the hosting. A virtual server or container platform in an EU data centre, from a provider that offers a data processing agreement.
- Install with containers. Run n8n with Docker or a similar method as described in the official documentation, with a production database rather than the default lightweight storage.
- Put it behind HTTPS. A reverse proxy with a valid certificate; never expose the editor over plain HTTP.
- Lock down access. Strong individual accounts, two-factor authentication where available, and the editor reachable only from a VPN or allowed addresses.
- Protect credentials. Set your own encryption key for stored credentials and keep it safe outside the server; without it, backups cannot be restored.
- Set retention. Limit how long execution data is kept and avoid saving full data for successful runs unless you need it.
- Back up and test. Automated backups of the database and configuration, stored elsewhere, with a restore test.
- Monitor and log. Uptime checks, error alerts on failed workflows and access logs reviewed regularly.
- Plan updates. A schedule for applying n8n and operating system updates, tested on a staging copy first.
- Document it. Architecture, access list, workflows and the processors each one uses.
How long does it usually take to self-host n8n?
A basic installation on a fresh server can be running in a day. A production-ready, documented set-up with HTTPS, restricted access, a proper database, backups, monitoring and a staging copy usually takes a few days of focused work, plus time to map data and update your records of processing. The ongoing work is the larger commitment: regular updates, backup checks and reviewing failed runs every week.
How does AI fit into self-hosted automation?
Many teams now add AI steps to workflows: classifying incoming emails, summarising documents, drafting replies. Here self-hosting n8n alone does not keep data in your control, because the text is sent to whichever model API the workflow calls. To keep the privacy benefit:
- Send the model only the data the task needs, removing names and identifiers where possible.
- Choose model providers with EU data processing options and a data processing agreement, and check whether inputs are used for training.
- Consider running an open model on your own infrastructure for the most sensitive data.
- Log which workflows send what to which model, as part of your records.
Our guide to AI integration for business covers how to choose where AI fits, and how to start an AI project explains the first steps before any build.
What are the most common mistakes?
- Exposing the editor to the internet with only a password, or over plain HTTP.
- Losing the encryption key, which makes stored credentials and backups unusable.
- Keeping every execution forever, turning the database into an unplanned archive of personal data.
- Using the default lightweight database for production workloads.
- Never updating, so known security issues stay open.
- Forgetting the connected services: the CRM or AI API still receives the data, with its own location and terms.
- Sharing one admin account across the team.
- No owner: nobody notices when workflows fail quietly.
What does the licence allow?
n8n is distributed under its own fair-code licence, which allows self-hosting for a company’s internal business use; some uses, such as offering n8n as a hosted service to others, and some enterprise features need a commercial licence. Read the current licence terms in the official documentation before you build a product or client service on top of it.
Questions people ask
What are the steps to self-host n8n?
Map the personal data your workflows will handle, choose an EU server with a data processing agreement, install n8n with containers and a production database, put it behind HTTPS, restrict access, set an encryption key, limit execution data retention, automate and test backups, add monitoring, plan updates and document the set-up.
How long does it take to self-host n8n?
A basic installation can run within a day. A production-ready set-up with HTTPS, restricted access, a proper database, backups, monitoring and documentation usually takes a few days of focused work. The ongoing effort matters more: applying updates promptly, checking backups and reviewing failed workflows every week for as long as it runs.
Is self-hosted n8n automatically GDPR compliant?
No. Self-hosting gives you control over where data is stored, who can access it and how long logs are kept, which helps. Compliance still depends on a lawful basis, data minimisation, security, records of processing and the terms of every service your workflows send data to, including CRMs, email platforms and AI model providers.
What are the most common mistakes when self-hosting n8n?
Common mistakes are exposing the editor to the internet with weak protection, losing the encryption key for stored credentials, keeping every execution indefinitely, running production on the default lightweight database, skipping updates, sharing one admin account and forgetting that connected services still receive the data under their own terms.
Should a small business self-host n8n or use the cloud version?
Self-host if your workflows carry sensitive data, must reach internal systems or must stay on your own infrastructure, and someone will maintain the server. If nobody can apply updates and check backups regularly, a managed service with a data processing agreement, or a partner who runs the instance, is usually safer.
List the workflows you want to automate and the personal data each one touches; that list decides whether self-hosting is worth it. If you would like help designing, hosting or maintaining automation with privacy built in, see our AI development service or tell us about your workflows.


