一个通过模型上下文协议(Model Context Protocol)提供对 n8n 工作流、执行、凭据等访问的 MCP 服务器。这允许大型语言模型(LLMs)以安全和标准化的方式与 n8n 实例进行交互。
npm install -g @illuminaresolutions/n8n-mcp-server
克隆仓库:
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 可用。
打开您的 Claude Desktop 配置:
~/Library/Application Support/Claude/claude_desktop_config.json
添加 n8n 配置:
{
"mcpServers": {
"n8n": {
"command": "n8n-mcp-server",
"env": {
"N8N_HOST": "https://your-n8n-instance.com",
"N8N_API_KEY": "your-api-key-here"
}
}
}
}
{
"mcpServers": {
"n8n": {
"command": "n8n-mcp-server",
"env": {
"N8N_HOST": "https://your-n8n-instance.com",
"N8N_API_KEY": "your-api-key-here"
}
}
}
}
即将推出!n8n MCP 服务器将通过以下方式可用:
目前,请使用 Claude Desktop 或 Cline。
配置后:
如果遇到错误:
这些功能需要 n8n 企业许可证:
“客户端未初始化”
“需要许可证”
连接问题
API 密钥管理
实例访问