Overview
Connect n8n-MCP to Claude Desktop to give Claude comprehensive knowledge about n8n’s 1,084 workflow automation nodes, including 265 AI-capable tools.Prerequisites
Claude Desktop
Claude Desktop application installed
Node.js (npx)
Any version for npx method
Docker (optional)
For Docker deployment method
Git (optional)
For local installation
Configuration File Location
Find yourclaude_desktop_config.json file:
Configuration Methods
Method 1: npx (Recommended)
The fastest way to get started - no installation required:The
MCP_MODE: "stdio" environment variable is required for Claude Desktop. Without it, you will see JSON parsing errors in the UI.Method 2: Docker
Run n8n-MCP from a Docker container with no local installation:Method 3: Local Installation
For development or custom modifications:Local n8n Instance Configuration
If you’re running n8n locally (e.g.,http://localhost:5678), you need to allow localhost webhooks:
Set
WEBHOOK_SECURITY_MODE=moderate to allow webhooks to your local n8n instance. This is safe for local development while still blocking private networks and cloud metadata.Verify Installation
After restarting Claude Desktop:Troubleshooting
Server Not Appearing
Validate JSON Syntax
Validate JSON Syntax
Check Absolute Paths
Check Absolute Paths
Ensure all paths are absolute (not relative). Paths starting with
~ or ./ will fail.Restart Completely
Restart Completely
Quit Claude Desktop completely (not just close the window) and reopen it.
JSON Parsing Errors
Symptom:"Unexpected token..." or "Expected ',' or ']'" errors in logs
Cause: Console output interfering with stdio communication
Solution: Ensure all required environment variables are set:
MCP_MODE=stdioLOG_LEVEL=errorDISABLE_CONSOLE_OUTPUT=true
Docker Issues
Cannot Find Image
Cannot Find Image
Permission Denied
Permission Denied
Module Version Mismatch
Module Version Mismatch
This is not a problem! The server automatically falls back to a pure JavaScript implementation. The warnings are suppressed with proper environment variables.
Server Appears But Tools Don’t Work
Next Steps
Environment Variables
Configure additional environment variables
n8n Integration
Connect to your n8n instance
Database Configuration
Optimize database settings
Available Tools
Explore available MCP tools