How to Connect Claude to n8n and Let an AI Agent Run Your Automations (2026 Guide)
Verdict: If your n8n workflows keep growing into sprawling twenty-node monsters that you are afraid to touch, stop editing them by hand. n8n ships an official MCP (Model Context Protocol) integration, and Claude connects to MCP servers natively. Wire the two together once, and you can tell an AI agent, in plain language, to build, simplify, test, and fix your workflows for you. The setup takes…
Connecting Claude to n8n enables an AI agent to manage your automations, simplifying and streamlining workflow management. Following these steps will allow Claude to call your n8n workflows as tools:
1. Create a workflow in n8n with an MCP Server Trigger node. Assign it a path and a bearer token that Claude will use to authenticate.
2. Attach Custom n8n Workflow Tool nodes to the MCP Server Trigger node. Each node represents a workflow that Claude can call upon.
3. In the Claude app, add a custom connector by providing the MCP endpoint URL (from step 1) and the bearer token (from step 1). The Claude API also supports MCP client creation via code.
4. Use n8n's official Connect to n8n MCP server guide and the official skills repository to configure your coding agent (Claude Code or Codex). This will enable the agent to understand n8n's conventions and generate effective workflows.
Both directions of connection are possible: having Claude call n8n, or n8n calling Claude. However, for most use cases, the former is preferred. Claude as the client, with n8n as the server, allows users to chat with the AI agent and receive workflow performance, testing, and debugging results. This guide outlines the process of setting up both directions, providing a comprehensive solution for automating and managing your workflows with Claude.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.