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
- n8n connected to Claude via the official MCP server
- The ability to generate workflows from a single text prompt
- No manual node configuration for common automations
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:
- Trigger → action: "When [X happens], do [Y] and send the result to [Z]"
- Modify existing: "Add error handling to my existing Slack notification workflow"
- Schedule: "Every Monday at 9am, pull last week's data from Airtable and email me a summary"
- Multi-step: "When a form is submitted, add it to Notion, send a confirmation email, and notify me on Slack"
Tips from the field
- Start with simple single-trigger workflows before building complex ones.
- Claude can also read and explain existing workflows, paste a workflow's JSON and ask "what does this do?"
- If a generated workflow has errors, describe the error to Claude and it will fix it.
- You can ask Claude to add nodes, change triggers, or restructure a workflow without rebuilding it from scratch.
Found this useful? Browse more articles or follow @m.redefinedbyai for more AI setup guides as they land.