using-n8n-mcp-skills
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseUsing the n8n-mcp Skills
使用n8n-mcp技能
This is a router, not a reference. It tells you which skill owns the rules for what
you're about to do. The skill bodies hold the actual guidance — invoke them with the
Skill tool. When in doubt, load more skills rather than fewer.
The community n8n-mcp server and n8n itself move faster than any model's training
cutoff. Tool names, parameters, node s, and default behaviors drift between
releases. When you spot drift — a tool a skill names doesn't exist, a parameter shape
doesn't match what returns, behavior differs from what a skill describes —
trust the live tool, tell the user, and suggest updating the pack and the instance.
typeVersionget_node这是一个路由技能,而非参考文档。它会告诉你,你即将执行的任务对应的规则由哪个技能负责。具体的指导内容在各技能主体中——请使用Skill工具调用它们。如有疑问,应加载更多技能而非更少。
社区版n8n-mcp服务器和n8n本身的更新速度快于任何模型的训练截止日期。工具名称、参数、节点以及默认行为会随版本迭代发生变化。当你发现差异时——比如技能提及的工具不存在、参数结构与返回的不匹配、行为与技能描述不符——请以实时工具为准,告知用户,并建议更新技能包和实例。
typeVersionget_nodeNon-negotiables
不可协商的规则
Three rules with no exceptions. Each one prevents a class of workflow that looks correct
but breaks in production.
- Invoke the relevant skill before any n8n action — not just before MCP calls. Before writing an expression, configuring a node, designing a workflow, wiring a connection, or writing Code, invoke the matching skill. PreToolUse hooks remind you on the highest-impact tool calls, but they exist only in the Claude Code plugin install. Everywhere else — Claude.ai skill uploads, and any client that loads this pack as an Agent Plugin (Codex, Cursor, Copilot and the rest) — nothing nudges you and the responsibility is entirely yours. Assume you are un-hooked unless you have seen a hook fire this session.
- Validate AND verify before activating. Run (or
validate_workflowby id) before you activate, and calln8n_validate_workflowafter every create or update to inspect then8n_get_workflowobject. Validation alone misses silently dropped wires, Merge index off-by-one, and error outputs that were never wired. Validation passing means the JSON is well-formed — not that the workflow is correct.connections - Secrets never go in text fields. Tokens, API keys, and passwords always go through
the n8n credential system. If no native node exists, use the HTTP Request node with
the official credential type. A Set node holding a token referenced via is a leak with extra steps. See
{{ $json.token }}.n8n-mcp-tools-expert
三条无例外规则,每条规则都能避免一类看似正常但会在生产环境中崩溃的工作流。
- 执行任何n8n操作前调用相关技能——不仅是调用MCP工具之前。在编写表达式、配置节点、设计工作流、连接节点或编写代码之前,调用对应的技能。PreToolUse钩子会在高影响工具调用时提醒你,但该钩子仅在Claude Code插件安装版本中存在。在其他环境中——Claude.ai技能上传、任何将此技能包作为Agent插件加载的客户端(Codex、Cursor、Copilot等)——没有任何提示,责任完全由你承担。除非你在本次会话中看到钩子触发,否则默认你未启用钩子。
- 激活前必须验证并确认。激活前运行(或通过ID调用
validate_workflow),每次创建或更新后调用n8n_validate_workflow检查n8n_get_workflow对象。仅靠验证无法发现静默断开的连接、Merge节点索引偏移以及未连接的错误输出。验证通过仅表示JSON格式正确——不代表工作流功能正常。connections - 机密信息绝不能放在文本字段中。令牌、API密钥和密码必须始终通过n8n凭证系统处理。如果没有原生节点,使用带有官方凭证类型的HTTP Request节点。使用Set节点存储令牌并通过引用,只会增加泄露风险。详情请见
{{ $json.token }}。n8n-mcp-tools-expert
Lean on skills, not training data
依赖技能,而非训练数据
n8n changes constantly. "Remembered" parameter names are often silently wrong — they
validate as plain strings and then do nothing at runtime. Trust the skills and the live
tools (, , ) over recollection. If a skill
contradicts your memory, trust the skill. If contradicts a skill, trust the
tool and flag the drift.
get_nodesearch_nodestools_documentationget_noden8n一直在变化。“记忆中的”参数名称往往已悄悄失效——它们会被验证为普通字符串,但在运行时毫无作用。相比记忆,更应信任技能和实时工具(、、)。如果技能与你的记忆不符,请信任技能。如果与技能不符,请信任工具并标记差异。
get_nodesearch_nodestools_documentationget_nodeStrong defaults
强默认规则
Each skill owns its own exceptions; these are the defaults.
- The Code node is a last resort. Expression first, then an arrow function inside Edit
Fields, then a Code node only when neither can do the job. See .
n8n-code-javascript - A Set node feeding 0–1 consumers is almost always wrong. Inline the expression at
the consumer instead. See .
n8n-expression-syntax - Per-item iteration is automatic. Don't add a Loop Over Items node to "make it loop" when default per-item execution already handles the case.
- Configure from the live schema, never from memory. before you set parameters. See
get_node.n8n-node-configuration
每个技能都有自己的例外情况;以下是默认规则。
- Code节点是最后选择。优先使用表达式,其次是Edit Fields中的箭头函数,仅当两者都无法完成任务时才使用Code节点。详情请见。
n8n-code-javascript - Set节点仅为0-1个消费者提供数据几乎总是错误的。应在消费者节点处内联表达式。详情请见。
n8n-expression-syntax - 逐项迭代是自动的。当默认的逐项执行已能处理时,无需添加Loop Over Items节点来“实现循环”。
- 始终根据实时模式配置,而非记忆。设置参数前先调用。详情请见
get_node。n8n-node-configuration
Red flags: "about to ___" → invoke ___
危险信号:“即将___” → 调用___
If you catch yourself thinking any of these, stop and invoke the named skill first.
| Thought | Invoke |
|---|---|
| "This workflow is simple, I'll just build it" | |
| "I'll add a Set node to map these fields" | |
| "I'll just use a Code node, it's easier" | |
| "The user mentioned data, I'll write Python" | |
| "I'm writing code an AI agent will call" | |
| "Date math — I'll drop in a DateTime node" | |
| "I'll wire a Merge with 3 sources" | |
| "Validation passed, I'm ready to activate" | |
| "Validation threw an error I don't understand" | |
"I'll reference | |
| "This webhook/scheduled flow is happy-path only" | |
| "I'll pass this file/image through as JSON" | |
| "I'll wire up an AI agent and give the model some tools" | |
| "I'll copy this logic into another workflow" / "this is getting big" | |
| "I'll create that credential / open that workflow" (account has >1 instance) | |
如果你产生以下任何想法,请立即停止并先调用指定技能。
| 想法 | 调用技能 |
|---|---|
| “这个工作流很简单,我直接构建就行” | |
| “我要添加一个Set节点来映射这些字段” | |
| “我直接用Code节点,更简单” | |
| “用户提到了数据,我要写Python代码” | |
| “我要编写AI Agent会调用的代码” | |
| “日期计算——我要添加一个DateTime节点” | |
| “我要连接3个源到Merge节点” | |
| “验证通过了,我可以激活了” | |
| “验证抛出了我看不懂的错误” | |
“我要在这里引用 | |
| “这个Webhook/定时工作流只处理正常情况” | |
| “我要将这个文件/图片作为JSON传递” | |
| “我要连接AI Agent并给模型提供一些工具” | |
| “我要把这个逻辑复制到另一个工作流中” / “这个工作流变得太大了” | |
| “我要创建该凭证/打开该工作流”(账号有多个实例) | |
Skill index
技能索引
| Skill | Reach for it when |
|---|---|
| This router (auto-loaded). Names the skill that owns your task. |
| Choosing or calling any n8n-mcp tool; node discovery; credentials; data tables; security audit; templates |
| Designing or building a workflow; picking an architecture (webhook / HTTP API / database / AI agent / scheduled / batch) |
| Configuring any node; operation-aware required fields; property dependencies; surgical field edits |
| Writing |
| Interpreting validation errors/warnings; false positives; the validation loop; auto-fix; reviewing an existing workflow |
| Any Code node in JavaScript; data access; |
| A Code node specifically requested in Python; standard-library limits |
| The AI-agent-callable Custom Code Tool ( |
| Webhook/API or unattended workflows; wiring error outputs; retries; 4xx/5xx response shapes; silent failures |
| Files, images, PDFs, attachments, uploads/downloads, vision; passing a file to/from an agent tool |
| Reusable / multi-step builds; Execute Workflow; extracting shared logic; Define-Below inputs; all-vs-each; exposing a workflow as an agent tool |
| AI Agent / LLM-with-tools / Text Classifier; tool design & |
| Accounts with multiple instances (the |
| Deployment, not workflow-building — self-hosting / installing / deploying n8n on a VM (Docker Compose + Caddy, single vs queue mode), or updating / backing up / hardening it. Triggers on its own; not part of the build flow above. |
| 技能 | 使用场景 |
|---|---|
| 本路由技能(自动加载)。指明你的任务对应的负责技能。 |
| 选择或调用任何n8n-mcp工具;节点发现;凭证管理;数据表;安全审计;模板 |
| 设计或构建工作流;选择架构(Webhook / HTTP API / 数据库 / AI Agent / 定时 / 批量) |
| 配置任何节点;基于操作的必填字段;属性依赖;精准字段编辑 |
| 编写 |
| 解读验证错误/警告;误报;验证循环;自动修复;审查现有工作流 |
| 任何JavaScript语言的Code节点;数据访问; |
| 用户明确要求使用Python的Code节点;标准库限制 |
| AI Agent可调用的自定义代码工具( |
| Webhook/API或无人值守工作流;连接错误输出;重试;4xx/5xx响应格式;静默故障 |
| 文件、图片、PDF、附件、上传/下载、视觉处理;在Agent工具间传递文件 |
| 可复用/多步骤构建;执行工作流;提取共享逻辑;Define-Below输入;全量vs逐项;将工作流暴露为Agent工具 |
| AI Agent / 带工具的LLM / 文本分类器;工具设计与 |
| 拥有多个实例的账号(存在 |
| 部署,而非工作流构建——在VM上自托管/安装/部署n8n(Docker Compose + Caddy,单实例vs队列模式),或更新/备份/加固n8n。会自行触发;不属于上述构建流程。 |
n8n-mcp tools — working knowledge from turn one
n8n-mcp工具——从入门到精通
Qualified names look like ( is usually ). This
closes the gap where a tool's full description isn't loaded until first use.
mcp__<server>__<tool><server>n8n-mcpTwo tiers, and how to tell which one you have. The documentation and validation tools
below work offline and are always present. The management tools talk to a live n8n
instance and appear only once one is connected. If they are absent, nothing is broken
and there is nothing to retry — say so plainly and point the user at the right fix for
their install:
n8n_*- Hosted () — sign in through the OAuth prompt the client shows on first use, then connect the n8n instance in the dashboard. No environment variables, and no API key pasted into a config file.
https://api.n8n-mcp.com/mcp - Self-hosted (, Docker) — the server needs
npx n8n-mcpandN8N_API_URLin its environment, exported before the client starts.N8N_API_KEY
n8n_health_checkDiscovery & docs
- — meta-docs for every tool;
tools_documentationfor the agent guide.{topic:"ai_agents_guide", depth:"full"} - — find nodes by keyword.
search_nodes - — node info. Takes a single SHORT-form
get_node(nodeType,nodes-base.httpRequest), plusnodes-langchain.agent(minimal/standard/full) anddetail(info/docs/search_properties/versions).mode - — validate one node's config in isolation (profiles: minimal/runtime/ai-friendly/strict).
validate_node - /
search_templates— the template library (by keyword, nodes, task, metadata).get_template
Build & edit
- — create from full workflow JSON.
n8n_create_workflow - — incremental diff ops (
n8n_update_partial_workflow): addNode, updateNode, patchNodeField, addConnection, setNodeGroups, activateWorkflow, etc. Preferred for edits.{id, operations:[…]} - Canvas groups (n8n 2.28+) survive your edits without being managed: a grouped node you remove is pruned from its group, and a group n8n can no longer accept is ungrouped so the edit still lands — nodes and connections untouched, every adjustment reported in . To create or change groups, use the
details.warningsop (full replacement;setNodeGroupsungroups everything). See[].n8n-mcp-tools-expert - — full replacement.
n8n_update_full_workflow - — auto-fix common issues.
n8n_autofix_workflow - — deploy a template to the instance.
n8n_deploy_template
Validate (necessary, not sufficient — always pair with the antipattern scan)
- — full JSON in, errors/warnings/fixes out. Node types here are LONG form (
validate_workflow).n8n-nodes-base.set - — validate a deployed workflow by
n8n_validate_workflow(no node JSON to inspect).{id}
Inspect & lifecycle
- — fetch a workflow (full / structure / active / filtered / minimal). Use it to verify
n8n_get_workflowafter edits;connections+mode="filtered"reads one heavy node (e.g. long Code source) without pulling the whole workflow, which can truncate client-side.nodeNames - — list/filter (search before duplicating logic).
n8n_list_workflows - ,
n8n_delete_workflow(history/rollback),n8n_workflow_versions(multi-instance accounts only: list/switch the target instance — seen8n_instances),n8n-multi-instance(returns the resolvedn8n_health_check).instanceName
Test & run
- — runs real nodes (Code, HTTP, DB writes, sends all fire). Ask the user before running when side effects exist.
n8n_test_workflow - — list/inspect executions. There is no
n8n_executionstool.execute_workflow - — evaluation test runs: list runs, aggregated metrics, per-case results (n8n ≥ 2.30), plus
n8n_evaluations/runto start or stop a run (n8n ≥ 2.32).cancelexecutes the workflow against its whole dataset — real nodes fire, so ask the user first. A 403 can mean the API key was created before the action's minimum version (re-create it for the testRun scopes), evaluations aren't licensed on the plan, or the key's owner lacks access to the workflow — forrun/run, specifically thecancelscope.workflow:execute
Data, folders, credentials, audit
- — Data Table CRUD, filtering, dry-run.
n8n_manage_datatable - — workflow folder CRUD with contents counts (n8n ≥ 2.19, registered Community tier and up;
n8n_manage_foldersdefaults toprojectId). Place workflows viapersonalonparentFolderIdor then8n_create_workflowop (n8n ≥ 2.32). Placement is write-only — verify via a folder'smoveToFoldercounts, never by reading the workflow.getwithoutdeletemoves the folder's workflows to the project root and ARCHIVES them — they still exist, but deactivated (transferToFolderId= transfer to project root without archiving).transferToFolderId: "0" - — credential CRUD +
n8n_manage_credentialsdiscovery.getSchema - — security audit (hardcoded secrets, unauthenticated webhooks, error-handling gaps).
n8n_audit_instance
Node-type form trap:/get_nodetake SHORT form (validate_node); workflow JSON insidenodes-base.set/validate_workflowuses LONG form (n8n_create_workflow). Mixing them is a common, silent mistake — seen8n-nodes-base.set.n8n-mcp-tools-expert
完整名称格式为(通常为)。这填补了工具完整描述需首次使用后才加载的空白。
mcp__<server>__<tool><server>n8n-mcp两个层级,以及如何区分。以下文档和验证工具可离线使用,且始终存在。管理工具会与实时n8n实例通信,仅在连接实例后才会出现。如果这些工具不存在,并非出现故障,无需重试——直接告知用户,并根据其安装方式提供正确的修复方案:
n8n_*- 托管版()——首次使用时通过客户端显示的OAuth提示登录,然后在仪表板中连接n8n实例。无需环境变量,也无需将API密钥粘贴到配置文件中。
https://api.n8n-mcp.com/mcp - 自托管版(,Docker)——服务器环境中需要设置
npx n8n-mcp和N8N_API_URL,需在客户端启动前导出。N8N_API_KEY
n8n_health_check发现与文档
- ——所有工具的元文档;使用
tools_documentation获取Agent指南。{topic:"ai_agents_guide", depth:"full"} - ——按关键词查找节点。
search_nodes - ——节点信息。接受单个短格式
get_node(如nodeType、nodes-base.httpRequest),以及nodes-langchain.agent(minimal/standard/full)和detail(info/docs/search_properties/versions)参数。mode - ——单独验证一个节点的配置(配置文件:minimal/runtime/ai-friendly/strict)。
validate_node - /
search_templates——模板库(按关键词、节点、任务、元数据检索)。get_template
构建与编辑
- ——从完整工作流JSON创建工作流。
n8n_create_workflow - ——增量差异操作(
n8n_update_partial_workflow):addNode、updateNode、patchNodeField、addConnection、setNodeGroups、activateWorkflow等。优先用于编辑操作。{id, operations:[…]} - 画布分组(n8n 2.28+)会在编辑时自动保留:移除分组中的节点会将其从分组中删除,n8n无法接受的分组会被取消分组以确保编辑生效——节点和连接不受影响,所有调整会在中报告。要创建或修改分组,请使用
details.warnings操作(完全替换;setNodeGroups表示取消所有分组)。详情请见[]。n8n-mcp-tools-expert - ——完全替换工作流。
n8n_update_full_workflow - ——自动修复常见问题。
n8n_autofix_workflow - ——将模板部署到实例。
n8n_deploy_template
验证(必要但不充分——始终需配合反模式扫描)
- ——输入完整JSON,输出错误/警告/修复方案。此处节点类型为长格式(如
validate_workflow)。n8n-nodes-base.set - ——通过
n8n_validate_workflow验证已部署的工作流(无需检查节点JSON)。{id}
检查与生命周期
- ——获取工作流(完整/结构/激活状态/过滤/极简)。用于编辑后检查
n8n_get_workflow;使用connections+mode="filtered"可读取单个大型节点(如长代码源)而无需拉取整个工作流,避免客户端截断。nodeNames - ——列出/过滤工作流(复制逻辑前先搜索)。
n8n_list_workflows - 、
n8n_delete_workflow(历史/回滚)、n8n_workflow_versions(仅多实例账号可用:列出/切换目标实例——详情请见n8n_instances)、n8n-multi-instance(返回已解析的n8n_health_check)。instanceName
测试与运行
- ——运行真实节点(Code、HTTP、数据库写入、发送操作都会执行)。当存在副作用时,运行前需询问用户。
n8n_test_workflow - ——列出/检查执行记录。没有
n8n_executions工具。execute_workflow - ——评估测试运行:列出运行记录、聚合指标、单案例结果(n8n ≥ 2.30),以及
n8n_evaluations/run启动或停止运行(n8n ≥ 2.32)。cancel会针对整个数据集执行工作流——真实节点会执行,因此运行前需询问用户。403错误可能表示API密钥创建早于操作的最低版本(为testRun权限重新创建密钥)、计划未授权使用评估功能,或密钥所有者无工作流访问权限——对于run/run,特指cancel权限。workflow:execute
数据、文件夹、凭证、审计
- ——数据表CRUD、过滤、试运行。
n8n_manage_datatable - ——工作流文件夹CRUD及内容计数(n8n ≥ 2.19,已注册社区版及以上;
n8n_manage_folders默认为projectId)。通过personal的n8n_create_workflow或parentFolderId操作(n8n ≥ 2.32)放置工作流。放置为写入操作——需通过文件夹的moveToFolder计数验证,而非读取工作流。不带get的transferToFolderId操作会将文件夹中的工作流移至项目根目录并归档——工作流仍存在,但处于停用状态(delete表示移至项目根目录但不归档)。transferToFolderId: "0" - ——凭证CRUD +
n8n_manage_credentials发现。getSchema - ——安全审计(硬编码机密、未认证Webhook、错误处理漏洞)。
n8n_audit_instance
节点类型格式陷阱:/get_node接受短格式(如validate_node);nodes-base.set/validate_workflow中的工作流JSON使用长格式(如n8n_create_workflow)。混用格式是常见的静默错误——详情请见n8n-nodes-base.set。n8n-mcp-tools-expert
The protocol, in order
流程步骤
- Recognize the matching skill from the index and invoke it before the first MCP call.
- Skim once per session to refresh the tool surface if you're unsure.
tools_documentation - before configuring any node — read the live schema, don't assume.
get_node - Build / edit, then before activating and
validate_workflowafter to checkn8n_get_workflow.connections - Surface any drift you notice (missing tool, changed parameter, diverging behavior).
- 从索引中识别匹配的技能,并在首次调用MCP工具前调用该技能。
- 若不确定工具情况,每次会话先浏览一次以刷新工具认知。
tools_documentation - 配置任何节点前先调用——读取实时模式,不要凭假设。
get_node - 构建/编辑后,激活前调用,并调用
validate_workflow检查n8n_get_workflow。connections - 发现任何差异(工具缺失、参数变更、行为不符)时告知用户。
When in doubt
疑问处理
- Can't find a workflow the user built in the UI? The most common cause is per-workflow MCP access being off. Ask them to open it in n8n, go to Settings, and enable MCP access.
- User says it's broken? Believe them. Re-check parameters against , trace data references, inspect the execution. See
get_node.n8n-validation-expert - No skill fits and the task is non-trivial? Ask before guessing.
These are opinionated best practices, not laws. Disagree with a call? It's all markdown —
edit the skill.
- **在UI中找不到用户构建的工作流?**最常见原因是该工作流的MCP访问权限未开启。请用户在n8n中打开该工作流,进入设置并启用MCP访问。
- **用户说工作流坏了?**请相信用户。对照重新检查参数,追踪数据引用,检查执行记录。详情请见
get_node。n8n-validation-expert - **找不到匹配的技能且任务非 trivial?**请先询问用户再猜测。
这些是有倾向性的最佳实践,而非强制规定。不同意某个规则?所有内容都是markdown格式——你可以编辑该技能。