Skip to main content
Glama

n8n MCP サーバー

モデルコンテキストプロトコル(MCP)を介してn8nのワークフロー、実行、資格情報などへのアクセスを提供するMCPサーバー。これにより、大規模言語モデル(LLM)はn8nインスタンスと安全かつ標準化された方法でやり取りできるようになります。

インストール

n8n APIキーを取得する

  1. n8nインスタンスにログインする

  2. 左下のユーザーアイコンをクリックします

  3. 設定に移動

  4. APIを選択

  5. 「APIキーを作成」をクリックします

  6. APIキーをコピーします(再度表示することはできません)

MCPサーバーをインストールする

オプション1: npmからインストールする(推奨)

npm install -g @illuminaresolutions/n8n-mcp-server

オプション2: ソースからインストールする

  1. リポジトリをクローンします。

    git clone https://github.com/illuminaresolutions/n8n-mcp-server.git
    cd n8n-mcp-server
  2. 依存関係をインストールしてビルドします。

    npm install
    npm run build
  3. バックグラウンドでサーバーを起動します。

    nohup npm start > n8n-mcp.log 2>&1 &

    サーバーを停止するには:

    pkill -f "node build/index.js"

注意: npm からインストールする場合、サーバーは PATH でn8n-mcp-serverとして利用できるようになります。

Related MCP server: MCP Server for n8n Integration

構成

クロードデスクトップ

  1. Claude デスクトップ構成を開きます。

    ~/Library/Application Support/Claude/claude_desktop_config.json
  2. n8n 構成を追加します。

    {
      "mcpServers": {
         "n8n": {
          "command": "n8n-mcp-server",
          "env": {
            "N8N_HOST": "https://your-n8n-instance.com",
            "N8N_API_KEY": "your-api-key-here"
          }
        }
      }
    }

クライン(VSコード)

  1. サーバーをインストールします(上記のインストール手順に従ってください)

  2. VSコードを開く

  3. 左サイドバーからCline拡張機能を開きます

  4. ペインの上部にある「MCPサーバー」アイコンをクリックします

  5. 一番下までスクロールして「MCPサーバーの構成」をクリックします。

  6. 開いた設定ファイルに追加します:

    {
      "mcpServers": {
        "n8n": {
          "command": "n8n-mcp-server",
          "env": {
            "N8N_HOST": "https://your-n8n-instance.com",
            "N8N_API_KEY": "your-api-key-here"
          }
        }
      }
    }
  7. ファイルを保存する

  8. MCPトグルが有効(緑)で、ステータスインジケーターが緑になっていることを確認します。

  9. ClineでMCPコマンドの使用を開始する

セージ

近日公開!n8n MCPサーバーは以下の方法でご利用いただけます。

  • Smithery.aiマーケットプレイス

  • Claude Desktopからのインポート

今のところは、Claude Desktop または Cline を使用してください。

検証

設定後:

  1. LLMアプリケーションを再起動します

  2. 質問:「n8n ワークフローをリストしてください」

  3. ワークフローがリストされているはずです

エラーが発生した場合:

  • n8nインスタンスが実行中であることを確認する

  • APIキーに正しい権限があることを確認してください

  • N8N_HOSTに末尾のスラッシュがないことを確認する

特徴

コア機能

  • ワークフローの一覧表示と管理

  • ワークフローの詳細を表示

  • ワークフローを実行する

  • 資格情報の管理

  • タグと実行を処理する

  • セキュリティ監査を生成する

  • ワークフロータグを管理する

エンタープライズ機能

これらの機能には n8n Enterprise ライセンスが必要です。

  • プロジェクト管理

  • 変数管理

  • 高度なユーザー管理

トラブルシューティング

よくある問題

  1. 「クライアントが初期化されていません」

    • N8N_HOSTとN8N_API_KEYが正しく設定されていることを確認してください

    • n8nインスタンスがアクセス可能であることを確認する

    • APIキーの権限を確認する

  2. 「ライセンスが必要です」

    • エンタープライズ機能を使用しようとしています

    • n8n Enterpriseにアップグレードするか、コア機能のみを使用するか

  3. 接続の問題

    • n8nインスタンスが実行中であることを確認する

    • URLプロトコル(http/https)を確認する

    • N8N_HOSTから末尾のスラッシュを削除します

セキュリティのベストプラクティス

  1. APIキー管理

    • 必要最小限の権限を使用する

    • 定期的にキーをローテーションする

    • バージョン管理にキーをコミットしない

  2. インスタンスアクセス

    • 本番環境ではHTTPSを使用する

    • n8n認証を有効にする

    • n8nを最新の状態に保つ

サポート

ライセンス

MITライセンス

Available Tools

33 tools
activate-workflowC

Activate a workflow by ID. This will enable the workflow to run. IMPORTANT: Arguments must be provided as compact, single-line JSON without whitespace or newlines.

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

create-credentialB

Create a credential that can be used by nodes of the specified type. The credential type name can be found in the n8n UI when creating credentials (e.g., 'cloudflareApi', 'githubApi', 'slackOAuth2Api'). Use get-credential-schema first to see what fields are required for the credential type you want to create.

Inputs: clientId (required), name (required), type (required), data (required).

create-projectA

Create a new project in n8n. NOTE: Requires n8n Enterprise license with project management features enabled. IMPORTANT: Arguments must be provided as compact, single-line JSON without whitespace or newlines.

Inputs: clientId (required), name (required).

create-tagC

Create a new tag in your instance.

Inputs: clientId (required), name (required).

create-usersC

Create one or more users in your instance.

Inputs: clientId (required), users (required).

create-variableA

Create a new variable in n8n. NOTE: Requires n8n Enterprise license with variable management features enabled. Variables can be used across workflows to store and share data. IMPORTANT: Arguments must be provided as compact, single-line JSON without whitespace or newlines.

Inputs: clientId (required), key (required), value (required).

create-workflowB

Create a new workflow in n8n. Use to set up a new workflow with optional nodes and connections. IMPORTANT: 1) Arguments must be provided as compact, single-line JSON without whitespace or newlines. 2) Must provide full workflow structure including nodes and connections arrays, even if empty. The 'active' property should not be included as it is read-only.

Inputs: clientId (required), name (required), nodes, connections.

deactivate-workflowC

Deactivate a workflow by ID. This will prevent the workflow from running. IMPORTANT: Arguments must be provided as compact, single-line JSON without whitespace or newlines.

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

delete-credentialB

Delete a credential by ID. You must be the owner of the credentials.

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

delete-executionC

Delete a specific execution by ID.

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

delete-projectA

Delete a project by ID. NOTE: Requires n8n Enterprise license with project management features enabled. IMPORTANT: Arguments must be provided as compact, single-line JSON without whitespace or newlines.

Inputs: clientId (required), projectId (required).

delete-tagC

Delete a tag by ID.

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

delete-userC

Delete a user from your instance.

Inputs: clientId (required), idOrEmail (required).

delete-variableA

Delete a variable by ID. NOTE: Requires n8n Enterprise license with variable management features enabled. Use after list-variables to get the ID of the variable to delete. This action cannot be undone. IMPORTANT: Arguments must be provided as compact, single-line JSON without whitespace or newlines.

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

delete-workflowA

Delete a workflow by ID. This action cannot be undone. IMPORTANT: Arguments must be provided as compact, single-line JSON without whitespace or newlines.

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

generate-auditC

Generate a security audit for your n8n instance.

Inputs: clientId (required), daysAbandonedWorkflow, categories.

get-credential-schemaA

Show credential data schema for a specific credential type. The credential type name can be found in the n8n UI when creating credentials (e.g., 'cloudflareApi', 'githubApi', 'slackOAuth2Api'). This will show you what fields are required for creating credentials of this type.

Inputs: clientId (required), credentialTypeName (required).

get-executionC

Retrieve a specific execution by ID.

Inputs: clientId (required), id (required), includeData.

get-tagC

Retrieve a specific tag by ID.

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

get-userC

Get user by ID or email address.

Inputs: clientId (required), idOrEmail (required).

get-workflowB

Retrieve a workflow by ID. Use after list-workflows to get detailed information about a specific workflow. IMPORTANT: Arguments must be provided as compact, single-line JSON without whitespace or newlines.

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

get-workflow-tagsC

Get tags associated with a workflow.

Inputs: clientId (required), workflowId (required).

init-n8nA

Initialize connection to n8n instance. Use this tool whenever an n8n URL and API key are shared to establish the connection. IMPORTANT: Arguments must be provided as compact, single-line JSON without whitespace or newlines.

Inputs: url (required), apiKey (required).

list-executionsC

Retrieve all executions from your instance with optional filtering.

Inputs: clientId (required), includeData, status, workflowId, +1 more.

list-projectsA

List all projects from n8n. NOTE: Requires n8n Enterprise license with project management features enabled. IMPORTANT: Arguments must be provided as compact, single-line JSON without whitespace or newlines.

Inputs: clientId (required).

list-tagsC

Retrieve all tags from your instance.

Inputs: clientId (required), limit.

list-usersB

Retrieve all users from your instance. Only available for the instance owner.

Inputs: clientId (required).

list-variablesA

List all variables from n8n. NOTE: Requires n8n Enterprise license with variable management features enabled. Use after init-n8n to see available variables. IMPORTANT: Arguments must be provided as compact, single-line JSON without whitespace or newlines.

Inputs: clientId (required).

list-workflowsB

List all workflows from n8n. Use after init-n8n to see available workflows. IMPORTANT: Arguments must be provided as compact, single-line JSON without whitespace or newlines.

Inputs: clientId (required).

update-projectB

Update a project's name. NOTE: Requires n8n Enterprise license with project management features enabled. IMPORTANT: Arguments must be provided as compact, single-line JSON without whitespace or newlines.

Inputs: clientId (required), projectId (required), name (required).

update-tagC

Update a tag's name.

Inputs: clientId (required), id (required), name (required).

update-workflowC

Update an existing workflow in n8n. Use after get-workflow to modify a workflow's properties, nodes, or connections. IMPORTANT: Arguments must be provided as compact, single-line JSON without whitespace or newlines.

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

update-workflow-tagsC

Update tags associated with a workflow.

Inputs: clientId (required), workflowId (required), tagIds (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 33 tools

    Disambiguation4/5

    Most tools have distinct purposes targeting specific resources like workflows, credentials, projects, tags, users, variables, and executions. However, some tools like 'create-users' and 'delete-user' (singular vs plural) could cause minor confusion, and 'get-workflow-tags' vs 'update-workflow-tags' are closely related but still distinguishable.

    Naming Consistency5/5

    Tool names follow a highly consistent verb-noun pattern with hyphens (e.g., create-workflow, list-executions, delete-credential). All tools adhere to this convention, making them predictable and easy to parse, with no mixing of styles like camelCase or snake_case.

    Tool Count3/5

    With 33 tools, the count is borderline high for an MCP server, as it may feel heavy and overwhelming for agents. While n8n is a complex automation platform, the tool set could potentially be streamlined or grouped to reduce cognitive load, though it does cover a broad domain.

    Completeness5/5

    The tool set provides comprehensive CRUD/lifecycle coverage for all key n8n resources: workflows (activate, deactivate, create, get, update, delete, list), credentials (create, delete, get-schema), projects (create, delete, list, update), tags (create, delete, get, list, update), users (create, delete, get, list), variables (create, delete, list), and executions (delete, get, list). There are no obvious gaps, and tools like init-n8n and generate-audit add useful functionality.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers