Troubleshooting Guide
March 9, 2025 ยท View on GitHub
This document provides solutions for common issues encountered when using the n8n MCP Server.
Connection Issues
Connection Refused Errors
Symptom: Error messages like ECONNREFUSED when the server tries to connect to n8n.
Possible causes and solutions:
-
n8n is not running
- Ensure your n8n instance is running
- Check if you can access the n8n UI in your browser (typically at http://localhost:5678)
- Start n8n if it's not running:
n8n start
-
Incorrect n8n URL
- Verify the
N8N_BASE_URLin your.envfile - Make sure it includes the
/apisuffix:http://localhost:5678/api - Try pinging the URL:
curl http://localhost:5678/api/version
- Verify the
-
Firewall or network issues
- Check if any firewall is blocking connections
- If n8n is running on a different machine, ensure network connectivity
API Key Issues
Symptom: Authentication errors when connecting to n8n.
Solutions:
-
Generate a new API key in the n8n UI:
- Go to Settings โ API
- Create a new API key with appropriate permissions
- Copy the key to your
.envfile
-
Ensure the API key is properly formatted in your
.envfile:N8N_API_KEY=your_actual_key_here -
Restart the MCP server after changing the API key
Docker Issues
Docker Daemon Not Running
Symptom: Error message "Cannot connect to the Docker daemon"
Solutions:
-
Start Docker Desktop (on Mac/Windows) or the Docker service (on Linux):
# On Linux sudo systemctl start docker -
Check if Docker is running:
docker info
Image Build Failures
Symptom: Errors during docker build
Solutions:
- Check for syntax errors in your Dockerfile
- Ensure you have sufficient disk space
- Verify internet connectivity for pulling base images
MCP Protocol Issues
Invalid JSON-RPC Requests
Symptom: Errors like "Invalid request" or "Method not found"
Solutions:
-
Verify your JSON-RPC request format:
{ "jsonrpc": "2.0", "id": "1", "method": "method_name", "params": {} } -
Check that you're using a supported method:
- Use
mcp.tools.listto see available methods - Refer to the API documentation for proper method names
- Use
Logging and Debugging
To increase log verbosity:
- Set
LOG_LEVEL=debugin your.envfile - Restart the server
- Check the logs for detailed information
Still Having Issues?
Please open an issue on our GitHub repository (https://github.com/dopehunter/n8n_MCP_server_complete) with:
- A detailed description of the problem
- Steps to reproduce
- Relevant error messages
- Your environment information (OS, Node.js version, etc.)