Claude Code + n8n Setup Guide
Full setup guide for installing Claude Code, running n8n locally, and using them together to build workflows from natural language prompts. Covers the n8n-mcp server and skills plugin.
Everything you need to install Claude Code, get n8n running locally, connect them via MCP, and start building workflows by typing what you want in plain English. Aimed at non-technical users, copy-paste the commands and you’re set.
What You Need First
- Anthropic Pro plan ($20/month), Claude Code is not on the free tier
- A Mac, Windows PC, or Linux machine
- Docker Desktop (free) for running n8n locally
- About 30 minutes for first-time setup
Step 1, Install Claude Code
Open Terminal (Mac) or PowerShell (Windows) and paste the right command for your system.
Mac / Linux
curl -fsSL https://claude.ai/install.sh | bashWindows (PowerShell)
irm https://claude.ai/install.ps1 | iexClose and reopen the terminal after install (PATH changes don’t apply to existing windows). Then run claude in any folder to log in for the first time.
Step 2, Run n8n Locally with Docker
Install Docker Desktop from docker.com if you don’t have it already. Then open Terminal and run these two commands:
docker volume create n8n_data
docker run -it --rm --name n8n -p 5678:5678 -v n8n_data:/home/node/.n8n docker.n8n.io/n8nio/n8nOpen http://localhost:5678 in your browser. Set up an owner account on first load.
Step 3, Get Your n8n API Key
- In n8n, go to Settings → API
- Click ‘Create API key’
- Copy the key, you’ll need it in the next step
Step 4, Connect Claude Code to n8n
This is the magic step. We’re connecting Claude Code to your n8n instance via an MCP server so it can read your workflows and create new ones directly. Run this command in your terminal, replacing PASTE_KEY_HERE with the API key from step 3:
claude mcp add n8n-mcp \
-e MCP_MODE=stdio \
-e LOG_LEVEL=error \
-e DISABLE_CONSOLE_OUTPUT=true \
-e N8N_API_URL=http://localhost:5678 \
-e N8N_API_KEY=PASTE_KEY_HERE \
-- npx n8n-mcpStep 5, Install the n8n Skills Plugin
Open Claude Code by typing ‘claude’ in any folder. Then run this inside Claude Code:
/plugin install czlonkowski/n8n-skillsThis installs 7 skills that teach Claude exactly how n8n works, node properties, expression syntax, validation rules. The difference between Claude generating broken workflows and ones that work first time.
Step 6, Build a Workflow
You’re done with setup. Just describe what you want in plain English. Examples that work well:
- "Build me an n8n workflow that emails me a daily Stripe revenue summary at 9am"
- "Create a workflow that triggers when a new row is added to my Google Sheet, sends the data to OpenAI for summarization, then posts the summary to Slack"
- "Find a webhook-to-Slack notification template in the n8n template library and adapt it so it formats the payload as a card with timestamp"
- "Validate this workflow JSON and tell me what’s broken before I import it: [paste JSON]"
Useful Links
- n8n-mcp (the integration): https://github.com/czlonkowski/n8n-mcp
- n8n-skills plugin: https://github.com/czlonkowski/n8n-skills
- Official n8n template library (9,500+ templates): https://n8n.io/workflows/
- 280+ curated templates: https://github.com/enescingoz/awesome-n8n-templates
- 4,000+ workflows with searchable UI: https://github.com/Zie619/n8n-workflows
- 200+ AI-stack templates: https://github.com/wassupjay/n8n-free-templates
Common Issues
claude: command not found, close terminal, reopen. PATH only updates in new sessions.
Workflow won’t import, credentials never travel in JSON. After importing, every node that needs an external service has to have credentials reselected.
Webhooks don’t trigger from the internet, add ‘start --tunnel’ to your Docker run command. n8n exposes a public tunnel URL.
New guides land in your inbox first
One short email a week with the tools and prompts worth your time. Free, and you can leave any time.