← Back to RedefinedByAI
AutomationPractical AI. Real Impact.

Claude + n8n MCP Setup: generate automation workflows from a single prompt

n8n now ships an official MCP server. Once it's connected to Claude, you stop clicking together nodes by hand and start describing the automation you want in plain English, Claude builds it directly inside your n8n instance.

What you'll set up

Step 1 · Get your n8n instance running

You need an active n8n instance, either n8n Cloud (n8n.io) or self-hosted. If you don't have one yet, start a free trial at n8n.io. Note your instance URL, it looks something like https://yourname.app.n8n.cloud.

Step 2 · Enable the MCP server in n8n

In your n8n instance, go to Settings → API. Enable the API and generate a personal API key, copy it, you'll need it in Step 3.

Then go to Settings → MCP Server (available in n8n 1.88 and later). Enable it. n8n will show you your MCP server URL, it looks like:

https://yourname.app.n8n.cloud/mcp/sse

Copy this URL.

Step 3 · Add n8n as an MCP server in Claude

Open Claude Code in your terminal and run:

claude mcp add n8n --transport sse --url https://yourname.app.n8n.cloud/mcp/sse

When prompted for auth, use your n8n API key from Step 2 as the bearer token. Then verify the connection:

claude mcp list

You should see n8n listed as active.

Step 4 · Generate your first workflow

Start a new Claude conversation and try a prompt like this:

Create an n8n workflow that sends me a Slack message whenever a new row is added to a Google Sheet. The message should include the row data.

Claude uses the n8n MCP tools to build the workflow directly in your n8n instance. You'll see it appear in your n8n workflows list, ready to run.

Step 5 · Prompt patterns that work well

Be specific about triggers, actions, and data flow. These patterns get good results:

Tips from the field

Found this useful? Browse more articles or follow @m.redefinedbyai for more AI setup guides as they land.