使用说明
n8n工作流生成器MCP服务器
用于以编程方式创建和管理n8n工作流的模型上下文协议(MCP)服务器。
特性
- 使用节点和连接创建工作流
- 验证工作流规范
- 导出完整的工作流配置
- 通过MCP的REST API接口
安装
通过Smithery安装
通过以下方式自动安装适用于Claude Desktop的n8n工作流生成器 史密瑟里:
npx -y @smithery/cli install n8n-workflow-builder --client claude
手动安装
- 克隆存储库:
git clone https://github.com/[your-username]/n8n-workflow-builder.git
cd n8n-workflow-builder
- 安装依赖项:
npm install
- 编译TypeScript:
npx tsc
- 启动服务器:
npm start
用法
服务器提供 create_workflow 接受工作流规范的工具:
{
"nodes": [
{
"type": "n8n-nodes-base.httpRequest",
"name": "HTTP Request",
"parameters": {
"url": "https://example.com",
"method": "GET"
}
}
],
"connections": []
}
配置
将服务器添加到MCP配置中:
{
"n8n-workflow-builder": {
"command": "node",
"args": ["/path/to/n8n-workflow-builder/dist/index.js"]
}
}
许可证
麻省理工学院
