N8n MCP
MCP server by czlonkowski Verified · npm:@iflow-mcp
n8n-MCP is an open-source MCP server that lets AI assistants such as Claude, ChatGPT and Cursor operate n8n. It is for people who build and debug n8n workflows with an assistant.
Install N8n MCP
Built from the published package, never by AI.
claude mcp add n8n-mcp -- npx -y @iflow-mcp/n8n-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"n8n-mcp": {
"args": [
"-y",
"@iflow-mcp/n8n-mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"n8n-mcp": {
"args": [
"-y",
"@iflow-mcp/n8n-mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"n8n-mcp": {
"args": [
"-y",
"@iflow-mcp/n8n-mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add n8n-mcp -- npx -y @iflow-mcp/n8n-mcp{
"mcpServers": {
"n8n-mcp": {
"args": [
"-y",
"@iflow-mcp/n8n-mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add n8n-mcp npx -y @iflow-mcp/n8n-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
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 operate n8n. The assistant can read failed executions, edit workflows in place, validate and test them, manage credentials, and build new workflows. It works with any n8n instance that has the Public API enabled.
The server bundles knowledge of 3,870 nodes and 2,352 workflow templates, so the assistant can configure real nodes. By default it saves a snapshot before changing a workflow's nodes or connections, and n8n_workflow_versions can diff and roll back those versions. It suits people who run several n8n instances, or who want autofix, execution error analysis and a security audit.
Written from the project's README and checked against it.
Tools it gives your assistant
n8n_executionsReads an execution and, with mode error, returns the error and the failing node.n8n_update_partial_workflowApplies targeted operations to named nodes and connections instead of resending the whole 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 the common validation problems in a workflow.n8n_test_workflowRuns a workflow through its webhook, form or chat trigger, or with pinned data.n8n_audit_instanceRuns a security audit of the n8n instance.n8n_explore_node_resourcesReads node resources from n8n when the optional instance-level MCP token is set.n8n_manage_agentsManages n8n Agents when the optional instance-level MCP token is set.
What you need
- An n8n instance with the Public API enabled
- An n8n API key
- Docker or npx for self-hosting
- An n8n instance-level MCP access token for optional agent and resource tools
Try asking
- Why did my last n8n execution fail? Show the failing node.
- Validate this workflow and autofix the common errors.
- Run a security audit on my n8n instance.
Good to know
- Writes the whole workflow back, so UI edits made during an assistant edit are overwritten.
- Snapshots that fail to save do not stop an edit, so check that a version exists.
- Credential actions depend on the n8n version's API.
- The hosted service includes a free tier of 100 tool calls per day.
Security check
ANo 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 →Turns GitHub repositories into architecture diagrams, written explanations, Mermaid source and narrated explainer videos. Built for developers who want to understand a codebase, and for AI agents that need to read one.
Mocks, records, and chaos-tests HTTP(S) dependencies for development and testing. One port serves many protocols, including gRPC, WebSockets, and LLM chat APIs. Built for developers and testers who need stand-in services during tests.
Provides MCP server and CLI tools that let AI coding agents build, test and manage iOS and macOS projects with Xcode and simulators. It is aimed at developers working on Apple platform apps.
Creates editable draw.io diagrams in AI chat from Mermaid, PlantUML, CSV or draw.io XML. Built for people who want diagrams from text prompts that stay editable in draw.io.
Indexes your code, git history, tests and decisions on your machine so AI coding agents can query the index instead of re-reading files. Built for developers who want fewer files opened and clearer answers about change risk and code health.
Gives your AI assistant hosted codebase intelligence for repos indexed on repowise.dev. Use it to ask how code works, what a change may break, and which tests to run.
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. It can also route operations the Public API cannot perform to n8n's own server.
Which n8n instances does it work with?
It works with any n8n instance that has the Public API enabled. It can also serve several instances through the hosted service or multi-tenant HTTP mode.
Can the assistant change my live workflows?
Yes, it can edit workflows. The source recommends trying changes on a copy or staging instance first, and read-only deployment disables write operations.
How do I install N8n MCP?
In Claude Code run claude mcp add n8n-mcp -- npx -y @iflow-mcp/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:@iflow-mcp 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.
