mcp-n8n-builder
The mcp-n8n-builder server allows programmatic creation and management of n8n workflows for AI assistants.
Workflow Management: Create, read, update, delete, activate, and deactivate workflows with detailed error handling and validation.
Execution Management: List and retrieve details of workflow executions, including success/failure status and data transformations.
Node Operations: List available nodes, validate node types, and receive smart suggestions for invalid nodes.
Filtering Capabilities: Filter workflows by name, tags, or active status, and executions by workflow ID, status (error, success, waiting), or limit.
Data Validation: Ensure data integrity with schema validation for inputs and outputs.
Detailed Views: Access workflow structures including nodes, connections, and settings, plus execution data showing input/output at each node.
Provides tools for programmatic creation and management of n8n workflows, allowing for listing, creating, updating, deleting, activating and deactivating workflows, as well as managing workflow executions.
Utilizes Zod for comprehensive schema validation of both input and output data in workflow management operations.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-n8n-builder list all my active workflows"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
Related MCP server: n8n-manager-mcp
โ ๏ธ Token Consumption Warning
This tool is a "token monster" due to the nature of n8n workflows:
N8N workflows are complex JSON structures with nested nodes, connections, parameters, and settings
A single workflow can easily consume thousands of tokens when viewed or edited
The JSON structure cannot be meaningfully reduced without losing essential workflow information
LLM context windows are finite - complex workflows may exceed available context
Mitigation Strategies
The tool implements several optimizations to reduce token usage:
Verbosity Control: Use
OUTPUT_VERBOSITY=concise(default) for summaries instead of full JSONObject Simplification: Workflow listings show only essential fields (id, name, status, node count)
Selective Guide Inclusion: Error messages include only relevant sections of the composition guide
Per-tool Verbosity: Override verbosity on individual tool calls with the
verbosityparameter
Recommended Usage
List workflows first to identify what you need (low token cost)
Work with simple workflows when possible
Use
conciseverbosity unless you specifically need full JSONBreak complex workflows into smaller pieces for easier management
Consider the token cost before retrieving or editing large workflows
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 |
| URL of the n8n API |
|
| API key for n8n authentication |
|
| Name of the MCP server |
|
| Version of the MCP server | Package version |
| Logging level |
|
| Enable caching |
|
| Cache TTL in seconds |
|
| Output verbosity level ( |
|
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 n8nn8n://workflows/{id}: Details of a specific n8n workflown8n://executions/{id}: Details of a specific n8n workflow execution
Development
Setup
Clone the repository
Install dependencies:
npm installBuild the project:
npm run buildRun in development mode:
npm run devPublishing
The project uses changesets for version management. To publish:
Create a changeset:
npm changesetVersion the package:
npm changeset versionPublish to npm:
npm releaseContributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
MIT License - see the LICENSE file for details.
Acknowledgments
Built on the Model Context Protocol
Powered by n8n
Available Tools
10 toolsactivate_workflowA
Activates a workflow by its ID, enabling it to run automatically based on its trigger (schedule, webhook, etc.). Note that only workflows with automatic trigger nodes can be activated - workflows with only manual triggers cannot be activated.
Inputs: id (required).
create_workflowA
Creates a new workflow in n8n with specified nodes and connections. Note that only workflows with automatic trigger nodes (schedule, webhook, etc.) can be activated - workflows with only manual triggers cannot be activated. Returns the created workflow with its assigned ID.
Inputs: workflow (required), activate.
deactivate_workflowA
Deactivates a workflow by its ID, preventing it from running automatically. The workflow will still exist and can be manually executed or reactivated later. Use this instead of deleting workflows that you might need again.
Inputs: id (required).
delete_workflowA
Permanently deletes a workflow by its ID. This action cannot be undone, so use with caution. Consider deactivating workflows instead if you might need them again later.
Inputs: id (required).
get_executionA
Retrieves detailed information about a specific workflow execution, including execution time, status, and optionally the full data processed at each step. Particularly useful for debugging failed workflows or understanding data transformations between nodes.
Inputs: id (required), includeData, verbosity.
get_workflowA
Retrieves complete details of a specific workflow by its ID, including all nodes, connections, settings, and metadata. Use this tool when you need to examine a workflow's structure before updating it or to understand how it works.
Inputs: id (required), verbosity.
list_available_nodesA
Lists all available nodes in the n8n instance. 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 do not exist in the current n8n instance.
Inputs: category, verbosity.
list_executionsA
Lists workflow execution history with details on success/failure status, duration, and timestamps. Use this tool to monitor workflow performance, troubleshoot issues, or verify that workflows are running as expected. Results can be filtered by workflow ID, status, and limited to a specific number.
Inputs: limit, status, verbosity, workflowId.
list_workflowsA
Lists all workflows from n8n with their basic information including ID, name, status, creation date, and tags. Use this tool to get an overview of available workflows before performing operations on specific workflows. Results can be filtered by active status, tags, or name.
Inputs: active, name, tags, verbosity.
update_workflowA
Updates an existing workflow with new configuration. Typically used after retrieving a workflow with get_workflow, modifying its structure, and then saving the changes. The entire workflow structure must be provided, not just the parts being changed.
Inputs: id (required), workflow (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogโฆ
TDQS
Scored across 10 tools
Each tool has a clearly distinct purpose with no overlap. For example, activate_workflow and deactivate_workflow are opposites, while create_workflow, update_workflow, and delete_workflow cover different lifecycle stages. The list_* tools target different resources (workflows, executions, nodes), and get_* tools retrieve specific items versus lists.
All tool names follow a consistent verb_noun pattern with snake_case throughout. Verbs like activate, create, deactivate, delete, get, list, and update are used predictably, and nouns like workflow, execution, and nodes are consistently paired with appropriate actions.
With 10 tools, this server is well-scoped for managing n8n workflows. It covers core operations (CRUD for workflows, activation/deactivation), monitoring (executions), and utilities (listing nodes), with each tool serving a clear and necessary function without bloat.
The toolset provides complete coverage for the n8n workflow management domain. It includes full CRUD lifecycle for workflows (create, get, update, delete, list), activation control, execution monitoring (list and get), and utility tools for node discovery, leaving no obvious gaps for agent operations.
Maintenance
Related MCP Connectors
Open-source Zapier/n8n alternative as an MCP server: agents build, run and debug your workflows.
Nifty's MCP server โ exposes tasks, projects, messages, and files as tools for AI agents.
Build and run AI workflows, agents, data tables and 1000+ API integrations from any MCP client.
n8n MCP โ query your own n8n instance (BYO).
Related MCP Servers
- AlicenseCqualityCmaintenanceMCP server that allow LLM in agent mode builds n8n workflows for you1040 npm52MIT
- AlicenseBqualityBmaintenanceMCP server for managing n8n workflows through AI assistants. Supports workflow CRUD operations, synchronization, inspection, and execution support for automation-focused workflows.19134 npm2MIT
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server that generates production-ready n8n workflows from natural language prompts. Transform simple descriptions into fully validated, deployable automation workflows using AI-powered code generation.1-
- FlicenseBqualityDmaintenanceA full-power MCP server for n8n that enables AI agents to create, read, update, delete, and test workflows and credentials, including webhook testing, validation, and backup/versioning.319-