n8n-deployment

n8n-deployment is a skill for Claude Code, Codex from anatolykoptev/n8n-mcp-agent. It costs 34 tokens per session (2,613 once invoked), scanned A, original, MIT.

A deployment guide for n8n, a tool for building and running automated workflows. It covers production setup, scaling, queue mode, and database configuration.

In plain words
What is it for?
Use it when deploying n8n for production, configuring Redis queue workers and PostgreSQL, or planning higher availability.
Why use it?
It helps avoid using n8n’s single-process development setup for production workloads and explains the components needed to scale it.

Skill for Claude CodeCodex

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

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is file: ./secrets/db_password.txt.

Good fit Use it when deploying n8n for production, configuring Redis queue workers and PostgreSQL, or planning higher availability.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/anatolykoptev/n8n-mcp-agent
agentmods
npx agentmods add skills/anatolykoptev/n8n-mcp-agent/n8n-deployment

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/anatolykoptev/n8n-mcp-agent/n8n-deployment/github.svg)](https://agentmods.dev/skills/anatolykoptev/n8n-mcp-agent/n8n-deployment)
Your own site
<a href="https://agentmods.dev/skills/anatolykoptev/n8n-mcp-agent/n8n-deployment"><img src="https://agentmods.dev/badge/skills/anatolykoptev/n8n-mcp-agent/n8n-deployment/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-deployment

Your own site · 80×15
<a href="https://agentmods.dev/skills/anatolykoptev/n8n-mcp-agent/n8n-deployment"><img src="https://agentmods.dev/badge/skills/anatolykoptev/n8n-mcp-agent/n8n-deployment.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,613 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found 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.00034 $0.02613
Opus 5 $0.00017 $0.01307
Sonnet 5 $0.00007 $0.00523
Haiku 4.5 $0.00003 $0.00261

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

Security

Grade A, and why

n8n-deployment scanned grade A with 0 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 11d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/n8n-deployment/SKILL.md · 440 lines

How it starts

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

n8n Deployment Skill

This skill provides production deployment and scaling guidance for n8n.

Deployment Modes

Default Mode (Development Only)

  • Single process
  • SQLite database
  • Not suitable for production
  • Limited scalability

Queue Mode (Production)

  • Multiple workers via Redis
  • PostgreSQL database
  • Horizontal scaling
  • High availability

Queue Mode Setup

Architecture

                    ┌─────────────┐
                    │   Redis     │
                    │   (Queue)   │
                    └──────┬──────┘
                           │
┌─────────────┐     ┌──────┴──────┐     ┌─────────────┐
│   Main      │────▶│   Queue     │────▶│  Worker 1   │
│  Instance   │     │             │     └─────────────┘
│ (Triggers)  │     │             │────▶│  Worker 2   │
└─────────────┘     │             │     └─────────────┘
                    │             │────▶│  Worker N   │
                    └─────────────┘     └─────────────┘
                           │
                    ┌──────┴──────┐
                    │ PostgreSQL  │
                    │ (Database)  │
                    └─────────────┘

How It Works

  1. Main instance handles triggers (webhooks, schedules)
  2. Main instance generates execution ID, pushes to Redis
  3. Worker picks up job from Redis queue
  4. Worker fetches workflow from PostgreSQL
  5. Worker executes workflow
  6. Worker writes results to PostgreSQL
  7. Worker notifies Redis of completion

Environment Configuration

Main Instance:

# Execution mode
EXECUTIONS_MODE=queue

# Database (PostgreSQL required)
DB_TYPE=postgresdb
DB_POSTGRESDB_HOST=postgres
DB_POSTGRESDB_PORT=5432
DB_POSTGRESDB_DATABASE=n8n
DB_POSTGRESDB_USER=n8n
DB_POSTGRESDB_PASSWORD_FILE=/run/secrets/db_password

# Redis
QUEUE_BULL_REDIS_HOST=redis
QUEUE_BULL_REDIS_PORT=6379

# Main instance settings
N8N_RUNNERS_ENABLED=true

Worker Instance:

# Same database and Redis config as main
EXECUTIONS_MODE=queue
DB_TYPE=postgresdb
# ... same DB config ...

# Worker-specific
N8N_DISABLE_UI=true
N8N_LISTEN_ADDRESS=0.0.0.0

Read the full file on GitHub · 440 lines

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. 11d ago First seen · 440 lines · 34 tokens per session scan A f29f0781bbc7

Subscribe to this mod's changes

n8n-deployment is a skill published in the GitHub repository anatolykoptev/n8n-mcp-agent (0 stars, last pushed 6mo ago), licensed MIT. It adds 34 tokens to every session and 2,613 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

n8n-mcp-tools-expert

Expert guide for using n8n-mcp MCP tools effectively. Use when searching for nodes, validating configurations, accessing templates, managing workflows, organizing workflows into folders, managing credentials, auditing instance security, or using any n8n-mcp tool. Provides tool selection guidance, parameter formats…

czlonkowski/n8n-mcp · 135 tokens

n8n-agents

Design n8n AI agents the right way. Use when building or editing any @n8n/n8n-nodes-langchain. AI node — an AI Agent, LLM chain, Text Classifier, or Information Extractor — and whenever the user mentions AI agents, LLM with tools, tool calling, $fromAI, system prompts, agent memory, sessionId, structured/JSON output…

czlonkowski/n8n-mcp · 156 tokens

n8n-code-tool

Write JavaScript or Python for the n8n Custom Code Tool (@n8n/n8n-nodes-langchain.toolCode) — the AI-agent-callable tool, NOT the workflow Code node. Use when building a Code Tool attached to an AI Agent, writing code that an LLM will invoke, parsing the query input, returning a string result, defining an input schema…

czlonkowski/n8n-mcp · 221 tokens

n8n-error-handling

Wire n8n error handling so failures are loud, structured, and recoverable. Use when building any webhook/API workflow, a scheduled or unattended workflow, or any path where a silent failure would drop user-visible work — and whenever the user mentions error handling, onError, continueErrorOutput, error…

czlonkowski/n8n-mcp · 128 tokens

n8n-expression-syntax

Validate n8n expression syntax and fix common errors. Use when writing n8n expressions, using {{}} syntax, accessing $json/$node variables, troubleshooting expression errors, mapping data between nodes, or referencing webhook data in workflows. Use this skill whenever configuring node fields that reference data from…

czlonkowski/n8n-mcp · 104 tokens

n8n-node-configuration

Operation-aware node configuration guidance. Use when configuring nodes, understanding property dependencies, determining required fields, choosing between getnode detail levels, or learning common configuration patterns by node type. Always use this skill when setting up node parameters — it explains which fields are…

czlonkowski/n8n-mcp · 84 tokens