n8n Workflow Builder MCP Server
开发
n8n Workflow Builder MCP Server
🔥 热度:2

以编程方式创建和管理 n8n 工作流

DeepSeek 导航网:n8n Workflow Builder MCP Server 一个用于以编程方式创建和管理 n8n 工作流的模型上下文协议 (MCP) 服务器。

特性

  • 创建包含节点和连接的工作流
  • 验证工作流规范
  • 导出完整的工作流配置
  • 通过 MCP 提供 REST API 接口

安装

通过 Smithery 安装

要通过 Smithery 自动为 Claude 桌面安装 n8n 工作流构建器:

npx -y @smithery/cli install n8n-workflow-builder --client claude

手动安装

  1. 克隆仓库:
git clone https://github.com/[your-username]/n8n-workflow-builder.git
cd n8n-workflow-builder
  1. 安装依赖项:
npm install
  1. 编译 TypeScript:
npx tsc
  1. 启动服务器:
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"]
  }
}

相关推荐