n8n Workflow Builder MCP Server

repository·main·Indexed 19 days ago

https://github.com/makafeli/n8n-workflow-builder

A Model Context Protocol (MCP) server that enables AI assistants to create, manage, and execute n8n workflows using natural language. It provides 15 tools for core workflow operations, lifecycle management, execution tracking, tag organization, and security auditing. Compatible with MCP clients like Claude Desktop and Cline, it allows for programmatic interaction with n8n instances via N8N_HOST and N8N_API_KEY.

Tokens
13.8K
Snippets
45
Records
78
Agent score
67%

What's inside @makafeli/n8n-workflow-builder

  1. Compare n8n MCP Server with alternative automation tools

    main

    The n8n MCP Server is optimized for AI-driven, natural language workflow creation and management. Use the following comparison to decide if it fits your needs:

    Key Feature Comparison

    Featuren8n MCP Servern8n Web UIn8n CLIZapierMake.com
    AI Assistant Integration✅ Native❌ None❌ None❌ None❌ None
    Natural Language Control✅ Full❌ None❌ None❌ None❌ None
    Programmatic Access✅ Complete⚠️ Limited✅ Basic⚠️ API Only⚠️ API Only
    Real-time Workflow Creation✅ Yes✅ Yes❌ No✅ Yes✅ Yes
    Bulk Operations✅ Yes❌ Manual⚠️ Limited❌ Manual❌ Manual
    Cost🆓 Free🆓 Free🆓 Free💰 Paid💰 Paid

    When to use alternatives

    • n8n Web UI: Use for visual design, detailed node parameter tweaking, visual debugging, and monitoring execution dashboards.
    • n8n CLI: Use for CI/CD integration, shell scripting, server management, and environment configuration.
    • Zapier/Make.com: Use if you require a fully managed cloud service (no infrastructure management) or need specific pre-built app integrations not available in n8n.
  2. What is the n8n Workflow Builder MCP Server?

    main
    The n8n Workflow Builder MCP Server is a Model Context Protocol (MCP) server that connects AI assistants (such as Claude Desktop, Cline, or other MCP-compatible clients) to an n8n automation instance. It allows AI assistants to manage n8n workflows using natural language by providing tools to list, create, execute, and manage the lifecycle of workflows and executions.
  3. Quickstart: Install and use n8n MCP Server

    main

    To start using the n8n MCP Server for AI-powered workflow automation, follow these steps:

    1. Install: Run the following command to install via npx:
      npx @makafeli/n8n-workflow-builder
    2. Configure: Add your n8n credentials to the server.
    3. Test: Verify the connection by asking the AI to "List my workflows".
    4. Create: Start building by describing your needs, e.g., "Build a workflow that...".

    This setup is designed for rapid deployment (under 5 minutes) and requires no technical expertise due to the AI-assisted natural language interface.

    npx @makafeli/n8n-workflow-builder
  4. Configure Claude Desktop for n8n Workflow Builder

    main

    To use the n8n Workflow Builder with Claude Desktop, add the server configuration to your claude_desktop_config.json file. You must provide the N8N_HOST and N8N_API_KEY environment variables.

    {
      "mcpServers": {
        "n8n-workflow-builder": {
          "command": "npx",
          "args": ["@makafeli/n8n-workflow-builder"],
          "env": {
            "N8N_HOST": "https://your-n8n-instance.com",
            "N8N_API_KEY": "your-api-key-here"
          }
        }
      }
    }
  5. Automate n8n workflows using AI commands

    main

    The n8n Workflow Builder MCP Server allows you to automate complex business processes by describing them in natural language to an AI assistant. Instead of manually dragging nodes, you can provide high-level instructions (AI Commands) that the server translates into functional n8n workflows.

    Implementation Workflow

    1. Identify Repetitive Tasks: Find manual processes suitable for automation.
    2. Map Your Process: Break down the steps (Triggers, Actions, Logic).
    3. Describe to AI: Use natural language to explain the desired workflow.
    4. Iterate and Improve: Refine the generated workflow based on the results.
    5. Scale: Apply successful patterns to other processes.
  6. Configure Cline (VS Code) for n8n Workflow Builder

    main

    To use the n8n Workflow Builder with Cline in VS Code, add the following configuration to your Cline MCP settings. Ensure N8N_HOST and N8N_API_KEY are correctly set.

    {
      "mcpServers": {
        "n8n-workflow-builder": {
          "command": "npx",
          "args": ["@makafeli/n8n-workflow-builder"],
          "env": {
            "N8N_HOST": "https://your-n8n-instance.com",
            "N8N_API_KEY": "your-api-key-here"
          }
        }
      }
    }
  7. Migrate workflows from Zapier to n8n MCP Server

    main

    To migrate your existing automations from Zapier to the n8n MCP Server, follow these steps:

    1. Export Zapier Workflows: Document your current Zaps and their logic.
    2. Describe to AI: Use natural language to instruct the AI to recreate the logic. For example: "Recreate my Zapier workflow that...".
    3. Test and Refine: Use the AI assistant to adjust parameters and improve the workflow.
    4. Deploy: Activate your new n8n workflows.
    5. Monitor: Track performance and optimize within n8n.

    Example Migration Prompt:

    "Create an n8n workflow that replicates my Zapier automation: 
    when a new lead comes from our website form, add them to our CRM, 
    send a welcome email, and notify our sales team on Slack"
    "Create an n8n workflow that replicates my Zapier automation: 
    when a new lead comes from our website form, add them to our CRM, 
    send a welcome email, and notify our sales team on Slack"
  8. Configure Claude Desktop for n8n MCP

    main

    If the MCP server is not appearing in Claude Desktop, verify your configuration file:

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json

    Valid JSON Structure:

    {
      "mcpServers": {
        "n8n-workflow-builder": {
          "command": "npx",
          "args": ["@makafeli/n8n-workflow-builder"],
          "env": {
            "N8N_HOST": "https://your-n8n-instance.com",
            "N8N_API_KEY": "your-api-key-here"
          }
        }
      }
    }

    Troubleshooting Steps:

    1. Ensure no quotes are around environment values.
    2. Ensure special characters are properly escaped.
    3. Restart Claude Desktop: Completely quit the application, wait 10 seconds, and restart.
  9. Migrate workflows from Make.com to n8n MCP Server

    main

    Follow these steps to transition from Make.com (Integromat) to the n8n MCP Server:

    1. Document Scenarios: List your existing Make.com automations and their steps.
    2. AI Recreation: Use natural language descriptions to recreate the workflows via the MCP server.
    3. Enhanced Features: Leverage the AI to add improvements or more complex logic that might be difficult in Make.com.
    4. Testing: Validate that all integrations and data mappings work correctly.
    5. Cutover: Gradually migrate your production workflows to the new n8n setup.
  10. Install the n8n Workflow Builder MCP Server

    main

    You can install and run the server using three different methods depending on your needs:

    Use the hosted version on Smithery.ai for a zero-installation experience. Search for n8n-workflow-builder and configure it with your n8n host and API key.

    Method 2: NPX (Local)

    Run the server directly using npx without a permanent local installation:

    npx @makafeli/n8n-workflow-builder

    Method 3: Manual Installation

    For development or customization, clone the repository and build it manually:

    # 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
    npx @makafeli/n8n-workflow-builder
  11. Configure n8n API Credentials

    main

    To use the MCP server, you need an n8n API key with workflow permissions.

    For n8n Cloud:

    1. Login to your n8n Cloud instance.
    2. Navigate to SettingsAPI Keys.
    3. Click Create API Key and copy the generated key.

    For Self-hosted n8n:

    1. Open your n8n instance.
    2. Navigate to SettingsAPI Keys.
    3. Click Create API Key and save the key securely.