n8n-admin-mcp
This server provides administrative control over n8n workflows, including backup/rollback, CRUD, patching, schema derivation, payload replay, and safety checks.
Workflow management: list, get by ID/name, create, duplicate, update, and set active state.
Backup & rollback: export workflow JSON, list backups, duplicate as immutable baseline, and roll back to a baseline snapshot.
Safety policy: read the active write-safety policy; mutations require baseline duplication and confirm in production.
Node-level operations: patch node parameters and merge or replace workflow JSON.
Schema & payload tools: derive candidate tool schemas, inspect node output shape, validate output types, and parse/normalize sample payloads.
Provides tools for administering n8n workflows, including backup and rollback, replaying sample payloads, deriving tool schemas, patching node parameters, duplicating workflows, and workflow CRUD operations.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@n8n-admin-mcp Back up the 'Invoice Generator' workflow before making changes."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
n8n Admin MCP Server
An MCP server that exposes n8n workflow administration: backup and rollback, replaying sample payloads, deriving tool schemas, patching node parameters, and workflow duplication/CRUD.
Write-Safety
Every mutation requires a pre-duplication baseline. In a production environment, mutations also require confirm=true.
Related MCP server: n8n MCP Server
Requirements
Node.js 20+
A running n8n instance with API access
Install
git clone https://github.com/mattmaas/n8n-admin-mcp.git
cd n8n-admin-mcp
npm install
npm start # node n8n-admin-mcp.mjsEnvironment Variables
Variable | Required | Description |
| yes | Base URL of your n8n instance |
| yes | n8n API key |
Use N8N_ADMIN_CONFIG_FILE to load settings from a local JSON file instead.
MCP Client Configuration
Add this server to your MCP client's config:
{
"mcpServers": {
"n8n-admin": {
"command": "node",
"args": ["<path>/n8n-admin-mcp/n8n-admin-mcp.mjs"],
"env": {
"N8N_API_BASE_URL": "http://localhost:5678",
"N8N_API_KEY": "your-api-key"
}
}
}
}Tools
Tool | Description |
| Read the active write-safety policy |
| List workflows from the n8n API |
| Get a workflow by ID |
| Find a workflow by exact name |
| Export workflow JSON to a local backup |
| Whether a workflow is active |
| Derive candidate IO schema from node parameters |
| Inspect a node's output type shape |
| Validate tool output against an expected type |
| Parse and normalize a sample payload |
| Create a new inactive workflow |
| Duplicate a workflow as an immutable baseline |
| Update a workflow (merge or replace) |
| Patch parameters on a named node |
| Set workflow active state |
| Roll back to a baseline snapshot |
| List backup records made by this tool |
Usage
Ask your agent, for example:
"Show me all my n8n workflows" →
list_workflows"Back up the 'order-processing' workflow before I edit it" →
duplicate_workflowthenexport_workflow_json"Change the webhook URL on node 'HTTP Request'" →
patch_node_params(workflow_id=..., node_name="HTTP Request", params={...})
License
MIT
Available Tools
17 toolscreate_workflowC
Creates a new inactive workflow and exports a local source backup
Inputs: workflow (required), confirm.
derive_tool_schemaC
Derives candidate IO schema from workflow node parameters
Inputs: workflow_id (required), node_name.
duplicate_workflowC
Duplicates a workflow as immutable baseline
Inputs: workflow_id (required), reason, confirm.
export_workflow_jsonC
Exports workflow JSON to local backup file
Inputs: workflow_id (required).
get_active_stateC
Returns whether workflow is active
Inputs: workflow_id (required).
get_policyC
Returns active write safety policy
Inputs: no named parameters.
get_workflowC
Gets a workflow by ID
Inputs: workflow_id (required).
get_workflow_by_nameC
Finds a workflow by exact name
Inputs: name (required).
inspect_node_output_shapeC
Inspects output type shape for a node sample
Inputs: sample_output (required).
list_backupsC
Lists backup records made by this admin tool
Inputs: limit, workflow_id.
list_workflowsC
Lists workflows from n8n API
Inputs: limit, active, name_contains.
patch_node_paramsC
Patches parameters on a named workflow node
Inputs: params (required), node_name (required), workflow_id (required), merge, +1 more.
replay_sample_payloadC
Parses and normalizes a sample payload
Inputs: payload_json (required).
rollback_workflowC
Rolls back a workflow to a baseline workflow snapshot
Inputs: workflow_id (required), baseline_workflow_id (required), confirm, keep_active_state.
set_workflow_activeD
Sets workflow active state
Inputs: active (required), workflow_id (required), confirm.
update_workflow_jsonC
Updates workflow with full or partial workflow object
Inputs: workflow (required), workflow_id (required), mode, confirm.
validate_tool_ioC
Validates tool output type against expectation
Inputs: sample_output (required), expected_output_type.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 17 tools
Most tools have clearly distinct purposes (get_workflow by ID vs get_workflow_by_name, patch_node_params vs update_workflow_json). Minor overlap between get_active_state and get_workflow (which likely returns active state anyway), and the four IO/schema tools form a related cluster, but descriptions keep them distinguishable.
Consistent verb_noun snake_case throughout (get_policy, list_workflows, create_workflow, update_workflow_json, patch_node_params, rollback_workflow). Minor word-order variance in set_workflow_active does not break the predictable pattern.
17 tools is reasonable for an admin server covering workflow CRUD, state management, backups, and IO schema analysis, though it sits near the upper end of comfortably scannable.
Strong lifecycle coverage: create, get, update, patch, activate, duplicate, rollback, export, and backup listing. No delete_workflow and no execution/run tooling, which are minor gaps for a full n8n admin surface.
Maintenance
Related MCP Connectors
Security scanner for n8n workflows + live MCP Trust-Check. 18 rules, OWASP mapped. Paid x402 API.
26 pay-per-call AI agent tools for marketing, sales, content, research, verification, and integration testing. Agents pay per call via x402 micropayments (USDC on Base), raw JSON in and out. Includes delivery-acceptance receipts (ACCEPT/REJECT/REVIEW), a webhook capture/replay/conformance lab, and n8n workflow validation with bounded JSON-Patch repair.
Build, check and fix n8n workflows from Claude, Cursor or ChatGPT. Built on 1,100+ real n8n node definitions and curated templates, with a validator that repairs common mistakes (wrong node types, missing settings) and returns JSON ready to import into n8n. Sign in with a free gydmation.com account; nothing to install.
Static n8n workflow validator: workflow errors and repair suggestions. No execution.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables orchestration and management of n8n workflows through tools for creating, updating, diagnosing failed executions, auto-fixing workflows, and installing community nodes.-
- AlicenseAqualityDmaintenanceEnables full workflow automation management in n8n through 40+ tools covering workflows, executions, credentials, tags, variables, projects, users, and source control operations.52MIT
- AlicenseBqualityDmaintenanceA comprehensive MCP server that provides full control over n8n automation workflows through natural language. It offers 43 tools for managing workflows, executions, credentials, and data tables, with safety features like write-mode protection and double-validated workflow creation.431MIT
- AlicenseAqualityBmaintenanceProvides ops-focused n8n tools for MCP-compatible agents, enabling listing, inspecting, triggering, validating, managing tags, running security audits, and safely editing n8n workflows with auto-backup and confirm gates.2038 npm1MIT