Guides
Cursor Setup
Configure Cursor IDE to use n8n MCP Bridge
Cursor Setup
Connect Cursor IDE to n8n MCP Bridge for AI-powered workflow automation in your editor.
Prerequisites
- Cursor IDE installed (download here)
- n8n MCP Bridge running
- MCP API key created
Configuration
Step 1: Open Cursor Settings
- Open Cursor
- Press Cmd/Ctrl+,
- Search for "MCP" or "Model Context"
Step 2: Add MCP Server
Add this to your Cursor settings:
{
"mcp.servers": {
"n8n": {
"url": "http://localhost:3001/mcp?apiKey=mcp_your_key_here"
}
}
}
Step 3: Restart Cursor
- Quit Cursor completely
- Restart Cursor
- MCP server should load
Verification
Test in Cursor's AI chat:
@n8n Can you ping my n8n instance?
Expected response:
✓ n8n connection successful
Usage
In Chat
Use Cursor's AI chat with n8n context:
@n8n Execute my welcome email workflow
In Composer
Reference n8n in Cursor Composer:
Create a function that triggers my n8n payment workflow
Use @n8n to get workflow details
Configuration Options
Custom Name
{
"mcp.servers": {
"my-n8n-server": {
"url": "http://localhost:3001/mcp?apiKey=mcp_key",
"name": "Production n8n"
}
}
}
Multiple Instances
{
"mcp.servers": {
"n8n-prod": {
"url": "https://mcp.example.com/mcp?apiKey=mcp_prod"
},
"n8n-dev": {
"url": "http://localhost:3001/mcp?apiKey=mcp_dev"
}
}
}
Project-Specific Config
Create .cursor/settings.json in your project:
{
"mcp.servers": {
"project-n8n": {
"url": "http://localhost:3001/mcp?apiKey=mcp_project_key"
}
}
}
Troubleshooting
Server Not Loading
- Check JSON syntax in settings
- Verify API key format
- Restart Cursor
- Check Cursor's developer console for errors
Connection Failed
- Test MCP server:
curl http://localhost:3001/health - Verify API key in dashboard
- Check firewall settings
- Review Cursor logs