Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

How to Connect Claude to n8n and Let an AI Agent Run Your Automations (2026 Guide)

说明与用途

通过 MCP 将 Claude 连接到 n8n,让 AI 代理自动构建、简化、测试工作流,并在部署前获得人工批准。

问题

Hand‑built n8n workflows grow into large, hard‑to‑maintain monsters that are difficult to edit and understand.

结果

After setup, the AI agent can automatically build, simplify, test, and fix n8n workflows based on natural language prompts, improving maintainability and reducing manual effort.

工作流

  • Expose a workflow as a tool by adding an MCP Server Trigger node and Custom n8n Workflow Tool nodes.
  • Connect Claude as the MCP client by adding a custom connector with the MCP endpoint URL and bearer token.
  • Test the connection by asking Claude to list tools and run a test workflow.
  • Add the build‑and‑fix direction by installing n8n’s official agent skills into Claude Code or Codex.
  • Use the agent to simplify, build, debug, add error handling, or examine credentials, always following a plan‑first, confirm‑before‑apply workflow.

证据

The setup takes about 30 minutes, works with a free self-hosted n8n instance, and is the single biggest quality-of-life upgrade available to an n8n user in 2026.

来源

Ask Claude: "List the tools you have from my n8n server, then run the smallest one with test data."

来源

  • 记录日期: 2026-09-21T00:30:33.237Z