SuperAPI AI Directory

n8n-mcp

Generate n8n workflow JSON from natural language, lint for deprecated nodes, missing typeVersion and broken connections, and debug per-node execution failures.

Open website

About this tool

n8n-mcp is an MCP (Model Context Protocol) server for n8n, developed by AutomateLab-tech, licensed under MIT, and requiring Node 20 or higher. It targets Claude, Cursor, and other AI agents, providing workflow generation, static checking (linting), execution failure diagnosis, and the ability to drive live n8n instances.

[Purpose and Positioning] This project is positioned as a "debugging-first, first-run-correct" n8n MCP server. During their use of n8n, the creator repeatedly encountered failures with LLM-generated workflow JSON: imports succeeded but runtime failed, AI Agent cluster connection types were wrong, and executions silently dropped data that was hard to locate. Therefore, this server encodes into tools the failure modes that lint can catch, the cluster topology that generators must follow, and diagnostic capabilities that agents cannot complete on their own. The project describes itself as competing differently in breadth from other n8n MCP servers (such as czlonkowski/n8n-mcp), focusing on debugging and first-run correctness.

[Main Capabilities]

  • workflow_generate: Generates n8n workflow JSON from natural language, with explicit constraints on AI Agent topology, outputs the correct LangChain cluster, uses ai_languageModel / ai_memory / ai_tool connections (child nodes connect upward to the agent, rather than through main), and can be imported cleanly on n8n 1.x.
  • workflow_lint: Catches silent failures, including deprecated node types (Function -> Code, spreadsheetFile -> convertToFile), AI Agent missing a language model, IF v1 schema, Webhook missing webhookId, and broken connections across all connection types (not just main).
  • execution_explain: Core functionality. Paste execution JSON, and it returns per-node findings: which nodes returned 0 items, which have unresolved ={{ ... }} expressions, and error messages with specific hints.
  • 5 REST tools (requires setting N8N_API_URL + N8N_API_KEY): list, get, create, activate workflows, and fetch execution records, so that the lint and explain tools can run against live workflows, not just JSON pasted in chat.
  • Companion Agent Skill: Teaches the model when to use which tool and where to load deeper context (split into the references/ directory to avoid prompt bloat).
  • v0.5.0 adds three tools: workflow_diff, execution_replay, execution_timeline; lint expands with 10 new rules (rate limiting, credential drift, stale expressions, code sandbox, Webhook test path, manualTrigger-in-active, DST scheduling risk, disabled-but-wired, empty Set, HTTP method/body mismatch); adds runtime policy environment variables: N8N_MCP_READ_ONLY, N8N_MCP_DISABLED_TOOLS, N8N_MCP_ALLOWED_WORKFLOW_IDS, N8N_MCP_ALLOWED_TAGS; provides a DXT package, Dockerfile, and Render/Railway/Fly deployment configurations.
  • Tool naming uses dot notation, forming a navigable tree: node., workflow., execution.*. Each tool declares outputSchema (making it easier for callers to type-check responses) and MCP annotations (read-only/destructive/idempotent/open-world hints).
  • Stateless tools (no live n8n instance required); live instance tools (require N8N_API_URL + N8N_API_KEY environment variables).

[Usage]

  • Configure the MCP host: configure in Cursor (~/.cursor/mcp.json) or Claude Desktop (claude_desktop_config.json). The env block is optional; the 4 stateless tools do not need it. Obtain the API key from n8n: Settings -> API -> Create API key. After restarting the MCP host, 12 dot-notation tools (workflow., node., execution.*) appear in the MCP panel.
  • Claude DeskCreate, activate workflows, and pull execution records, so that the lint and explain tools can run against live workflows, not just JSON pasted in chat.
  • Companion Agent Skill: Teaches the model when to use which tool and where to load deeper context (split into the references/ directory to avoid prompt bloat).
  • v0.5.0 adds three tools: workflow_diff, execution_replay, execution_timeline; lint expands with 10 new rules (rate limiting, credential drift, stale expressions, code sandbox, Webhook test path, manualTrigger-in-active, DST scheduling risk, disabled-but-wired, empty Set, HTTP method/body mismatch); adds runtime policy environment variables: N8N_MCP_READ_ONLY, N8N_MCP_DISABLED_TOOLS, N8N_MCP_ALLOWED_WORKFLOW_IDS, N8N_MCP_ALLOWED_TAGS; provides a DXT package, Dockerfile, and Render/Railway/Fly deployment configurations.
  • Tool naming uses dot notation, forming a navigable tree: node., workflow., execution.*. Each tool declares outputSchema (making it easier for callers to type-check responses) and MCP annotations (read-only/destructive/idempotent/open-world hints).
  • Stateless tools (no live n8n instance required); live instance tools (require N8N_API_URL + N8N_API_KEY environment variables).

[Usage]

  • Configure the MCP host: configure in Cursor (~/.cursor/mcp.json) or Claude Desktop (claude_desktop_config.json). The env block is optional; the 4 stateless tools do not need it. Obtain the API key from n8n: Settings -> API -> Create API key. After restarting the MCP host, 12 dot-notation tools (workflow., node., execution.*) appear in the MCP panel.
  • Claude Desktop One-click install: build a .dxt package from dxt/manifest.json (see dxt/README.md).
  • Docker: docker build -t n8n-mcp . && docker run --rm -i -e N8N_API_URL=... -e N8N_API_KEY=... n8n-mcp
  • Render: use render.yaml, click "New from Blueprint".
  • Railway: railway.toml, run railway up in the repository root.
  • Fly.io: fly.toml, run fly launch --copy-config.
  • GitHub Action: can lint workflows, diagnose executions, and generate workflow JSON in CI/CD pipelines; see ACTION.md and GITHUB-ACTION-SETUP.md.
  • Smoke test: npm run smoke starts the server with the --smoke flag, lists registered tools, then exits without binding stdio; suitable for CI or first-run checks.
  • Examples: the examples/ directory contains two directly importable workflows: workflow-stripe-to-slack.json (Stripe webhook dispatched to Slack and Google Sheets) and workflow-rss-to-discord.json (RSS trigger sends new entries to a Discord channel); import them via n8n's Import from File dialog.
  • Usage examples: workflow_generate can build "Stripe webhook → Slack message + Google Sheets new row"; execution_explain can analyze "why the Slack node did not trigger", or accept workflow JSON for linting, with the result possibly being "no issues found".

[Use cases] Suitable for developers and AI agents developing and debugging workflows in n8n, especially for teams that need to quickly locate execution failures, check whether a workflow runs correctly after import, and integrate workflow linting and diagnostics in CI/CD. Runtime policy environment variables can be used to constrain the MCP when handing it to junior agents or connecting it to customer-facing assistants.

[Limitations and gaps]

  • The project description focuses on debugging and first-run correctness, and is less broad than some other n8n MCP servers.
  • v0.4.0 has a breaking change: tools were renamed from n8n_* (underscore naming) to dot notation, so prompts, agent skills, or scripts that reference the old names need to be updated.
  • Live instance tools require configuring the N8N_API_URL and N8N_API_KEY environment variables.
  • Requires Node 20 or higher.
  • The materials do not provide pricing, fees, or licensing cost information; the license is MIT (see LICENSE).
  • The materials do not provide performance metrics, accuracy, or compatibility details beyond the number of tools.