IN

ifmelate/n8n-workflow-builder-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

52 stars 15 forks 质量 83 趋势 8MIT

ifmelate/n8n-workflow-builder-mcp 是从 https://github.com/ifmelate/n8n-workflow-builder-mcp. 导入的 MCP 服务器候选

概览

ifmelate/n8n-workflow-builder-mcp 是从 https://github.com/ifmelate/n8n-workflow-builder-mcp. 导入的 MCP 服务器候选

概述(AI 翻译)

一个用于构建和操作 n8n 工作流的模型上下文协议(MCP)服务器。仅通过 AI 提示即可构建 n8n 工作流——支持 Claude Code、VS Code、Cursor 及任何兼容 MCP 的客户端。

这是适合你的MCP服务器吗?

该服务器编写 n8n 的 {JSON 文件“本地文件**。它不需要运行的 n8n 实例,并且从包含 n8n 1.86.0 – 2.6.2 的捆绑目录中选择节点版本。

如果你:

  • 想离线生成工作流程文件并自行导入(或提交到 git)
  • 在较旧的自托管n8n上,需要你的实例实际支持的节点typeVersion的工作流程。将N8N_VERSION设置为匹配。

如果你:

  • 希望AI能直接在你的n8n实例中构建、测试和运行工作流。使用n8n内置的实例级MCP服务器。
  • 需要一个大型节点文档和模板库,并通过 n8n API 部署。使用 czlonkowski/n8n-mcp。
  • 需要在 2.6.2 之后的 N8n 中添加节点。它们还没有出现在捆绑目录中。

演示视频:

光标规则

  • 带规则的文件位于rules/n8n-mcp-server-rules.mdc

主要特色

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

n8n Workflow Builder MCP

A Model Context Protocol (MCP) server for building and manipulating n8n workflows. Build n8n workflows just by prompting with AI — works with Claude Code, VS Code, Cursor, and any MCP-compatible client.

Is this the right MCP server for you?

This server writes n8n workflow JSON files locally. It doesn’t need a running n8n instance, and it picks node versions from a bundled catalog that covers n8n 1.86.0 – 2.6.2.

Use this server if you:

  • want to generate workflow files offline and import them yourself (or commit them to git)
  • are on an older self-hosted n8n and need workflows whose node typeVersions your instance actually supports. Set N8N_VERSION to match it.

Consider an alternative if you:

  • want the AI to build, test and run workflows directly in your n8n instance. Use n8n’s built-in instance-level MCP server.
  • want a large node documentation and template library with deployment through the n8n API. Use czlonkowski/n8n-mcp.
  • need nodes added in n8n after 2.6.2. They aren’t in the bundled catalog yet.

DEMO VIDEO:

Cursor rules

  • File with rules is in rules/n8n-mcp-server-rules.mdc

Key Features

  • Workflow Management: Create, update, and execute n8n workflows programmatically (execute is not implemented yet)
  • Node Discovery: Explore available n8n nodes and their capabilities
  • Connection Management: Create connections between workflow nodes
  • AI Integration: Special tools for connecting AI components in workflows
  • AI-Friendly Interface: Designed specifically for interaction with AI agents
  • N8N Version Management: Automatic version detection and compatibility handling - supports 184+ n8n versions (1.86.0 – 2.6.2) with dynamic node filtering and “closest lower version” matching for backward compatibility

Prerequisites

  • Node.js (v18 or higher)
  • npm (for npx command)
  • An MCP-compatible client (Claude Code, VS Code, Cursor, etc.)

Installation & Setup

Getting your n8n API Key

The API key is optional. The server only uses N8N_API_URL/N8N_API_KEY to detect your n8n version. To work fully offline, skip them and set N8N_VERSION (e.g. N8N_VERSION=1.123.2) instead.

  1. Open your n8n instance in a browser
  2. Go to Settings > API Keys
  3. Click Create API Key
  4. Copy the generated key and use it in your configuration

Add the MCP server using the Claude Code CLI:

在 GitHub 查看完整 README

安装

npx -y n8n-workflow-builder-mcp
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "n8n-workflow-builder": { "command": "npx", "args": ["-y", "n8n-workflow-builder-mcp"], "env": { "N8N_API_URL": "http://localhost:5678", "N8N_API_KEY": "your-n8n-api-key-here" } } } }