
n8n Workflow Builder
STDIOMCP server for managing n8n workflows with creation, updating, activation, and deletion capabilities.
MCP server for managing n8n workflows with creation, updating, activation, and deletion capabilities.
The ultimate AI assistant integration for n8n workflow automation - Connect Claude Desktop, ChatGPT, and other AI assistants directly to your n8n instance for seamless workflow management, creation, and execution through the Model Context Protocol (MCP).
A powerful Model Context Protocol (MCP) server that enables AI assistants to manage n8n workflows seamlessly. Connect your AI tools directly to n8n for automated workflow creation, execution, and management.
The n8n Workflow Builder MCP Server bridges the gap between AI assistants (like Claude Desktop, Cline, or any MCP-compatible client) and your n8n automation platform. It provides a comprehensive set of tools that allow AI assistants to:
Perfect for teams using n8n who want to leverage AI assistants for workflow automation and management.
Use the hosted version on Smithery.ai - no installation required:
Benefits: No local setup, automatic updates, professional hosting, tool playground.
Run locally with NPX:
npx @makafeli/n8n-workflow-builder
For development or customization:
# Clone the repository git clone https://github.com/makafeli/n8n-workflow-builder.git cd n8n-workflow-builder # Install dependencies npm install # Build the project npm run build # Start the server npm start
Configure the following environment variables to connect to your n8n instance:
Variable | Description | Example |
---|---|---|
N8N_HOST | Your n8n instance URL | http://localhost:5678 or https://your-n8n.com/api/v1 |
N8N_API_KEY | Your n8n API key | n8n_api_1234567890abcdef... |
# For local testing export N8N_HOST="http://localhost:5678" export N8N_API_KEY="your-api-key-here" # Then run the server npx @makafeli/n8n-workflow-builder
Add this configuration to your claude_desktop_config.json
:
{ "mcpServers": { "n8n-workflow-builder": { "command": "npx", "args": ["@makafeli/n8n-workflow-builder"], "env": { "N8N_HOST": "http://localhost:5678", "N8N_API_KEY": "your-api-key-here" } } } }
Add this to your Cline MCP settings:
{ "mcpServers": { "n8n-workflow-builder": { "command": "npx", "args": ["@makafeli/n8n-workflow-builder"], "env": { "N8N_HOST": "http://localhost:5678", "N8N_API_KEY": "your-api-key-here" } } } }
The server works with any MCP-compatible client. Use the same configuration pattern with your client's specific setup method.
The MCP server provides 15 comprehensive tools for complete n8n workflow and execution management:
Tool | Description | Parameters |
---|---|---|
list_workflows | List all workflows from your n8n instance | None |
get_workflow | Retrieve detailed information about a specific workflow | id : Workflow ID (string) |
create_workflow | Create a new workflow with nodes and connections | workflow : Workflow object |
execute_workflow | Manually execute a workflow | id : Workflow ID (string) |
Tool | Description | Parameters |
---|---|---|
update_workflow | Update an existing workflow's configuration | id : Workflow ID, workflow : Updated workflow object |
activate_workflow | Activate a workflow to enable automatic execution | id : Workflow ID (string) |
deactivate_workflow | Deactivate a workflow to stop automatic execution | id : Workflow ID (string) |
delete_workflow | Permanently delete a workflow | id : Workflow ID (string) |
Tool | Description | Parameters |
---|---|---|
create_workflow_and_activate | Create a new workflow and immediately activate it | workflow : Workflow object |
Tool | Description | Parameters |
---|---|---|
list_executions | List workflow executions with filtering and pagination | includeData , status , workflowId , projectId , limit , cursor |
get_execution | Get detailed information about a specific execution | id : Execution ID, includeData : Include detailed data |
delete_execution | Delete a workflow execution record | id : Execution ID |
Tool | Description | Parameters |
---|---|---|
list_tags | List all workflow tags with pagination | limit , cursor |
create_tag | Create a new workflow tag for organization | name : Tag name |
Tool | Description | Parameters |
---|---|---|
generate_audit | Generate comprehensive security audit report | additionalOptions : Audit configuration |
// List all workflows await callTool("list_workflows", {}); // Get detailed information about a workflow await callTool("get_workflow", { id: "workflow-123" }); // Execute a workflow manually await callTool("execute_workflow", { id: "workflow-123" });
// Create a simple workflow await callTool("create_workflow", { workflow: { name: "My Automation Workflow", nodes: [ { id: "trigger", name: "Schedule Trigger", type: "n8n-nodes-base.scheduleTrigger", typeVersion: 1, position: [240, 300], parameters: { interval: [{ field: "unit", value: "hours" }] } }, { id: "action", name: "HTTP Request", type: "n8n-nodes-base.httpRequest", typeVersion: 4, position: [460, 300], parameters: { url: "https://api.example.com/webhook", method: "POST" } } ], connections: { "Schedule Trigger": { "main": [[{ "node": "HTTP Request", "type": "main", "index": 0 }]] } } } });
// Activate a workflow await callTool("activate_workflow", { id: "workflow-123" }); // Update a workflow await callTool("update_workflow", { id: "workflow-123", workflow: { name: "Updated Workflow Name" } }); // Deactivate a workflow await callTool("deactivate_workflow", { id: "workflow-123" }); // Create and immediately activate await callTool("create_workflow_and_activate", { workflow: { /* workflow configuration */ } });
// List recent executions await callTool("list_executions", { limit: 10, status: "error" }); // Get detailed execution information await callTool("get_execution", { id: "execution-123", includeData: true }); // Clean up old execution records await callTool("delete_execution", { id: "execution-123" });
// List all workflow tags await callTool("list_tags", { limit: 50 }); // Create a new tag for organization await callTool("create_tag", { name: "production" });
// Generate comprehensive security audit await callTool("generate_audit", { additionalOptions: { daysAbandonedWorkflow: 30, categories: ["credentials", "database", "nodes"] } });
N8N_HOST
is correct and n8n is runningN8N_API_KEY
is correctlist_workflows
to get valid workflow IDsnode --version
npm cache clean --force
npm install && npm run build
For detailed logging, set the debug environment variable:
DEBUG=n8n-workflow-builder npx @makafeli/n8n-workflow-builder
A Model Context Protocol (MCP) server is a standardized way for AI assistants to access external tools and data sources. This MCP server specifically provides AI assistants with the ability to interact with n8n workflows, enabling automated workflow management through natural language commands.
This MCP server acts as a bridge between AI assistants (like Claude Desktop, Cline, or ChatGPT) and your n8n instance. Simply:
npx @makafeli/n8n-workflow-builder
The server works with any MCP-compatible AI assistant, including:
This MCP server works with both n8n Cloud and self-hosted instances. You just need:
AI assistants can perform complete workflow management including:
The MCP server uses n8n's official API with proper authentication:
This MCP server enables AI-powered workflow management:
🔍 Detailed Comparison: See our Comparison Guide for detailed comparisons with n8n Web UI, CLI, Zapier, and Make.com.
Yes! This is one of the key features. You can:
💼 Real Examples: Check out our Use Cases Guide for specific automation examples across different industries.
Common solutions:
DEBUG=n8n-workflow-builder
for detailed logs🔧 Comprehensive Help: See our Troubleshooting Guide for detailed solutions to common issues.
Fastest setup:
npx @makafeli/n8n-workflow-builder
📖 Detailed Guide: See our Getting Started Guide for step-by-step setup instructions.
Absolutely! This is an open-source project:
We welcome contributions!
This project is licensed under the MIT License - see the LICENSE file for details.
Built with ❤️ for the n8n and MCP community
{ "@context": "https://schema.org", "@type": "SoftwareApplication", "name": "n8n Workflow Builder MCP Server", "description": "AI assistant integration for n8n workflow automation through the Model Context Protocol (MCP). Connect Claude Desktop, ChatGPT, and other AI assistants to n8n for natural language workflow management.", "url": "https://github.com/makafeli/n8n-workflow-builder", "downloadUrl": "https://www.npmjs.com/package/@makafeli/n8n-workflow-builder", "applicationCategory": "DeveloperApplication", "operatingSystem": "Cross-platform", "programmingLanguage": "TypeScript", "author": { "@type": "Person", "name": "makafeli", "url": "https://github.com/makafeli" }, "license": "https://github.com/makafeli/n8n-workflow-builder/blob/main/LICENSE", "keywords": [ "n8n", "MCP", "AI assistant", "workflow automation", "Claude Desktop", "ChatGPT", "Model Context Protocol" ], "offers": { "@type": "Offer", "price": "0", "priceCurrency": "USD" }, "softwareRequirements": "Node.js 18.0.0 or higher", "releaseNotes": "https://github.com/makafeli/n8n-workflow-builder/releases", "codeRepository": "https://github.com/makafeli/n8n-workflow-builder" }