Overview
"Install @automatelab/n8n-mcp , point your AI agent at it, and get nine tools that generate, lint, and diagnose n8n workflow JSON correctly the first time."
The package addresses a specific problem: generic language models produce n8n JSON that imports successfully but fails during runtime due to incorrect connection topology, deprecated node types, and silent data loss between nodes.
Nine Tools: Four Stateless, Five Live-Instance
Stateless tools (no n8n instance required):
n8n_generate_workflow - Converts plain English descriptions to workflow JSON with AI-Agent-aware topology
n8n_scaffold_node - Generates TypeScript files for custom node packages
n8n_lint_workflow - Identifies errors and warnings in workflow JSON
n8n_explain_execution - Diagnoses failed executions with per-node analysis
Live-instance tools (require API credentials):
n8n_list_workflows
n8n_get_workflow
n8n_create_workflow
n8n_activate_workflow
n8n_list_executions
Installation
npm install -g…