n8n Workflow Builder

n8n Workflow Builder

ifmelate

Lets you build n8n automation workflows by describing them in plain English through AI chat. Generates workflow JSON that you can copy-paste into n8n.

Integrates with n8n workflow automation platform to enable natural language workflow creation, management, and deployment with encrypted credential handling, role-based access control, and automated testing capabilities.

50736 views17Local (stdio)

What it does

  • Create n8n workflows using natural language descriptions
  • Generate workflow JSON files for n8n import
  • Discover available n8n nodes and their parameters
  • Manage workflow configurations and connections
  • Update existing workflow structures
  • Handle encrypted credential setup

Best for

Automation engineers building complex workflowsDevelopers who prefer coding workflows over GUITeams wanting to version control n8n workflowsUsers learning n8n node capabilities
Works directly in Cursor IDENo manual JSON writing requiredRole-based access control

About n8n Workflow Builder

n8n Workflow Builder is a community-built MCP server published by ifmelate that provides AI assistants with tools and capabilities via the Model Context Protocol. n8n Workflow Builder is a powerful workflow automation software and flow chart builder for easy, secure workflow creatio It is categorized under ai ml, developer tools.

How to install

You can install n8n Workflow Builder in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.

License

n8n Workflow Builder is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

Add to Cursor Add to VS Code Add to Claude Add to ChatGPT Add to Codex Add to Gemini

n8n Workflow Builder MCP

This project provides a Model Context Protocol (MCP) server for building and manipulating n8n workflows JSON in Cursor IDE. It's a way to build n8n workflows just by prompting with AI in chat.

n8n-workflow-builder-mcp MCP server

DEMO VIDEO:

Watch the video

Cursor rules:

  • file with rules is in rules/n8n-mcp-server-rules.mdc

Current status of implementation

Basically, it's working - MCP server creates JSON file with n8n workflow that you can copy and paste to workflow editor in n8n UI. Current problems:

  • sometimes llm agents put wrong parameters in the request. I plan to find a way to fix this.
  • not all types of node are checked working. I'm working to resolve it.

Key Features

  • Workflow Management: Create, update, and execute n8n workflows programmatically (execute is not implemented yet)
  • Node Discovery: Explore available n8n nodes and their capabilities
  • Connection Management: Create connections between workflow nodes
  • AI Integration: Special tools for connecting AI components in workflows
  • AI-Friendly Interface: Designed specifically for interaction with AI agents
  • N8N Version Management: Automatic version detection and compatibility handling - supports 123+ N8N versions with dynamic node filtering and "closest lower version" matching for backward compatibility

Prerequisites

  • Node.js (v14 or higher)
  • Cursor IDE (v0.48 or newer)
  • npm (for npx command)

Installation & Setup

Recommended: Using npx in mcp.json (Easiest)

The recommended way to install this MCP server is using npx directly in your .cursor/mcp.json file:

{
  "mcpServers": {
    "n8n-workflow-builder": {
      "command": "npx",
      "args": [
        "-y",
        "n8n-workflow-builder-mcp"
      ],
      "env": {
        "N8N_API_URL": "http://localhost:5678",
        "N8N_API_KEY": "your-n8n-api-key-here",
       // "N8N_VERSION": "1.76.1" // optional, if not set, the server will try to detect the version automatically
      }
    }
  }
}

This approach:

  • ✅ Automatically installs the latest version
  • ✅ Does not require global installation
  • ✅ Works reliably across different environments
  • ✅ No manual building or path configuration needed

Setup Steps:

  1. Create the .cursor directory in your project root (if it doesn't exist):

    mkdir -p .cursor
    
  2. Create or update .cursor/mcp.json with the configuration above, replacing:

    • N8N_API_URL: Your n8n instance URL (default: http://localhost:5678)
    • N8N_API_KEY: Your n8n API key from the n8n settings
    • N8N_VERSION: (Optional) Override N8N version - if not set, auto-detects from API
  3. Restart Cursor IDE for changes to take effect

Getting your n8n API Key:

  1. Open your n8n instance in a browser
  2. Go to Settings > API Keys
  3. Click "Create API Key"
  4. Copy the generated key and use it in your configuration

Alternative: Development Installation

For development or local testing, you can clone and build from source:

  1. Clone the repository:

    git clone https://github.com/ifmelate/n8n-workflow-builder-mcp.git
    cd n8n-workflow-builder-mcp
    
  2. Install dependencies:

    npm install
    
  3. Build the TypeScript project:

    npm run build
    
  4. Configure in .cursor/mcp.json:

    {
      "mcpServers": {
        "n8n-workflow-builder": {
          "command": "node",
          "args": ["/absolute/path/to/n8n-workflow-builder-mcp/dist/index.js"],
          "env": {
            "N8N_API_URL": "http://localhost:5678",
            "N8N_API_KEY": "your-n8n-api-key-here",
            //"N8N_VERSION": "1.76.1" - optional
          }
        }
      }
    }
    
  5. For development with auto-rebuild:

    npm run dev
    

Cursor IDE Integration

Using Cursor Settings UI (Optional)

Alternatively, you can set up the MCP server through Cursor's interface:

  1. Start Cursor IDE
  2. Go to Settings > Features > MCP Servers
  3. Click "Add Server"
  4. For npx method: Use command npx with args ["-y", "n8n-workflow-builder-mcp"]
  5. Add environment variables:
    • N8N_API_URL: http://localhost:5678
    • N8N_API_KEY: your-n8n-api-key-here
    • N8N_VERSION: 1.76.1 (optional - auto-detects if not set)
  6. Make sure the server is enabled
  7. Restart Cursor IDE for changes to take effect

Available MCP Tools

The server provides the following tools for working with n8n workflows:

Core Workflow Management

Tool NameDescriptionKey Parameters
create_workflowCreate a new n8n workflowworkflow_name, workspace_dir
list_workflowsList workflows in the workspacelimit (optional), cursor (optional)
get_workflow_detailsGet detailed information about a specific workflowworkflow_name, workflow_path (optional)
validate_workflowValidate a workflow file against node schemas and connectivityworkflow_name, workflow_path (optional)

Node Management

Tool NameDescriptionKey Parameters
add_nodeAdd a new node to a workflowworkflow_name, node_type, position (optional), parameters (optional), node_name (optional), typeVersion (optional), webhookId (optional), workflow_path (optional), connect_from (optional), connect_to (optional)
edit_nodeEdit an existing node in a workflowworkflow_name, node_id, node_type (optional), node_name (optional), position (optional), parameters (optional), typeVersion (optional), webhookId (optional), workflow_path (optional), connect_from (optional), connect_to (optional)
delete_nodeDelete a node from a workflowworkflow_name, node_id, workflow_path (optional)
list_available_nodesList available node types with optional filtering. Supports tag-style synonyms and multi-token OR/AND logicsearch_term (optional), n8n_version (optional), limit (optional), cursor (optional), tags (optional, default: true), token_logic (optional: 'or' default, or 'and')

Connection Management

Tool NameDescriptionKey Parameters
add_connectionCreate a connection between two nodesworkflow_name, source_node_id, source_node_output_name, target_node_id, target_node_input_name, target_node_input_index (optional), workflow_path (optional)
add_ai_connectionsWire AI model, tools, and memory to an agentworkflow_name, agent_node_id, model_node_id (optional), tool_node_ids (optional), memory_node_id (optional), embeddings_node_id (optional), vector_store_node_id (optional), vector_insert_node_id (optional), vector_tool_node_id (optional), workflow_path (optional)
connect_main_chainBuild a minimal main path through AI workflow nodes (Trigger → Model → Memory → Embeddings → Doc Loader → Vector Store → Vector Tool → Agent)workflow_name, workflow_path (optional), dry_run (optional), idempotency_key (optional)

Workflow Planning & Composition

Tool NameDescriptionKey Parameters
plan_workflowCreate a non-destructive plan (nodes and connections) to update a workflow. Does not write filesworkflow_name, target (nodes, connections), workspace_dir (optional)
review_workflow_planApply a plan in-memory and return validation errors, warnings, and suggested fixes. Does not write filesworkflow_name, plan, workflow_path (optional)
apply_workflow_planApply a previously reviewed plan to the workflow on disk (atomic write)workflow_name, plan, workflow_path (optional)
compose_ai_workflowCompose a complex AI workflow (agent + model + memory + embeddings + vector + tools + trigger) in one call, including wiring and basic validationworkflow_name, plan, n8n_version (optional)

Parameter Management

Tool NameDescriptionKey Parameters
suggest_node_paramsSuggest minimal valid parameters for a node type using defaults and required fieldsnode_type, typeVersion (optional), existing_parameters (optional)
list_missing_parametersList required parameters missing for a node considering visibility rulesnode_type, typeVersion (optional), parameters
fix_node_paramsReturn parameters with defaults applied for required fields that are missingnode_type, typeVersion (optional), parameters (optional)

Templates & Discovery

Tool NameDescriptionKey Parameters
list_template_examplesList node usage examples extracted from free templates. Filter by node_type or tem

README truncated. View full README on GitHub.

Alternatives

Related Skills

Browse all skills
cli-builder

Guide for building TypeScript CLIs with Bun. Use when creating command-line tools, adding subcommands to existing CLIs, or building developer tooling. Covers argument parsing, subcommand patterns, output formatting, and distribution.

2
n8n-mcp-orchestrator

Expert MCP (Model Context Protocol) orchestration with n8n workflow automation. Master bidirectional MCP integration, expose n8n workflows as AI agent tools, consume MCP servers in workflows, build agentic systems, orchestrate multi-agent workflows, and create production-ready AI-powered automation pipelines with Claude Code integration.

1
n8n-mcp-tools-expert

Expert guide for using n8n-mcp MCP tools effectively. Use when searching for nodes, validating configurations, accessing templates, managing workflows, or using any n8n-mcp tool. Provides tool selection guidance, parameter formats, and common patterns.

1
nodetool

Visual AI workflow builder - ComfyUI meets n8n for LLM agents, RAG pipelines, and multimodal data flows. Local-first, open source (AGPL-3.0).

0
crewai-developer

Comprehensive CrewAI framework guide for building collaborative AI agent teams and structured workflows. Use when developing multi-agent systems with CrewAI, creating autonomous AI crews, orchestrating flows, implementing agents with roles and tools, or building production-ready AI automation. Essential for developers building intelligent agent systems, task automation, and complex AI workflows.

0
godot

This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.

398