Skip to main content
Glama
mcp-n8n-builder

mcp-n8n-builder

by spences10

mcp-n8n-builder

Ein Model Context Protocol (MCP)-Server zur programmgesteuerten Erstellung und Verwaltung von n8n-Workflows. Dieser Server bietet Tools und Ressourcen für die Interaktion mit der REST-API von n8n. Dadurch können KI-Assistenten Workflows ohne direkte Benutzereingriffe erstellen, ändern und verwalten.

Merkmale

  • 🔄 Workflow-Management : Erstellen, Lesen, Aktualisieren, Löschen, Aktivieren und Deaktivieren von Workflows

  • 📊 Ausführungsverwaltung : Auflisten und Abrufen von Details zur Workflow-Ausführung

  • ✅ Schemavalidierung : Umfassende Validierung mit Zod für Eingabe- und Ausgabedaten

  • 🔍 Knotenvalidierung : Validiert Knotentypen vor der Workflow-Erstellung anhand der verfügbaren Knoten von n8n, um Fehler zu vermeiden

  • 🤔 Intelligente Vorschläge : Bietet Vorschläge für ähnliche Knotentypen, wenn ungültige Knoten erkannt werden

  • 🛠️ Fehlerbehandlung : Detaillierte Fehlermeldungen zur Fehlerbehebung

  • 📝 Dokumentation : Umfangreiche Dokumentation für alle Tools und Ressourcen

  • 🔍 Suchen und Filtern : Filtern Sie Workflows nach Name, Tags oder aktivem Status

Related MCP server: n8n-manager-mcp

Konfiguration

Dieser Server muss über Ihren MCP-Client konfiguriert werden. Hier sind Beispiele für verschiedene Umgebungen:

Cline-Konfiguration

Fügen Sie dies zu Ihren Cline MCP-Einstellungen hinzu:

{
	"mcpServers": {
		"n8n-workflow-builder": {
			"command": "npx",
			"args": ["-y", "mcp-n8n-builder"],
			"env": {
				"N8N_HOST": "http://localhost:5678/api/v1",
				"N8N_API_KEY": "your-n8n-api-key",
				"OUTPUT_VERBOSITY": "concise" // Options: 'concise' or 'full'
			}
		}
	}
}

Claude Desktop mit WSL-Konfiguration

Fügen Sie für WSL-Umgebungen Folgendes zu Ihrer Claude Desktop-Konfiguration hinzu:

{
	"mcpServers": {
		"n8n-workflow-builder": {
			"command": "wsl.exe",
			"args": [
				"bash",
				"-c",
				"N8N_HOST=http://localhost:5678/api/v1 N8N_API_KEY=your-n8n-api-key OUTPUT_VERBOSITY=concise npx -y mcp-n8n-builder"
			]
		}
	}
}

Umgebungsvariablen

Der Server kann mithilfe von Umgebungsvariablen konfiguriert werden:

Variable

Beschreibung

Standard

N8N_HOST

URL der n8n-API

http://localhost:5678/api/v1

N8N_API_KEY

API-Schlüssel für die n8n-Authentifizierung

""

SERVER_NAME

Name des MCP-Servers

"n8n-workflow-builder"

SERVER_VERSION

Version des MCP-Servers

Paketversion

LOG_LEVEL

Protokollierungsebene

"info"

CACHE_ENABLED

Caching aktivieren

false

CACHE_TTL

Cache-TTL in Sekunden

300

OUTPUT_VERBOSITY

Ausführlichkeitsgrad der Ausgabe ( concise oder full )

"concise"

MCP-Werkzeuge

Knotenverwaltung

  • list_available_nodes : Listet alle verfügbaren Knoten in der n8n-Instanz auf. WICHTIG : Verwenden Sie dieses Tool VOR dem Erstellen oder Aktualisieren von Workflows, um sicherzustellen, dass Sie nur gültige Knotentypen verwenden. Dies hilft, Fehler zu vermeiden, die durch die Verwendung von Knotentypen entstehen, die in der aktuellen n8n-Instanz nicht vorhanden sind.

Workflow-Management

  • list_workflows : Listet alle Workflows von n8n mit ihren grundlegenden Informationen auf, einschließlich ID, Name, Status, Erstellungsdatum und Tags. Die Ergebnisse können nach aktivem Status, Tags oder Namen gefiltert werden.

  • create_workflow : Erstellt einen neuen Workflow in n8n mit den angegebenen Knoten und Verbindungen. Gibt den erstellten Workflow mit der zugewiesenen ID zurück. Überprüft, ob alle Knotentypen in der n8n-Instanz vorhanden sind.

  • get_workflow : Ruft vollständige Details eines bestimmten Workflows anhand seiner ID ab, einschließlich aller Knoten, Verbindungen, Einstellungen und Metadaten.

  • update_workflow : Aktualisiert einen vorhandenen Workflow mit der neuen Konfiguration. Die gesamte Workflow-Struktur muss bereitgestellt werden, nicht nur die zu ändernden Teile. Überprüft, ob alle Knotentypen in der n8n-Instanz vorhanden sind.

  • delete_workflow : Löscht einen Workflow anhand seiner ID dauerhaft. Diese Aktion kann nicht rückgängig gemacht werden.

  • activate_workflow : Aktiviert einen Workflow anhand seiner ID und ermöglicht so die automatische Ausführung basierend auf seinem Auslöser.

  • deactivate_workflow : Deaktiviert einen Workflow anhand seiner ID und verhindert so, dass er automatisch ausgeführt wird.

Ausführungsmanagement

  • list_executions : Listet den Workflow-Ausführungsverlauf mit Details zu Erfolg/Fehler, Dauer und Zeitstempeln auf. Die Ergebnisse können nach Workflow-ID und Status gefiltert und auf eine bestimmte Anzahl begrenzt werden.

  • get_execution : Ruft detaillierte Informationen zu einer bestimmten Workflow-Ausführung ab, einschließlich Ausführungszeit, Status und optional der vollständigen Daten, die in jedem Schritt verarbeitet werden.

MCP-Ressourcen

  • n8n://workflows : Liste aller Workflows in n8n

  • n8n://workflows/{id} : Details eines bestimmten n8n-Workflows

  • n8n://executions/{id} : Details einer bestimmten n8n-Workflow-Ausführung

Entwicklung

Aufstellen

  1. Klonen Sie das Repository

  2. Installieren Sie Abhängigkeiten:

npm install
  1. Erstellen Sie das Projekt:

npm run build
  1. Im Entwicklungsmodus ausführen:

npm run dev

Veröffentlichen

Das Projekt verwendet Änderungssätze zur Versionsverwaltung. So veröffentlichen Sie:

  1. Erstellen Sie einen Änderungssatz:

npm changeset
  1. Versionieren Sie das Paket:

npm changeset version
  1. Auf npm veröffentlichen:

npm release

Beitragen

Beiträge sind willkommen! Senden Sie gerne einen Pull Request.

Lizenz

MIT-Lizenz – Einzelheiten finden Sie in der Datei LICENSE .

Danksagung

Available Tools

10 tools
activate_workflowA

Activates a workflow by its ID, enabling it to run automatically based on its trigger (schedule, webhook, etc.). Note that only workflows with automatic trigger nodes can be activated - workflows with only manual triggers cannot be activated.

Inputs: id (required).

create_workflowA

Creates a new workflow in n8n with specified nodes and connections. Note that only workflows with automatic trigger nodes (schedule, webhook, etc.) can be activated - workflows with only manual triggers cannot be activated. Returns the created workflow with its assigned ID.

Inputs: workflow (required), activate.

deactivate_workflowA

Deactivates a workflow by its ID, preventing it from running automatically. The workflow will still exist and can be manually executed or reactivated later. Use this instead of deleting workflows that you might need again.

Inputs: id (required).

delete_workflowA

Permanently deletes a workflow by its ID. This action cannot be undone, so use with caution. Consider deactivating workflows instead if you might need them again later.

Inputs: id (required).

get_executionA

Retrieves detailed information about a specific workflow execution, including execution time, status, and optionally the full data processed at each step. Particularly useful for debugging failed workflows or understanding data transformations between nodes.

Inputs: id (required), includeData, verbosity.

get_workflowA

Retrieves complete details of a specific workflow by its ID, including all nodes, connections, settings, and metadata. Use this tool when you need to examine a workflow's structure before updating it or to understand how it works.

Inputs: id (required), verbosity.

list_available_nodesA

Lists all available nodes in the n8n instance. Use this tool BEFORE creating or updating workflows to ensure you only use valid node types. This helps prevent errors caused by using node types that do not exist in the current n8n instance.

Inputs: category, verbosity.

list_executionsA

Lists workflow execution history with details on success/failure status, duration, and timestamps. Use this tool to monitor workflow performance, troubleshoot issues, or verify that workflows are running as expected. Results can be filtered by workflow ID, status, and limited to a specific number.

Inputs: limit, status, verbosity, workflowId.

list_workflowsA

Lists all workflows from n8n with their basic information including ID, name, status, creation date, and tags. Use this tool to get an overview of available workflows before performing operations on specific workflows. Results can be filtered by active status, tags, or name.

Inputs: active, name, tags, verbosity.

update_workflowA

Updates an existing workflow with new configuration. Typically used after retrieving a workflow with get_workflow, modifying its structure, and then saving the changes. The entire workflow structure must be provided, not just the parts being changed.

Inputs: id (required), workflow (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 10 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose with no overlap. For example, activate_workflow and deactivate_workflow are opposites, while create_workflow, update_workflow, and delete_workflow cover different lifecycle stages. The list_* tools target different resources (workflows, executions, nodes), and get_* tools retrieve specific items versus lists.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern with snake_case throughout. Verbs like activate, create, deactivate, delete, get, list, and update are used predictably, and nouns like workflow, execution, and nodes are consistently paired with appropriate actions.

    Tool Count5/5

    With 10 tools, this server is well-scoped for managing n8n workflows. It covers core operations (CRUD for workflows, activation/deactivation), monitoring (executions), and utilities (listing nodes), with each tool serving a clear and necessary function without bloat.

    Completeness5/5

    The toolset provides complete coverage for the n8n workflow management domain. It includes full CRUD lifecycle for workflows (create, get, update, delete, list), activation control, execution monitoring (list and get), and utility tools for node discovery, leaving no obvious gaps for agent operations.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers