Logo n8n工作流构建器MCP服务器

n8n工作流构建器MCP服务器

Cộng đồng
salacoste

AI-powered n8n workflow automation through natural language. MCP server enabling Claude AI & Cursor IDE to create, manage, and monitor workflows via Model Context Protocol. Multi-instance support, 17 tools, comprehensive docs. Build workflows conversationally without manual JSON editing.

Nhà phát hànhsalacoste
Kho mãmcp-n8n-workflow-builder
Ngôn ngữJavaScript
Bản fork
57
Sao
232
Công cụ có sẵn
24
Phương thức truyền tảistdio
Danh mục
Giấy phépMIT
Liên kết
  • Kết nối công cụ với quy trình làm việc AI

    n8n工作流构建器MCP服务器 cung cấp các khả năng MCP mà ứng dụng khách và tác nhân AI tương thích có thể sử dụng.

  • 24 công cụ có sẵn

    Xem các thao tác có thể gọi bên dưới, kèm tên và mô tả nếu máy chủ cung cấp.

  • Cấu hình sẵn để sao chép

    Dùng các đoạn cấu hình cài đặt mẫu để thiết lập máy chủ này trong ứng dụng khách MCP bạn muốn dùng.

  • Chỉ số quan tâm đến mã nguồn mở

    232 sao và 57 bản fork từ kho mã được liên kết.

n8n Workflow Builder MCP Server

AI-Powered Workflow Automation Through Natural Language

Build, manage, and monitor n8n workflows using Claude AI and Cursor IDE via the Model Context Protocol

Documentation npm version npm downloads License: MIT

Features • Quick Start • Documentation • Examples • API Reference

AI-Powered Workflow Builder - Build n8n workflows with natural language


🎯 What is This?

n8n Workflow Builder MCP Server transforms workflow automation by enabling you to create and manage n8n workflows through conversational AI. No more manual JSON editing or complex UI navigation—just describe what you need in natural language, and let AI build it for you.

The Problem It Solves

  • ❌ Manual workflow building is time-consuming and error-prone
  • ❌ Complex JSON editing requires deep technical knowledge
  • ❌ Switching between IDE and n8n UI breaks your development flow
  • ❌ Managing multiple n8n environments (dev, staging, prod) is tedious

The Solution

  • ✅ Build workflows conversationally using Claude AI or Cursor IDE
  • ✅ Natural language interface - describe workflows in plain English
  • ✅ Multi-instance support - manage dev, staging, and production from one place
  • ✅ 17 powerful tools - complete workflow lifecycle management
  • ✅ Stay in your IDE - no context switching required

✨ Key Features

🤖 AI-Powered Workflow Creation

Create complex n8n workflows by simply describing what you need. Claude AI and Cursor IDE understand your intent and generate production-ready workflows.

🌍 Multi-Instance Management

Seamlessly manage multiple n8n environments (production, staging, development) from a single MCP server with intelligent instance routing.

🛠️ 17 Comprehensive Tools

Complete workflow lifecycle coverage:

  • 8 Workflow Tools - Create, update, delete, activate, execute
  • 4 Execution Tools - Monitor, retry, analyze runs
  • 5 Tag Tools - Organize and categorize workflows
  • 6 Credential Tools (Epic 2) - Secure credential management

💬 Natural Language Interface

No JSON editing required. Build workflows like this:

"Create a webhook workflow that validates customer emails, sends a Slack notification, and stores data in PostgreSQL"

🔒 Secure by Design

  • Built-in credential protection
  • API key encryption
  • Secure multi-instance configuration
  • Never exposes sensitive data in logs

📚 Comprehensive Documentation

  • 38+ documentation pages with guides and tutorials
  • Interactive examples and workflow patterns
  • Troubleshooting guides and FAQs
  • API reference with complete tool documentation

🚀 Quick Start

Prerequisites

  • Node.js v14+ (v18+ recommended)
  • npm v7+
  • n8n instance with API access (tested with n8n v1.82.3+)
  • Claude Desktop or Cursor IDE

Installation

bash
# Install globally via npm
npm install -g @kernel.salacoste/n8n-workflow-builder

# Verify installation
npx @kernel.salacoste/n8n-workflow-builder --version

Configuration

Option 1: Multi-Instance (Recommended)

Create .config.json in your project root:

json
{
  "environments": {
    "production": {
      "n8n_host": "https://n8n.example.com",
      "n8n_api_key": "your_production_api_key"
    },
    "staging": {
      "n8n_host": "https://staging.n8n.example.com",
      "n8n_api_key": "your_staging_api_key"
    },
    "development": {
      "n8n_host": "http://localhost:5678",
      "n8n_api_key": "your_dev_api_key"
    }
  },
  "defaultEnv": "development"
}

Option 2: Single Instance (Backward Compatible)

Create .env file:

bash
N8N_HOST=https://your-n8n-instance.com
N8N_API_KEY=your_api_key

Claude Desktop Integration

Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

json
{
  "mcpServers": {
    "n8n-workflow-builder": {
      "command": "npx",
      "args": ["@kernel.salacoste/n8n-workflow-builder"]
    }
  }
}

Restart Claude Desktop and you're ready to go! 🎉

Cursor IDE Integration

Add to .cursor/mcp.json in your workspace:

json
{
  "mcpServers": {
    "n8n-workflow-builder": {
      "command": "npx",
      "args": ["@kernel.salacoste/n8n-workflow-builder"]
    }
  }
}

📖 Complete Documentation

Explore our comprehensive documentation site:

🌐 Full Documentation

Quick Links

SectionDescription
🚀 Quick Start TutorialBuild your first workflow in 5 minutes
📦 Installation GuideDetailed setup instructions
🔧 ConfigurationMulti-instance and environment setup
🛠️ API ReferenceComplete tool documentation
🏗️ Multi-Instance SetupManage multiple n8n environments
💡 Usage PatternsBest practices and conversation patterns
🐛 TroubleshootingCommon issues and solutions

🎨 Examples

Example 1: Create a Webhook Workflow

You:

Create a webhook workflow in staging that:

  • Receives POST requests at /customer-signup
  • Validates email and name fields
  • Sends welcome email via Gmail
  • Stores customer in PostgreSQL

Claude: ✅ Creates complete workflow with validation, email, and database nodes

Example 2: Multi-Instance Workflow Management

You:

List all active workflows in production that haven't run in the last 7 days

Claude: 📊 Analyzes production environment and identifies stale workflows

Example 3: Debug Failed Executions

You:

Debug workflow 456 in production - it's been failing with errors

Claude: 🔍 Retrieves execution history, identifies root cause, and suggests fixes

Example 4: Credential Management

You:

Show me the schema for OAuth2 credentials, then help me create credentials for Google Sheets API

Claude: 🔐 Retrieves credential schema and guides you through secure credential creation


🛠️ MCP Tools Reference

Workflow Management (8 tools)

ToolDescriptionExample Use Case
list_workflowsList all workflows with filtering"Show me active workflows in production"
get_workflowRetrieve complete workflow details"Get workflow 123 from staging"
create_workflowBuild new workflows from scratch"Create a daily report workflow"
update_workflowModify existing workflows"Add error handling to workflow 456"
delete_workflowRemove workflows"Delete workflow 789"
activate_workflowEnable workflow execution"Activate workflow 123"
deactivate_workflowDisable workflow execution"Deactivate workflow 456"
execute_workflowManually trigger workflow runs"Execute workflow 789 with test data"

Execution Management (4 tools)

ToolDescriptionExample Use Case
list_executionsView execution history with filters"Show failed executions from today"
get_executionDetailed execution information"Get execution 9876 details"
delete_executionRemove execution records"Delete old test executions"
retry_executionRetry failed workflow runs"Retry execution 9876"

Tag Management (5 tools)

ToolDescriptionExample Use Case
list_tags / get_tagsRetrieve all workflow tags"Show all workflow tags"
get_tagGet specific tag information"Get tag details for 'email-automation'"
create_tagCreate workflow organization tags"Create tag 'customer-workflows'"
update_tagModify tag information"Rename tag to 'legacy-workflows'"
delete_tagRemove workflow tags"Delete tag 'deprecated'"

Credential Management (6 tools - Epic 2)

ToolDescriptionExample Use Case
get_credential_schemaGet credential type JSON schema"Show schema for httpBasicAuth"
list_credentialsSecurity guidance (blocked by n8n API)"List credentials guidance"
get_credentialSecurity guidance (blocked by n8n API)"Get credential guidance"
create_credentialCreate credentials with schema validation"Create Gmail OAuth2 credentials"
update_credentialImmutability guidance (DELETE + CREATE)"Update credential guidance"
delete_credentialPermanently remove credentials"Delete credential 123"

🏗️ Multi-Instance Architecture

Manage multiple n8n environments with intelligent routing:

┌─────────────────────────────────────┐
│   MCP Server (Single Instance)     │
├─────────────────────────────────────┤
│                                     │
│  ┌──────────┐  ┌──────────┐       │
│  │ ConfigLoader│ EnvironmentMgr   │
│  └──────────┘  └──────────┘       │
│         │            │             │
│         ▼            ▼             │
│  ┌─────────────────────────┐      │
│  │   Instance Routing      │      │
│  └─────────────────────────┘      │
│         │                          │
└─────────┼──────────────────────────┘
          │
    ┌─────┴─────┬─────────────┬──────────────┐
    │           │             │              │
    ▼           ▼             ▼              ▼
┌────────┐  ┌────────┐   ┌────────┐    ┌────────┐
│  Dev   │  │Staging │   │  Prod  │    │Custom  │
│ n8n    │  │  n8n   │   │  n8n   │    │  n8n   │
└────────┘  └────────┘   └────────┘    └────────┘

Benefits:

  • ✅ Single MCP server manages all environments
  • ✅ Automatic instance routing based on context
  • ✅ Separate API keys per environment
  • ✅ Easy environment switching in conversations

🎯 Use Cases

🚀 Development Workflow

  1. Build in Development: Create and test workflows locally
  2. Deploy to Staging: Validate in QA environment
  3. Promote to Production: Deploy with confidence

📊 Operations & Monitoring

  • Monitor execution status across environments
  • Debug failed workflows with detailed analysis
  • Track workflow performance and reliability

🔄 Workflow Migration

  • Export workflows from one instance
  • Import to another with automatic adaptation
  • Bulk operations across environments

📝 Documentation & Learning

  • Generate workflow documentation automatically
  • Learn n8n patterns through AI guidance
  • Explore workflow examples and templates

🔒 Security & Best Practices

Credential Protection

  • ✅ .config.json automatically excluded from git via .gitignore
  • ✅ API keys never logged (only first 20 characters shown)
  • ✅ Credentials encrypted by n8n API
  • ✅ No sensitive data in npm packages

Multi-Instance Security

  • ✅ Separate API keys per environment
  • ✅ Production keys isolated from development
  • ✅ Instance validation before API calls

Safe Operations

⚠️ IMPORTANT: Be careful with destructive operations!

- Always test in development first
- Use get_workflow to backup before modifications
- Review workflow details before deletion
- Enable debug mode for troubleshooting

🐛 Troubleshooting

Common Issues

Symptoms: Claude/Cursor can't find n8n tools

Solutions:

  1. Restart Claude Desktop / Cursor IDE
  2. Check claude_desktop_config.json / .cursor/mcp.json syntax
  3. Verify n8n instance is accessible
  4. Enable debug mode: DEBUG=true in environment

Full Debug Guide

Symptoms: "Request failed with status code 404"

Solutions:

  1. Verify n8n_host uses base URL (e.g., https://n8n.example.com)
  2. Do NOT include /api/v1 suffix (server adds it automatically)
  3. Check n8n API key has correct permissions
  4. Test connectivity: curl https://your-n8n-instance.com/api/v1/workflows

Configuration Guide

Symptoms: "Workflow cannot be activated without valid trigger"

Solutions:

  1. Ensure workflow has at least one trigger node (webhook, schedule, etc.)
  2. manualTrigger is NOT recognized by n8n API v1.82.3
  3. Server automatically adds valid triggers if missing

Error Reference

Get Help


📊 What's New

Version 0.9.3 (Latest) - Security & Documentation

  • 🔒 Security Fix: Prevented log files from being published to npm
  • 📦 Package Optimization: Reduced size to 653KB (from 699KB)
  • 📚 Documentation Enhancement: Added badges and improved npm metadata
  • ✅ API Key Rotation: Updated security practices

Version 0.9.0 - MCP Protocol Compliance

  • ✅ Full MCP notification handler support
  • ✅ Fixed "Method 'notifications/initialized' not found" error
  • 📦 Package size optimization: 1.3MB → 278KB
  • 🏗️ Multi-instance architecture with intelligent routing
  • 🔐 Enhanced credential management with schema validation

Epic 2 Complete (13/13 Stories) - Advanced API Implementation

  • ✅ 17 MCP Tools implemented (8 workflows + 4 executions + 5 tags + 6 credentials)
  • ✅ 100% test success rate across all implementations
  • ✅ 12,000+ lines of documentation with comprehensive examples
  • ✅ Production-ready quality with zero bugs

View Full Changelog


🗺️ Roadmap

✅ Completed

  • Core workflow CRUD operations
  • Execution management and monitoring
  • Tag-based workflow organization
  • Multi-instance architecture
  • Credential lifecycle management
  • Comprehensive documentation site (38+ pages)
  • GitHub Pages deployment with CI/CD

🚧 In Progress

  • Workflow templates library
  • Enhanced error recovery patterns
  • Performance optimization for large workflows
  • Advanced filtering and search capabilities

🔮 Planned

  • Visual workflow editor integration
  • Workflow version control and rollback
  • Collaborative workflow development
  • Advanced analytics and insights
  • Workflow marketplace and sharing

Suggest a Feature


🤝 Contributing

We welcome contributions! Here's how you can help:

Ways to Contribute

  • 🐛 Report Bugs: Create an issue
  • 💡 Suggest Features: Open a discussion
  • 📖 Improve Documentation: Submit documentation improvements
  • 🔧 Submit Pull Requests: Fix bugs or add features

Development Setup

bash
# Clone repository
git clone https://github.com/salacoste/mcp-n8n-workflow-builder.git
cd mcp-n8n-workflow-builder

# Install dependencies
npm install

# Build project
npm run build

# Run tests
npm test

# Start development server
npm run dev

Code Standards

  • ✅ TypeScript for type safety
  • ✅ ESLint for code quality
  • ✅ Prettier for formatting
  • ✅ Jest for testing
  • ✅ Conventional commits

Contributing Guide


📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

What This Means

  • ✅ Commercial use allowed
  • ✅ Modification allowed
  • ✅ Distribution allowed
  • ✅ Private use allowed
  • ⚠️ No warranty provided
  • ⚠️ No liability assumed

Full License Details


🙏 Acknowledgments

Built with:

Special thanks to:

  • The n8n team for building an amazing automation platform
  • The Anthropic team for Claude AI and MCP
  • All contributors and users providing feedback

📞 Get in Touch


⬆ Back to Top

Made with ❤️ using Claude AI

⭐ If you find this useful, please star the repo!

Cài đặt

TypingMind
{
  "mcpServers": {
    "mcp-n8n-workflow-builder": {
      "command": "n8n-workflow-builder",
      "args": [
        "--json-rpc"
      ]
    }
  }
}

Công cụ có sẵn

  • list_workflows

    List all workflows from n8n with essential metadata only (ID, name, status, dates, node count, tags). Supports filtering by active status. Optimized for performance to prevent large data transfers.

  • execute_workflow

    Manually execute a workflow by ID

  • create_workflow

    Create a new workflow in n8n

  • get_workflow

    Get a workflow by ID

  • update_workflow

    Update an existing workflow

  • patch_workflow

    Partially update workflow (returns guidance - PATCH not supported by n8n API). Use update_workflow for actual updates.

  • delete_workflow

    Delete a workflow by ID

  • activate_workflow

    Activate a workflow by ID

  • deactivate_workflow

    Deactivate a workflow by ID

  • list_executions

    List all executions from n8n with optional filters

  • get_execution

    Get details of a specific execution by ID

  • delete_execution

    Delete an execution by ID

  • retry_execution

    Retry a failed workflow execution (creates new execution). Only works for executions with status "error".

  • create_tag

    Create a new tag

  • get_tags

    Get all tags

  • get_tag

    Get a tag by ID

  • update_tag

    Update a tag

  • delete_tag

    Delete a tag

  • list_credentials

    List all credentials (metadata only, sensitive data excluded for security). Returns credential ID, name, type, nodes access information, and timestamps. Actual credential data (passwords, tokens, keys) is never returned.

  • get_credential

    Get credential by ID (returns guidance - GET not supported by n8n API for security). Credentials contain sensitive data and cannot be read through REST API.

  • update_credential

    Update credential (returns guidance - PUT not supported by n8n API for security). Use delete + create pattern instead.

  • create_credential

    Create a new credential for external service authentication. Supports multiple credential types (httpBasicAuth, httpHeaderAuth, OAuth2, etc.). Use get_credential_schema to understand required fields for each type. Sensitive data is automatically encrypted by n8n.

  • delete_credential

    Delete a credential by ID. Removes the credential from n8n permanently. Workflows using this credential will need to be updated.

  • get_credential_schema

    Get JSON schema for a specific credential type (e.g., httpBasicAuth, googleDriveOAuth2Api). Returns field definitions, types, required fields, and validation rules to help create credentials programmatically.

Dùng MCP n8n工作流构建器MCP服务器 với nhiều mô hình AI

TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên sau khi kết nối n8n工作流构建器MCP服务器, bạn có thể dùng với nhiều mô hình AI khác nhau trong TypingMind thay vì phải thiết lập riêng cho từng mô hình. MCP này chạy cục bộ thông qua trình kết nối MCP của TypingMind trên thiết bị của bạn.

Hướng dẫn thiết lập để dùng trình kết nối cục bộ

Dùng cách này khi máy chủ MCP cần truy cập các tệp, ứng dụng hoặc tài nguyên riêng tư trên máy tính của bạn.

1

Mở cài đặt MCP

Trong TypingMind, vào Cài đặt, Cài đặt nâng cao, rồi đến Giao thức ngữ cảnh mô hình và chọn Cài trình kết nối.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Nhấp vào biểu tượng Cài đặt.
  3. Vào Cài đặt nâng cao.
  4. Mở mục Giao thức ngữ cảnh mô hình.
  5. Nhấp vào Cài trình kết nối rồi chọn Thiết bị này.
Màn hình thiết lập trình kết nối MCP của TypingMind với tùy chọn Thiết bị này được chọn
2

Chạy lệnh trình kết nối

Chọn Thiết bị này, sao chép lệnh từ TypingMind và chạy trong Terminal. Giữ tiến trình chạy trong khi bạn dùng MCP.

  1. Sao chép lệnh thiết lập hiển thị trong TypingMind.
  2. Mở Terminal trên macOS hoặc Windows Terminal trên Windows.
  3. Dán và chạy lệnh.
  4. Xác nhận cài đặt gói nếu Terminal hỏi bạn có muốn tiếp tục không.
  5. Giữ tiến trình trong cửa sổ Terminal chạy trong khi dùng các công cụ MCP.
3

Thêm n8n工作流构建器MCP服务器 làm máy chủ

Khi trạng thái trình kết nối là Sẵn sàng, nhấp vào Sửa máy chủ và dán cấu hình máy chủ MCP.

  1. Đợi đến khi trạng thái trình kết nối hiển thị Sẵn sàng.
  2. Nhấp vào Sửa máy chủ.
  3. Dán cấu hình máy chủ MCP của n8n工作流构建器MCP服务器.
  4. Lưu danh sách máy chủ.
  5. Làm mới nếu bạn muốn xác nhận trình kết nối vẫn sẵn sàng.
Cài đặt MCP của TypingMind hiển thị máy chủ đang hoạt động và nút Sửa máy chủ
{
  "mcpServers": {
    "mcp-n8n-workflow-builder": {
      "command": "npx",
      "args": [
        "-y",
        "@kernel.salacoste/n8n-workflow-builder"
      ]
    }
  }
}
4

Dùng kết nối với nhiều mô hình

Lưu danh sách máy chủ, mở Plugin, bật các công cụ MCP của n8n工作流构建器MCP服务器, sau đó chọn bất kỳ mô hình AI nào được hỗ trợ trong TypingMind và dùng các công cụ trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.

  1. Mở trang Plugin trong TypingMind.
  2. Bật các công cụ MCP của n8n工作流构建器MCP服务器.
  3. Bắt đầu cuộc trò chuyện và chọn mô hình AI bạn muốn dùng.
  4. Dùng các công cụ MCP trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.
  5. Chuyển sang mô hình AI khác bất cứ khi nào cần mà không phải kết nối lại MCP.
Cuộc trò chuyện TypingMind dùng các công cụ MCP đã bật với một mô hình AI được chọn
Bạn có thể dùng n8n工作流构建器MCP服务器 giúp tôi làm việc này không?
n8n工作流构建器MCP服务器
Được. Tôi đã đọc.
Đây là kết quả tôi tìm được bằng n8n工作流构建器MCP服务器.

Câu hỏi thường gặp

Máy chủ MCP n8n工作流构建器MCP服务器 dùng để làm gì?

n8n工作流构建器MCP服务器 là máy chủ MCP cho phép các ứng dụng AI tương thích kết nối với công cụ và ngữ cảnh bên ngoài. Trong TypingMind, bạn chỉ cần thêm máy chủ MCP này một lần để các công cụ của nó có sẵn trong không gian làm việc AI của bạn.

Bạn có thể dùng MCP n8n工作流构建器MCP服务器 với nhiều mô hình AI trong TypingMind không?

Có. TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên bạn có thể dùng n8n工作流构建器MCP服务器 với nhiều mô hình AI như Claude, ChatGPT, Gemini hoặc các mô hình khác đã cấu hình trong TypingMind mà không cần thiết lập máy chủ MCP riêng cho từng mô hình.

Vì sao nên dùng MCP n8n工作流构建器MCP服务器 với TypingMind?

TypingMind là một trong những giao diện trò chuyện với LLM tốt nhất vì tập hợp nhiều mô hình AI, prompt, plugin, tác nhân AI, khóa API và công cụ MCP vào một không gian làm việc. Khi kết nối n8n工作流构建器MCP服务器, bạn có thể dùng các công cụ MCP của dịch vụ này với những mô hình ưa thích, đồng thời giữ quy trình trò chuyện gọn gàng trong TypingMind.

Làm cách nào để kết nối MCP n8n工作流构建器MCP服务器 với TypingMind?

n8n工作流构建器MCP服务器 hoạt động thông qua trình kết nối MCP cục bộ của TypingMind. Đây là lựa chọn phù hợp nhất khi máy chủ MCP cần truy cập tệp cục bộ, ứng dụng máy tính, công cụ dòng lệnh hoặc tài nguyên riêng trên máy tính của bạn.

MCP n8n工作流构建器MCP服务器 cung cấp những công cụ nào trong TypingMind?

n8n工作流构建器MCP服务器 cung cấp 24 công cụ MCP mà bạn có thể bật từ trang Plugin của TypingMind để dùng trong trò chuyện hoặc gán cho tác nhân AI.

Bạn có cần chia sẻ khóa API với TypingMind để dùng MCP n8n工作流构建器MCP服务器 không?

Không. TypingMind ưu tiên xử lý cục bộ và cho phép bạn kiểm soát nhà cung cấp mô hình, khóa API, prompt và cấu hình MCP. Nếu n8n工作流构建器MCP服务器 yêu cầu xác thực, hãy thêm các header, cài đặt OAuth hoặc cấu hình cục bộ cần thiết cho máy chủ MCP đó khi tạo kết nối.

Workflows List

List of all available workflows

Execution Statistics

Summary statistics of workflow executions

Schedule Triggered Workflow

Create a workflow that runs on a schedule

HTTP Webhook Workflow

Create a workflow that responds to HTTP webhook requests

Data Transformation Workflow

Create a workflow for processing and transforming data

External Service Integration Workflow

Create a workflow that integrates with external services

API Data Polling Workflow

Create a workflow that polls an API and processes data

Máy chủ MCP liên quan

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇