You've seen people build entire automation workflows in minutes — lead gen systems, client onboarding, invoice pipelines — while you're still dragging nodes around in n8n trying to figure out what connects to what.

Here's the thing: you don't need to learn n8n the hard way.

With Cursor and Claude Code, you describe the workflow you want in plain English — and it gets built for you. No YouTube rabbit holes. No node-by-node trial and error.

This guide walks you through the entire setup in under 10 minutes.


What You're Setting Up

Cursor is a free AI-powered code editor. Think of it as your workspace where AI does the heavy lifting.

Claude Code is an extension inside Cursor. It's the AI brain that understands what you want and builds it.

n8n is an open-source automation platform. It's where your workflows actually run — triggers, actions, integrations, all of it.

When you connect all three using MCP (Model Context Protocol), you can tell Claude Code what workflow to build, and it creates it directly inside n8n. No manual wiring required.


What You'll Need

  • A computer (Mac, Windows, or Linux)
  • An internet connection
  • An n8n account (free tier works)
  • About 10 minutes

No coding experience required. Seriously.


Step-by-Step Setup

Step 1: Download Cursor

Go to cursor.com and click Download.

Choose the version for your operating system and install it like any other app.

Tip: Cursor is free to use. You get access to AI features out of the box — no credit card needed to start.


Step 2: Install the Claude Code Extension

Once Cursor is open:

  1. Click the Extensions icon on the left sidebar (it looks like 4 small squares)
  2. In the search bar, type Claude Code
  3. Find the official Claude Code extension and click Install
  4. Wait a few seconds — you'll see a new Claude icon appear in your sidebar

What this does: Claude Code gives you an AI assistant that can read, write, and execute code — all from a simple chat interface inside Cursor. You talk to it like a person.


Step 3: Set Up Your n8n Account

If you don't have n8n yet:

  1. Go to n8n.io and create a free account
  2. Once you're in the dashboard, click your profile icon in the bottom-left corner
  3. Go to Settings → API
  4. Click Create API Key
  5. Copy the key and save it somewhere safe — you'll need it in the next step

Important: Treat your API key like a password. Don't share it publicly or commit it to GitHub.


Step 4: Clone the n8n MCP Repository

This is the bridge that lets Claude Code talk directly to your n8n instance.

  1. Go to the n8n MCP GitHub repository (search "n8n MCP server" on GitHub)
  2. Copy the repository URL
  3. In Cursor, open the Terminal (press Ctrl + ` or Cmd + ` on Mac)
  4. Type:
git clone 
  1. Press Enter and wait for the download to complete
  2. Open the cloned folder in Cursor: File → Open Folder → select the folder

What you just did: You downloaded the code that allows Claude Code to create, edit, and manage n8n workflows using MCP. Think of it as the translator between Claude and n8n.


Step 5: Connect Your n8n API Key to Claude Code

Now link everything together:

  1. Open the Claude Code panel by clicking the Claude icon in your sidebar
  2. In the chat, paste your n8n API key when prompted (or add it to the project's .env file)
  3. Claude Code will detect the MCP configuration and attempt to connect

You'll know the connection is live when you see a green checkmark or a confirmation message in the Claude Code panel.

Success looks like: Claude Code confirms it can access your n8n instance and is ready to create workflows.


Step 6: Build Your First Workflow

This is where it gets fun. Just tell Claude Code what you want.

In the Claude Code chat panel, try a prompt like:

Lead Generation Workflow:

Build me an n8n workflow that:
1. Triggers when a new row is added to a Google Sheet
2. Enriches the lead data with their company info
3. Sends a personalized welcome email via Gmail
4. Adds the lead to a Slack channel notification

Client Onboarding Workflow:

Build me an n8n workflow that:
1. Triggers when a new client signs a proposal (webhook)
2. Creates a project folder in Google Drive
3. Sends a welcome email with onboarding docs
4. Creates a task in the project management tool
5. Notifies the team in Slack

Invoice Automation Workflow:

Build me an n8n workflow that:
1. Triggers on the 1st of every month
2. Pulls client data from a Google Sheet
3. Generates invoices using a template
4. Sends each invoice via email
5. Logs the sent invoices back to the sheet

Claude Code will plan the workflow, build it inside n8n, and confirm when it's ready.


Step 7: Verify and Activate

Once Claude Code says the workflow is built:

  1. Open your n8n dashboard
  2. You'll see the new workflow listed — click to open it
  3. Review the nodes and connections (everything should be wired up)
  4. Click Test Workflow to run it once and confirm it works
  5. When you're satisfied, toggle the workflow to Active

Pro tip: Always test with dummy data first. Once confirmed, activate it and let it run on autopilot.


You're Done! 🎉

Here's what you just set up:

  1. ✅ Downloaded Cursor
  2. ✅ Installed Claude Code extension
  3. ✅ Created your n8n account and API key
  4. ✅ Cloned the MCP repository
  5. ✅ Connected Claude Code to n8n
  6. ✅ Built your first workflow using plain English
  7. ✅ Tested and activated it

You just skipped months of learning n8n node-by-node. From here, you can build as many workflows as you want — just describe them and let Claude Code handle the rest.


Quick Reference


Common Questions

Do I need to know how to code?

No. You describe what you want in plain English. Claude Code writes the code and builds the workflow for you.

Is Cursor free?

Yes. The base version is free and includes AI features. Paid plans unlock more usage.

Is n8n free?