n8n Pro MCP

io.github.helbertparanhos由 GitHub 账号 helbertparanhos 发布v1.0.0更新于 Oct 24, 2026

Manage self-hosted n8n (incl. queue mode): workflows, executions, users, audit — 51 tools.

概览

AI 生成的概览

管理自建 n8n 实例(含队列模式),让助手处理工作流、执行记录、标签、用户与健康检查。

可以做什么
列出、搜索、创建、更新、克隆、删除、启用和转移工作流,写入前做离线 JSON 校验,并可按标签批量启用或停用(支持试运行)。查看、重试、删除和批量清理执行记录,查看运行中与排队中的执行,触发 webhook,等待执行结束,汇总错误并获取各工作流的成功率与耗时统计。按名称管理标签、只写凭据、变量以及带成员角色的项目。列出、邀请、删除用户并更改角色。检查实例健康状态、运行内置安全审计并从已连接的源代码管理拉取。
适用场景
适合自建 n8n 实例(尤其是带 worker 的队列模式)的用户,希望助手来构建和校验工作流、排查失败执行、清理旧记录或检查实例健康状态,而无需手写 API 调用。
运行要求
通过 npm 或 npx 在本地运行,需要 Node.js 18 或更高版本。需要可访问且已启用公共 API 的 n8n 实例,并设置 N8N_API_URL 和 N8N_API_KEY 环境变量;N8N_WEBHOOK_BASE_URL 为可选项,用于专用 webhook 处理器。变量、项目和源代码管理功能需要 n8n 相应授权版本。
安装前请注意
N8N_API_KEY 可对实例进行广泛控制。许多工具会写入或删除:工作流、执行记录、标签、凭据、变量、项目和用户,webhook 调用会触发真实工作流运行。批量清理和按标签批量操作默认试运行,但确认后会删除记录。凭据密钥为只写,API 不会返回。

安装

在 SourceWeft 中

  1. 打开 控制台中的 n8n Pro MCP,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

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

Installation

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

From source:

bash
git clone https://github.com/helbertparanhos/n8n-pro-mcp.git && cd n8n-pro-mcpnpm installnpm 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

VariableRequiredDescription
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

bash
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:

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

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"      }    }  }}

Cursor

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

Tools (51)

Workflows (12)

ToolDescription
list_workflowsList with filters (active, tags, project, name) + auto pagination
get_workflowFull JSON or lightweight summary of one workflow
create_workflowCreate from JSON, with automatic offline validation
update_workflowPartial update — fetch, merge, validate, PUT
delete_workflowPermanently delete
activate_workflow / deactivate_workflowToggle triggers
transfer_workflowMove between projects
search_workflowsFree-text search across names, node names and node types
clone_workflowDuplicate a workflow as an inactive copy
set_workflows_active_by_tagBulk activate/deactivate by tag, with dry run
validate_workflow_jsonOffline validation, no API call

Executions (10)

ToolDescription
list_executionsFilter by status/workflow/project, with durations
get_executionSummary or full node-level run data for debugging
delete_executionRemove an execution record
retry_executionRetry a failed/stopped execution
list_running_executionsQueue-mode live view of running/queued executions
run_webhookTrigger workflows via production or test webhook
wait_for_executionPoll an execution until it reaches a terminal state
summarize_execution_errorFailing node + error message only — no giant JSON dump
prune_executionsBulk-delete old execution records, dry run by default
get_execution_statsSuccess 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)

ToolDescription
check_healthhealthz + readiness (DB) + API auth, with a plain-language summary
generate_auditn8n's built-in security audit (credentials, database, nodes, filesystem, instance)
pull_source_controlPull 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

bash
npm test             # build + unit tests (validation rules, client helpers, .env parser)npm run watch        # incremental compilenpm 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.

来源:README.md,提交 9a9e156

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.0.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分