
illuminaresolutions/n8n-mcp-server 是从 https://github.com/illuminaresolutions/n8n-mcp-server. 导入的 MCP 服务器候选。
概览
illuminaresolutions/n8n-mcp-server 是从 https://github.com/illuminaresolutions/n8n-mcp-server. 导入的 MCP 服务器候选。
概述(AI 翻译)
一个MCP服务器,通过模型上下文协议提供对n8n工作流、执行、凭证等访问。这使得大型语言模型(LLM)能够以安全且标准化的方式与n8n实例交互。
安装
获取你的n8n API密钥
- 登录你的n8n实例
- 点击左下角的用户图标
- 进入设置
- 选择API
- 点击“创建API密钥”
- 复制你的API密钥(你将无法再看到它)
安装MCP服务器
选项1:从npm安装(推荐)
选项2:从源头安装
-
克隆仓库:
-
安装依赖并构建:
-
在后台启动服务器:
要停止服务器:
注意:从npm安装时,服务器会在你的PATH中以n8n-mcp-server的身份开放。
配置
克劳德桌面
-
打开您的Claude桌面配置:
-
添加n8n配置:
克莱恩(VS Code)
- 安装服务器(请按照上文的安装步骤操作)
- 开放VS Code
- 从左侧栏打开Cline扩展
- 点击面板顶部的“MCP Servers”图标
- 滚动到底部并点击“配置MCP服务器”
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
n8n MCP Server
An MCP server that provides access to n8n workflows, executions, credentials, and more through the Model Context Protocol. This allows Large Language Models (LLMs) to interact with n8n instances in a secure and standardized way.
Installation
Get your n8n API Key
- Log into your n8n instance
- Click your user icon in the bottom left
- Go to Settings
- Select API
- Click “Create API Key”
- Copy your API key (you won’t be able to see it again)
Install the MCP Server
Option 1: Install from npm (Recommended)
npm install -g @illuminaresolutions/n8n-mcp-server
Option 2: Install from Source
-
Clone the repository:
git clone https://github.com/illuminaresolutions/n8n-mcp-server.git cd n8n-mcp-server -
Install dependencies and build:
npm install npm run build -
Start the server in the background:
nohup npm start > n8n-mcp.log 2>&1 &To stop the server:
pkill -f "node build/index.js"
Note: When installing from npm, the server will be available as n8n-mcp-server in your PATH.
Configuration
Claude Desktop
-
Open your Claude Desktop configuration:
~/Library/Application Support/Claude/claude_desktop_config.json -
Add the n8n configuration:
{ "mcpServers": { "n8n": { "command": "n8n-mcp-server", "env": { "N8N_HOST": "https://your-n8n-instance.com", "N8N_API_KEY": "your-api-key-here" } } } }
Cline (VS Code)
- Install the server (follow Installation steps above)
- Open VS Code
- Open the Cline extension from the left sidebar
- Click the ‘MCP Servers’ icon at the top of the pane
- Scroll to bottom and click ‘Configure MCP Servers’
- Add to the opened settings file:
{ "mcpServers": { "n8n": { "command": "n8n-mcp-server", "env": { "N8N_HOST": "https://your-n8n-instance.com", "N8N_API_KEY": "your-api-key-here" } } } } - Save the file
- Ensure the MCP toggle is enabled (green) and the status indicator is green
- Start using MCP commands in Cline
Sage
Coming soon! The n8n MCP server will be available through:
- Smithery.ai marketplace
- Import from Claude Desktop
For now, please use Claude Desktop or Cline.
Validation
After configuration:
- Restart your LLM application
- Ask: “List my n8n workflows”
- You should see your workflows listed
If you get an error:
- Check that your n8n instance is running
- Verify your API key has correct permissions
- Ensure N8N_HOST has no trailing slash
Features
Core Features
- List and manage workflows
- View workflow details
- Execute workflows
- Manage credentials
- Handle tags and executions
- Generate security audits
- Manage workflow tags
Enterprise Features
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"n8n": {
"command": "n8n-mcp-server",
"env": {
"N8N_HOST": "https://your-n8n-instance.com",
"N8N_API_KEY": "your-api-key-here"
}
}
}
}