mcp-n8n

v1.5.0
io.github.leonardosepulvedat/mcp-n8n Checked 12 hours ago Published 3 months ago

Operate and build n8n: 61 tools, 560-node catalog, validation, autofix, snapshots and backups.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

n8n_create_workflow

Create a new workflow in n8n. Prefer n8n_search_nodes + n8n_validate_workflow first so the JSON is valid. You can specify nodes, connections, and settings.

ParameterTypeDescription
name *stringName of the workflow
connectionsobjectNode connections
nodesarrayArray of workflow nodes (defaults to empty)
settingsobjectWorkflow settings

n8n_list_workflows

List all workflows with full details. Can filter by active status, tags, name, or project. WARNING: Returns complete workflow data including nodes and connections - use n8n_list_workflows_summary for better token efficiency.

ParameterTypeDescription
activebooleanFilter by active status
cursorstringPagination cursor
fieldsarraySpecific fields to return (e.g., ["id", "name", "active"]). Reduces token usage significantly.
limitintegerNumber of results (max 250)
namestringFilter by workflow name
projectIdstringFilter by project ID
tagsstringFilter by tag ID

n8n_list_workflows_summary

List workflows with minimal data (id, name, active, tags, updatedAt only). Recommended for browsing and listing - uses 90% fewer tokens than n8n_list_workflows. Use n8n_get_workflow to fetch full details of a specific workflow.

ParameterTypeDescription
activebooleanFilter by active status
cursorstringPagination cursor
limitintegerNumber of results (max 250)
namestringFilter by workflow name
projectIdstringFilter by project ID
tagsstringFilter by tag ID

n8n_get_workflow

Get detailed information about a specific workflow by ID.

ParameterTypeDescription
id *stringWorkflow ID

n8n_update_workflow

Update an existing workflow. Supports partial updates: omitted fields keep their current values (the current workflow is fetched and merged automatically).

ParameterTypeDescription
id *stringWorkflow ID to update
connectionsobjectUpdated connections
namestringNew workflow name
nodesarrayUpdated workflow nodes
settingsobjectUpdated settings

n8n_delete_workflow

Delete a workflow permanently. A local snapshot is saved first so it can be restored with n8n_rollback_workflow (into a new workflow).

ParameterTypeDescription
id *stringWorkflow ID to delete

n8n_activate_workflow

Activate a workflow to start receiving triggers.

ParameterTypeDescription
id *stringWorkflow ID to activate

n8n_deactivate_workflow

Deactivate a workflow to stop receiving triggers.

ParameterTypeDescription
id *stringWorkflow ID to deactivate

n8n_transfer_workflow

Transfer a workflow to another project.

ParameterTypeDescription
destinationProjectId *stringDestination project ID
id *stringWorkflow ID

n8n_get_workflow_tags

Get all tags associated with a workflow.

ParameterTypeDescription
id *stringWorkflow ID

n8n_update_workflow_tags

Update tags for a workflow.

ParameterTypeDescription
id *stringWorkflow ID
tagIds *arrayArray of tag IDs

n8n_list_executions

List workflow executions. Can filter by status, workflow ID, or project. TIP: Set includeData=false and use fields parameter to reduce token usage.

ParameterTypeDescription
cursorstringPagination cursor
fieldsarraySpecific fields to return (e.g., ["id", "status", "workflowId"]). Reduces token usage.
includeDatabooleanInclude execution data (WARNING: significantly increases token usage)
limitintegerNumber of results
projectIdstringFilter by project ID
statusstringFilter by execution status
workflowIdstringFilter by workflow ID

n8n_get_execution

Get detailed information about a specific execution.

ParameterTypeDescription
id *stringExecution ID
includeDatabooleanInclude execution data

n8n_delete_execution

Delete an execution record.

ParameterTypeDescription
id *stringExecution ID to delete

n8n_retry_execution

Retry a failed execution.

ParameterTypeDescription
id *stringExecution ID to retry

n8n_create_credential

Create a new credential for a specific node type.

ParameterTypeDescription
data *objectCredential data
name *stringCredential name
type *stringCredential type (e.g., "httpBasicAuth")
projectIdstringProject ID

n8n_delete_credential

Delete a credential (owner only).

ParameterTypeDescription
id *stringCredential ID to delete

n8n_get_credential_schema

Get the schema for a credential type to understand required fields.

ParameterTypeDescription
credentialTypeName *stringCredential type name

n8n_transfer_credential

Transfer a credential to another project.

ParameterTypeDescription
destinationProjectId *stringDestination project ID
id *stringCredential ID

n8n_create_tag

Create a new tag for organizing workflows.

ParameterTypeDescription
name *stringTag name

n8n_list_tags

List all tags available in n8n.

n8n_get_tag

Get information about a specific tag.

ParameterTypeDescription
id *stringTag ID

n8n_update_tag

Update a tag name.

ParameterTypeDescription
id *stringTag ID
name *stringNew tag name

n8n_delete_tag

Delete a tag.

ParameterTypeDescription
id *stringTag ID to delete

n8n_create_variable

Create a new environment variable in n8n.

ParameterTypeDescription
key *stringVariable key
value *stringVariable value
projectIdstringProject ID
typestringVariable type

n8n_list_variables

List all environment variables.

ParameterTypeDescription
projectIdstringFilter by project ID
statestringFilter by state

n8n_update_variable

Update an environment variable.

ParameterTypeDescription
id *stringVariable ID
keystringNew key
typestring
valuestringNew value

n8n_delete_variable

Delete an environment variable.

ParameterTypeDescription
id *stringVariable ID to delete

n8n_list_users

List all users (owner only).

ParameterTypeDescription
includeRolebooleanInclude role information

n8n_create_users

Create multiple users at once.

ParameterTypeDescription
users *arrayArray of user objects

n8n_get_user

Get user by ID or email (owner only).

ParameterTypeDescription
id *stringUser ID or email

n8n_delete_user

Delete a user.

ParameterTypeDescription
id *stringUser ID to delete

n8n_change_user_role

Change a user's global role.

ParameterTypeDescription
id *stringUser ID
role *stringNew role

n8n_create_project

Create a new project in n8n.

ParameterTypeDescription
name *stringProject name
typestringProject type

n8n_list_projects

List all projects.

n8n_update_project

Update a project.

ParameterTypeDescription
id *stringProject ID
namestringNew project name
typestring

n8n_delete_project

Delete a project.

ParameterTypeDescription
id *stringProject ID to delete

n8n_add_user_to_project

Add a user to a project with a specific role.

ParameterTypeDescription
projectId *stringProject ID
role *stringUser role in project
userId *stringUser ID to add

n8n_remove_user_from_project

Remove a user from a project.

ParameterTypeDescription
projectId *stringProject ID
userId *stringUser ID to remove

n8n_change_user_project_role

Change a user's role within a project.

ParameterTypeDescription
projectId *stringProject ID
role *stringNew role
userId *stringUser ID

n8n_generate_audit

Generate a security audit report.

n8n_pull_source_control

Pull changes from remote source control repository.

n8n_export_all_workflows

Back up every workflow of the instance as individual JSON files in a local directory. Complements the per-change snapshots with a full-instance safety net.

ParameterTypeDescription
directorystringTarget directory (default: ~/.mcp-n8n/backups/<timestamp>)

n8n_import_workflows

Import workflow JSON files from a local directory (e.g. a backup created with n8n_export_all_workflows) as new workflows in the instance.

ParameterTypeDescription
directory *stringDirectory containing .json workflow files
activatebooleanActivate workflows that were active in the backup (default false)

n8n_list_workflow_templates

List available workflow templates with their metadata. Use this to discover what pre-built workflows are available.

ParameterTypeDescription
categorystringFilter by category (e.g., "AI/Chat", "E-commerce/Support")
searchstringSearch keywords in name, description, tags, and use cases

n8n_get_workflow_template

Get a specific workflow template by ID or intelligently find the best matching template based on user requirements.

ParameterTypeDescription
templateIdstringTemplate ID (if known)
userRequeststringUser's description of what they want to build. Used to intelligently match the best template.

n8n_create_workflow_from_template

Create a new workflow in n8n based on a template. Automatically selects the best template if not specified.

ParameterTypeDescription
activatebooleanWhether to activate the workflow after creation
templateIdstringTemplate ID to use (if known)
userRequeststringDescription of what the user wants. Used to find the best matching template if templateId not provided.
workflowNamestringCustom name for the new workflow (optional, will use template name if not provided)

n8n_search_nodes

Search the full catalog of 560 n8n nodes (extracted from the real n8n packages). Use this BEFORE creating a workflow so node types are correct. Returns summaries; use n8n_get_node for the full parameter schema.

ParameterTypeDescription
query *stringWhat the node should do (e.g. "slack", "postgres", "vector store", "schedule")
limitintegerMax results (default 8)

n8n_get_node

Get the real parameter schema of an n8n node type: parameters with types, options and display conditions, required params, credentials, latest typeVersion, plus curated notes and an example for common nodes.

ParameterTypeDescription
type *stringNode type or alias (e.g. "n8n-nodes-base.slack" or "webhook")

n8n_autofix_workflow

Apply safe mechanical fixes to a workflow: missing typeVersion, missing positions, duplicate node names, connections to nonexistent nodes, and missing "=" prefixes on expressions. By default returns a preview; set apply=true to save (a snapshot is taken first).

ParameterTypeDescription
id *stringWorkflow ID
applybooleanSave the fixed workflow (default false = preview only)

n8n_validate_workflow

Validate a workflow JSON before creating or updating it. Checks node names, types, required parameters, and connections. Always call this before n8n_create_workflow or n8n_activate_workflow.

ParameterTypeDescription
connectionsobject
namestring
nodesarray
workflowIdstringIf set, validate the workflow already stored in n8n

n8n_update_workflow_partial

Apply surgical edits to an existing workflow without rewriting it. Operations: setName, addNode, removeNode, updateNode, addConnection, removeConnection. Fetches the current workflow, applies the ops, and saves.

ParameterTypeDescription
id *stringWorkflow ID
operations *arrayList of edits to apply in order
validatebooleanValidate before saving (default true)

n8n_debug_last_error

Get the most recent failed execution (optionally for one workflow) with the failing node and error message. Use this to repair a broken workflow.

ParameterTypeDescription
workflowIdstringLimit to one workflow

n8n_get_node_execution_data

Inspect the data that flowed through a specific node in an execution, without downloading the whole execution. Without nodeName, returns an overview of all executed nodes (status, item counts, errors). With nodeName, returns the actual output items (limited sample) and error details for that node.

ParameterTypeDescription
executionId *stringExecution ID
itemsLimitintegerMax output items to return per run (default 3)
nodeNamestringNode name to inspect (omit for an overview of all nodes)

n8n_workflow_health

Operational health report computed from recent executions: success rate, failure count, average duration, and last failure per workflow, sorted worst-first. Use it to find which workflows need attention.

ParameterTypeDescription
limitintegerHow many recent executions to analyze (default 100)
workflowIdstringLimit to one workflow

n8n_search_public_templates

Search official n8n.io workflow templates (thousands, always current). Returns summaries only. Then use n8n_import_public_template to copy one into the instance.

ParameterTypeDescription
query *stringWhat the workflow should do
limitinteger

n8n_import_public_template

Download an official n8n.io template by ID and create it as a workflow in this instance. Credentials still have to be attached in n8n.

ParameterTypeDescription
templateId *stringNumeric ID from n8n_search_public_templates
activateboolean
workflowNamestring

n8n_trigger_webhook

Call a Webhook-trigger workflow on the n8n instance to test it end-to-end and see the real response. Use test=true only while the workflow is in "Listen for test event" mode in the editor; otherwise the workflow must be active.

ParameterTypeDescription
path *stringWebhook path as configured in the Webhook node (e.g. "my-hook" or a UUID)
bodyobjectJSON body to send
methodstringHTTP method (default POST)
testbooleanUse the /webhook-test/ path instead of /webhook/

n8n_list_workflow_snapshots

List local snapshots of a workflow. A snapshot is saved automatically before every update, partial update, or delete done through this server.

ParameterTypeDescription
id *stringWorkflow ID

n8n_rollback_workflow

Restore a workflow to a previous snapshot (latest by default). The current state is snapshotted first, so a rollback can itself be undone. If the workflow was deleted, set recreate=true to restore it as a new workflow.

ParameterTypeDescription
id *stringWorkflow ID
recreatebooleanCreate a new workflow from the snapshot instead of updating (for deleted workflows)
timestampstringSnapshot timestamp from n8n_list_workflow_snapshots (default: most recent)

n8n_diff_workflow_snapshot

Compare a workflow snapshot against the current state (or another snapshot): nodes added/removed/modified, changed parameters, and connection changes. Useful before deciding whether to roll back.

ParameterTypeDescription
id *stringWorkflow ID
fromstringSnapshot timestamp to compare from (default: most recent snapshot)
tostringSnapshot timestamp to compare to (default: current state in n8n)