Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

N8n MCP

MCP server by czlonkowski Verified · npm:@slayoffer

n8n-MCP is an open-source MCP server that lets Claude, ChatGPT, Cursor and other AI assistants operate n8n. It reads failed executions, edits and validates workflows, manages credentials and builds new workflows. It is for people who automate work in n8n.

  • Score 94
  • 23k stars
  • 27 a week
  • MIT
  • Updated

Install N8n MCP

Built from the published package, never by AI.

claude mcp add n8n-mcp -- npx -y @slayoffer/n8n-mcp

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install N8n MCP in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the n8n-mcp block.

About

n8n-MCP is an open-source MCP server that lets Claude, ChatGPT, Cursor and other AI assistants work with n8n. The assistant can read failed executions and see the error and failing node, edit workflows in place with targeted operations, validate and test workflows, manage credentials, and build new workflows. It works with any n8n instance that has the Public API enabled, and it can use n8n's built-in MCP server as a second backend.

The project bundles knowledge of 3,870 n8n nodes and 2,352 workflow templates, so the assistant can configure real nodes instead of guessing. By default it saves a snapshot before changing a workflow's nodes or connections, and it can diff and roll back those versions. It can also work across several n8n instances. The author describes it as a fit for teams that run more than one instance, need credential management, or use older n8n versions. A hosted service and self-hosting options are both described.

Written from the project's README and checked against it.

Tools it gives your assistant

  • n8n_executionsReads an execution and, in error mode, returns the error and the failing node.
  • n8n_update_partial_workflowApplies targeted operations to named nodes and connections in a workflow.
  • n8n_workflow_versionsLists, diffs and rolls back saved workflow snapshots.
  • validate_workflowReports unknown nodes, missing required fields and broken connections or expressions.
  • n8n_validate_workflowValidates a workflow once it is saved in n8n.
  • n8n_autofix_workflowRepairs common validation problems in a workflow.
  • n8n_test_workflowRuns a workflow through its webhook, form or chat trigger.
  • n8n_audit_instanceRuns a security audit of the n8n instance.
  • n8n_manage_agentsManages n8n Agents through the instance-level MCP server when configured.
  • n8n_explore_node_resourcesLooks up node resources through the instance-level MCP server when configured.

What you need

  • An n8n instance with the Public API enabled
  • An n8n API key
  • Docker or npx for self-hosting, or a hosted account at dashboard.n8n-mcp.com
  • Optional: N8N_MCP_ACCESS_TOKEN for instance-level MCP features
  • Optional: Cloudflare Access service token if the instance sits behind Cloudflare Access

Try asking

  • Why did my last execution of the sales sync workflow fail?
  • Update the Code node in this workflow and roll back if it breaks.
  • Validate my workflow and autofix any common problems before I deploy it.

Good to know

  • Edits write the whole workflow back, so changes made in the n8n UI during an assistant edit are overwritten.
  • A snapshot that fails to save does not stop an edit, so check that a version exists before relying on rollback.
  • Built-in n8n MCP tools need newer n8n versions, while n8n-MCP covers older versions through the Public API.
  • Test changes to important production workflows on a copy or staging instance first.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to N8n MCP

All alternatives →

Compare with GitDiagram, mockserver or XcodeBuildMCP

N8n MCP: common questions

Is n8n-MCP the same as n8n's built-in MCP server?

No. n8n ships its own instance-level MCP server, and n8n-MCP is a separate open-source server that talks to n8n. The project notes that the two can be used together through one connection.

Does n8n-MCP need a connection to n8n to work?

Documentation and validation tools work without an n8n connection, using a bundled database. Workflow and execution tools need an n8n instance with the Public API enabled.

Can n8n-MCP roll back changes it makes to a workflow?

Yes. By default it saves a snapshot before changing a workflow's nodes or connections, keeps up to 10 per workflow, and n8n_workflow_versions can roll them back.

How do I install N8n MCP?

In Claude Code run claude mcp add n8n-mcp -- npx -y @slayoffer/n8n-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is N8n MCP the official server?

N8n MCP is published by npm:@slayoffer from its verified domain in the official MCP Registry.

Is N8n MCP free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is N8n MCP safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to N8n MCP?

Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.

Does N8n MCP work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

N8n MCP Install

Add to stack

Loading.