n8n Workflow Builder MCP Serverのロゴ

n8n Workflow Builder MCP Server

コミュニティ
makafeli

AI assistant integration for n8n workflow automation through Model Context Protocol (MCP). Connect Claude Desktop, ChatGPT, and other AI assistants to n8n for natural language workflow management.

公開者makafeli
リポジトリn8n-workflow-builder
言語JavaScript
フォーク
128
スター
544
利用可能なツール
0
通信方式stdio, streamable-http
カテゴリ
ライセンスMIT
リンク
  • ツールをAIワークフローに接続

    n8n Workflow Builder MCP Serverは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには544件のスターと128件のフォークがあります。

n8n Workflow Builder MCP Server

The ultimate AI assistant integration for n8n workflow automation - Connect Claude Desktop, ChatGPT, and other AI assistants directly to your n8n instance for seamless workflow management, creation, and execution through the Model Context Protocol (MCP).

A powerful Model Context Protocol (MCP) server that enables AI assistants to manage n8n workflows seamlessly. Connect your AI tools directly to n8n for automated workflow creation, execution, and management.

📚 Table of Contents

📖 Additional Documentation

🎯 What is this?

The n8n Workflow Builder MCP Server bridges the gap between AI assistants (like Claude Desktop, Cline, or any MCP-compatible client) and your n8n automation platform. It provides a comprehensive set of tools that allow AI assistants to:

  • List and browse your existing n8n workflows
  • Create new workflows with complex node configurations
  • Execute workflows on demand
  • Manage workflow lifecycle (activate, deactivate, update, delete)
  • Monitor workflow status and retrieve detailed information

Perfect for teams using n8n who want to leverage AI assistants for workflow automation and management.

✨ Key Features

  • 🔧 Complete Workflow Management - Full CRUD operations for n8n workflows
  • 🤖 AI-First Design - Built specifically for AI assistant integration
  • 🚀 Zero Configuration - Works out of the box with NPX
  • 🔒 Secure - Uses n8n's official API with proper authentication
  • 📦 Modern Architecture - Built with TypeScript and latest MCP SDK
  • ⚡ High Performance - Optimized for fast response times

📋 Requirements

  • Node.js v18.0.0 or higher
  • n8n instance (self-hosted or cloud)
  • n8n API key with appropriate permissions

🚀 Installation & Usage

Method 1: Smithery.ai (Hosted - Recommended)

Use the hosted version on Smithery.ai - no installation required:

  1. Visit: smithery.ai
  2. Search: "n8n-workflow-builder"
  3. Connect: Configure with your n8n host and API key
  4. Use: Access from any MCP-compatible AI assistant

Benefits: No local setup, automatic updates, professional hosting, tool playground.

Method 2: NPX (Local)

Run locally with NPX:

bash
npx @makafeli/n8n-workflow-builder

Method 2: Manual Installation

For development or customization:

bash
# Clone the repository
git clone https://github.com/makafeli/n8n-workflow-builder.git
cd n8n-workflow-builder

# Install dependencies
npm install

# Build the project
npm run build

# Start the server
npm start

⚙️ Configuration

Environment Variables

Configure the following environment variables to connect to your n8n instance:

VariableDescriptionExample
N8N_HOSTYour n8n instance URLhttp://localhost:5678 or https://your-n8n.com/api/v1
N8N_API_KEYYour n8n API keyn8n_api_1234567890abcdef...

Getting Your n8n API Key

  1. Open your n8n instance
  2. Go to Settings → API Keys
  3. Click Create API Key
  4. Copy the generated key

Setting Environment Variables

bash
# For local testing
export N8N_HOST="http://localhost:5678"
export N8N_API_KEY="your-api-key-here"

# Then run the server
npx @makafeli/n8n-workflow-builder

🔧 MCP Client Setup

Claude Desktop

Add this configuration to your claude_desktop_config.json:

json
{
  "mcpServers": {
    "n8n-workflow-builder": {
      "command": "npx",
      "args": ["@makafeli/n8n-workflow-builder"],
      "env": {
        "N8N_HOST": "http://localhost:5678",
        "N8N_API_KEY": "your-api-key-here"
      }
    }
  }
}

Cline (VS Code Extension)

Add this to your Cline MCP settings:

json
{
  "mcpServers": {
    "n8n-workflow-builder": {
      "command": "npx",
      "args": ["@makafeli/n8n-workflow-builder"],
      "env": {
        "N8N_HOST": "http://localhost:5678",
        "N8N_API_KEY": "your-api-key-here"
      }
    }
  }
}

Other MCP Clients

The server works with any MCP-compatible client. Use the same configuration pattern with your client's specific setup method.

🛠️ Available Tools

The MCP server provides 15 comprehensive tools for complete n8n workflow and execution management:

Core Workflow Operations

ToolDescriptionParameters
list_workflowsList all workflows from your n8n instanceNone
get_workflowRetrieve detailed information about a specific workflowid: Workflow ID (string)
create_workflowCreate a new workflow with nodes and connectionsworkflow: Workflow object
execute_workflowManually execute a workflowid: Workflow ID (string)

Workflow Lifecycle Management

ToolDescriptionParameters
update_workflowUpdate an existing workflow's configurationid: Workflow ID, workflow: Updated workflow object
activate_workflowActivate a workflow to enable automatic executionid: Workflow ID (string)
deactivate_workflowDeactivate a workflow to stop automatic executionid: Workflow ID (string)
delete_workflowPermanently delete a workflowid: Workflow ID (string)

Advanced Operations

ToolDescriptionParameters
create_workflow_and_activateCreate a new workflow and immediately activate itworkflow: Workflow object

Execution Management ⭐ NEW

ToolDescriptionParameters
list_executionsList workflow executions with filtering and paginationincludeData, status, workflowId, projectId, limit, cursor
get_executionGet detailed information about a specific executionid: Execution ID, includeData: Include detailed data
delete_executionDelete a workflow execution recordid: Execution ID

Tag Management ⭐ NEW

ToolDescriptionParameters
list_tagsList all workflow tags with paginationlimit, cursor
create_tagCreate a new workflow tag for organizationname: Tag name

Security & Compliance ⭐ NEW

ToolDescriptionParameters
generate_auditGenerate comprehensive security audit reportadditionalOptions: Audit configuration

💡 Usage Examples

Basic Operations

javascript
// List all workflows
await callTool("list_workflows", {});

// Get detailed information about a workflow
await callTool("get_workflow", { id: "workflow-123" });

// Execute a workflow manually
await callTool("execute_workflow", { id: "workflow-123" });

Creating Workflows

javascript
// Create a simple workflow
await callTool("create_workflow", {
  workflow: {
    name: "My Automation Workflow",
    nodes: [
      {
        id: "trigger",
        name: "Schedule Trigger",
        type: "n8n-nodes-base.scheduleTrigger",
        typeVersion: 1,
        position: [240, 300],
        parameters: {
          interval: [{ field: "unit", value: "hours" }]
        }
      },
      {
        id: "action",
        name: "HTTP Request",
        type: "n8n-nodes-base.httpRequest",
        typeVersion: 4,
        position: [460, 300],
        parameters: {
          url: "https://api.example.com/webhook",
          method: "POST"
        }
      }
    ],
    connections: {
      "Schedule Trigger": {
        "main": [[{ "node": "HTTP Request", "type": "main", "index": 0 }]]
      }
    }
  }
});

Workflow Management

javascript
// Activate a workflow
await callTool("activate_workflow", { id: "workflow-123" });

// Update a workflow
await callTool("update_workflow", {
  id: "workflow-123",
  workflow: { name: "Updated Workflow Name" }
});

// Deactivate a workflow
await callTool("deactivate_workflow", { id: "workflow-123" });

// Create and immediately activate
await callTool("create_workflow_and_activate", {
  workflow: { /* workflow configuration */ }
});

Execution Management ⭐ NEW

javascript
// List recent executions
await callTool("list_executions", {
  limit: 10,
  status: "error"
});

// Get detailed execution information
await callTool("get_execution", {
  id: "execution-123",
  includeData: true
});

// Clean up old execution records
await callTool("delete_execution", { id: "execution-123" });

Tag Management ⭐ NEW

javascript
// List all workflow tags
await callTool("list_tags", { limit: 50 });

// Create a new tag for organization
await callTool("create_tag", { name: "production" });

Security Audit ⭐ NEW

javascript
// Generate comprehensive security audit
await callTool("generate_audit", {
  additionalOptions: {
    daysAbandonedWorkflow: 30,
    categories: ["credentials", "database", "nodes"]
  }
});

🔧 Troubleshooting

Common Issues

"Connection refused" or "ECONNREFUSED"

  • Cause: Cannot connect to your n8n instance
  • Solution: Verify your N8N_HOST is correct and n8n is running
  • Check: Try accessing your n8n instance in a browser first

"Unauthorized" or "401 Error"

  • Cause: Invalid or missing API key
  • Solution:
    1. Verify your N8N_API_KEY is correct
    2. Ensure the API key has proper permissions
    3. Check if the API key hasn't expired

"Workflow not found" or "404 Error"

  • Cause: Workflow ID doesn't exist
  • Solution: Use list_workflows to get valid workflow IDs

Server won't start

  • Cause: Missing Node.js or dependencies
  • Solution:
    1. Ensure Node.js v18+ is installed: node --version
    2. Try clearing npm cache: npm cache clean --force
    3. For manual installation, run: npm install && npm run build

Debug Mode

For detailed logging, set the debug environment variable:

bash
DEBUG=n8n-workflow-builder npx @makafeli/n8n-workflow-builder

Getting Help

  1. Check the GitHub Issues
  2. Review n8n's API documentation
  3. Verify your MCP client configuration

❓ Frequently Asked Questions

What is an MCP Server?

A Model Context Protocol (MCP) server is a standardized way for AI assistants to access external tools and data sources. This MCP server specifically provides AI assistants with the ability to interact with n8n workflows, enabling automated workflow management through natural language commands.

How do I connect AI assistants to n8n workflows?

This MCP server acts as a bridge between AI assistants (like Claude Desktop, Cline, or ChatGPT) and your n8n instance. Simply:

  1. Install the MCP server: npx @makafeli/n8n-workflow-builder
  2. Configure your AI assistant's MCP settings with your n8n credentials
  3. Start using natural language to manage your n8n workflows

Which AI assistants work with this MCP server?

The server works with any MCP-compatible AI assistant, including:

  • Claude Desktop (Anthropic)
  • Cline (VS Code extension)
  • Continue (VS Code extension)
  • Any custom MCP client implementation
  • Future MCP-compatible AI assistants

Can I use this with n8n Cloud or only self-hosted?

This MCP server works with both n8n Cloud and self-hosted instances. You just need:

  • Your n8n instance URL (cloud or self-hosted)
  • A valid n8n API key with appropriate permissions
  • Network access from where you're running the MCP server

What can AI assistants do with my n8n workflows?

AI assistants can perform complete workflow management including:

  • List and browse existing workflows
  • Create new workflows with complex node configurations
  • Execute workflows manually or on-demand
  • Activate/deactivate workflows
  • Update and modify existing workflows
  • Monitor execution status and retrieve detailed logs
  • Manage workflow tags and organization
  • Generate security audits and compliance reports

Is this secure? What permissions does it need?

The MCP server uses n8n's official API with proper authentication:

  • Requires a valid n8n API key (you control the permissions)
  • No data is stored by the MCP server
  • All communication is direct between your AI assistant and n8n
  • Follows n8n's security model and access controls
  • You can revoke access anytime by disabling the API key

How is this different from using n8n's web interface?

This MCP server enables AI-powered workflow management:

  • Natural language commands instead of clicking through UI
  • Automated workflow creation based on descriptions
  • Bulk operations across multiple workflows
  • Integration with AI assistant workflows and automation
  • Voice commands through AI assistants
  • Contextual help and suggestions from AI

🔍 Detailed Comparison: See our Comparison Guide for detailed comparisons with n8n Web UI, CLI, Zapier, and Make.com.

Can I automate workflow creation with AI?

Yes! This is one of the key features. You can:

  • Describe workflows in natural language and have AI create them
  • Generate workflows from requirements or use cases
  • Modify existing workflows through conversational commands
  • Create workflow templates and variations automatically
  • Batch create similar workflows with different parameters

💼 Real Examples: Check out our Use Cases Guide for specific automation examples across different industries.

What if I encounter issues or errors?

Common solutions:

  1. Check your n8n API key - ensure it's valid and has proper permissions
  2. Verify n8n instance URL - make sure it's accessible and correct
  3. Review the troubleshooting section above for specific error messages
  4. Check GitHub Issues for known problems and solutions
  5. Enable debug mode with DEBUG=n8n-workflow-builder for detailed logs

🔧 Comprehensive Help: See our Troubleshooting Guide for detailed solutions to common issues.

How do I get started quickly?

Fastest setup:

  1. Use Smithery.ai hosted version (no installation): smithery.ai
  2. Or run locally: npx @makafeli/n8n-workflow-builder
  3. Configure your AI assistant with your n8n credentials
  4. Start with simple commands like "list my workflows" or "show me workflow details"

📖 Detailed Guide: See our Getting Started Guide for step-by-step setup instructions.

Can I contribute or customize this MCP server?

Absolutely! This is an open-source project:

  • Fork the repository for customizations
  • Submit pull requests for improvements
  • Report issues or request features on GitHub
  • Extend functionality by adding new MCP tools
  • Share use cases and examples with the community

🤝 Contributing

We welcome contributions!

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🔗 Useful Links


Built with ❤️ for the n8n and MCP community

json
{
  "@context": "https://schema.org",
  "@type": "SoftwareApplication",
  "name": "n8n Workflow Builder MCP Server",
  "description": "AI assistant integration for n8n workflow automation through the Model Context Protocol (MCP). Connect Claude Desktop, ChatGPT, and other AI assistants to n8n for natural language workflow management.",
  "url": "https://github.com/makafeli/n8n-workflow-builder",
  "downloadUrl": "https://www.npmjs.com/package/@makafeli/n8n-workflow-builder",
  "applicationCategory": "DeveloperApplication",
  "operatingSystem": "Cross-platform",
  "programmingLanguage": "TypeScript",
  "author": {
    "@type": "Person",
    "name": "makafeli",
    "url": "https://github.com/makafeli"
  },
  "license": "https://github.com/makafeli/n8n-workflow-builder/blob/main/LICENSE",
  "keywords": [
    "n8n",
    "MCP",
    "AI assistant",
    "workflow automation",
    "Claude Desktop",
    "ChatGPT",
    "Model Context Protocol"
  ],
  "offers": {
    "@type": "Offer",
    "price": "0",
    "priceCurrency": "USD"
  },
  "softwareRequirements": "Node.js 18.0.0 or higher",
  "releaseNotes": "https://github.com/makafeli/n8n-workflow-builder/releases",
  "codeRepository": "https://github.com/makafeli/n8n-workflow-builder"
}

インストール

TypingMind
{
  "mcpServers": {
    "makafeli-n8n-workflow-builder": {
      "command": "npx",
      "args": [
        "@makafeli/n8n-workflow-builder"
      ],
      "env": {
        "N8N_HOST": "<N8N_HOST>",
        "N8N_API_KEY": "<N8N_API_KEY>"
      }
    }
  }
}

n8n Workflow Builder MCP ServerのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度n8n Workflow Builder MCP Serverに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 お使いのデバイス上でMCPをローカル実行することも、リモートMCPサーバーのURLに接続することもできます。

方法1:ローカルコネクタを使用

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

n8n Workflow Builder MCP Serverをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. n8n Workflow Builder MCP ServerのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "makafeli-n8n-workflow-builder": {
      "command": "npx",
      "args": [
        "-y",
        "@makafeli/n8n-workflow-builder"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてn8n Workflow Builder MCP ServerのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. n8n Workflow Builder MCP ServerのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
n8n Workflow Builder MCP Serverを使ってこのタスクを手伝ってもらえますか?
n8n Workflow Builder MCP Server
はい、読みました。
n8n Workflow Builder MCP Serverで調べた結果をお伝えします。

方法2:MCPサーバーのURLを追加

n8n Workflow Builder MCP Serverがすでにリモートでホストされている場合や、チームの複数のユーザーで1つのコネクタを共有したい場合は、この方法を使います。

1

MCPコネクタを開く

TypingMindで「プラグイン」に移動し、「MCPコネクタ」を開いて「URLを追加」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 「プラグイン」に移動してください。
  3. 「MCPコネクタ」を開いてください。
  4. 「URLを追加」をクリックします。
TypingMindの「カスタムMCPサーバーURLを追加」フォーム
2

サーバーURLを貼り付け

「サーバーURL」欄にhttps://smithery.ai/server/@makafeli/n8n-workflow-builderを入力してください。サーバーで必要とされる場合は、接続名、説明、アイコン、カスタムHTTPヘッダー、OAuthクライアント設定を追加してください。

  1. 「サーバーURL」欄にhttps://smithery.ai/server/@makafeli/n8n-workflow-builderを貼り付けてください。
  2. n8n Workflow Builder MCP Serverの接続名を入力してください。
  3. 接続を識別しやすくするには、説明とアイコンを追加してください。
  4. サーバーで認証が必要な場合は、カスタムHTTPヘッダーまたはOAuthクライアントの詳細情報を追加してください。
3

接続を作成

「接続を作成」をクリックし、プラグイン一覧に戻って、新しいMCP接続が有効になっていることを確認してください。

  1. 「接続を作成」をクリックします。
  2. MCPコネクタの一覧に戻ってください。
  3. n8n Workflow Builder MCP Serverの接続が「有効」と表示されていることを確認してください。
  4. 接続がすぐに表示されない場合は、プラグイン一覧を更新してください。
4

再接続せずにモデルを切り替え

お好みのモデルでチャットを開始し、「プラグイン」でn8n Workflow Builder MCP Serverのツールを有効にしてください。必要に応じて別のモデルに切り替えられます。MCP接続は、TypingMindのワークスペースで引き続き利用できます。

  1. TypingMindで新しいチャットを開始してください。
  2. 使用するAIモデルを選択してください。
  3. 「プラグイン」でn8n Workflow Builder MCP Serverのツールを有効にしてください。
  4. 必要に応じて、ツールを使うようモデルに依頼してください。
  5. 別のAIモデルに切り替えて、同じMCP接続を再利用してください。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
n8n Workflow Builder MCP Serverを使ってこのタスクを手伝ってもらえますか?
n8n Workflow Builder MCP Server
はい、読みました。
n8n Workflow Builder MCP Serverで調べた結果をお伝えします。

よくある質問

n8n Workflow Builder MCP Server MCPサーバーは何に使いますか?

n8n Workflow Builder MCP Serverは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでn8n Workflow Builder MCP Server MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでn8n Workflow Builder MCP Serverを利用できます。

TypingMindでn8n Workflow Builder MCP Server MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。n8n Workflow Builder MCP Serverを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

n8n Workflow Builder MCP Server MCPをTypingMindに接続するにはどうすればよいですか?

n8n Workflow Builder MCP Serverは、ローカルMCPコネクタを使うか、リモートMCPサーバーのURLを追加することでTypingMindに接続できます。サーバーがデバイス上のファイル、アプリ、プライベートリソースにアクセスする必要がある場合はローカルコネクタを、MCPサーバーがリモートでホストされている場合はサーバーURLを使用してください。

TypingMindでn8n Workflow Builder MCP Server MCPのどのようなツールを利用できますか?

n8n Workflow Builder MCP ServerはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

n8n Workflow Builder MCP Server MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。n8n Workflow Builder MCP Serverで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇