Skip to main content
Glama

n8n Pro MCP ⚙️

Full-instance management for self-hosted n8n — including queue mode — through the Model Context Protocol. 51 tools covering workflows, executions, tags, credentials, variables, projects, users, security audit, source control and health monitoring.

npm version License: MIT GitHub Stars GitHub Forks GitHub Issues Glama Quality

TypeScript Node.js MCP Claude Code Cursor Claude Desktop

Instagram YouTube LinkedIn Buy Me A Coffee Strat Academy

n8n-pro-mcp connects Claude Code, Claude Desktop, Cursor or any MCP client to your n8n instance via the official n8n public API v1, with automatic cursor pagination, exponential-backoff retry on reads (writes and webhook calls are never retried, so side effects can't duplicate), and offline workflow validation that catches the classic n8n mistakes (malformed {{ }} expressions, webhook data accessed without .body, Code nodes missing return [{json: {...}}]) before they reach your instance.

Why this one?

  • Queue mode first-class — list_running_executions (live queue view), get_execution_stats (success rate + average duration per workflow) and check_health (healthz, readiness, API auth) were built for instances running EXECUTIONS_MODE=queue with workers and webhook processors. N8N_WEBHOOK_BASE_URL lets webhook calls target dedicated webhook processors.

  • Complete API v1 coverage — tags, variables, projects, users, source control and cross-project transfers, beyond the usual workflow/execution CRUD.

  • Offline validation built in — validate_workflow_json checks structure, connection integrity, orphan nodes, expression syntax, webhook .body access, Code node return format and hardcoded secrets without any API call. create_workflow/update_workflow run it automatically and refuse invalid payloads.

  • Safe partial updates — update_workflow fetches the current workflow, merges only what you pass and strips read-only fields, so you never lose nodes by sending an incomplete PUT.

  • Tags by name — set_workflow_tags accepts tag names and creates missing ones; no manual ID juggling.

  • Ops compositions the raw API doesn't have — summarize_execution_error (just the failing node + error, not a giant JSON dump), prune_executions (bulk cleanup with dry run), wait_for_execution (poll until terminal), clone_workflow and set_workflows_active_by_tag (tag-based kill switch).

Related MCP server: n8n MCP Server

Installation

npm install -g n8n-pro-mcp     # or use npx, no install needed

From source:

git clone https://github.com/helbertparanhos/n8n-pro-mcp.git && cd n8n-pro-mcp
npm install
npm run build

When running from source, you can copy .env.example to .env in the project root — the server loads it from the package root, not the working directory. When installed via npx, set the variables through your MCP client config instead (the .env file is not read from the npx cache).

Configuration

Variable

Required

Description

N8N_API_URL

✅

Base URL of your instance (e.g. https://n8n.yourdomain.com) — no /api/v1 suffix

N8N_API_KEY

✅

API key from n8n → Settings → n8n API → Create API key

N8N_WEBHOOK_BASE_URL

—

Separate base URL for webhook calls (queue mode with dedicated webhook processors)

N8N_API_TIMEOUT_MS

—

Per-request timeout in ms (default 30000)

N8N_MAX_RETRIES

—

Retries on 429/5xx/network errors — applied to GET requests only, never to writes or webhook calls (default 3, 0 disables)

Claude Code

claude mcp add n8n-pro --env N8N_API_URL=https://n8n.yourdomain.com --env N8N_API_KEY=your-key -- npx -y n8n-pro-mcp

Or in .claude/settings.json / .mcp.json:

{
  "mcpServers": {
    "n8n-pro": {
      "command": "npx",
      "args": ["-y", "n8n-pro-mcp"],
      "env": {
        "N8N_API_URL": "https://n8n.yourdomain.com",
        "N8N_API_KEY": "your-api-key"
      }
    }
  }
}

Claude Desktop

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "n8n-pro": {
      "command": "npx",
      "args": ["-y", "n8n-pro-mcp"],
      "env": {
        "N8N_API_URL": "https://n8n.yourdomain.com",
        "N8N_API_KEY": "your-api-key"
      }
    }
  }
}

Cursor

Same JSON block in Cursor's MCP settings (.cursor/mcp.json).

Tools (51)

Workflows (12)

Tool

Description

list_workflows

List with filters (active, tags, project, name) + auto pagination

get_workflow

Full JSON or lightweight summary of one workflow

create_workflow

Create from JSON, with automatic offline validation

update_workflow

Partial update — fetch, merge, validate, PUT

delete_workflow

Permanently delete

activate_workflow / deactivate_workflow

Toggle triggers

transfer_workflow

Move between projects

search_workflows

Free-text search across names, node names and node types

clone_workflow

Duplicate a workflow as an inactive copy

set_workflows_active_by_tag

Bulk activate/deactivate by tag, with dry run

validate_workflow_json

Offline validation, no API call

Executions (10)

Tool

Description

list_executions

Filter by status/workflow/project, with durations

get_execution

Summary or full node-level run data for debugging

delete_execution

Remove an execution record

retry_execution

Retry a failed/stopped execution

list_running_executions

Queue-mode live view of running/queued executions

run_webhook

Trigger workflows via production or test webhook

wait_for_execution

Poll an execution until it reaches a terminal state

summarize_execution_error

Failing node + error message only — no giant JSON dump

prune_executions

Bulk-delete old execution records, dry run by default

get_execution_stats

Success rate + avg duration per workflow over a sample

Tags (6)

list_tags, create_tag, update_tag, delete_tag, get_workflow_tags, set_workflow_tags (by name, auto-creates missing tags).

Credentials (4)

create_credential, delete_credential, get_credential_schema, transfer_credential. Secrets are write-only — the n8n API never returns credential data.

Variables (4)

list_variables, create_variable, update_variable, delete_variable (licensed feature).

Projects (7)

list_projects, create_project, update_project, delete_project, plus member management: add_user_to_project, remove_user_from_project, change_user_project_role (licensed feature).

Users (5)

list_users, get_user, create_user (invite), delete_user, change_user_role.

System (3)

Tool

Description

check_health

healthz + readiness (DB) + API auth, with a plain-language summary

generate_audit

n8n's built-in security audit (credentials, database, nodes, filesystem, instance)

pull_source_control

Pull from the connected git repository

Queue mode playbook

With EXECUTIONS_MODE=queue (main + workers + Redis):

  1. check_health — confirms the main process and DB are up.

  2. list_running_executions — what is actually in flight right now; a growing list with old startedAt values means workers are starved or stuck.

  3. get_execution_stats — which workflows fail or crawl; sorted worst-first by success rate.

  4. run_webhook with N8N_WEBHOOK_BASE_URL pointing at your webhook processors to test the production ingestion path end to end.

Development

npm test             # build + unit tests (validation rules, client helpers, .env parser)
npm run watch        # incremental compile
npm run inspector    # interactive testing with @modelcontextprotocol/inspector

CI (GitHub Actions) runs build, tests and npm audit on every push and PR.

Requirements

  • Node.js ≥ 18

  • n8n instance with the public API enabled (N8N_PUBLIC_API_DISABLED not set) and an API key

  • Variables, projects and source-control tools require the corresponding licensed n8n features

👤 Author

Created by Helbert Paranhos at Strat Academy.

Instagram YouTube LinkedIn Buy Me A Coffee

If this project helped you, consider starring ⭐ the repository and following Strat Academy for more AI automation tooling.

📄 License

MIT © Helbert Paranhos / Strat Academy — see LICENSE.

Available Tools

51 tools
activate_workflowA

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

Inputs: id (required).

add_user_to_projectA

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.

Inputs: projectId (required), userId (required), role.

change_user_project_roleA

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

Inputs: projectId (required), userId (required), role (required).

change_user_roleA

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

Inputs: idOrEmail (required), newRole (required).

check_healthA
Read-only

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.

Inputs: no named parameters.

clone_workflowA

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.

Inputs: id (required), newName.

create_credentialA

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.

Inputs: name (required), type (required), data (required).

create_projectA

Create a new team project.

Inputs: name (required).

create_tagC

Create a new tag.

Inputs: name (required).

create_userA

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

Inputs: email (required), role.

create_variableB

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

Inputs: key (required), value (required).

create_workflowA

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.

Inputs: name (required), nodes (required), connections (required), settings, +1 more.

deactivate_workflowA

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

Inputs: id (required).

delete_credentialA
Destructive

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

Inputs: id (required).

delete_executionA
Destructive

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

Inputs: id (required).

delete_projectA
Destructive

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

Inputs: id (required).

delete_tagA
Destructive

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

Inputs: id (required).

delete_userA
Destructive

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

Inputs: idOrEmail (required).

delete_variableA
Destructive

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

Inputs: id (required).

delete_workflowA
Destructive

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

Inputs: id (required).

generate_auditA

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.

Inputs: daysAbandonedWorkflow, categories.

get_credential_schemaA
Read-only

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

Inputs: credentialTypeName (required).

get_executionA
Read-only

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

Inputs: id (required), includeData.

get_execution_statsA
Read-only

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.

Inputs: workflowId, sample.

get_userA
Read-only

Get one user by ID or email address.

Inputs: idOrEmail (required), includeRole.

get_workflowA
Read-only

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

Inputs: id (required), mode.

get_workflow_tagsA
Read-only

List the tags attached to a workflow.

Inputs: workflowId (required).

list_executionsA
Read-only

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

Inputs: status, workflowId, projectId, maxItems.

list_projectsA
Read-only

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.

Inputs: maxItems.

list_running_executionsA
Read-only

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.

Inputs: maxItems.

list_tagsA
Read-only

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

Inputs: maxItems.

list_usersA
Read-only

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

Inputs: includeRole, projectId, maxItems.

list_variablesA
Read-only

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

Inputs: maxItems.

list_workflowsA
Read-only

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.

Inputs: active, tags, name, projectId, +1 more.

prune_executionsA
Destructive

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.

Inputs: status, workflowId, olderThanDays, maxDelete, +1 more.

pull_source_controlA
Destructive

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.

Inputs: force, variables.

remove_user_from_projectA

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

Inputs: projectId (required), userId (required).

retry_executionA

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.

Inputs: id (required).

run_webhookA

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.

Inputs: path (required), method, payload, headers, +1 more.

search_workflowsA
Read-only

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

Inputs: query (required), active, maxScan.

set_workflows_active_by_tagA
Destructive

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.

Inputs: tag (required), active (required), dryRun.

set_workflow_tagsA

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.

Inputs: workflowId (required), tagNames (required), createMissing.

summarize_execution_errorA
Read-only

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.

Inputs: id (required).

transfer_credentialB

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

Inputs: id (required), destinationProjectId (required).

transfer_workflowB

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

Inputs: id (required), destinationProjectId (required).

update_projectB

Rename a project by ID.

Inputs: id (required), name (required).

update_tagA

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

Inputs: id (required), name (required).

update_variableA

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

Inputs: id (required), key (required), value (required).

update_workflowA

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.

Inputs: id (required), name, nodes, connections, +2 more.

validate_workflow_jsonA
Read-only

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.

Inputs: workflow (required).

wait_for_executionA
Read-only

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.

Inputs: id (required), timeoutSeconds, pollSeconds.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 51 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose, with detailed descriptions that prevent ambiguity. Even with 51 tools, operations are well-separated across different resources (workflows, credentials, users, projects, etc.) and actions.

    Naming Consistency5/5

    All tool names use lowercase snake_case with a verb_noun pattern (e.g., activate_workflow, list_users). The naming is highly consistent with no mixing of conventions.

    Tool Count4/5

    The 51 tools cover a broad domain (n8n instance management), and each tool appears justified. However, the count is high; a slightly more consolidated set could be conceivable, but the current scope earns a 4.

    Completeness5/5

    The tool set covers the full lifecycle of workflows, credentials, users, projects, tags, variables, and executions, including advanced operations like cloning, validation, bulk actions, and health monitoring. No obvious gaps are present.

    Maintenance

    ActivityNo data
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Enables users to manage workflows, monitor executions, and perform administrative tasks in n8n through natural language conversations with Claude. It provides over 40 tools to control self-hosted or cloud n8n instances via the Model Context Protocol.
      42
      MIT
    • F
      license
      A
      quality
      D
      maintenance
      Wraps the n8n self-hosted REST API to let Claude and MCP-compatible LLMs manage workflows, executions, credentials, and more via natural language.
      39
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Model Context Protocol (MCP) server for managing n8n workflows, allowing Claude and other MCP-compatible tools to create, read, update, delete, and execute workflows in your n8n instance.
      ISC