n8n-self-hosting

n8n-self-hosting is a skill for Claude Code, Codex from PCT-BR/n8n-mcp. It costs 237 tokens per session (2,612 once invoked), scanned B, a copy of n8n-self-hosting, MIT.

A deployment guide for running n8n on your own Linux server instead of using n8n Cloud. It uses Docker Compose, Caddy, and automatic HTTPS, with separate setups for regular and high-volume use.

In plain words
What is it for?
Installing and deploying self-hosted n8n on a virtual private server or other Linux machine over SSH.
Why use it?
It provides an end-to-end path from a fresh server to a secured n8n installation and helps choose between a simple setup and a worker-based setup.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Installing and deploying self-hosted n8n on a virtual private server or other Linux machine over SSH.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pct-br/n8n-mcp/n8n-self-hosting
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add PCT-BR/n8n-mcp --skill n8n-self-hosting
Clone the repo
git clone --depth 1 https://github.com/PCT-BR/n8n-mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for n8n-self-hosting

README.md
[![agentmods](https://agentmods.dev/badge/skills/pct-br/n8n-mcp/n8n-self-hosting/github.svg)](https://agentmods.dev/skills/pct-br/n8n-mcp/n8n-self-hosting)
Your own site
<a href="https://agentmods.dev/skills/pct-br/n8n-mcp/n8n-self-hosting"><img src="https://agentmods.dev/badge/skills/pct-br/n8n-mcp/n8n-self-hosting/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for n8n-self-hosting

Your own site · 80×15
<a href="https://agentmods.dev/skills/pct-br/n8n-mcp/n8n-self-hosting"><img src="https://agentmods.dev/badge/skills/pct-br/n8n-mcp/n8n-self-hosting.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 237 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,612 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 83% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00237 $0.02612
Opus 5 $0.00118 $0.01306
Sonnet 5 $0.00047 $0.00522
Haiku 4.5 $0.00024 $0.00261

Measured 10d ago against content hash 71f9bc7fc8fe, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade B, and why

n8n-self-hosting scanned grade B with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

This skill takes a **fresh Linux VM** (Ubuntu/Debian, root or sudo SSH) to a **running,

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- **DNS must already point at the box.** Compare the box's public IP (`curl -s ifconfig.me`)
Origin

This is a copy

83% identical to n8n-self-hosting — 36 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

data/skills/n8n-self-hosting/SKILL.md · 149 lines

How it starts

The opening of the file, as written. The whole thing — 149 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Deploying self-hosted n8n

This skill takes a fresh Linux VM (Ubuntu/Debian, root or sudo SSH) to a running, HTTPS, production n8n via Docker Compose behind Caddy (automatic Let's Encrypt TLS). It is for self-hosted n8n on Docker — not n8n Cloud, and not for building workflows (that's the rest of this pack).

Two deployment modes. The architectures differ, so pick the mode before doing anything.

You drive this end-to-end over SSH: preflight → install Docker → lay down the project → generate secrets → launch → verify TLS → hand off. The template files live in assets/; the per-mode and security depth live in the reference files named below.

Rule 0 — choose the mode (ask the user)

Do not guess. Ask, then commit to one:

Single / regular Queue
Processes one n8n main + N workers
Extra services none (SQLite) Redis (queue) + Postgres (DB)
Executes workflows in the main process on workers, in parallel
Good for 1 user, light/moderate load, simplest ops high volume, heavy/long executions, horizontal scale
Compose assets/docker-compose.single.yml assets/docker-compose.queue.yml
Deep dive SINGLE_MODE.md QUEUE_MODE.md

If unsure, start single — it's the simplest correct thing and covers most needs. Moving to queue later means swapping the compose file and migrating SQLite→Postgres, so if the user already expects real volume, start queue.

Rule 1 — secret hygiene (non-negotiable)

A misstep here leaks client credentials. Be diligent:

  1. Generate every secret fresh, on the target box. Never copy an encryption key, DB password, or .env from another n8n instance into this one. See SECURITY.md for the openssl commands.
  2. Secrets live only in .env (mode 600), referenced by the compose as ${VAR}. Never inline a secret into docker-compose.yml, the Caddyfile, or anything you commit.
  3. The N8N_ENCRYPTION_KEY is sacred. It encrypts every stored credential. If it's lost or changes, all saved credentials become undecryptable. Set it explicitly, and tell the user to back it up off the box. Don't echo it into long-lived logs or chat history beyond what's needed to hand it over.
  4. Never expose internal services. Only Caddy (80/443) is public. n8n (5678), Postgres (5432), Redis (6379) stay on the private Docker network — the templates already omit their host port mappings. Don't add them.
  5. .env and Caddy's caddy_data volume (the issued certs + ACME account key) are not artifacts to share. If you're working inside a git repo, confirm .env is git-ignored before any commit.

Read the full file on GitHub · 149 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 149 lines · 237 tokens per session scan B 71f9bc7fc8fe

Subscribe to this mod's changes

n8n-self-hosting is a skill published in the GitHub repository PCT-BR/n8n-mcp (0 stars, last pushed 24d ago), licensed MIT. It adds 237 tokens to every session and 2,612 once invoked, about $0.0012 per session on Opus 5. A static security scan graded it B with 2 findings (asks for root, makes network calls). It is 83% identical to n8n-self-hosting, differing in 36 lines, and is treated as a copy.

Related

Other skills, from other repositories

azd-deployment

Deploy containerized frontend + backend applications to Azure Container Apps with remote builds, managed identity, and idempotent infrastructure.

sickn33/agentic-awesome-skills · 29 tokens

openshell-cli

Guide agents through using the OpenShell CLI (openshell) for sandbox management, gateway registration, provider configuration and refresh, policy iteration, settings, service exposure, BYOC workflows, and attached-provider inference. Covers basic through advanced multi-step workflows. Trigger keywords - openshell…

NVIDIA/OpenShell · 128 tokens

langbot-deploy

Deploy and configure a LangBot instance — Docker / Docker Compose, Kubernetes, the config.yaml model, the Box sandbox runtime, the plugin runtime, and the global API key. Use when installing, deploying, upgrading, or configuring LangBot in production or self-hosted environments. Triggers on "deploy langbot", "langbot…

langbot-app/LangBot · 104 tokens

compute-env-setup

Set up a compute environment on a remote provider so Claude Science jobs can run there. Covers direct SSH/conda hosts, Slurm clusters, container-via-bridge runners, and managed-API providers (Modal, GCP, RunPod). Use when standing up a new provider, porting an env to a different backend, adding a tool that needs its…

UnicomAI/wanwu · 134 tokens

azure-cloud-migrate

Assess and migrate cross-cloud workloads to Azure with reports and code conversion. Supports Lambda→Functions, Beanstalk/Heroku/App Engine→App Service, Fargate/Kubernetes/Cloud Run/Spring Boot→Container Apps. WHEN: migrate Lambda to Functions, AWS to Azure, migrate Beanstalk, migrate Heroku, migrate App Engine, Cloud…

microsoft/skills · 106 tokens

atmos-helmfile

Helmfile orchestration: sync/apply/destroy/diff, Kubernetes deployments, varfile generation, EKS integration, source management.

cloudposse/atmos · 33 tokens