Logo van n8n Workflow Builder

n8n Workflow Builder

Community
ifmelate

MCP server that allow LLM in agent mode builds n8n workflows for you

Uitgeverifmelate
Repositoryn8n-workflow-builder-mcp
TaalJavaScript
Forks
17
Sterren
52
Beschikbare tools
10
Transporttypestdio
Categorieën
LicentieMIT
Links
  • Koppel tools aan AI-workflows

    n8n Workflow Builder biedt MCP-functionaliteit die compatibele AI-clients en agenten kunnen gebruiken.

  • 10 beschikbare tools

    Bekijk hieronder de aanroepbare acties, inclusief namen en beschrijvingen als de server die beschikbaar stelt.

  • Configuratie om direct te kopiëren

    Gebruik de installatievoorbeelden om deze server in je favoriete MCP-client te configureren.

  • Indicatoren van opensource-interesse

    52 sterren en 17 forks in de gekoppelde repository.

n8n Workflow Builder MCP

A Model Context Protocol (MCP) server for building and manipulating n8n workflows. Build n8n workflows just by prompting with AI — works with Claude Code, VS Code, Cursor, and any MCP-compatible client.

DEMO VIDEO:

Watch the video

Cursor rules

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

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 184+ n8n versions (1.86.0 – 2.6.2) with dynamic node filtering and "closest lower version" matching for backward compatibility

Prerequisites

  • Node.js (v18 or higher)
  • npm (for npx command)
  • An MCP-compatible client (Claude Code, VS Code, Cursor, etc.)

Installation & Setup

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

Claude Code (Recommended)

Add the MCP server using the Claude Code CLI:

bash
claude mcp add n8n-workflow-builder -- npx -y n8n-workflow-builder-mcp

Then set the environment variables:

bash
claude mcp add n8n-workflow-builder \
  -e N8N_API_URL=http://localhost:5678 \
  -e N8N_API_KEY=your-n8n-api-key-here \
  -- npx -y n8n-workflow-builder-mcp

N8N_VERSION is optional — the server auto-detects it from the API.

VS Code / Cursor

Add to your MCP config file (.vscode/mcp.json for VS Code, .cursor/mcp.json for Cursor):

json
{
  "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"
      }
    }
  }
}

Restart your IDE for changes to take effect.

Development Installation

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

bash
git clone https://github.com/ifmelate/n8n-workflow-builder-mcp.git
cd n8n-workflow-builder-mcp
npm install
npm run build

Then point your MCP client to the built entry point:

bash
# Claude Code
claude mcp add n8n-workflow-builder -- node /absolute/path/to/n8n-workflow-builder-mcp/dist/index.js

# VS Code / Cursor — use the same JSON config above with "command": "node" and "args": ["/absolute/path/to/dist/index.js"]

For development with auto-rebuild:

bash
npm run dev

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 template_namenode_type (optional), template_name (optional), limit (optional), cursor (optional)
get_n8n_version_infoGet current N8N version and capabilitiesrandom_string

Validation behavior

validate_workflow promotes warnings to errors and additionally fails when any enabled node is not connected (directly or via AI ports) to the main chain starting at the inferred startNode. Use connect_from/connect_to or add_ai_connections to fix connectivity.

Troubleshooting

General

  1. Check your MCP config — make sure JSON is valid and the server name matches.
  2. Update Node.js to the latest LTS version.
  3. Clear npm cache if npx fails: npm cache clean --force
  4. Try global install as a fallback: npm install -g n8n-workflow-builder-mcp

Claude Code

  • Run claude mcp list to verify the server is registered.
  • Check logs with claude mcp logs n8n-workflow-builder.

VS Code / Cursor

  • Check the Output panel — select "MCP" from the dropdown to see server logs.
  • Make sure the server is enabled in Settings > Features > MCP Servers.
  • Restart the IDE after config changes.

Project Structure

  • /src: Main source code
  • /src/tools: MCP tools implementation
  • /src/models: Data models
  • /src/utils: Utility functions
  • /src/middleware: Authentication and middleware
  • /config: Configuration files
  • /tests: Test files
  • /workflow_nodes: n8n node definitions
  • /docs: Additional documentation

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

MIT License

Installatie

TypingMind
Vereisten:

Node.js 18+

{
  "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"
      }
    }
  }
}

Beschikbare tools

  • create_workflow
  • list_workflows
  • get_workflow_details
  • add_node
  • edit_node
  • delete_node
  • add_connection
  • add_ai_connections
  • list_available_nodes
  • get_n8n_version_info

Gebruik n8n Workflow Builder MCP met meerdere AI-modellen

TypingMind koppelt MCP-tools aan de werkruimte. Zodra n8n Workflow Builder is verbonden, kun je deze dus met verschillende AI-modellen in TypingMind gebruiken, zonder de verbinding voor elk model apart in te stellen. Deze MCP-integratie draait lokaal via de TypingMind MCP-connector op je apparaat.

Installatiehandleiding voor de lokale connector

Gebruik dit als de MCP-server toegang nodig heeft tot lokale bestanden, apps of privébronnen op je computer.

1

Open de MCP-instellingen

Ga in TypingMind naar Instellingen, Geavanceerde instellingen en vervolgens Model Context Protocol. Kies daar Connector instellen.

  1. Open TypingMind in je browser.
  2. Klik op het pictogram Instellingen.
  3. Ga naar Geavanceerde instellingen.
  4. Open het gedeelte Model Context Protocol.
  5. Klik op Connector instellen en kies Dit apparaat.
Instelscherm voor de TypingMind MCP-connector met Dit apparaat geselecteerd
2

Voer de connectoropdracht uit

Kies Dit apparaat, kopieer de opdracht uit TypingMind en voer deze uit in Terminal. Laat het proces draaien zolang je MCP gebruikt.

  1. Kopieer de installatieopdracht die TypingMind toont.
  2. Open Terminal op macOS of Windows Terminal op Windows.
  3. Plak de opdracht en voer deze uit.
  4. Keur de pakketinstallatie goed als Terminal vraagt of je wilt doorgaan.
  5. Laat het proces in het Terminal-venster draaien zolang je MCP-tools gebruikt.
3

Voeg n8n Workflow Builder toe als server

Klik op Servers bewerken zodra de connectorstatus Gereed is en plak de MCP-serverconfiguratie.

  1. Wacht tot de connectorstatus Gereed aangeeft.
  2. Klik op Servers bewerken.
  3. Plak de MCP-serverconfiguratie van n8n Workflow Builder.
  4. Sla de serverlijst op.
  5. Vernieuw om te controleren of de connector nog steeds klaar is voor gebruik.
MCP-instellingen van TypingMind met een actieve server en de knop Servers bewerken
{
  "mcpServers": {
    "n8n-workflow-builder": {
      "command": "npx",
      "args": [
        "-y",
        "n8n-workflow-builder-mcp"
      ]
    }
  }
}
4

Gebruik de verbinding met verschillende modellen

Sla de serverlijst op, open Plug-ins en schakel de MCP-tools van n8n Workflow Builder in. Selecteer vervolgens een ondersteund AI-model in TypingMind en gebruik de tools in de chat of wijs ze toe aan een AI-agent.

  1. Open de pagina Plug-ins in TypingMind.
  2. Schakel de MCP-tools van n8n Workflow Builder in.
  3. Start een chat en kies het AI-model dat je wilt gebruiken.
  4. Gebruik de MCP-tools in een chat of wijs ze toe aan een AI-agent.
  5. Schakel wanneer nodig over naar een ander AI-model zonder opnieuw verbinding te maken met MCP.
TypingMind-chat met ingeschakelde MCP-tools en een geselecteerd AI-model
Kun je n8n Workflow Builder gebruiken om me hiermee te helpen?
n8n Workflow Builder
Zeker. Ik heb het gelezen.
Dit vond ik met n8n Workflow Builder.

Veelgestelde vragen

Waarvoor wordt de MCP-server n8n Workflow Builder gebruikt?

n8n Workflow Builder is een MCP-server waarmee compatibele AI-clients verbinding kunnen maken met externe tools en context. In TypingMind hoef je deze MCP-server maar één keer toe te voegen om de tools beschikbaar te maken in je AI-werkruimte.

Kan ik n8n Workflow Builder MCP met meerdere AI-modellen in TypingMind gebruiken?

Ja. TypingMind verbindt MCP-tools op werkruimteniveau. Daardoor kun je n8n Workflow Builder gebruiken met verschillende AI-modellen, zoals Claude, ChatGPT, Gemini of andere modellen die je in TypingMind hebt ingesteld, zonder de MCP-server voor elk model afzonderlijk in te stellen.

Waarom n8n Workflow Builder MCP gebruiken met TypingMind?

TypingMind is een van de beste interfaces voor chats met LLM's, omdat het meerdere AI-modellen, prompts, plug-ins, AI-agenten, API-sleutels en MCP-tools samenbrengt in één werkruimte. Als n8n Workflow Builder verbonden is, kun je de MCP-tools ervan gebruiken met je favoriete modellen en je chatworkflow overzichtelijk houden in TypingMind.

Hoe verbind ik n8n Workflow Builder MCP met TypingMind?

n8n Workflow Builder werkt via de lokale MCP-connector van TypingMind. Dit is de beste optie als de MCP-server toegang nodig heeft tot lokale bestanden, desktopapps, opdrachtregeltools of privébronnen op je computer.

Welke tools biedt n8n Workflow Builder MCP in TypingMind?

n8n Workflow Builder biedt 10 MCP-tools die je kunt inschakelen via de pagina Plug-ins in TypingMind. Je kunt ze gebruiken in chats of toewijzen aan AI-agenten.

Moet ik mijn API-sleutels delen met TypingMind om n8n Workflow Builder MCP te gebruiken?

Nee. TypingMind werkt in de eerste plaats lokaal en laat je de controle houden over je modelaanbieders, API-sleutels, prompts en MCP-configuratie. Als n8n Workflow Builder authenticatie vereist, voeg je bij het maken van de verbinding de vereiste headers, OAuth-instellingen of lokale configuratie voor die MCP-server toe.

Gerelateerde MCP-servers

Toon alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇