mcp-n8n-builder logo

mcp-n8n-builder

Community
spences10

🪄 MCP server for programmatic creation and management of n8n workflows. Enables AI assistants to build, modify, and manage workflows without direct user intervention through a comprehensive set of tools and resources for interacting with n8n's REST API.

Publisherspences10
Repositorymcp-n8n-builder
LanguageTypeScript
Forks
25
Stars
86
Available tools
10
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    mcp-n8n-builder exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 10 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    86 stars and 25 forks from the linked repository.

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

⚠️ 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 JSON
  • Object 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 verbosity parameter

Recommended Usage

  • List workflows first to identify what you need (low token cost)
  • Work with simple workflows when possible
  • Use concise verbosity unless you specifically need full JSON
  • Break 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:

json
{
	"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:

json
{
	"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:

VariableDescriptionDefault
N8N_HOSTURL of the n8n APIhttp://localhost:5678/api/v1
N8N_API_KEYAPI key for n8n authentication""
SERVER_NAMEName of the MCP server"n8n-workflow-builder"
SERVER_VERSIONVersion of the MCP serverPackage version
LOG_LEVELLogging level"info"
CACHE_ENABLEDEnable cachingfalse
CACHE_TTLCache TTL in seconds300
OUTPUT_VERBOSITYOutput 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:
bash
npm install
  1. Build the project:
bash
npm run build
  1. Run in development mode:
bash
npm run dev

Publishing

The project uses changesets for version management. To publish:

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

Contributing

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

License

MIT License - see the LICENSE file for details.

Acknowledgments

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "spences10-mcp-n8n-builder": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-n8n-builder"
      ]
    }
  }
}

Available Tools

  • list_available_nodes

    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.

  • list_workflows

    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.

  • create_workflow

    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.

  • get_workflow

    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.

  • update_workflow

    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.

  • delete_workflow

    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.

  • activate_workflow

    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.

  • deactivate_workflow

    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.

  • list_executions

    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.

  • get_execution

    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.

Use mcp-n8n-builder MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once mcp-n8n-builder is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add mcp-n8n-builder as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the mcp-n8n-builder MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "spences10-mcp-n8n-builder": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-n8n-builder"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the mcp-n8n-builder MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the mcp-n8n-builder MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use mcp-n8n-builder to help me with this task?
mcp-n8n-builder
Sure. I read it.
Here is what I found using mcp-n8n-builder.

Frequently asked questions

What is the mcp-n8n-builder MCP server used for?

mcp-n8n-builder is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use mcp-n8n-builder MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use mcp-n8n-builder with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use mcp-n8n-builder MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With mcp-n8n-builder connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect mcp-n8n-builder MCP to TypingMind?

mcp-n8n-builder runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does mcp-n8n-builder MCP provide in TypingMind?

mcp-n8n-builder exposes 10 MCP tools that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use mcp-n8n-builder MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If mcp-n8n-builder requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

n8n Workflows

List of all workflows in n8n

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇