n8n Pro MCP

v1.0.0
io.github.helbertparanhos/n8n-pro-mcp Checked 4 days ago Published 5 months ago

Manage self-hosted n8n (incl.

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

list_workflows

List workflows with optional filters (active, tag names, project, name) and automatic cursor pagination. Returns id, name, active state, tags and timestamps — never the heavy node data.

ParameterTypeDescription
activebooleanFilter by active state
maxItemsintegerMax workflows to return across pages
namestringFilter by exact workflow name
projectIdstringFilter by project ID
tagsstringComma-separated tag names to filter by

get_workflow

Get a workflow by ID, including full nodes and connections JSON. Use mode='summary' to get only metadata and the node list (cheaper for inspection).

ParameterTypeDescription
id *stringWorkflow ID
modestringfull = complete JSON; summary = metadata + node names/types only

create_workflow

Create a new workflow from JSON (name, nodes, connections, settings). Runs offline validation first and refuses to create invalid workflows unless skipValidation=true. New workflows are created inactive — use activate_workflow afterwards.

ParameterTypeDescription
connections *objectConnections object keyed by source node name, e.g. {"Webhook": {"main": [[{"node": "Set", "type": "main", "index": 0}]]}}
name *stringWorkflow name
nodes *arrayWorkflow nodes
settingsobjectWorkflow settings (executionOrder, errorWorkflow, timezone, ...)
skipValidationbooleanCreate even if offline validation finds errors

update_workflow

Update a workflow partially: fetches the current version, merges only the fields you pass (name, nodes, connections, settings), validates offline and PUTs the result. Pass full nodes/connections arrays when changing them — they replace the existing ones.

ParameterTypeDescription
id *stringWorkflow ID
connectionsobject
namestring
nodesarray
settingsobject
skipValidationbooleanUpdate even if offline validation finds errors

delete_workflow

Permanently delete a workflow by ID. This cannot be undone — consider deactivate_workflow instead if you only want to stop it.

ParameterTypeDescription
id *stringWorkflow ID

activate_workflow

Activate a workflow so its triggers (webhooks, schedules, queue consumers) start running.

ParameterTypeDescription
id *stringWorkflow ID

deactivate_workflow

Deactivate a workflow — triggers stop firing but the workflow and its history are kept.

ParameterTypeDescription
id *stringWorkflow ID

transfer_workflow

Transfer a workflow to another project (requires the Projects feature on the instance).

ParameterTypeDescription
destinationProjectId *stringTarget project ID (see list_projects)
id *stringWorkflow ID

search_workflows

Search workflows by free text across name, node names and node types (client-side over the listing — finds e.g. every workflow using a given node type or touching a given service).

ParameterTypeDescription
query *stringCase-insensitive text to match against workflow name, node names and node types
activebooleanRestrict to active/inactive workflows
maxScanintegerMax workflows to scan

clone_workflow

Duplicate a workflow: fetches the source and creates an inactive copy (same nodes, connections, settings and credential references) under a new name. Useful for safe experimentation on production workflows.

ParameterTypeDescription
id *stringSource workflow ID
newNamestringName for the copy (default: '<source name> (copy)')

set_workflows_active_by_tag

Bulk activate or deactivate every workflow carrying a tag — an operational kill switch (e.g. deactivate everything tagged 'client-x'). Runs as a dry run by default; set dryRun=false to apply. Workflows already in the desired state are skipped.

ParameterTypeDescription
active *booleanDesired state: true = activate, false = deactivate
tag *stringTag name (see list_tags)
dryRunbooleanPreview affected workflows without changing them

validate_workflow_json

Validate a workflow JSON offline (no API call): structure, unique node names, connection integrity, orphan nodes, {{ }} expression syntax, webhook `.body` access, Code node return format and hardcoded secrets. Run before create_workflow/update_workflow.

ParameterTypeDescription
workflow *objectThe workflow JSON to validate

list_executions

List executions with filters (status, workflow, project) and automatic pagination. Returns lightweight summaries with duration — use get_execution for full node-level data.

ParameterTypeDescription
maxItemsintegerMax executions to return
projectIdstringFilter by project ID
statusstringFilter by execution status (older n8n versions only accept error/success/waiting)
workflowIdstringFilter by workflow ID

get_execution

Get one execution by ID. includeData=true returns the full run data (node inputs/outputs and error details) — useful to debug a failed run.

ParameterTypeDescription
id *stringExecution ID
includeDatabooleanInclude full node-level run data (large)

delete_execution

Delete a single execution record by ID (frees DB space; cannot be undone).

ParameterTypeDescription
id *stringExecution ID

retry_execution

Retry a failed or stopped execution by ID. Requires a recent n8n version exposing retry in the public API — if unavailable (404), re-trigger the workflow via run_webhook instead.

ParameterTypeDescription
id *stringExecution ID to retry

list_running_executions

Queue-mode view: list executions currently running or waiting in the queue. Tries the API status filter first and falls back to scanning recent executions for ones without a stop time.

ParameterTypeDescription
maxItemsintegerMax executions to return

run_webhook

Trigger a workflow through its Webhook node. Calls {instance}/webhook/{path} (or /webhook-test/{path} with test=true, which requires the workflow open in 'Listen for test event' mode). In queue mode the call returns according to the webhook's response mode.

ParameterTypeDescription
path *stringWebhook path as configured in the Webhook node (without /webhook/ prefix)
headersobjectExtra HTTP headers (e.g. webhook auth)
methodstringHTTP method the Webhook node expects
payloadobjectJSON body to send (POST/PUT/DELETE — not allowed with GET)
testbooleanCall the test URL (/webhook-test/) instead of production

summarize_execution_error

Debug a failed execution without flooding the context: fetches the full run data and returns only the failing node, error message/description, a short stack and per-node errors. Use instead of get_execution includeData=true when you only need to know what broke.

ParameterTypeDescription
id *stringExecution ID (see list_executions with status=error)

wait_for_execution

Poll an execution until it reaches a terminal state (success/error/crashed/canceled) or the timeout expires. Returns early with waiting=true if the execution pauses on a Wait node. Closes the loop after run_webhook in queue mode, where execution happens asynchronously on workers. The timeout is best-effort: each poll request has its own HTTP timeout, so total wall time can slightly exceed timeoutSeconds.

ParameterTypeDescription
id *stringExecution ID to wait for
pollSecondsintegerInterval between checks
timeoutSecondsintegerMax time to wait

prune_executions

Bulk-delete finished execution records by filter (status, workflow, older than N days) to reclaim database space. Runs as a dry run by default — set dryRun=false to actually delete. Deletion is permanent and cannot be undone. Running/waiting executions are never touched.

ParameterTypeDescription
dryRunbooleanPreview what would be deleted without deleting
maxDeleteintegerSafety cap per call
olderThanDaysnumberOnly prune executions that stopped more than N days ago
statusstringOnly prune executions with this terminal status
workflowIdstringOnly prune executions of this workflow

get_execution_stats

Aggregate execution health over a recent sample: per-workflow success/error/waiting counts, success rate and average duration. The queue-mode dashboard in one call — spot failing or slow workflows.

ParameterTypeDescription
sampleintegerHow many recent executions to aggregate
workflowIdstringRestrict stats to one workflow

list_tags

List all tags on the instance with their IDs (IDs are needed by set_workflow_tags).

ParameterTypeDescription
maxItemsintegerMax tags to return

create_tag

Create a new tag.

ParameterTypeDescription
name *stringTag name

update_tag

Rename a tag by ID (all workflows using it see the new name).

ParameterTypeDescription
id *stringTag ID
name *stringNew tag name

delete_tag

Delete a tag by ID (removes it from every workflow; the workflows themselves are untouched).

ParameterTypeDescription
id *stringTag ID

get_workflow_tags

List the tags attached to a workflow.

ParameterTypeDescription
workflowId *stringWorkflow ID

set_workflow_tags

Replace the tags of a workflow. Accepts tag NAMES — resolves them to IDs automatically and, with createMissing=true, creates tags that don't exist yet. Pass an empty list to remove all tags.

ParameterTypeDescription
tagNames *arrayFull desired set of tag names (replaces current tags)
workflowId *stringWorkflow ID
createMissingbooleanCreate tags that don't exist yet

create_credential

Create a credential on the instance. Use get_credential_schema first to see which fields the credential type requires. The n8n public API never returns credential secrets — only metadata.

ParameterTypeDescription
data *objectCredential fields as required by the type's schema
name *stringDisplay name for the credential
type *stringCredential type name, e.g. 'slackApi', 'httpHeaderAuth'

delete_credential

Delete a credential by ID. Workflows that reference it will fail until reassigned.

ParameterTypeDescription
id *stringCredential ID

get_credential_schema

Get the JSON schema of a credential type — which fields it needs (e.g. 'slackApi' → accessToken). Use before create_credential.

ParameterTypeDescription
credentialTypeName *stringCredential type name, e.g. 'githubApi'

transfer_credential

Transfer a credential to another project (requires the Projects feature).

ParameterTypeDescription
destinationProjectId *stringTarget project ID (see list_projects)
id *stringCredential ID

list_variables

List instance variables (accessible in workflows via $vars.<key>). Requires a licensed n8n plan with the Variables feature.

ParameterTypeDescription
maxItemsintegerMax variables to return

create_variable

Create an instance variable (then available in workflows as $vars.<key>).

ParameterTypeDescription
key *stringVariable key (letters, numbers, underscores)
value *stringVariable value (always stored as string)

update_variable

Update an existing variable's key/value by variable ID (see list_variables for IDs).

ParameterTypeDescription
id *stringVariable ID
key *stringVariable key
value *stringNew value

delete_variable

Permanently delete a variable by ID — cannot be undone. Workflows reading $vars.<key> will get undefined afterwards.

ParameterTypeDescription
id *stringVariable ID

list_projects

List projects on the instance (requires the Projects feature, available on licensed plans). Project IDs are used by transfer_workflow / transfer_credential and as filters.

ParameterTypeDescription
maxItemsintegerMax projects to return

create_project

Create a new team project.

ParameterTypeDescription
name *stringProject name

update_project

Rename a project by ID.

ParameterTypeDescription
id *stringProject ID
name *stringNew project name

delete_project

Permanently delete a project by ID — cannot be undone. Move its workflows/credentials out first (transfer_workflow / transfer_credential).

ParameterTypeDescription
id *stringProject ID

add_user_to_project

Add a user to a project with a project role (admin/editor/viewer). Find user IDs with list_users and project IDs with list_projects.

ParameterTypeDescription
projectId *stringProject ID
userId *stringUser ID (see list_users)
rolestringRole of the user inside the project

remove_user_from_project

Remove a user from a project (the user keeps their instance account).

ParameterTypeDescription
projectId *stringProject ID
userId *stringUser ID

change_user_project_role

Change a user's role inside a project (admin/editor/viewer).

ParameterTypeDescription
projectId *stringProject ID
role *stringNew role inside the project
userId *stringUser ID

list_users

List users of the instance with their global roles (requires owner API key).

ParameterTypeDescription
includeRolebooleanInclude each user's global role
maxItemsintegerMax users to return
projectIdstringFilter to members of a project

get_user

Get one user by ID or email address.

ParameterTypeDescription
idOrEmail *stringUser ID or email
includeRolebooleanInclude the user's global role

create_user

Invite a new user to the instance with a global role. Returns the invite acceptance URL when email is not configured on the instance.

ParameterTypeDescription
email *stringEmail of the user to invite
rolestringGlobal role

delete_user

Permanently remove a user from the instance by ID or email — cannot be undone; the user loses access immediately.

ParameterTypeDescription
idOrEmail *stringUser ID or email

change_user_role

Change a user's global role (admin ↔ member). The instance owner role cannot be reassigned.

ParameterTypeDescription
idOrEmail *stringUser ID or email
newRole *stringNew global role

check_health

Check instance health: /healthz (process up), /healthz/readiness (DB connected & migrated) and REST API reachability/auth. In queue mode this validates the main process — pair with list_running_executions and get_execution_stats to assess queue throughput.

generate_audit

Generate n8n's built-in security audit: flags abandoned workflows, unused credentials, risky nodes (filesystem/instance access), and more. Optionally restrict categories or tune the abandoned-workflow threshold.

ParameterTypeDescription
categoriesarrayAudit categories to run (default: all)
daysAbandonedWorkflowintegerDays without execution for a workflow to count as abandoned (n8n default: 90)

pull_source_control

Pull changes from the connected source-control repository (requires the Source Control feature configured on the instance). force=true permanently discards local changes on the instance — cannot be undone.

ParameterTypeDescription
forcebooleanDiscard local changes and force-pull
variablesobjectValues for variables defined in the repository