Skip to main content
Glama
n8n-admin-mcp

n8n-admin-mcp

by mattmaas

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.mjs

Environment Variables

Variable

Required

Description

N8N_API_BASE_URL

yes

Base URL of your n8n instance

N8N_API_KEY

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

get_policy

Read the active write-safety policy

list_workflows

List workflows from the n8n API

get_workflow

Get a workflow by ID

get_workflow_by_name

Find a workflow by exact name

export_workflow_json

Export workflow JSON to a local backup

get_active_state

Whether a workflow is active

derive_tool_schema

Derive candidate IO schema from node parameters

inspect_node_output_shape

Inspect a node's output type shape

validate_tool_io

Validate tool output against an expected type

replay_sample_payload

Parse and normalize a sample payload

create_workflow

Create a new inactive workflow

duplicate_workflow

Duplicate a workflow as an immutable baseline

update_workflow_json

Update a workflow (merge or replace)

patch_node_params

Patch parameters on a named node

set_workflow_active

Set workflow active state

rollback_workflow

Roll back to a baseline snapshot

list_backups

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_workflow then export_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 tools
create_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

    C2.8/5.0

    Scored across 17 tools

    Disambiguation4/5

    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.

    Naming Consistency5/5

    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.

    Tool Count4/5

    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.

    Completeness4/5

    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

    ActivityStale
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables full workflow automation management in n8n through 40+ tools covering workflows, executions, credentials, tags, variables, projects, users, and source control operations.
      52
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      A 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.
      43
      1
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Provides 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.
      20
      38 npm
      1
      MIT