Overview
n8n-MCP provides two categories of tools:- Documentation Tools - Work without n8n API (node search, documentation, validation)
- Management Tools - Require n8n API credentials (create, update, execute workflows)
Prerequisites
n8n Instance
Running n8n instance (local, cloud, or self-hosted)
API Access
n8n API key from Settings → API
Network Access
n8n-MCP can reach your n8n instance URL
n8n Version
n8n 1.0.0 or newer recommended
Getting n8n API Credentials
Configuration Methods
Environment Variables
Your n8n instance URL (without
/api/v1 suffix).Examples:Your n8n API key from Settings → API.
API request timeout in milliseconds.
Maximum number of API request retries.
Claude Desktop Configuration
Add n8n credentials to yourclaude_desktop_config.json:
Docker Compose Configuration
For HTTP mode deployments:docker-compose.yml
Local n8n Instance Setup
When connecting to n8n running locally:Allow Localhost Webhooks
Set security mode to This allows webhooks to localhost while still blocking private networks and cloud metadata.
moderate:Complete Local Development Configuration
Available Management Tools
With n8n API configured, you gain access to these additional tools:Workflow Management
n8n_create_workflow- Create new workflows with nodes and connectionsn8n_get_workflow- Retrieve workflow details (full, structure, minimal modes)n8n_update_full_workflow- Complete workflow replacementn8n_update_partial_workflow- Efficient diff-based updatesn8n_delete_workflow- Delete workflows permanentlyn8n_list_workflows- List workflows with filtering and paginationn8n_validate_workflow- Validate workflows by IDn8n_autofix_workflow- Auto-fix common errorsn8n_workflow_versions- Version history and rollbackn8n_deploy_template- Deploy templates from n8n.io
Execution Management
n8n_test_workflow- Test/trigger workflow executionn8n_executions- List, get, or delete executions
System Tools
n8n_health_check- Check n8n API connectivity and features
Verify Integration
Troubleshooting
Connection Failed
Check URL Format
Check URL Format
Ensure URL does not include
/api/v1 suffix:Verify API Key
Verify API Key
Test API key directly:
Check Network Access
Check Network Access
Ensure n8n-MCP can reach n8n:
Authentication Failed
Symptom: “Invalid API key” or “Authentication failed” Solutions:Timeout Errors
Symptom: “Request timeout” or “Connection timeout” Solutions:Local Docker Network Issues
Symptom: “Cannot resolve host.docker.internal” Solutions:- Linux
- Docker Compose
- Alternative
Add extra host to Docker run command:
Security Best Practices
Use HTTPS
Always use HTTPS in production:
Rotate API Keys
Regularly rotate API keys for security
Limit Permissions
Use API keys with minimal required permissions
Network Isolation
Run n8n-MCP in the same network as n8n when possible
Multi-Tenant Configuration
For SaaS platforms managing multiple n8n instances:Multi-tenant mode only works in HTTP mode. Instance configuration comes from request headers instead of environment variables.
Next Steps
Workflow Tools
Learn about workflow management tools
Execution Tools
Test and execute workflows
Validation
Validate workflows before deployment
Deployment
Deploy with n8n MCP Client Tool