SM

spences10/mcp-n8n-builder

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

86 stars 24 forks Качество 86 Тренд 28MIT

spences10/mcp-n8n-builder - кандидат на сервер MCP, импортированный из https://github.com/spences10/mcp-n8n-builder.

Обзор

spences10/mcp-n8n-builder - кандидат на сервер MCP, импортированный из https://github.com/spences10/mcp-n8n-builder.

Обзор (машинный перевод)

Сервер Model Context Protocol (MCP) для создания программ Управление рабочими процессами n8n. Этот сервер предоставляет инструменты и ресурсы. для взаимодействия с REST API n8n, что позволяет создавать помощников ИИ; изменять и управлять рабочими процессами без прямого вмешательства пользователя;

Особенности

** Управление рабочими процессами**: Создавать, читать, обновлять, удалять, активировать деактивировать рабочие процессы

  • Управление исполнением: Список и извлечение выполнения рабочего процесса детали Проверка схемы: Полная проверка Zod для обоих Входные и выходные данные ** Проверка узлов**: Валидаты типов узлов против доступных n8n Узлы перед созданием рабочего процесса для предотвращения ошибок Умные предложения**: Предложения для аналогичного узла Типы, когда обнаруживаются недействительные узлы
  • ️ ** Обработка ошибок**: Подробные сообщения об ошибках для устранения неполадок Документация: Обширная документация по всем инструментам и ресурсы Поиск и фильтр: рабочие процессы фильтра по имени, тегам или активным статус

️ Предупреждение о потреблении токенов

Этот инструмент является «токеновым монстром» из-за природы рабочих процессов n8n:

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

mcp-n8n-builder

A Model Context Protocol (MCP) server for programmatic creation and management of n8n workflows. This server provides tools and resources for interacting with n8n’s REST API, allowing AI assistants to build, modify, and manage workflows without direct user intervention.

Features

  • 🔄 Workflow Management: Create, read, update, delete, activate, and deactivate workflows
  • 📊 Execution Management: List and retrieve workflow execution details
  • ✅ Schema Validation: Comprehensive validation with Zod for both input and output data
  • 🔍 Node Validation: Validates node types against n8n’s available nodes before workflow creation to prevent errors
  • 🤔 Smart Suggestions: Provides suggestions for similar node types when invalid nodes are detected
  • 🛠️ Error Handling: Detailed error messages for troubleshooting
  • 📝 Documentation: Extensive documentation for all tools and resources
  • 🔍 Search & Filter: Filter workflows by name, tags, or active status

⚠️ Token Consumption Warning

This tool is a “token monster” due to the nature of n8n workflows:

  • N8N workflows are complex JSON structures with nested nodes, connections, parameters, and settings
  • A single workflow can easily consume thousands of tokens when viewed or edited
  • The JSON structure cannot be meaningfully reduced without losing essential workflow information
  • LLM context windows are finite - complex workflows may exceed available context

Mitigation Strategies

The tool implements several optimizations to reduce token usage:

  • Verbosity Control: Use OUTPUT_VERBOSITY=concise (default) for summaries instead of full JSON
  • Object Simplification: Workflow listings show only essential fields (id, name, status, node count)
  • Selective Guide Inclusion: Error messages include only relevant sections of the composition guide
  • Per-tool Verbosity: Override verbosity on individual tool calls with the verbosity parameter
  • List workflows first to identify what you need (low token cost)
  • Work with simple workflows when possible
  • Use concise verbosity unless you specifically need full JSON
  • Break complex workflows into smaller pieces for easier management
  • Consider the token cost before retrieving or editing large workflows

Configuration

This server requires configuration through your MCP client. Here are examples for different environments:

Cline Configuration

Add this to your Cline MCP settings:

{
	"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",
Открыть полный README на GitHub

Установка

npx -y mcp-n8n-builder
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

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