SuperAPI AI Directory

n8n-pro-mcp

Manage self-hosted n8n, including queue mode: workflows, executions, tags, credentials, variables, projects, users, security audits and health monitoring.

Open website

About this tool

n8n-pro-mcp is a Model Context Protocol (MCP) server for self-hosted n8n instances, designed to let MCP clients (such as Claude Code, Claude Desktop, Cursor, or any other MCP client) manage n8n instances in a tool-based manner. It connects to instances through the official n8n public API v1 and provides a total of 51 tools, covering workflows, executions, tags, credentials, variables, projects, users, security audits, source control, and health monitoring.

Main capabilities and features:

  1. First-class support for queue mode. For instances running with EXECUTIONS_MODE=queue and containing workers and webhook processors, it provides list_running_executions (real-time queue view), get_execution_stats (success rate and average duration statistics by workflow), and check_health (healthz, readiness, API authentication checks). N8N_WEBHOOK_BASE_URL can make webhook calls point to dedicated webhook processors.

  2. Complete API v1 coverage. In addition to the usual workflow and execution CRUD, it also covers tags, variables, projects, users, source control, and cross-project transfers.

  3. Built-in offline validation. validate_workflow_json can check structure, connection integrity, orphan nodes, expression syntax, webhook .body access, Code node return format, and hardcoded secrets without any API calls. create_workflow and update_workflow automatically run this validation and reject invalid payloads.

  4. Safe partial updates. update_workflow first fetches the current workflow, merges only the passed fields, and strips read-only fields, avoiding loss of nodes caused by sending an incomplete PUT.

  5. Set tags by name. set_workflow_tags accepts tag names and automatically creates missing tags, with no need to manually handle IDs.

  6. Operational composition capabilities not available in the raw API. These include summarize_execution_error (returns only the failed node and error, rather than a huge JSON dump), prune_executions (batch cleanup with dry run support), wait_for_execution (poll until terminal state), clone_workflow, and set_workflows_active_by_tag (a tag-based circuit breaker switch).

Usage: When running from source, copy .env.example to .env in the project root—the server loads it from the package root rather than the working directory. When installed via npx, variables should instead be set through the MCP client configuration (the .env file in the npx cache will not be read). Configuration can be written to .claude/settings.json or .mcp.json; for Claude Desktop, the corresponding file is ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows); for Cursor, use the same JSON configuration block in .cursor/mcp.json.

Tool groups (51 total): executions (10); tag-related tools include list_tags, create_tag, update_tag, delete_tag, get_workflow_tags, set_workflow_tags (by name, automatically creating missing tags); credentials (4) include create_credential, delete_credential, get_credential_schema, transfer_credential, with secrets being write-only and the n8n API never returning credential data; variable-related tools include list_variables, create_variable, update_variable, delete_variable (licensed feature required); project-related tools include list_projects, create_project, update_project, delete_project, as well as member management add_user_to_project, remove_user_from_project, change_user_project_role (requires a licensed feature); user-related ones include list_users, get_user, create_user (invite), delete_user, change_user_role.

Queue mode use cases: under EXECUTIONS_MODE=queue (main + workers + Redis), first use check_health to confirm the main process and database are running normally; use list_running_executions to view the executions currently actually in flight; if the list keeps growing and startedAt is old, it means workers are starved or stuck; use get_execution_stats to find failed or slow workflows (sorted by worst success rate first); use run_webhook together with N8N_WEBHOOK_BASE_URL pointing to webhook processors to test the production ingestion path end to end.

Prerequisites and limitations: an n8n instance with the public API enabled is required (N8N_PUBLIC_API_DISABLED not set) as well as an API key; variables, projects, and source control tools require the corresponding licensed features of n8n. CI (GitHub Actions) runs the build, tests, and npm audit on every push and PR. The project was created by Helbert Paranhos at Strat Academy and is licensed under MIT.