Video Tutorial
Watch the complete setup process
Prerequisites
- Windsurf IDE installed
- Node.js installed on your system
- n8n instance (optional, for full workflow management)
Installation
Access MCP Configuration
Navigate to the MCP configuration in Windsurf:
- Go to Settings in Windsurf
- Navigate to Windsurf Settings
- Go to MCP Servers > Manage Plugins
- Click “View Raw Config”
Add n8n-MCP Configuration
Add the n8n-MCP configuration to your MCP config:
- Basic Configuration
- Full Configuration
Documentation tools only - No n8n API connection required.
Apply Configuration
- Save the configuration file
- Click the refresh button to apply the changes
- Verify that n8n-mcp appears in the list of active MCP servers
Set Up Project Instructions
Create a Copy the Claude Project instructions from the Claude Project Setup section into this file.
.windsurfrules file in your project root:Configuration Options
Environment Variables
Mode for MCP communication. Use “stdio” for Windsurf.
Logging level. Set to “error” to reduce noise.
Set to “true” to disable console output.
Your n8n instance URL (e.g.,
https://your-n8n-instance.com or http://localhost:5678)Your n8n API key for workflow management operations
Verification
To verify your setup is working:Usage Examples
Building a Workflow
Validating Workflows
Node Documentation
Tips
- Use Windsurf’s Cascade mode for autonomous workflow building
- Always validate workflows before deploying to n8n
- Use
.windsurfrulesto maintain consistent AI behavior across sessions - Leverage Windsurf’s multi-file context for complex workflow projects
Troubleshooting
MCP server not appearing
MCP server not appearing
- Verify the JSON syntax in the MCP configuration is valid
- Click the refresh button in MCP Servers settings
- Restart Windsurf IDE
- Check the Windsurf console for error messages
npx command not found
npx command not found
- Ensure Node.js is installed:
node --version - Verify npm is in your PATH
- Try using the full path to npx in the configuration
- On Windows, ensure npm is accessible from the command line
Connection to n8n fails
Connection to n8n fails
- Verify your n8n instance is running and accessible
- Check the
N8N_API_URLis correct - Verify your
N8N_API_KEYis valid - Test the connection manually:
curl -H "X-N8N-API-KEY: your-key" https://your-n8n-instance.com/api/v1/workflows
Tools not working as expected
Tools not working as expected
- Verify
.windsurfrulesfile exists in project root - Check that instructions are formatted correctly
- Try removing and re-adding the MCP server
- Review Windsurf’s output panel for detailed error logs
Windsurf-Specific Features
Cascade Mode
Windsurf’s Cascade mode works exceptionally well with n8n-MCP for autonomous workflow development:Flow Mode
Use Flow mode for iterative workflow refinement:Next Steps
Claude Project Setup
Configure optimal project instructions
Available Tools
Explore all n8n-MCP tools
Building Workflows
Learn workflow best practices
Video Tutorial
Watch the setup walkthrough