n8n Preflight
Lints exported n8n workflow JSON for run failures, leaked secrets and template readiness
The repository was last updated 10 days ago and is published under MIT.
n8n Preflight is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, Self-hosted
- Runs
- Locally
- What it can do
- Can change data (1 tool)
- GitHub stars
- 0
- Last commit
Similar MCP servers
Install
You install MCP servers on a computer. Send yourself the link.
Add with the CLI
Run in a terminal
claude mcp add n8n-preflight --env N8N_PREFLIGHT_ROOT='<N8N_PREFLIGHT_ROOT>' -- uvx mcp-n8n-preflightAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"n8n-preflight": {
"command": "uvx",
"args": [
"mcp-n8n-preflight"
],
"env": {
"N8N_PREFLIGHT_ROOT": "<N8N_PREFLIGHT_ROOT>"
}
}
}
}Add to claude_desktop_config.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.
Add to ~/.cursor/mcp.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.
Add to ~/.copilot/mcp-config.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.
Add with the CLI
Run in a terminal
codex mcp add n8n-preflight --env N8N_PREFLIGHT_ROOT='<N8N_PREFLIGHT_ROOT>' -- uvx mcp-n8n-preflightOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.n8n-preflight]
command = "uvx"
args = ["mcp-n8n-preflight"]
env = { N8N_PREFLIGHT_ROOT = "<N8N_PREFLIGHT_ROOT>" }Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"n8n-preflight": {
"command": "uvx",
"args": [
"mcp-n8n-preflight"
],
"env": {
"N8N_PREFLIGHT_ROOT": "<N8N_PREFLIGHT_ROOT>"
}
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.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
Antigravity
Add to ~/.gemini/config/mcp_config.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 (formerly Windsurf)
Add to ~/.config/devin/mcp_config.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
Add to cline_mcp_settings.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
Add to Zed settings.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
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "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.
Junie
Add to ~/.junie/mcp/mcp.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
Add to ~/.kiro/settings/mcp.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.
Using several servers? Build one config file with the MCP config generator.
Configuration
N8N_PREFLIGHT_ROOTAbsolute path to the folder with your exported n8n workflow .json filesRequiredN8N_PREFLIGHT_ENABLE_WRITESet to true to enable write_sanitized_copy (preview first, confirm to write)N8N_PREFLIGHT_ENABLE_WRITESet to true to enable write_sanitized_copy (preview first, confirm to write)
About n8n Preflight
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.
Tools this server provides (4)
Taken from the project documentation; the running server may differ.
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_workflowName suggests: reads
- Lists triggers, node count, outside systems called, AI nodes, credential types and disabled nodes.
- list_rulesName suggests: reads
- Lists every rule with its rationale and suggested fix.
- write_sanitized_copyName suggests: changes
- Previews, then writes a new sanitized copy of a workflow file when write mode is enabled and confirmed.
What it does
- 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
Pricing
Open source
Free and open source under the MIT licence.
More servers for the same service
n8n Preflight 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.
