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

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

Description and use

Connect Claude to n8n via MCP so an AI agent can build, simplify, test, and fix workflows, with human approval before deployment.

Problem

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

Outcome

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.

Workflow

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

Evidence

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.

Source

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

Source

  • Record date: 2026-09-21T00:30:33.237Z