返回市场
n8n工作流构建器

n8n工作流构建器

作者:Jimmy97419 星标更新:2025-01-29

项目介绍

n8n 工作流构建器 MCP 服务器

smithery 徽章

这是一个用于编程创建和管理 n8n 工作流的模型上下文协议 (MCP) 服务器。

<a href="https://glama.ai/mcp/servers/fhoynrlnpp"><img width="380" height="200" src="https://gips1.baidu.com/it/u=5361532,4156176336&fm=3081&app=3081&f=PNG?w=760&h=400" alt="n8n 工作流构建器 MCP 服务器" /></a>

功能

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

安装

通过 Smithery 安装

要通过 Smithery 自动安装 n8n 工作流构建器到 Claude Desktop:

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 请求",
      "parameters": {
        "url": "https://example.com",
        "method": "GET"
      }
    }
  ],
  "connections": []
}

配置

在您的 MCP 配置中添加服务器:

{
  "n8n-workflow-builder": {
    "command": "node",
    "args": ["/path/to/n8n-workflow-builder/dist/index.js"]
  }
}

许可证

MIT