mcp-n8n-builder
mcp-n8n-ビルダー
n8nワークフローをプログラム的に作成・管理するためのモデルコンテキストプロトコル(MCP)サーバー。このサーバーは、n8nのREST APIと連携するためのツールとリソースを提供し、AIアシスタントがユーザーの直接的な介入なしにワークフローを構築、変更、管理できるようにします。
特徴
🔄ワークフロー管理:ワークフローの作成、読み取り、更新、削除、有効化、無効化
📊実行管理:ワークフロー実行の詳細を一覧表示および取得する
✅スキーマ検証: 入力データと出力データの両方に対して Zod による包括的な検証
🔍ノード検証: ワークフロー作成前に、エラーを防ぐために n8n の利用可能なノードに対してノードタイプを検証します。
🤔スマートサジェスチョン: 無効なノードが検出された場合、類似のノードタイプの提案を提供します
🛠️エラー処理: トラブルシューティングのための詳細なエラーメッセージ
📝ドキュメント: すべてのツールとリソースに関する詳細なドキュメント
🔍検索とフィルター: 名前、タグ、アクティブステータスでワークフローをフィルターします
Related MCP server: n8n-manager-mcp
構成
このサーバーはMCPクライアント経由で設定する必要があります。以下に、様々な環境における設定例を示します。
傾斜構成
Cline MCP 設定に以下を追加します:
{
"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'
}
}
}
}WSL 構成の Claude デスクトップ
WSL 環境の場合は、Claude Desktop 構成に以下を追加します。
{
"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"
]
}
}
}環境変数
サーバーは環境変数を使用して設定できます。
変数 | 説明 | デフォルト |
| n8n APIのURL |
|
| n8n認証用のAPIキー |
|
| MCPサーバーの名前 |
|
| MCP サーバーのバージョン | パッケージバージョン |
| ログレベル |
|
| キャッシュを有効にする |
|
| キャッシュTTL(秒) |
|
| 出力の詳細レベル( |
|
MCPツール
ノード管理
list_available_nodes: n8nインスタンスで利用可能なすべてのノードを一覧表示します。重要:ワークフローを作成または更新する前にこのツールを使用して、有効なノードタイプのみを使用していることを確認してください。これにより、現在のn8nインスタンスに存在しないノードタイプを使用することで発生するエラーを回避できます。
ワークフロー管理
list_workflows: n8nのすべてのワークフローを、ID、名前、ステータス、作成日、タグなどの基本情報とともに一覧表示します。結果は、アクティブステータス、タグ、または名前でフィルタリングできます。create_workflow: 指定されたノードと接続を使用して、n8n に新しいワークフローを作成します。作成されたワークフローを割り当てられた ID とともに返します。n8n インスタンスにすべてのノードタイプが存在することを検証します。get_workflow: すべてのノード、接続、設定、メタデータなど、特定のワークフローの ID による完全な詳細を取得します。update_workflow: 既存のワークフローを新しい設定で更新します。変更する部分だけでなく、ワークフロー全体の構造を指定する必要があります。n8nインスタンスにすべてのノードタイプが存在することを検証します。delete_workflow: ID で指定したワークフローを完全に削除します。このアクションは元に戻せません。activate_workflow: ID によってワークフローをアクティブ化し、トリガーに基づいて自動的に実行できるようにします。deactivate_workflow: ワークフローを ID で非アクティブ化し、自動的に実行されないようにします。
実行管理
list_executions: ワークフロー実行履歴を、成功/失敗ステータス、所要時間、タイムスタンプなどの詳細情報とともに一覧表示します。結果はワークフローID、ステータス、および特定の件数でフィルタリングできます。get_execution: 実行時間、ステータス、オプションで各ステップで処理された完全なデータなど、特定のワークフロー実行に関する詳細情報を取得します。
MCPリソース
n8n://workflows: n8n内のすべてのワークフローのリストn8n://workflows/{id}: 特定のn8nワークフローの詳細n8n://executions/{id}: 特定のn8nワークフロー実行の詳細
発達
設定
リポジトリをクローンする
依存関係をインストールします:
npm installプロジェクトをビルドします。
npm run build開発モードで実行:
npm run dev出版
このプロジェクトではバージョン管理に変更セットを使用しています。公開するには:
変更セットを作成します。
npm changesetパッケージのバージョン:
npm changeset versionnpm に公開:
npm release貢献
貢献を歓迎します!お気軽にプルリクエストを送信してください。
ライセンス
MIT ライセンス - 詳細についてはLICENSEファイルを参照してください。
謝辞
モデルコンテキストプロトコルに基づいて構築
n8nによって提供
Available Tools
10 toolsactivate_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
Scored across 10 tools
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.
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.
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.
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
Related MCP Connectors
Open-source Zapier/n8n alternative as an MCP server: agents build, run and debug your workflows.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Build and run AI workflows, agents, data tables and 1000+ API integrations from any MCP client.
n8n MCP — query your own n8n instance (BYO).
Related MCP Servers
- AlicenseCqualityCmaintenanceMCP server that allow LLM in agent mode builds n8n workflows for you1040 npm52MIT
- AlicenseBqualityBmaintenanceMCP server for managing n8n workflows through AI assistants. Supports workflow CRUD operations, synchronization, inspection, and execution support for automation-focused workflows.19134 npm2MIT
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server that generates production-ready n8n workflows from natural language prompts. Transform simple descriptions into fully validated, deployable automation workflows using AI-powered code generation.1-
- FlicenseBqualityDmaintenanceA full-power MCP server for n8n that enables AI agents to create, read, update, delete, and test workflows and credentials, including webhook testing, validation, and backup/versioning.319-