Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words Sign in

n8n Preflight

by haechiwoodversion 0.1.2i★ 0iRuns on your computerRepository ↗

How to install

What it does

Lint exported n8n workflow JSON: failure patterns, leaked secrets, Creator Hub readiness

  • Connects Runs on your computer
  • Account or key No key needed · 1 setting to fill in (N8N_PREFLIGHT_ROOT)
  • Category Cybersecurity

Why it ranks here

Lists are ordered by a usage score (out of 100) built from these parts

Popularity0/80GitHub stars or weekly downloads: the larger counts 60, the smaller 20
Freshness12/12Full marks for a release or code change within 30 days
Still answering0/8The cloud endpoint answered at the last check
Usage score12/100

Quality: Passed 3/3 basic checks (shown, not used for ordering) · Momentum: No data yet (Used only on the Trending tab)

Install

Pick the AI app you use, then copy the settings.

Let your AI install it with one sentence

Please install n8n Preflight. Follow https://mcp.popnx.com/i/haechiwood-n8n-preflight.md, show me the commands and wait for my OK before running them.

Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads

Passed 3/3 checks · Runs on your computer · ✓ Commands checked Nov 25, 2026

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude, with some setup first

1 setting(s) to fill in (N8N_PREFLIGHT_ROOT) · Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone

Let AI install it

Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server n8n Preflight for Claude on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "n8n-preflight": { "command": "uvx", "args": [ "mcp-n8n-preflight" ], "env": { "N8N_PREFLIGHT_ROOT": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For N8N_PREFLIGHT_ROOT, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the n8n Preflight tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Fill in 1 setting(s)

    These are program settings, not keys. No sign-up needed; fill them in as the maker describes.

    • N8N_PREFLIGHT_ROOT Absolute path to the folder with your exported n8n workflow .json files

    Descriptions are as written by the maker.

  3. Open the Claude desktop app’s settings file

    SettingsDeveloperEdit Config

  4. Paste these settings and save the file

    {
      "mcpServers": {
        "n8n-preflight": {
          "command": "uvx",
          "args": [
            "mcp-n8n-preflight"
          ],
          "env": {
            "N8N_PREFLIGHT_ROOT": "your-value"
          }
        }
      }
    }
  5. Quit Claude and open it again

  6. Try it

    Use n8n Preflight and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using n8n Preflight or shows a n8n Preflight tool in the answer, you are connected

1 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • N8N_PREFLIGHT_ENABLE_WRITE Set to true to enable write_sanitized_copy (preview first, confirm to write)

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

ChatGPT cannot connect n8n Preflight yet

n8n Preflight runs on your computer, but ChatGPT can only connect servers that run on the web

What you can do instead

A · Use an app that can connect n8n Preflight

  • 1 setting(s) to fill in (N8N_PREFLIGHT_ROOT) · Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
  • 1 setting(s) to fill in (N8N_PREFLIGHT_ROOT) · Install Python (uv) on your computer first (one time)
  • 1 setting(s) to fill in (N8N_PREFLIGHT_ROOT) · Install Python (uv) on your computer first (one time)
  • 1 setting(s) to fill in (N8N_PREFLIGHT_ROOT) · Install Python (uv) on your computer first (one time)

B · Others in Cybersecurity that work with ChatGPT

Picked from the most used in the same category, only ones that connect by address with no key

Works with Claude Code, with some setup first

1 setting(s) to fill in (N8N_PREFLIGHT_ROOT) · Install Python (uv) on your computer first (one time)

Let AI install it

Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server n8n Preflight for Claude Code on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user n8n-preflight --env N8N_PREFLIGHT_ROOT=your-value -- uvx mcp-n8n-preflight 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For N8N_PREFLIGHT_ROOT, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the n8n Preflight tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Fill in 1 setting(s)

    These are program settings, not keys. No sign-up needed; fill them in as the maker describes.

    • N8N_PREFLIGHT_ROOT Absolute path to the folder with your exported n8n workflow .json files

    Descriptions are as written by the maker.

  3. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  4. Paste this command and press Enter

    claude mcp add --scope user n8n-preflight --env N8N_PREFLIGHT_ROOT=your-value -- uvx mcp-n8n-preflight
  5. Type /mcp in Claude Code

    You should see n8n Preflight listed as connected

  6. Try it

    Use n8n Preflight and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using n8n Preflight or shows a n8n Preflight tool in the answer, you are connected

1 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • N8N_PREFLIGHT_ENABLE_WRITE Set to true to enable write_sanitized_copy (preview first, confirm to write)

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor, with some setup first

1 setting(s) to fill in (N8N_PREFLIGHT_ROOT) · Install Python (uv) on your computer first (one time)

Let AI install it

Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server n8n Preflight for Cursor on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "n8n-preflight": { "command": "uvx", "args": [ "mcp-n8n-preflight" ], "env": { "N8N_PREFLIGHT_ROOT": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For N8N_PREFLIGHT_ROOT, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the n8n Preflight tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Fill in 1 setting(s)

    These are program settings, not keys. No sign-up needed; fill them in as the maker describes.

    • N8N_PREFLIGHT_ROOT Absolute path to the folder with your exported n8n workflow .json files

    Descriptions are as written by the maker.

  3. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  4. Fill in your key

    In the n8n Preflight settings, N8N_PREFLIGHT_ROOT is empty; add your key and save

  5. Open the AI chat in Cursor in Agent mode

  6. Try it

    Use n8n Preflight and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using n8n Preflight or shows a n8n Preflight tool in the answer, you are connected

1 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • N8N_PREFLIGHT_ENABLE_WRITE Set to true to enable write_sanitized_copy (preview first, confirm to write)

Descriptions are as written by the maker.

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code, with some setup first

1 setting(s) to fill in (N8N_PREFLIGHT_ROOT) · Install Python (uv) on your computer first (one time)

Let AI install it

Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server n8n Preflight for VS Code on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "n8n-preflight": { "type": "stdio", "command": "uvx", "args": [ "mcp-n8n-preflight" ], "env": { "N8N_PREFLIGHT_ROOT": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For N8N_PREFLIGHT_ROOT, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the n8n Preflight tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Fill in 1 setting(s)

    These are program settings, not keys. No sign-up needed; fill them in as the maker describes.

    • N8N_PREFLIGHT_ROOT Absolute path to the folder with your exported n8n workflow .json files

    Descriptions are as written by the maker.

  3. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  4. Fill in your key

    In the n8n Preflight settings, N8N_PREFLIGHT_ROOT is empty; add your key and save

  5. Open the AI chat in VS Code in Agent mode

  6. Try it

    Use n8n Preflight and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using n8n Preflight or shows a n8n Preflight tool in the answer, you are connected

1 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • N8N_PREFLIGHT_ENABLE_WRITE Set to true to enable write_sanitized_copy (preview first, confirm to write)

Descriptions are as written by the maker.

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

JSON settings are under “For developers” below

Stuck? Ask people who use n8n Preflight💬 Discussion →
For developers: Terminal commands and JSON settings

Installed on your computer

Claude Code

claude mcp add --scope user n8n-preflight --env N8N_PREFLIGHT_ROOT=your-value -- uvx mcp-n8n-preflight

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "n8n-preflight": {
      "command": "uvx",
      "args": [
        "mcp-n8n-preflight"
      ],
      "env": {
        "N8N_PREFLIGHT_ROOT": "your-value"
      }
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "n8n-preflight": {
      "command": "uvx",
      "args": [
        "mcp-n8n-preflight"
      ],
      "env": {
        "N8N_PREFLIGHT_ROOT": "your-value"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "n8n-preflight": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcp-n8n-preflight"
      ],
      "env": {
        "N8N_PREFLIGHT_ROOT": "your-value"
      }
    }
  }
}

Values you fill in

  • N8N_PREFLIGHT_ROOT required env
    Absolute path to the folder with your exported n8n workflow .json files
  • N8N_PREFLIGHT_ENABLE_WRITE env
    Set to true to enable write_sanitized_copy (preview first, confirm to write)

Descriptions are as written by the maker.

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Registry name
io.github.haechiwood/n8n-preflight
Downloads per weeki
Not on npm/PyPI
Connection
Runs on your computer
Latest versioni
0.1.2
Published to registryi
Nov 25, 2026
Code last changedi
Nov 26, 2026
Maker
haechiwood
Packages
pypi: mcp-n8n-preflight
oci: ghcr.io/haechiwood/mcp-n8n-preflight:0.1.2
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 26, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account haechiwood, which owns the repo

  • ✓ Pass

    Still maintained

    Code last changed today

  • ✓ Pass

    Has a licence

    Uses MIT

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Published vulnerabilities (OSV.dev)

Not checked yet

What we check → · JSON

Makers: ask for a re-check or report wrong info
For makers: add a badge to your README

If you made this, paste this code into your README. The badge links back to this page.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/haechiwood-n8n-preflight.svg)](https://mcp.popnx.com/en/servers/haechiwood-n8n-preflight)

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in to post

User reviews

No reviews yet

Sign in to write a review

Compared with others in Cybersecurityi

  • More stars than 0% of the other 1223 servers in this category
  • Published to the registry more recently than 95% of the other 1223 servers in this category
  • Basic checks equal to or better than 99% of the other 1223 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is n8n Preflight safe?

It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

The registry does not list a required key, though some servers ask you to sign in on first use.

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed today, and the latest version (0.1.2) reached the registry yesterday.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Python (uv), Docker on your computer.

What can I use instead?

In the same category: GitHits, Dependency Management MCP Server, Snyk MCP, TokenSafe, Draugr

Similar alternatives

Same category, other makers, commands already checked. Official ones first, then by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

GitHits

Search public open-source code, documentation, metadata, vulnerabilities, changelogs, and examples.

by githits-comGrowing↓ 3.8K/wk★ 140Updated 7 days ago

Connect now (has URL) · sign-in✓ service owner · githits.com

Snyk MCP

Easily find and fix security issues in your applications leveraging Snyk platform capabilities.

by snykWidely used↓ 762.1K/wk★ 61Updated 7 months ago

Runs on your computer✓ service owner · snyk.io

TokenSafe

Your AI agent is smart enough to code all day. Local firewall & zero-loss runtime.

by tokensafe-devWidely used↓ 6.8K/wk★ 47Updated today

Connect now (has URL)9 tools · light✓ service owner · tokensafe.dev

Draugr

Security scanning for AI agents: SAST, SCA, secrets, IaC, DAST, ranked by real risk.

by draugr-devEarly★ 30Updated today

Runs on your computer✓ service owner · draugr.dev
Compared with similar ones
This one
n8n Preflight
GitHitsDependency Management MCP ServerSnyk MCPTokenSafeDraugr
Runs whereInstalls on your computerCloud or install on your computerRuns in the cloud, nothing to installInstalls on your computerCloud or install on your computerInstalls on your computer
Needs a keyNoNoNoNoNoNo
Add with + in ClaudeNoNoNoNoNoNo
Basic checks3/35/53/43/35/53/3
LicenseMITApache-2.0–Apache-2.0MITApache-2.0
PriceNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registry

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

n8n Preflight (MCP server)

Check an exported n8n workflow before you import it, share it, or submit it as a template. Ask Claude "is this workflow safe to share?" or "why does this workflow fail?" and it can read the JSON file and get a list of concrete problems, each with a fix.

  • Offline and read-only by default. It reads .json files from one folder. It never runs a workflow, never connects to your n8n instance, and makes no network requests. No API key needed.
  • Finds failures that only show up at run time: $('node name') typos, a webhook waiting for a Respond node that is missing, {{ }} in a field that is not in expression mode, an unconnected Loop Over Items output, HTTP calls with no retry.
  • Finds what you should not share: literal API keys and Bearer tokens, credential names and IDs, pinned execution data, email addresses, spreadsheet and channel IDs, the instance ID.
  • Checks n8n Creator Hub template basics: overview sticky note with ### How it works / ### Setup (100 to 300 words), section notes, default node names (n8n guideline).

Not affiliated with n8n GmbH. "n8n" is used only to say which file format this tool reads.

Need help? Hire us. Workflow still failing after the checks? We fix one n8n workflow for a fixed price:

root cause, tested fix and a preflight report, $190 on

Contra

or as a Fiverr gig.

The work is done by AI agents and checked against a written QA checklist (see "How this was built").

Tools

ToolTypeWhat it does
lint_workflowreadFindings for one workflow file or inline JSON. profile: run (reliability), share (default: reliability + sharing), template (all, including Creator Hub checks). Secrets and emails are masked in the output
summarize_workflowreadTriggers, node count, outside systems the workflow calls, AI nodes, credential types (types only), disabled nodes
list_rulesreadEvery rule with why it matters and how to fix it
write_sanitized_copywriteNot registered unless N8N_PREFLIGHT_ENABLE_WRITE=true. Without confirm=true it returns a preview of the changes and writes nothing. With confirm=true it writes a new file (never overwrites) without pinned data, credentials, instance ID and literal secrets

Rules

IDSeverityChecks
N8P001errorExpression points at a node that does not exist (suggests the right case)
N8P002errorWebhook set to respond "Using Respond to Webhook Node" but there is none
N8P003warningRespond to Webhook node but no webhook uses that mode
N8P004warning{{ $... }} stored as fixed text (missing expression =)
N8P005warningHTTP Request with Retry On Fail off and On Error = stop
N8P006infoNo error workflow set
N8P007warningNode with no incoming connection (not a trigger or AI sub-node)
N8P008warningLoop Over Items (v3) with the loop output unconnected
N8P009infoDisabled node
N8P101errorLiteral secret in a parameter, code or note (OpenAI, Anthropic, Google, Slack, GitHub, Stripe, AWS keys, JWT, Bearer, basic-auth URL, key in URL, Authorization header)
N8P102warningCredential name and ID included
N8P103warningPinned execution data included
N8P104warningEmail address or fixed spreadsheet / chat / channel / folder ID
N8P105infometa.instanceId present
N8P201warningNo overview sticky note (### How it works + ### Setup)
N8P202warningFour or more nodes and no section notes
N8P203infoDefault node name such as HTTP Request1
N8P204warningOverview note outside 100 to 300 words

These are static checks. A clean result does not prove a workflow works; only running it with real input does.

Install

Requires Python 3.10+ and uv (or pip).

uvx mcp-n8n-preflight                                                             # from PyPI

docker run -i --rm -v "$PWD:/work:ro" ghcr.io/haechiwood/mcp-n8n-preflight:0.1.2 # Docker, reads /work

Or pip install mcp-n8n-preflight.

Claude Desktop

Settings > Developer > Edit Config, then add to claude_desktop_config.json:

{

"mcpServers": { "n8n-preflight": { "command": "uvx", "args": ["mcp-n8n-preflight"], "env": { "N8N_PREFLIGHT_ROOT": "/path/to/your/n8n-exports" } } } }

Restart Claude Desktop. Use an absolute path for N8N_PREFLIGHT_ROOT. Claude Desktop may not find uvx if it is not on its PATH; then put the full path from which uvx in command.

Claude Code
claude mcp add n8n-preflight -e N8N_PREFLIGHT_ROOT="$PWD" -- uvx mcp-n8n-preflight

claude mcp list # should show: n8n-preflight ... Connected

To allow the write tool, add -e N8N_PREFLIGHT_ENABLE_WRITE=true.

Without an MCP client (CI, pre-commit)
uvx --from mcp-n8n-preflight n8n-preflight lint my-workflow.json --profile share

exit 0 = no errors, 1 = errors found, 2 = could not read the file

Example prompts
  • "Lint invoice-sync.json and explain the errors in plain English."
  • "Is lead-intake.json safe to post in the n8n forum? Use the share profile."
  • "Check my-template.json against the template profile before I submit it to the Creator Hub."

Configuration

VariableDefaultNotes
N8N_PREFLIGHT_ROOTcurrent working directoryThe only folder the server reads from and writes copies into. Paths outside it (including ../) are refused. Only .json, max 5 MB
N8N_PREFLIGHT_ENABLE_WRITEofftrue registers write_sanitized_copy

No API keys are used. If you fork this to call the n8n API, read keys from environment variables only, never from tool arguments, and keep them out of logs and error messages.

Security notes

  • Read-only by default. The write tool does not exist unless you turn it on, and even then it needs a preview call and a second call with confirm=true. The server enforces this; client-side approval prompts are a second layer, not a replacement. It never overwrites a file.
  • Folder sandbox. Every path is resolved and must stay inside N8N_PREFLIGHT_ROOT.
  • No network, no execution. The server only parses JSON. It does not run Code node JavaScript.
  • Secrets are masked. Findings show at most the first 4 characters of a matched secret or email.
  • Prompt injection. Node names, sticky notes and parameter text come from whoever built the workflow. The server tells the client to treat them as data, but a model can still be misled by a crafted file. Review findings before acting on them, and keep the write tool off unless you need it.
  • write_sanitized_copy does not remove emails or IDs inside text. Run lint_workflow on the copy and replace what is left by hand.

Tests

uv venv && uv pip install -e ".[test]"

pytest -q # 9 unit tests (rules, masking, sanitizer) python tests/run_inspector.py # 20 end-to-end cases through the official MCP Inspector CLI

Latest run (2026-11-26, version 0.1.2, Python 3.12.11, mcp 2.3.0, MCP Inspector CLI 2.16.0): 9/9 pytest, 20/20 Inspector cases (tool list with and without the write tool, planted failures found, secrets masked, path traversal refused, preview-then-confirm, no overwrite). Logs: tests/logs/summary.md.txt, tests/logs/inspector-stdio.txt. Claude Code 2.1.332 connected over stdio to 0.1.1 (local path and uvx --from), see tests/logs/claude-code-connect.txt. Not tested: Claude Desktop, Windows.

Test fixtures build their fake secrets at run time, so this repository holds no secret-looking strings.

How this was built

AI coding agents wrote the code, tests and this README. Every release must pass the test suite above before it is published, and the maintainer is accountable for it.

License

MIT. See LICENSE.


Need help? Hire us

  • n8n workflow fix (one workflow, up to 6 errors, root cause + tested fix + preflight report): $190 on Contra, or on Fiverr.
  • Custom MCP server for your API: on Fiverr.

AI agents do the building, testing and drafting. Every delivery must pass a written QA checklist before it is sent, and the maintainer is accountable for it.