Skip to main content
Glama
ifmelate

n8n-workflow-builder-mcp

by ifmelate

n8n Workflow Builder MCP

Ein Model Context Protocol (MCP) Server zum Erstellen und Bearbeiten von n8n-Workflows. Erstellen Sie n8n-Workflows einfach per KI-Prompt – funktioniert mit Claude Code, VS Code, Cursor und jedem MCP-kompatiblen Client.

DEMO-VIDEO:

Video ansehen

Cursor-Regeln

  • Die Datei mit den Regeln befindet sich unter rules/n8n-mcp-server-rules.mdc

Related MCP server: MCP- N8N

Hauptfunktionen

  • Workflow-Verwaltung: Erstellen, Aktualisieren und Ausführen von n8n-Workflows per Programmcode (Ausführung ist noch nicht implementiert)

  • Node-Discovery: Erkunden Sie verfügbare n8n-Nodes und deren Funktionen

  • Verbindungsverwaltung: Erstellen Sie Verbindungen zwischen Workflow-Nodes

  • KI-Integration: Spezielle Tools zum Verbinden von KI-Komponenten in Workflows

  • KI-freundliche Schnittstelle: Speziell für die Interaktion mit KI-Agenten entwickelt

  • n8n-Versionsverwaltung: Automatische Versionserkennung und Kompatibilitätsbehandlung – unterstützt über 184 n8n-Versionen (1.86.0 – 2.6.2) mit dynamischer Node-Filterung und "Closest Lower Version"-Matching für Abwärtskompatibilität

Voraussetzungen

  • Node.js (v18 oder höher)

  • npm (für den npx-Befehl)

  • Ein MCP-kompatibler Client (Claude Code, VS Code, Cursor, etc.)

Installation & Einrichtung

Abrufen Ihres n8n-API-Schlüssels

  1. Öffnen Sie Ihre n8n-Instanz im Browser

  2. Gehen Sie zu Settings > API Keys

  3. Klicken Sie auf Create API Key

  4. Kopieren Sie den generierten Schlüssel und verwenden Sie ihn in Ihrer Konfiguration

Claude Code (Empfohlen)

Fügen Sie den MCP-Server über die Claude Code CLI hinzu:

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

Setzen Sie dann die Umgebungsvariablen:

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 ist optional – der Server erkennt sie automatisch über die API.

VS Code / Cursor

Fügen Sie dies zu Ihrer MCP-Konfigurationsdatei hinzu (.vscode/mcp.json für VS Code, .cursor/mcp.json für Cursor):

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

Starten Sie Ihre IDE neu, damit die Änderungen wirksam werden.

Entwicklungsinstallation

Für die Entwicklung oder lokale Tests klonen und bauen Sie aus dem Quellcode:

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

Verweisen Sie dann Ihren MCP-Client auf den gebauten Einstiegspunkt:

# 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"]

Für die Entwicklung mit automatischem Rebuild:

npm run dev

Verfügbare MCP-Tools

Der Server stellt die folgenden Tools für die Arbeit mit n8n-Workflows bereit:

Kern-Workflow-Verwaltung

Tool-Name

Beschreibung

Wichtige Parameter

create_workflow

Erstellt einen neuen n8n-Workflow

workflow_name, workspace_dir

list_workflows

Listet Workflows im Arbeitsbereich auf

limit (optional), cursor (optional)

get_workflow_details

Ruft detaillierte Informationen zu einem bestimmten Workflow ab

workflow_name, workflow_path (optional)

validate_workflow

Validiert eine Workflow-Datei anhand von Node-Schemas und Konnektivität

workflow_name, workflow_path (optional)

Node-Verwaltung

Tool-Name

Beschreibung

Wichtige Parameter

add_node

Fügt einem Workflow einen neuen Node hinzu

workflow_name, node_type, position (optional), parameters (optional), node_name (optional), typeVersion (optional), webhookId (optional), workflow_path (optional), connect_from (optional), connect_to (optional)

edit_node

Bearbeitet einen vorhandenen Node in einem Workflow

workflow_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_node

Löscht einen Node aus einem Workflow

workflow_name, node_id, workflow_path (optional)

list_available_nodes

Listet verfügbare Node-Typen mit optionaler Filterung auf. Unterstützt Tag-artige Synonyme und Multi-Token-OR/AND-Logik

search_term (optional), n8n_version (optional), limit (optional), cursor (optional), tags (optional, Standard: true), token_logic (optional: 'or' Standard, oder 'and')

Verbindungsverwaltung

Tool-Name

Beschreibung

Wichtige Parameter

add_connection

Erstellt eine Verbindung zwischen zwei Nodes

workflow_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_connections

Verbindet KI-Modell, Tools und Speicher mit einem Agenten

workflow_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_chain

Baut einen minimalen Hauptpfad durch KI-Workflow-Nodes (Trigger → Modell → Speicher → Embeddings → Doc Loader → Vektorspeicher → Vektor-Tool → Agent)

workflow_name, workflow_path (optional), dry_run (optional), idempotency_key (optional)

Workflow-Planung & Komposition

Tool-Name

Beschreibung

Wichtige Parameter

plan_workflow

Erstellt einen nicht-destruktiven Plan (Nodes und Verbindungen) zur Aktualisierung eines Workflows. Schreibt keine Dateien

workflow_name, target (nodes, connections), workspace_dir (optional)

review_workflow_plan

Wendet einen Plan im Arbeitsspeicher an und gibt Validierungsfehler, Warnungen und Lösungsvorschläge zurück. Schreibt keine Dateien

workflow_name, plan, workflow_path (optional)

apply_workflow_plan

Wendet einen zuvor überprüften Plan auf den Workflow auf der Festplatte an (atomares Schreiben)

workflow_name, plan, workflow_path (optional)

compose_ai_workflow

Erstellt einen komplexen KI-Workflow (Agent + Modell + Speicher + Embeddings + Vektor + Tools + Trigger) in einem Aufruf, inklusive Verkabelung und grundlegender Validierung

workflow_name, plan, n8n_version (optional)

Parameter-Verwaltung

Tool-Name

Beschreibung

Wichtige Parameter

suggest_node_params

Schlägt minimale gültige Parameter für einen Node-Typ unter Verwendung von Standardwerten und Pflichtfeldern vor

node_type, typeVersion (optional), existing_parameters (optional)

list_missing_parameters

Listet erforderliche Parameter auf, die für einen Node unter Berücksichtigung von Sichtbarkeitsregeln fehlen

node_type, typeVersion (optional), parameters

fix_node_params

Gibt Parameter mit angewendeten Standardwerten für fehlende Pflichtfelder zurück

node_type, typeVersion (optional), parameters (optional)

Vorlagen & Discovery

Tool-Name

Beschreibung

Wichtige Parameter

list_template_examples

Listet Beispiele für die Node-Verwendung aus kostenlosen Vorlagen auf. Filtern nach node_type oder template_name

node_type (optional), template_name (optional), limit (optional), cursor (optional)

get_n8n_version_info

Ruft die aktuelle n8n-Version und Funktionen ab

random_string

Validierungsverhalten

validate_workflow stuft Warnungen zu Fehlern hoch und schlägt zusätzlich fehl, wenn ein aktivierter Node nicht (direkt oder über KI-Ports) mit der Hauptkette verbunden ist, die am abgeleiteten startNode beginnt. Verwenden Sie connect_from/connect_to oder add_ai_connections, um die Konnektivität zu korrigieren.

Fehlerbehebung

Allgemein

  1. Überprüfen Sie Ihre MCP-Konfiguration — stellen Sie sicher, dass das JSON gültig ist und der Servername übereinstimmt.

  2. Aktualisieren Sie Node.js auf die neueste LTS-Version.

  3. Leeren Sie den npm-Cache, falls npx fehlschlägt: npm cache clean --force

  4. Versuchen Sie eine globale Installation als Fallback: npm install -g n8n-workflow-builder-mcp

Claude Code

  • Führen Sie claude mcp list aus, um zu überprüfen, ob der Server registriert ist.

  • Überprüfen Sie die Protokolle mit claude mcp logs n8n-workflow-builder.

VS Code / Cursor

  • Überprüfen Sie das Ausgabefenster (Output) — wählen Sie "MCP" aus dem Dropdown-Menü, um Server-Protokolle zu sehen.

  • Stellen Sie sicher, dass der Server unter Settings > Features > MCP Servers aktiviert ist.

  • Starten Sie die IDE nach Konfigurationsänderungen neu.

Projektstruktur

  • /src: Hauptquellcode

  • /src/tools: Implementierung der MCP-Tools

  • /src/models: Datenmodelle

  • /src/utils: Hilfsfunktionen

  • /src/middleware: Authentifizierung und Middleware

  • /config: Konfigurationsdateien

  • /tests: Testdateien

  • /workflow_nodes: n8n-Node-Definitionen

  • /docs: Zusätzliche Dokumentation

Mitwirken

Beiträge sind willkommen! Bitte zögern Sie nicht, einen Pull Request einzureichen.

  1. Forken Sie das Repository

  2. Erstellen Sie Ihren Feature-Branch (git checkout -b feature/amazing-feature)

  3. Committen Sie Ihre Änderungen (git commit -m 'Add some amazing feature')

  4. Pushen Sie den Branch (git push origin feature/amazing-feature)

  5. Öffnen Sie einen Pull Request

Lizenz

MIT-Lizenz

Install Server
A
license - permissive license
C
quality
C
maintenance

Maintenance

Maintainers
Response time
8wRelease cycle
5Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    🪄 MCP server for programmatic creation and management of n8n workflows. Enables AI assistants to build, modify, and manage workflows without direct user intervention through a comprehensive set of tools and resources for interacting with n8n's REST API.
    10
    81
    84
    MIT
  • -
    license
    -
    quality
    -
    maintenance
    Provides seamless integration between MCP-compatible AI assistants and n8n workflow automation, enabling intelligent management and automation of n8n workflows through natural language.
    5
  • A
    license
    -
    quality
    D
    maintenance
    MCP server for n8n workflow automation, enabling management of workflows, executions, credentials, tags, users, and webhooks via an MCP-compatible client.
    MIT

View all related MCP servers

Related MCP Connectors

  • Create, browse, remix, collaborate on, and run durable AI workflow nodes from MCP hosts.

  • Your saved nanoodle workflow graphs as MCP tools — BYOK or pay per call in Nano (x402)

  • Self-hosted MCP gateway: turn any API, database or MCP server into AI connectors — no code.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ifmelate/n8n-workflow-builder-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server