n8n MCP Server
n8n MCP サーバー
モデルコンテキストプロトコル(MCP)を介してn8nのワークフロー、実行、資格情報などへのアクセスを提供するMCPサーバー。これにより、大規模言語モデル(LLM)はn8nインスタンスと安全かつ標準化された方法でやり取りできるようになります。
インストール
n8n APIキーを取得する
n8nインスタンスにログインする
左下のユーザーアイコンをクリックします
設定に移動
APIを選択
「APIキーを作成」をクリックします
APIキーをコピーします(再度表示することはできません)
MCPサーバーをインストールする
オプション1: npmからインストールする(推奨)
npm install -g @illuminaresolutions/n8n-mcp-serverオプション2: ソースからインストールする
リポジトリをクローンします。
git clone https://github.com/illuminaresolutions/n8n-mcp-server.git cd n8n-mcp-server依存関係をインストールしてビルドします。
npm install npm run buildバックグラウンドでサーバーを起動します。
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
構成
クロードデスクトップ
Claude デスクトップ構成を開きます。
~/Library/Application Support/Claude/claude_desktop_config.jsonn8n 構成を追加します。
{ "mcpServers": { "n8n": { "command": "n8n-mcp-server", "env": { "N8N_HOST": "https://your-n8n-instance.com", "N8N_API_KEY": "your-api-key-here" } } } }
クライン(VSコード)
サーバーをインストールします(上記のインストール手順に従ってください)
VSコードを開く
左サイドバーからCline拡張機能を開きます
ペインの上部にある「MCPサーバー」アイコンをクリックします
一番下までスクロールして「MCPサーバーの構成」をクリックします。
開いた設定ファイルに追加します:
{ "mcpServers": { "n8n": { "command": "n8n-mcp-server", "env": { "N8N_HOST": "https://your-n8n-instance.com", "N8N_API_KEY": "your-api-key-here" } } } }ファイルを保存する
MCPトグルが有効(緑)で、ステータスインジケーターが緑になっていることを確認します。
ClineでMCPコマンドの使用を開始する
セージ
近日公開!n8n MCPサーバーは以下の方法でご利用いただけます。
Smithery.aiマーケットプレイス
Claude Desktopからのインポート
今のところは、Claude Desktop または Cline を使用してください。
検証
設定後:
LLMアプリケーションを再起動します
質問:「n8n ワークフローをリストしてください」
ワークフローがリストされているはずです
エラーが発生した場合:
n8nインスタンスが実行中であることを確認する
APIキーに正しい権限があることを確認してください
N8N_HOSTに末尾のスラッシュがないことを確認する
特徴
コア機能
ワークフローの一覧表示と管理
ワークフローの詳細を表示
ワークフローを実行する
資格情報の管理
タグと実行を処理する
セキュリティ監査を生成する
ワークフロータグを管理する
エンタープライズ機能
これらの機能には n8n Enterprise ライセンスが必要です。
プロジェクト管理
変数管理
高度なユーザー管理
トラブルシューティング
よくある問題
「クライアントが初期化されていません」
N8N_HOSTとN8N_API_KEYが正しく設定されていることを確認してください
n8nインスタンスがアクセス可能であることを確認する
APIキーの権限を確認する
「ライセンスが必要です」
エンタープライズ機能を使用しようとしています
n8n Enterpriseにアップグレードするか、コア機能のみを使用するか
接続の問題
n8nインスタンスが実行中であることを確認する
URLプロトコル(http/https)を確認する
N8N_HOSTから末尾のスラッシュを削除します
セキュリティのベストプラクティス
APIキー管理
必要最小限の権限を使用する
定期的にキーをローテーションする
バージョン管理にキーをコミットしない
インスタンスアクセス
本番環境ではHTTPSを使用する
n8n認証を有効にする
n8nを最新の状態に保つ
サポート
ライセンス
Available Tools
33 toolsactivate-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
Scored across 33 tools
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.
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.
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.
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
Related MCP Connectors
Open-source Zapier/n8n alternative as an MCP server: agents build, run and debug your workflows.
MCP server for secureFlows: token-free URL builders and integration-linting tools for AI agents.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Related MCP Servers
- AlicenseCqualityDmaintenanceA Model Context Protocol (MCP) server for programmatically creating and managing n8n workflows.118MIT
- FlicenseNot gradedqualityNot gradedmaintenanceA Model Context Protocol server that enables AI agents to interact with n8n workflows and automation tools through a standardized interface, allowing execution of workflows and access to n8n functions.-
- 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-
- AlicenseBqualityCmaintenanceA Model Context Protocol server that enables AI assistants to interact with N8N workflows, executions, and automation capabilities.12MIT