docs/README_CLAUDE_SETUP.md
This guide helps you connect n8n-MCP to Claude Desktop, giving Claude comprehensive knowledge about n8n's 525 workflow automation nodes, including 263 AI-capable tools.
Install and build:
git clone https://github.com/czlonkowski/n8n-mcp.git
cd n8n-mcp
npm install
npm run build
npm run rebuild
Configure Claude Desktop:
{
"mcpServers": {
"n8n-mcp": {
"command": "node",
"args": ["/absolute/path/to/n8n-mcp/dist/mcp/index.js"],
"env": {
"NODE_ENV": "production",
"LOG_LEVEL": "error",
"MCP_MODE": "stdio",
"DISABLE_CONSOLE_OUTPUT": "true"
}
}
}
}
ā ļø Important:
No installation needed - runs directly from Docker:
{
"mcpServers": {
"n8n-mcp": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"-e", "MCP_MODE=stdio",
"-e", "LOG_LEVEL=error",
"-e", "DISABLE_CONSOLE_OUTPUT=true",
"ghcr.io/czlonkowski/n8n-mcp:latest"
]
}
}
}
⨠Benefits: No setup required, always up-to-date, isolated environment.
ā ļø Note: Remote connections are complex and may have compatibility issues. Consider using local installation instead.
For production deployments with multiple users:
Deploy server with HTTP mode (see HTTP Deployment Guide)
Connect using custom HTTP client:
{
"mcpServers": {
"n8n-remote": {
"command": "node",
"args": [
"/path/to/n8n-mcp/scripts/mcp-http-client.js",
"http://your-server.com:3000/mcp"
],
"env": {
"MCP_AUTH_TOKEN": "your-auth-token"
}
}
}
}
š Note: Native remote MCP support is available in Claude Pro/Team/Enterprise via Settings > Integrations.
Find your claude_desktop_config.json file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.jsonš Important: After editing, restart Claude Desktop (Cmd/Ctrl+R or quit and reopen).
After restarting Claude Desktop:
tools_documentation - Get documentation for any MCP tool (ALWAYS use this first!)list_nodes - List all n8n nodes with filtering optionsget_node_info - Get comprehensive information (now includes aiToolCapabilities)get_node_essentials - Get only 10-20 essential properties (95% smaller!)search_nodes - Full-text search across all node documentationsearch_node_properties - Find specific properties within nodesget_node_documentation - Get parsed documentation from n8n-docsget_database_statistics - View database metrics and coveragelist_ai_tools - List AI-capable nodes (ANY node can be used as AI tool!)get_node_as_tool_info - Get guidance on using any node as an AI toolget_node_for_task - Pre-configured node settings for common taskslist_tasks - Discover available task templateslist_node_templates - Find workflow templates using specific nodesget_template - Get complete workflow JSON for importsearch_templates - Search templates by keywordsget_templates_for_task - Get curated templates for common tasksvalidate_node_operation - Smart validation with operation awarenessvalidate_node_minimal - Quick validation for just required fieldsvalidate_workflow - Complete workflow validation (validates AI tool connections)validate_workflow_connections - Check workflow structurevalidate_workflow_expressions - Validate n8n expressions including $fromAI()get_property_dependencies - Analyze property visibility conditionsCheck JSON syntax:
# Validate your config file
cat ~/Library/Application\ Support/Claude/claude_desktop_config.json | jq .
Verify paths are absolute (not relative)
Restart Claude Desktop completely (quit and reopen)
"TransformStream is not defined" error:
node --version # Should be v18.0.0 or higher
"Server disconnected" error:
curl https://your-server.com/health"Cannot find image" error:
# Pull the latest image
docker pull ghcr.io/czlonkowski/n8n-mcp:latest
Permission denied:
# Ensure Docker is running
docker ps
"Expected ',' or ']' after array element" errors in logs:
MCP_MODE=stdioLOG_LEVEL=errorDISABLE_CONSOLE_OUTPUT=true"NODE_MODULE_VERSION mismatch" warnings:
Server appears but tools don't work:
npm run buildnpm run rebuildFor more help, see Troubleshooting Guide