Categories
Self-Hosted Developer Tools AI Agents MCP Server Workflow Automation LLM Tooling n8n Low-Code AutomationStars
Forks
Watchers
Developer links
n8n-MCP
n8n-MCP is an open-source Model Context Protocol server that lets Claude, ChatGPT, Cursor, and other AI assistants debug, edit, validate, test, and build workflows on any n8n instance that has the Public API enabled. Point it at a failing automation and the assistant reads the execution in error mode, which returns the error, the failing node, and sample items from the node before it. Fixes arrive as targeted operations on named nodes and connections, including find-and-replace inside a single Code node field, so the whole workflow never has to be resent. A snapshot is saved before every change, and the version tool lists, diffs, and rolls back up to ten saved versions per workflow. Validators flag unknown nodes, invalid node versions, missing required fields, and broken connections or expressions before anything goes live, and autofix repairs the common ones. New builds start from bundled knowledge of 3,870 n8n nodes and 2,352 workflow templates, so assistants configure real nodes with real-world example settings instead of guessing. The same connection runs test executions through webhook, form, or chat triggers, manages credentials, data tables, folders, and variables, and audits the whole instance for security problems. Governance-minded teams can disable write, credential, and data-table tools for a read-only deployment, while per-request instance headers let one server front several n8n instances. Running on a dedicated VPS on RepoCloud with guaranteed CPU, RAM, and SSD, full root SSH access, and a browser serial console. MIT licensed.
Benefits
- Diagnose failed runs in seconds
- Execution error mode returns the error message, the failing node, and sample items from the preceding node, so the assistant can pinpoint why an automation broke without you opening the n8n editor.
- Safe edits with automatic snapshots
- A snapshot is saved before each node or connection change, keeping up to 10 versions per workflow, and the version tool can list, diff, and roll back to restore a workflow after a bad edit.
- Catch broken workflows before deployment
- Node and workflow validators report unknown nodes, invalid versions, missing required fields, and broken connections or expressions, while the autofix tool repairs the most common problems automatically.
- Restrict what the assistant can change
- Token-authenticated HTTP mode plus tool and operation blocklists let you remove write, credential, and data-table actions entirely, producing a read-only deployment suited to governance-sensitive environments.
Features
- 29 MCP Tools
- Seven core discovery and validation tools plus 22 n8n management tools cover node search, templates, workflow edits, executions, credentials, data tables, folders, variables, and security audits.
- Bundled Node Database
- A prebuilt SQLite database, read through better-sqlite3 in Docker with a sql.js fallback, holds schemas and documentation for 3,870 n8n nodes, so discovery and validation work without an n8n connection.
- Template Library Search
- 2,352 workflow templates are searchable by keyword, node type, task, or metadata, and get_template returns complete workflow JSON that an assistant can adapt and deploy.
- Stdio and HTTP Transports
- Run it over stdio for local clients, or as a Docker HTTP server on port 3000 with AUTH_TOKEN authentication, auth rate limiting, and SSRF protection for webhook and API calls.
- Official MCP Fallback
- Setting N8N_MCP_ACCESS_TOKEN routes operations the Public API cannot perform, such as pinned-data test runs and native version history, to n8n's built-in instance-level MCP server.
- Multi-Instance Support
- Self-hosted HTTP mode can serve several n8n instances through per-request instance headers, so one deployment can front separate environments without being redeployed for each.