Video Tutorial
Watch the complete setup process
Prerequisites
- Cursor IDE installed
- Node.js installed on your system
- n8n instance (optional, for full workflow management)
Installation
Create MCP Configuration File
Create
mcp.json file inside the .cursor folder with your configuration:- Basic Configuration
- Full Configuration
Documentation tools only - No n8n API connection required.
.cursor/mcp.json
Enable MCP Server in Cursor
- Click the “Enable MCP Server” button in Cursor when prompted
- Go to Cursor Settings
- Search for “mcp”
- Confirm MCP is working and n8n-mcp appears in the list
Set Up Project Instructions
Configure Cursor with n8n-specific instructions:
- In your Cursor chat, invoke “create rule” and hit Tab
- Name the rule (e.g., “n8n-mcp”)
- Set rule type to “always”
- Copy the Claude Project instructions from the Claude Project Setup section
Configuration Options
Environment Variables
Mode for MCP communication. Use “stdio” for Cursor.
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 Configurations
Searching Documentation
Tips
- Use Cursor’s composer mode for building complete workflows
- Always validate node configurations before deploying
- Use the “always” rule type for project instructions to ensure they’re applied consistently
- Leverage Cursor’s multi-file editing for complex workflow projects
Troubleshooting
MCP server not appearing
MCP server not appearing
- Verify the
.cursor/mcp.jsonfile is in your project root - Check the JSON syntax is valid
- Restart Cursor IDE
- Click “Enable MCP Server” if prompted
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
Connection to n8n fails
Connection to n8n fails
- Verify your n8n instance is running
- Check the
N8N_API_URLis correct and accessible - Verify your
N8N_API_KEYis valid - Check firewall settings if using a remote instance
Tools not working as expected
Tools not working as expected
- Verify project instructions are set up correctly
- Try removing and re-adding the MCP server
- Check Cursor’s MCP settings are enabled
- Review the Cursor console for error messages
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