# n8n Preflight

> n8n Preflight is an open-source MCP server for developer tools. Lints exported n8n workflow JSON for run failures, leaked secrets and template readiness. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/haechiwood/mcp-n8n-preflight
- **GitHub stars:** 0
- **License:** MIT
- **MCP Registry name:** io.github.haechiwood/n8n-preflight
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

Before an n8n workflow is imported, shared or submitted as a template, this server reads the exported JSON file and reports concrete problems, each with a suggested fix. It runs entirely offline: it parses files from one folder you designate and never executes the workflow or contacts an n8n instance.

Checks cover run-time pitfalls such as expressions that reference missing nodes, webhooks waiting for a Respond to Webhook node that does not exist, unconnected Loop Over Items outputs and HTTP requests without retries. A separate group flags material that should not leave your machine, including literal API keys and tokens, credential names, pinned execution data, email addresses and instance IDs. Findings mask matched values to their first few characters.

It is aimed at people who build or publish n8n automations and use an MCP-capable assistant such as Claude to review them. An optional write tool, disabled by default, can produce a sanitized copy after a preview and explicit confirmation. Because the checks are static, a clean result does not prove a workflow runs correctly.

## Features

- **Run-time failure detection:** Flags broken expressions, missing Respond to Webhook nodes and unconnected loop outputs before a workflow is run.
- **Secret and data leak scan:** Detects literal API keys, bearer tokens, credential identifiers, pinned data and email addresses in exported files.
- **Creator Hub template checks:** Validates overview notes, section notes and default node names against template guidelines.
- **Three lint profiles:** Choose run, share or template profiles depending on whether you are debugging, sharing or submitting.
- **Workflow summary:** Lists triggers, node count, external systems called, AI nodes and credential types without revealing values.
- **Optional sanitized copy:** Writes a cleaned copy of a workflow after a preview, only when write mode is enabled and confirmed.
- **Command-line mode:** Runs the same checks from a terminal or CI pipeline with exit codes for errors.

## Good for

- Check an exported workflow for leaked credentials before posting it in a forum or sharing it with a colleague
- Find why a webhook-triggered n8n workflow fails before importing it into production
- Validate a workflow against Creator Hub guidelines before submitting a template
- Run lint checks in a pre-commit hook or CI job on exported workflow files
- Ask an AI assistant to explain lint findings in plain language and suggest fixes

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add n8n-preflight --env N8N_PREFLIGHT_ROOT='<N8N_PREFLIGHT_ROOT>' -- uvx mcp-n8n-preflight
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "n8n-preflight": {
      "command": "uvx",
      "args": [
        "mcp-n8n-preflight"
      ],
      "env": {
        "N8N_PREFLIGHT_ROOT": "<N8N_PREFLIGHT_ROOT>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "n8n-preflight": {
      "command": "uvx",
      "args": [
        "mcp-n8n-preflight"
      ],
      "env": {
        "N8N_PREFLIGHT_ROOT": "<N8N_PREFLIGHT_ROOT>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "n8n-preflight": {
      "command": "uvx",
      "args": [
        "mcp-n8n-preflight"
      ],
      "env": {
        "N8N_PREFLIGHT_ROOT": "<N8N_PREFLIGHT_ROOT>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "n8n-preflight": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcp-n8n-preflight"
      ],
      "env": {
        "N8N_PREFLIGHT_ROOT": "<N8N_PREFLIGHT_ROOT>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add n8n-preflight --env N8N_PREFLIGHT_ROOT='<N8N_PREFLIGHT_ROOT>' -- uvx mcp-n8n-preflight
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.n8n-preflight]
command = "uvx"
args = ["mcp-n8n-preflight"]
env = { N8N_PREFLIGHT_ROOT = "<N8N_PREFLIGHT_ROOT>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "n8n-preflight": {
      "command": "uvx",
      "args": [
        "mcp-n8n-preflight"
      ],
      "env": {
        "N8N_PREFLIGHT_ROOT": "<N8N_PREFLIGHT_ROOT>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e N8N_PREFLIGHT_ROOT='<N8N_PREFLIGHT_ROOT>' n8n-preflight uvx -- mcp-n8n-preflight

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "n8n-preflight": {
      "command": "uvx",
      "args": [
        "mcp-n8n-preflight"
      ],
      "env": {
        "N8N_PREFLIGHT_ROOT": "<N8N_PREFLIGHT_ROOT>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "n8n-preflight": {
      "command": "uvx",
      "args": [
        "mcp-n8n-preflight"
      ],
      "env": {
        "N8N_PREFLIGHT_ROOT": "<N8N_PREFLIGHT_ROOT>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "n8n-preflight": {
      "command": "uvx",
      "args": [
        "mcp-n8n-preflight"
      ],
      "env": {
        "N8N_PREFLIGHT_ROOT": "<N8N_PREFLIGHT_ROOT>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "n8n-preflight": {
      "command": "uvx",
      "args": [
        "mcp-n8n-preflight"
      ],
      "env": {
        "N8N_PREFLIGHT_ROOT": "<N8N_PREFLIGHT_ROOT>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "n8n-preflight": {
      "command": "uvx",
      "args": [
        "mcp-n8n-preflight"
      ],
      "env": {
        "N8N_PREFLIGHT_ROOT": "<N8N_PREFLIGHT_ROOT>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "n8n-preflight": {
      "command": "uvx",
      "args": [
        "mcp-n8n-preflight"
      ],
      "env": {
        "N8N_PREFLIGHT_ROOT": "<N8N_PREFLIGHT_ROOT>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "n8n-preflight": {
      "command": "uvx",
      "args": [
        "mcp-n8n-preflight"
      ],
      "env": {
        "N8N_PREFLIGHT_ROOT": "<N8N_PREFLIGHT_ROOT>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "n8n-preflight": {
      "command": "uvx",
      "args": [
        "mcp-n8n-preflight"
      ],
      "env": {
        "N8N_PREFLIGHT_ROOT": "<N8N_PREFLIGHT_ROOT>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 4 tools changes data; 1 name doesn't say. From the server's own tool labels and tool names; not verified by us.

- `lint_workflow`: Returns findings for one workflow file or inline JSON under a run, share or template profile, with secrets and emails masked.
- `summarize_workflow` (name suggests: reads): Lists triggers, node count, outside systems called, AI nodes, credential types and disabled nodes.
- `list_rules` (name suggests: reads): Lists every rule with its rationale and suggested fix.
- `write_sanitized_copy` (name suggests: changes): Previews, then writes a new sanitized copy of a workflow file when write mode is enabled and confirmed.

## FAQ

### Does n8n Preflight connect to my n8n instance?

No. It reads .json files from a single folder you specify and makes no network requests.

### Does n8n Preflight run my workflows?

No. It only parses the JSON and does not execute Code node JavaScript or any workflow.

### Is the write tool enabled by default?

No. It is registered only when the N8N_PREFLIGHT_ENABLE_WRITE variable is set to true, and it needs a confirm step to write a file.

### Which environment variable sets the folder?

N8N_PREFLIGHT_ROOT holds the absolute path to the folder with your exported workflow files; paths outside it are refused.

### Is n8n Preflight free?

Yes. n8n Preflight is open source, so you can use and self-host it for free.

### How do I add n8n Preflight to Claude Code?

Run this command in your terminal: claude mcp add n8n-preflight --env N8N_PREFLIGHT_ROOT='<N8N_PREFLIGHT_ROOT>' -- uvx mcp-n8n-preflight

### What are the best alternatives to n8n Preflight?

The closest alternatives to n8n Preflight are n8n-mcp, N8n MCP, Automation Auditor MCP, ELYREON Workflow Rescue and MCP N8n.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [n8n-mcp](https://ai-powered.com/mcp/n8n-mcp-2): n8n-mcp is an open-source MCP server for developer tools.
- [N8n MCP](https://ai-powered.com/mcp/n8n-mcp): N8n MCP is an open-source MCP server for developer tools.
- [Automation Auditor MCP](https://ai-powered.com/mcp/automation-auditor-mcp): Automation Auditor MCP is an open-source MCP server for developer tools.
- [ELYREON Workflow Rescue](https://ai-powered.com/mcp/elyreon-workflow-rescue): ELYREON Workflow Rescue is a free MCP server for developer tools.
- [MCP N8n](https://ai-powered.com/mcp/mcp-n8n): MCP N8n is an open-source MCP server for developer tools.
- [Nervous System](https://ai-powered.com/mcp/nervous-system): Nervous System is an open-source MCP server for developer tools.
- [n8n Manager MCP](https://ai-powered.com/mcp/n8n-manager-mcp): n8n Manager MCP is an open-source MCP server for developer tools.
- [n8n-guard](https://ai-powered.com/mcp/n8n-guard): n8n-guard is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/n8n-preflight
