n8n Pro MCP
v1.0.0Manage 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.
| Parameter | Type | Description |
|---|---|---|
active | boolean | Filter by active state |
maxItems | integer | Max workflows to return across pages |
name | string | Filter by exact workflow name |
projectId | string | Filter by project ID |
tags | string | Comma-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).
| Parameter | Type | Description |
|---|---|---|
id * | string | Workflow ID |
mode | string | full = 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.
| Parameter | Type | Description |
|---|---|---|
connections * | object | Connections object keyed by source node name, e.g. {"Webhook": {"main": [[{"node": "Set", "type": "main", "index": 0}]]}} |
name * | string | Workflow name |
nodes * | array | Workflow nodes |
settings | object | Workflow settings (executionOrder, errorWorkflow, timezone, ...) |
skipValidation | boolean | Create 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.
| Parameter | Type | Description |
|---|---|---|
id * | string | Workflow ID |
connections | object | |
name | string | |
nodes | array | |
settings | object | |
skipValidation | boolean | Update 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.
| Parameter | Type | Description |
|---|---|---|
id * | string | Workflow ID |
activate_workflow
Activate a workflow so its triggers (webhooks, schedules, queue consumers) start running.
| Parameter | Type | Description |
|---|---|---|
id * | string | Workflow ID |
deactivate_workflow
Deactivate a workflow — triggers stop firing but the workflow and its history are kept.
| Parameter | Type | Description |
|---|---|---|
id * | string | Workflow ID |
transfer_workflow
Transfer a workflow to another project (requires the Projects feature on the instance).
| Parameter | Type | Description |
|---|---|---|
destinationProjectId * | string | Target project ID (see list_projects) |
id * | string | Workflow 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).
| Parameter | Type | Description |
|---|---|---|
query * | string | Case-insensitive text to match against workflow name, node names and node types |
active | boolean | Restrict to active/inactive workflows |
maxScan | integer | Max 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.
| Parameter | Type | Description |
|---|---|---|
id * | string | Source workflow ID |
newName | string | Name 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.
| Parameter | Type | Description |
|---|---|---|
active * | boolean | Desired state: true = activate, false = deactivate |
tag * | string | Tag name (see list_tags) |
dryRun | boolean | Preview 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.
| Parameter | Type | Description |
|---|---|---|
workflow * | object | The 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.
| Parameter | Type | Description |
|---|---|---|
maxItems | integer | Max executions to return |
projectId | string | Filter by project ID |
status | string | Filter by execution status (older n8n versions only accept error/success/waiting) |
workflowId | string | Filter 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.
| Parameter | Type | Description |
|---|---|---|
id * | string | Execution ID |
includeData | boolean | Include full node-level run data (large) |
delete_execution
Delete a single execution record by ID (frees DB space; cannot be undone).
| Parameter | Type | Description |
|---|---|---|
id * | string | Execution 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.
| Parameter | Type | Description |
|---|---|---|
id * | string | Execution 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.
| Parameter | Type | Description |
|---|---|---|
maxItems | integer | Max 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.
| Parameter | Type | Description |
|---|---|---|
path * | string | Webhook path as configured in the Webhook node (without /webhook/ prefix) |
headers | object | Extra HTTP headers (e.g. webhook auth) |
method | string | HTTP method the Webhook node expects |
payload | object | JSON body to send (POST/PUT/DELETE — not allowed with GET) |
test | boolean | Call 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.
| Parameter | Type | Description |
|---|---|---|
id * | string | Execution 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.
| Parameter | Type | Description |
|---|---|---|
id * | string | Execution ID to wait for |
pollSeconds | integer | Interval between checks |
timeoutSeconds | integer | Max 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.
| Parameter | Type | Description |
|---|---|---|
dryRun | boolean | Preview what would be deleted without deleting |
maxDelete | integer | Safety cap per call |
olderThanDays | number | Only prune executions that stopped more than N days ago |
status | string | Only prune executions with this terminal status |
workflowId | string | Only 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.
| Parameter | Type | Description |
|---|---|---|
sample | integer | How many recent executions to aggregate |
workflowId | string | Restrict stats to one workflow |
list_tags
List all tags on the instance with their IDs (IDs are needed by set_workflow_tags).
| Parameter | Type | Description |
|---|---|---|
maxItems | integer | Max tags to return |
create_tag
Create a new tag.
| Parameter | Type | Description |
|---|---|---|
name * | string | Tag name |
update_tag
Rename a tag by ID (all workflows using it see the new name).
| Parameter | Type | Description |
|---|---|---|
id * | string | Tag ID |
name * | string | New tag name |
delete_tag
Delete a tag by ID (removes it from every workflow; the workflows themselves are untouched).
| Parameter | Type | Description |
|---|---|---|
id * | string | Tag ID |
get_workflow_tags
List the tags attached to a workflow.
| Parameter | Type | Description |
|---|---|---|
workflowId * | string | Workflow 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.
| Parameter | Type | Description |
|---|---|---|
tagNames * | array | Full desired set of tag names (replaces current tags) |
workflowId * | string | Workflow ID |
createMissing | boolean | Create 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.
| Parameter | Type | Description |
|---|---|---|
data * | object | Credential fields as required by the type's schema |
name * | string | Display name for the credential |
type * | string | Credential type name, e.g. 'slackApi', 'httpHeaderAuth' |
delete_credential
Delete a credential by ID. Workflows that reference it will fail until reassigned.
| Parameter | Type | Description |
|---|---|---|
id * | string | Credential ID |
get_credential_schema
Get the JSON schema of a credential type — which fields it needs (e.g. 'slackApi' → accessToken). Use before create_credential.
| Parameter | Type | Description |
|---|---|---|
credentialTypeName * | string | Credential type name, e.g. 'githubApi' |
transfer_credential
Transfer a credential to another project (requires the Projects feature).
| Parameter | Type | Description |
|---|---|---|
destinationProjectId * | string | Target project ID (see list_projects) |
id * | string | Credential ID |
list_variables
List instance variables (accessible in workflows via $vars.<key>). Requires a licensed n8n plan with the Variables feature.
| Parameter | Type | Description |
|---|---|---|
maxItems | integer | Max variables to return |
create_variable
Create an instance variable (then available in workflows as $vars.<key>).
| Parameter | Type | Description |
|---|---|---|
key * | string | Variable key (letters, numbers, underscores) |
value * | string | Variable value (always stored as string) |
update_variable
Update an existing variable's key/value by variable ID (see list_variables for IDs).
| Parameter | Type | Description |
|---|---|---|
id * | string | Variable ID |
key * | string | Variable key |
value * | string | New value |
delete_variable
Permanently delete a variable by ID — cannot be undone. Workflows reading $vars.<key> will get undefined afterwards.
| Parameter | Type | Description |
|---|---|---|
id * | string | Variable 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.
| Parameter | Type | Description |
|---|---|---|
maxItems | integer | Max projects to return |
create_project
Create a new team project.
| Parameter | Type | Description |
|---|---|---|
name * | string | Project name |
update_project
Rename a project by ID.
| Parameter | Type | Description |
|---|---|---|
id * | string | Project ID |
name * | string | New project name |
delete_project
Permanently delete a project by ID — cannot be undone. Move its workflows/credentials out first (transfer_workflow / transfer_credential).
| Parameter | Type | Description |
|---|---|---|
id * | string | Project 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.
| Parameter | Type | Description |
|---|---|---|
projectId * | string | Project ID |
userId * | string | User ID (see list_users) |
role | string | Role of the user inside the project |
remove_user_from_project
Remove a user from a project (the user keeps their instance account).
| Parameter | Type | Description |
|---|---|---|
projectId * | string | Project ID |
userId * | string | User ID |
change_user_project_role
Change a user's role inside a project (admin/editor/viewer).
| Parameter | Type | Description |
|---|---|---|
projectId * | string | Project ID |
role * | string | New role inside the project |
userId * | string | User ID |
list_users
List users of the instance with their global roles (requires owner API key).
| Parameter | Type | Description |
|---|---|---|
includeRole | boolean | Include each user's global role |
maxItems | integer | Max users to return |
projectId | string | Filter to members of a project |
get_user
Get one user by ID or email address.
| Parameter | Type | Description |
|---|---|---|
idOrEmail * | string | User ID or email |
includeRole | boolean | Include 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.
| Parameter | Type | Description |
|---|---|---|
email * | string | Email of the user to invite |
role | string | Global role |
delete_user
Permanently remove a user from the instance by ID or email — cannot be undone; the user loses access immediately.
| Parameter | Type | Description |
|---|---|---|
idOrEmail * | string | User ID or email |
change_user_role
Change a user's global role (admin ↔ member). The instance owner role cannot be reassigned.
| Parameter | Type | Description |
|---|---|---|
idOrEmail * | string | User ID or email |
newRole * | string | New 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.
| Parameter | Type | Description |
|---|---|---|
categories | array | Audit categories to run (default: all) |
daysAbandonedWorkflow | integer | Days 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.
| Parameter | Type | Description |
|---|---|---|
force | boolean | Discard local changes and force-pull |
variables | object | Values for variables defined in the repository |