/ Каталог / Песочница / n8n-workflow-builder
● Сообщество makafeli ⚡ Сразу

n8n-workflow-builder

автор makafeli · makafeli/n8n-workflow-builder

Build and run n8n workflows from natural language — 15 tools for create/activate/execute plus audit reports, connected to your self-hosted or cloud n8n.

n8n-workflow-builder (makafeli) is an MCP that talks to any n8n instance via its REST API. 15 tools cover the full workflow lifecycle: list, create with nodes, activate, execute, update, delete, plus execution history and security audits.

Зачем использовать

Ключевые функции

Живое демо

Как выглядит на практике

n8n-workflow-builder.replay ▶ готово
0/0

Установка

Выберите клиент

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "n8n-workflow-builder": {
      "command": "npx",
      "args": [
        "-y",
        "n8n-workflow-builder"
      ],
      "_inferred": true
    }
  }
}

Откройте Claude Desktop → Settings → Developer → Edit Config. Перезапустите после сохранения.

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "n8n-workflow-builder": {
      "command": "npx",
      "args": [
        "-y",
        "n8n-workflow-builder"
      ],
      "_inferred": true
    }
  }
}

Cursor использует ту же схему mcpServers, что и Claude Desktop. Конфиг проекта приоритетнее глобального.

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "n8n-workflow-builder": {
      "command": "npx",
      "args": [
        "-y",
        "n8n-workflow-builder"
      ],
      "_inferred": true
    }
  }
}

Щёлкните значок MCP Servers на боковой панели Cline, затем "Edit Configuration".

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "n8n-workflow-builder": {
      "command": "npx",
      "args": [
        "-y",
        "n8n-workflow-builder"
      ],
      "_inferred": true
    }
  }
}

Тот же формат, что и Claude Desktop. Перезапустите Windsurf для применения.

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "n8n-workflow-builder",
      "command": "npx",
      "args": [
        "-y",
        "n8n-workflow-builder"
      ]
    }
  ]
}

Continue использует массив объектов серверов, а не map.

~/.config/zed/settings.json
{
  "context_servers": {
    "n8n-workflow-builder": {
      "command": {
        "path": "npx",
        "args": [
          "-y",
          "n8n-workflow-builder"
        ]
      }
    }
  }
}

Добавьте в context_servers. Zed перезагружается автоматически.

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

Однострочная команда. Проверить: claude mcp list. Удалить: claude mcp remove.

Сценарии использования

Реальные сценарии: n8n-workflow-builder

Build an n8n workflow from a natural-language description

👤 No-code PMs, solo founders, internal ops ⏱ ~20 min intermediate

Когда использовать: You want a webhook → Slack → Google Sheet flow without dragging nodes.

Предварительные требования
  • Running n8n instance with API enabled — docker run n8nio/n8n; enable N8N_API in env
  • API key — n8n Settings → API Keys
Поток
  1. Describe the flow
    Create an n8n workflow: when a webhook hits /signup, post the payload to Slack #signups and append a row to sheet 'Signups'.✓ Скопировано
    → Workflow created with 3 nodes wired
  2. Activate
    Activate the workflow and return the production webhook URL.✓ Скопировано
    → Active + URL
  3. Smoke test
    Execute it once with a sample payload, then pull the execution log.✓ Скопировано
    → Successful run or identifiable failure

Итог: A running automation in a few prompts instead of a morning in the editor.

Подводные камни
  • Credentials aren't set on the newly-created nodes — MCP can't create secrets for you — add Slack/Google creds in n8n UI once, refer by name
Сочетать с: google-sheets

Debug a failing n8n workflow from execution history

👤 Ops engineers maintaining automation ⏱ ~25 min intermediate

Когда использовать: A nightly workflow is failing and you want to triage from chat.

Поток
  1. Pull recent failures
    list_executions for workflow 'nightly-export' with status=error in the last 7 days.✓ Скопировано
    → List with dates and error snippets
  2. Inspect the worst one
    get_execution on the most recent failure. Show me the failing node's input and error.✓ Скопировано
    → Root cause clue
  3. Patch and redeploy
    Update the workflow to handle null values in the transform node. Then deactivate+activate to reload.✓ Скопировано
    → Subsequent runs succeed

Итог: Outage resolved without opening the editor.

Run a security audit on your n8n workflows

👤 Security + ops teams ⏱ ~15 min intermediate

Когда использовать: Before going to prod, or quarterly, you want a compliance-style report.

Поток
  1. Generate audit
    Use generate_audit on my n8n instance. Summarize findings into: credentials, webhook exposure, and node-permission issues.✓ Скопировано
    → Structured audit report
  2. File the risky items
    For each high-severity finding, create an issue in Linear/GitHub with remediation.✓ Скопировано
    → Issues created

Итог: Quarterly security hygiene automation.

Комбинации

Сочетайте с другими MCP — эффект x10

n8n-workflow-builder + google-sheets

Webhook-to-sheet automations built and monitored from chat

Create an n8n workflow that appends payloads to my 'Leads' sheet; verify it works end to end.✓ Скопировано
n8n-workflow-builder + sentry

Sentry alert → n8n workflow → incident response chain

When Sentry sees a spike on project X, trigger my n8n workflow 'incident-page' via execute_workflow.✓ Скопировано

Инструменты

Что предоставляет этот MCP

ИнструментВходные данныеКогда вызыватьСтоимость
list_workflows Overview 1 API call
get_workflow id Inspect nodes 1 API call
create_workflow name, nodes[], connections New automation 1 API call
execute_workflow id, payload? Manual trigger / test n8n CPU + downstream
activate_workflow id Ship to prod 1 API call
deactivate_workflow id Maintenance / rollback 1 API call
update_workflow id, changes Patch nodes 1 API call
delete_workflow id Retire 1 API call
list_executions workflow_id?, status? Triage 1 API call
get_execution execution_id Root cause 1 API call
generate_audit Security review 1 API call

Стоимость и лимиты

Во что обходится

Квота API
n8n itself has no API rate limit beyond your own server's capacity
Токенов на вызов
Workflow JSON can be large — 2-10k tokens per get_workflow on complex flows
Деньги
Free if self-hosted; n8n Cloud billed per exec
Совет
Use list_workflows first, avoid get_workflow on huge flows unless you need node details

Безопасность

Права, секреты, радиус поражения

Хранение учётных данных: N8N_API_KEY in env — grants full API access, scope accordingly
Исходящий трафик: Only to your N8N_HOST

Устранение неполадок

Частые ошибки и исправления

401 Unauthorized

Wrong API key or key lacks permissions — regenerate in n8n UI

Проверить: curl -H 'X-N8N-API-KEY: <key>' $N8N_HOST/api/v1/workflows
Workflow created but fails on execute

Nodes missing credentials — attach them in the UI after creation; MCP can't set secrets

execute_workflow hangs

Long-running flow — use activate + webhook trigger instead of sync execute

Альтернативы

n8n-workflow-builder в сравнении

АльтернативаКогда использоватьКомпромисс
Direct n8n REST APIYou're scripting, not chattingYou write the plumbing
Zapier MCPYou're on Zapier not n8nDifferent ecosystem; paid

Ещё

Ресурсы

📖 Читать официальный README на GitHub

🐙 Открытые задачи

🔍 Все 400+ MCP-серверов и Skills