Cover image
Try Now
2025-04-09

🪄 MCP Server pour la création et la gestion programmatiques des flux de travail N8N. Permet aux assistants AI de construire, de modifier et de gérer les workflows sans intervention directe de l'utilisateur via un ensemble complet d'outils et de ressources pour interagir avec l'API REST de N8N.

3 years

Works with Finder

1

Github Watches

2

Github Forks

5

Github Stars

mcp-n8n-builder

A Model Context Protocol (MCP) server for programmatic creation and management of n8n workflows. This server provides tools and resources for interacting with n8n's REST API, allowing AI assistants to build, modify, and manage workflows without direct user intervention.

Features

  • 🔄 Workflow Management: Create, read, update, delete, activate, and deactivate workflows
  • 📊 Execution Management: List and retrieve workflow execution details
  • Schema Validation: Comprehensive validation with Zod for both input and output data
  • 🔍 Node Validation: Validates node types against n8n's available nodes before workflow creation to prevent errors
  • 🤔 Smart Suggestions: Provides suggestions for similar node types when invalid nodes are detected
  • 🛠️ Error Handling: Detailed error messages for troubleshooting
  • 📝 Documentation: Extensive documentation for all tools and resources
  • 🔍 Search & Filter: Filter workflows by name, tags, or active status

Configuration

This server requires configuration through your MCP client. Here are examples for different environments:

Cline Configuration

Add this to your Cline MCP settings:

{
	"mcpServers": {
		"n8n-workflow-builder": {
			"command": "npx",
			"args": ["-y", "mcp-n8n-builder"],
			"env": {
				"N8N_HOST": "http://localhost:5678/api/v1",
				"N8N_API_KEY": "your-n8n-api-key",
				"OUTPUT_VERBOSITY": "concise" // Options: 'concise' or 'full'
			}
		}
	}
}

Claude Desktop with WSL Configuration

For WSL environments, add this to your Claude Desktop configuration:

{
	"mcpServers": {
		"n8n-workflow-builder": {
			"command": "wsl.exe",
			"args": [
				"bash",
				"-c",
				"N8N_HOST=http://localhost:5678/api/v1 N8N_API_KEY=your-n8n-api-key OUTPUT_VERBOSITY=concise npx -y mcp-n8n-builder"
			]
		}
	}
}

Environment Variables

The server can be configured using environment variables:

Variable Description Default
N8N_HOST URL of the n8n API http://localhost:5678/api/v1
N8N_API_KEY API key for n8n authentication ""
SERVER_NAME Name of the MCP server "n8n-workflow-builder"
SERVER_VERSION Version of the MCP server Package version
LOG_LEVEL Logging level "info"
CACHE_ENABLED Enable caching false
CACHE_TTL Cache TTL in seconds 300
OUTPUT_VERBOSITY Output verbosity level (concise or full) "concise"

MCP Tools

Node Management

  • list_available_nodes: Lists all available nodes in the n8n instance. IMPORTANT: Use this tool BEFORE creating or updating workflows to ensure you only use valid node types. This helps prevent errors caused by using node types that don't exist in the current n8n instance.

Workflow Management

  • list_workflows: Lists all workflows from n8n with their basic information including ID, name, status, creation date, and tags. Results can be filtered by active status, tags, or name.
  • create_workflow: Creates a new workflow in n8n with specified nodes and connections. Returns the created workflow with its assigned ID. Validates that all node types exist in the n8n instance.
  • get_workflow: Retrieves complete details of a specific workflow by its ID, including all nodes, connections, settings, and metadata.
  • update_workflow: Updates an existing workflow with new configuration. The entire workflow structure must be provided, not just the parts being changed. Validates that all node types exist in the n8n instance.
  • delete_workflow: Permanently deletes a workflow by its ID. This action cannot be undone.
  • activate_workflow: Activates a workflow by its ID, enabling it to run automatically based on its trigger.
  • deactivate_workflow: Deactivates a workflow by its ID, preventing it from running automatically.

Execution Management

  • list_executions: Lists workflow execution history with details on success/failure status, duration, and timestamps. Results can be filtered by workflow ID, status, and limited to a specific number.
  • get_execution: Retrieves detailed information about a specific workflow execution, including execution time, status, and optionally the full data processed at each step.

MCP Resources

  • n8n://workflows: List of all workflows in n8n
  • n8n://workflows/{id}: Details of a specific n8n workflow
  • n8n://executions/{id}: Details of a specific n8n workflow execution

Development

Setup

  1. Clone the repository
  2. Install dependencies:
npm install
  1. Build the project:
npm run build
  1. Run in development mode:
npm run dev

Publishing

The project uses changesets for version management. To publish:

  1. Create a changeset:
npm changeset
  1. Version the package:
npm changeset version
  1. Publish to npm:
npm release

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT License - see the LICENSE file for details.

Acknowledgments

相关推荐

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • https://appia.in
  • Siri Shortcut Finder – your go-to place for discovering amazing Siri Shortcuts with ease

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • tomoyoshi hirata
  • Sony α7IIIマニュアルアシスタント

  • apappascs
  • Découvrez la collection la plus complète et la plus à jour de serveurs MCP sur le marché. Ce référentiel sert de centre centralisé, offrant un vaste catalogue de serveurs MCP open-source et propriétaires, avec des fonctionnalités, des liens de documentation et des contributeurs.

  • ShrimpingIt
  • Manipulation basée sur Micropython I2C de l'exposition GPIO de la série MCP, dérivée d'Adafruit_MCP230XX

  • jae-jae
  • MCP Server pour récupérer le contenu de la page Web à l'aide du navigateur sans tête du dramwright.

  • HiveNexus
  • Un bot de chat IA pour les petites et moyennes équipes, soutenant des modèles tels que Deepseek, Open AI, Claude et Gemini. 专为中小团队设计的 Ai 聊天应用 , 支持 Deepseek 、 Open Ai 、 Claude 、 Gemini 等模型。

  • ravitemer
  • Un puissant plugin Neovim pour gérer les serveurs MCP (Protocole de contexte modèle)

  • patruff
  • Pont entre les serveurs Olllama et MCP, permettant aux LLM locaux d'utiliser des outils de protocole de contexte de modèle

  • Sysc4lls
  • Lecteur de documentation IDA (Sort-of) MCP Server

    Reviews

    5 (1)
    Avatar
    user_CefI3C10
    2025-04-17

    As a devoted user of mcp applications, I have found the mcp-n8n-builder to be an exceptional tool. Created by spences10, this builder streamlines workflow automation effortlessly. It is well-documented and easy to integrate, making automation accessible to both novices and experts. Its seamless performance and the support from the community on GitHub further enhance its value. Highly recommended!