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 💡
mcp-task-orchestrator
MCP server that breaks down complex tasks into structured workflows with specialized AI roles and workspace-aware management
talk-with-figma-claude
Enables Claude Desktop App to control Figma through MCP (Model Context Protocol) via stdio
swift-mcp-gui
MCP server that can execute commands such as keyboard input and mouse movement on macOS
editor-mcp-server
An MCP Server for automating the PlayCanvas Editor using an LLM.
hyperbrowser-mcp
Hyperbrowser's Model Context Protocol (MCP) Server provides tools to scrape, extract structured data, and crawl webpages, along with access to general-purpose browser agents like OpenAI's CUA and Anthropic's Claude Computer Use.
voyp-mcp
Enables AI models to make phone calls and monitor progress via MCP integration with VOYP's calling capabilities