惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

大猫的无限游戏
大猫的无限游戏
U
Unit 42
T
Tailwind CSS Blog
罗磊的独立博客
WordPress大学
WordPress大学
小众软件
小众软件
Recent Announcements
Recent Announcements
博客园 - 聂微东
Jina AI
Jina AI
云风的 BLOG
云风的 BLOG
博客园 - 【当耐特】
爱范儿
爱范儿
Microsoft Azure Blog
Microsoft Azure Blog
GbyAI
GbyAI
V
V2EX
博客园 - 三生石上(FineUI控件)
I
InfoQ
雷峰网
雷峰网
G
Google Developers Blog
阮一峰的网络日志
阮一峰的网络日志
B
Blog
腾讯CDC
A
About on SuperTechFans
博客园 - 叶小钗

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
n8n MCP Server: Build, Lint, and Debug Workflows From You...
Artyom Rabzo · 2026-05-14 · via DEV Community

Artyom Rabzonov

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 @automatelab/n8n-mcp

Enter fullscreen mode Exit fullscreen mode

Requires Node 20 or later. API keys are optional for stateless tools.

Configuration Across Hosts

The standard MCP configuration block works for Cursor, Claude Desktop, Claude Code, Cline, and Windsurf:

{
  "mcpServers": {
    "n8n": {
      "command": "npx",
      "args": ["-y", "@automatelab/n8n-mcp"],
      "env": {
        "N8N_API_URL": "https://your-n8n.example.com",
        "N8N_API_KEY": "n8n_..."
      }
    }
  }
}

Enter fullscreen mode Exit fullscreen mode

Key Features

AI Agent Topology

The generator correctly wires AI Agent sub-nodes using typed connections (ai_languageModel, ai_memory, ai_tool) rather than defaulting to main connections that cause silent failures.

Linting Capabilities

The lint catches a small but high-value set: deprecated node types (function -> code, spreadsheetFile -> convertToFile), AI Agents missing a language model, IF-v1 schema, missing webhookId, broken connections.

Silent Data Loss Diagnosis

The explain tool identifies when nodes return zero items, causing downstream nodes to skip execution without errors - the top-cited n8n debugging pain point.

Comparison to Alternatives

This server focuses on first-run correctness and execution diagnosis. The alternative czlonkowski/n8n-mcp provides broader coverage with 20+ tools indexing all n8n nodes. Both can run simultaneously.

FAQ

Live instance required? No - four stateless tools work offline.

AI Agent import failures? Usually incorrect connection types; use the linter before importing.

Silent data loss? The explain tool flags zero-item handoffs with common cause hints.

API key location? Settings -> API -> Create API key in your n8n instance.


Originally published at automatelab.tech