czlonkowski/n8n-mcp
MCP server that lets Claude, ChatGPT, Cursor and other AI assistants operate n8n: debug, edit, validate, test and build workflows on any n8n instance
What it solves
n8n-MCP solves the problem of AI assistants not being able to directly work with n8n, a workflow automation platform. It gives Claude, ChatGPT, Cursor, and other AI tools a set of commands (MCP tools) to read, debug, edit, validate, test, and create n8n workflows, manage credentials, and even audit security — all without manually copying data back and forth.
How it works
n8n-MCP runs as a separate server (self-hosted or via a hosted service) that talks to an n8n instance through its Public API (and optionally n8n's built-in MCP server as a second backend). It exposes a set of MCP tools that AI assistants can call. For example, n8n_executions pulls execution logs, n8n_update_partial_workflow makes targeted edits to nodes and connections, validate_workflow checks for issues, and n8n_autofix_workflow repairs common errors. It also includes a bundled reference database of over 3,500 n8n nodes and 2,352 templates, so the AI can configure real nodes instead of guessing. For safety, it saves snapshots of workflows before edits (up to 10 per workflow) and allows rollback via n8n_workflow_versions. It warns against editing a workflow in the n8n UI while the assistant is working, because writes are whole-workflow overwrites. It can work across multiple n8n instances (via the hosted service or multi-tenant HTTP mode) and can also be connected to n8n's own MCP server to combine capabilities.
Who it's for
Developers and automation builders who use n8n and want to let AI assistants debug, fix, or build workflows for them. Teams running multiple n8n instances (production, staging, client instances) that need a unified way to manage them. Anyone using AI coding tools (Claude Code, Cursor, VS Code Copilot, etc.) wanting to interact with n8n programmatically. Also useful for those on older n8n versions that lack the built-in MCP server's advanced features.
Highlights
- Works with any n8n instance that has the Public API enabled.
- Bundles a database of 3,501 nodes (842 core + 2,659 community) and 2,352 workflow templates.
- Includes validation tools that report unknown nodes, invalid versions, missing fields, and broken connections, with autofix for common issues.
- Provides snapshot and rollback for workflow edits, up to 10 versions per workflow.
- Supports security audit (
n8n_audit_instance) and credential management (create/update/delete). - Can be self-hosted via npx, Docker, or Railway, and also has a hosted service with a free tier.
- Works alongside n8n's built-in MCP server to cover more capabilities, like test runs with pinned data and native version history.
Related
- Project
- Project
- Project
- Project
- Project