
leonardsellem/n8n-mcp-server
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
n8n APIとやり取りするためのツールやリソースを提供するMCPサーバー
概要
AIアシスタントが自然言語を通じてn8nワークフローとやり取りできるようにするモデルコンテキストプロトコル(MCP)サーバーです。 このプロジェクトは、AIアシスタントが人気のワークフロー自動化ツールn8nとシームレスに連携できるようにするモデルコンテキストプロトコル(MCP)サーバーを提供します。これは架け橋として機能し、AIアシスタントが自然言語コマンドを使ってn8nのワークフローや実行をプログラム的に管理・制御できるようにします。 - Node.js 20以降 - APIアクセスが有効なn8nインスタンス サーバーはDockerを使っても動かせます: サーバーの更新方法は、最初にどのようにインストールするかによります。 npmでサーバーをインストールした場合、install -g @leonardsellem/n8n-mcp-server: 1. ターミナルまたはコマンドプロンプトを開く。2. 最新バージョンを取得するには以下のコマンドを実行する: 3. サーバーが現在稼働中(例:バックグラウンドプロセスやサービスとして)場合、変更を有効にするために再起動が必要。 リポジトリをクローンしてソースからインストールした場合:
概要(AI 翻訳)
AIアシスタントが自然言語を通じてn8nワークフローとやり取りできるようにするモデルコンテキストプロトコル(MCP)サーバーです。
概要
このプロジェクトは、AIアシスタントが人気のワークフロー自動化ツールn8nとシームレスに連携できるようにするモデルコンテキストプロトコル(MCP)サーバーを提供します。これは架け橋として機能し、AIアシスタントが自然言語コマンドを使ってn8nのワークフローや実行をプログラム的に管理・制御できるようにします。
設置
前提条件
- Node.js 20歳以上
- APIアクセスが有効なn8nインスタンス
npmからインストール
ソースからインストール
Docker インストール
サーバーはDockerを使っても動かせます:
サーバーの更新中
サーバーの更新方法は、最初にどのようにインストールするかによります。
1.npm経由でグローバルにインストール
[T0]]でサーバーをインストールした場合:
-
端末またはコマンドプロンプトを開く。
-
最新バージョンを取得するには以下のコマンドを実行します:
-
サーバーが現在稼働中(例:バックグラウンドプロセスやサービスとして)場合、変更が適用されるために再起動が必要です。
2.ソースからインストール
リポジトリをクローンしてソースからインストールした場合:
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
n8n MCP Server
A Model Context Protocol (MCP) server that allows AI assistants to interact with n8n workflows through natural language.
Overview
This project provides a Model Context Protocol (MCP) server that empowers AI assistants to seamlessly interact with n8n, a popular workflow automation tool. It acts as a bridge, enabling AI assistants to programmatically manage and control n8n workflows and executions using natural language commands.
Installation
Prerequisites
- Node.js 20 or later
- n8n instance with API access enabled
Install from npm
npm install -g @leonardsellem/n8n-mcp-server
Install from source
# Clone the repository
git clone https://github.com/leonardsellem/n8n-mcp-server.git
cd n8n-mcp-server
# Install dependencies
npm install
# Build the project
npm run build
# Optional: Install globally
npm install -g .
Docker Installation
You can also run the server using Docker:
# Pull the image
docker pull leonardsellem/n8n-mcp-server
# Run the container with your n8n API configuration
docker run -e N8N_API_URL=http://your-n8n:5678/api/v1 \
-e N8N_API_KEY=your_n8n_api_key \
-e N8N_WEBHOOK_USERNAME=username \
-e N8N_WEBHOOK_PASSWORD=password \
leonardsellem/n8n-mcp-server
Updating the Server
How you update the server depends on how you initially installed it.
1. Installed globally via npm
If you installed the server using npm install -g @leonardsellem/n8n-mcp-server:
- Open your terminal or command prompt.
- Run the following command to get the latest version:
npm install -g @leonardsellem/n8n-mcp-server@latest - If the server is currently running (e.g., as a background process or service), you’ll need to restart it for the changes to take effect.
2. Installed from source
If you cloned the repository and installed from source:
- Open your terminal or command prompt.
- Navigate to the directory where you cloned the project:
cd path/to/n8n-mcp-server - If you’ve made any local changes to the code that you want to keep, consider stashing them (optional):
You can apply them later withgit stashgit stash pop. - Pull the latest changes from the repository (assuming you are on the
mainbranch):
If you are on a different branch, replacegit pull origin mainmainwith your branch name. - Install or update any changed dependencies:
npm install - Rebuild the project to include the latest updates:
npm run build - If you previously installed it globally from this source folder using
npm install -g ., you might want to run this command again to update the global link:npm install -g . - Restart the server.
インストール
docker run -e N8N_API_URL=http://your-n8n:5678/api/v1 \設定
{
"mcpServers": {
// Give your server a unique name
"n8n-local": {
// Use 'node' to execute the built JavaScript file
"command": "node",
// Provide the *absolute path* to the built index.js file
"args": [
"/path/to/your/cloned/n8n-mcp-server/build/index.js"
// On Windows, use double backslashes:
// "C:\\path\\to\\your\\cloned\\n8n-mcp-server\\build\\index.js"
],
// Environment variables needed by the server
"env": {
"N8N_API_URL": "http://your-n8n-instance:5678/api/v1", // Replace with your n8n URL
"N8N_API_KEY": "YOUR_N8N_API_KEY", // Replace with your key
// Add webhook credentials only if you plan to use webhook tools
// "N8N_WEBHOOK_USERNAME": "your_webhook_user",
// "N8N_WEBHOOK_PASSWORD": "your_webhook_password"
},
// Ensure the server is enabled
"disabled": false,
// Default autoApprove settings
"autoApprove": []
}
// ... other servers might be configured here
}
}