n8n MCP Server
A proper MCP (Model Context Protocol) server implementation for managing n8n workflows in Docker containers.
Features
- List and search n8n workflows
- Update workflow configurations
- Manage Docker containers
- Troubleshoot workflow issues
- Backup and restore workflows
Prerequisites
- Node.js 16+
- Docker installed and running
- n8n running in a Docker container
Installation
- Clone this repository:
git clone https://github.com/Kr8thor/n8n-mcp-tool.git
cd n8n-mcp-tool
- Install dependencies:
npm install
- Make the script executable:
chmod +x index.js
Configuration
Add to your Claude Desktop claude_desktop_config.json:
{
"mcpServers": {
"n8n-workflow-manager": {
"command": "node",
"args": ["/path/to/n8n-mcp-tool/index.js"],
"env": {
"N8N_CONTAINER_NAME": "your-n8n-container-name"
}
}
}
}
Or use npx directly from GitHub:
{
"mcpServers": {
"n8n-workflow-manager": {
"command": "npx",
"args": [
"-y",
"github:Kr8thor/n8n-mcp-tool"
],
"env": {
"N8N_CONTAINER_NAME": "your-n8n-container-name"
}
}
}
}
Available Tools
list_workflows
Lists all workflows in your n8n instance.
update_workflow
Updates a workflow with new configuration.
- Parameters:
workflowId: The ID of the workflow to updateupdateData: JSON object with the workflow configuration
restart_container
Restarts the n8n Docker container.
backup_workflows
Creates a backup of all workflows.
troubleshoot
Troubleshoots a workflow by checking its status and logs.
- Parameters:
workflowId: The ID of the workflow to troubleshoot
Environment Variables
N8N_CONTAINER_NAME: The name of your n8n Docker container (default: 'n8n-container')
Troubleshooting
If you encounter issues:
- Ensure Docker is running
- Verify your container name is correct
- Check that you have proper permissions to execute Docker commands
- Look at the MCP server logs for detailed error messages
Contributing
Feel free to submit issues and pull requests.
License
MIT License
Recommend MCP Servers 💡
UnrealMCPBridge
An MCP server implementation as an Unreal Engine plugin enabling MCP clients to access the UE Editor Python API.
litmus-mcp-server
Enables LLMs and intelligent systems to interact with Litmus Edge for device configuration, monitoring, and management.
@makehq/mcp-server
Make MCP Server
playwright-server
A MCP server with playwright tools
mcp-terraform-assistant
An MCP server for managing infrastructure as code with Terraform
gbox
Cli and MCP for gbox. Enable AI agents to operate Android/Browser/Desktop like human.