n8n Workflow Builder MCP

n8n Workflow Builder MCP

n8n-workflow-builder-mcp•byifmelate

An MCP server that builds and manipulates n8n workflow JSON files locally by prompting with AI.

License: MIT License•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Creates and updates n8n workflows programmatically.
  • •Adds, edits, and deletes nodes in a workflow.
  • •Creates connections between workflow nodes and provides special tools for connecting AI components.
  • •Plans workflow changes without writing files, reviews plans in memory, and composes AI workflows in one call.

BEST FOR

  • •Generating workflow files offline for later import or version control.
  • •Building workflows for an older self-hosted n8n instance whose node typeVersions must be supported.
  • •Prompting AI to build n8n workflows.

ABOUT N8N-WORKFLOW-BUILDER-MCP

n8n Workflow Builder MCP is cataloged as an MCP server attributed to ifmelate. An MCP server that builds and manipulates n8n workflow JSON files locally by prompting with AI. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for n8n Workflow Builder MCP are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does the server require a running n8n instance?

No. It writes n8n workflow JSON files locally and does not need a running n8n instance.

Can the server execute n8n workflows?

No, workflow execution is not implemented yet.

What does reviewing a workflow plan do?

It applies the plan in memory and returns validation errors, warnings, and suggested fixes without writing files.

Upstream README

View this exact version on GitHub

README.md · e209812cceb2 · Fetched 2026-11-13 08:09:46 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

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.

n8n-workflow-builder-mcp MCP server

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:

Watch the 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:

claude mcp add n8n-workflow-builder -- npx -y n8n-workflow-builder-mcp

Then set the environment variables:

claude mcp add n8n-workflow-builder \
  -e N8N_API_URL=http://localhost:5678 \
  -e N8N_API_KEY=your-n8n-api-key-here \
  -- npx -y n8n-workflow-builder-mcp

N8N_VERSION is optional — the server auto-detects it from the API.

VS Code / Cursor

Add to your MCP config file (.vscode/mcp.json for VS Code, .cursor/mcp.json for Cursor):

{
  "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"
      }
    }
  }
}

Restart your IDE for changes to take effect.

Development Installation

For development or local testing, clone and build from source:

git clone https://github.com/ifmelate/n8n-workflow-builder-mcp.git
cd n8n-workflow-builder-mcp
npm install
npm run build

Then point your MCP client to the built entry point:

# Claude Code
claude mcp add n8n-workflow-builder -- node /absolute/path/to/n8n-workflow-builder-mcp/dist/index.js

# VS Code / Cursor — use the same JSON config above with "command": "node" and "args": ["/absolute/path/to/dist/index.js"]

For development with auto-rebuild:

npm run dev

Available MCP Tools

The server provides the following tools for working with n8n workflows:

Core Workflow Management

Tool NameDescriptionKey Parameters
create_workflowCreate a new n8n workflowworkflow_name, workspace_dir
list_workflowsList workflows in the workspacelimit (optional), cursor (optional)
get_workflow_detailsGet detailed information about a specific workflowworkflow_name, workflow_path (optional)
validate_workflowValidate a workflow file against node schemas and connectivityworkflow_name, workflow_path (optional)

Node Management

Tool NameDescriptionKey Parameters
add_nodeAdd a new node to a workflowworkflow_name, node_type, position (optional), parameters (optional), node_name (optional), typeVersion (optional), webhookId (optional), workflow_path (optional), connect_from (optional), connect_to (optional)
edit_nodeEdit an existing node in a workflowworkflow_name, node_id, node_type (optional), node_name (optional), position (optional), parameters (optional), typeVersion (optional), webhookId (optional), workflow_path (optional), connect_from (optional), connect_to (optional)
delete_nodeDelete a node from a workflowworkflow_name, node_id, workflow_path (optional)
list_available_nodesList available node types with optional filtering. Supports tag-style synonyms and multi-token OR/AND logicsearch_term (optional), n8n_version (optional), limit (optional), cursor (optional), tags (optional, default: true), token_logic (optional: 'or' default, or 'and')

Connection Management

Tool NameDescriptionKey Parameters
add_connectionCreate a connection between two nodesworkflow_name, source_node_id, source_node_output_name, target_node_id, target_node_input_name, target_node_input_index (optional), workflow_path (optional)
add_ai_connectionsWire AI model, tools, and memory to an agentworkflow_name, agent_node_id, model_node_id (optional), tool_node_ids (optional), memory_node_id (optional), embeddings_node_id (optional), vector_store_node_id (optional), vector_insert_node_id (optional), vector_tool_node_id (optional), workflow_path (optional)
connect_main_chainBuild a minimal main path through AI workflow nodes (Trigger → Model → Memory → Embeddings → Doc Loader → Vector Store → Vector Tool → Agent)workflow_name, workflow_path (optional), dry_run (optional), idempotency_key (optional)

Workflow Planning & Composition

Tool NameDescriptionKey Parameters
plan_workflowCreate a non-destructive plan (nodes and connections) to update a workflow. Does not write filesworkflow_name, target (nodes, connections), workspace_dir (optional)
review_workflow_planApply a plan in-memory and return validation errors, warnings, and suggested fixes. Does not write filesworkflow_name, plan, workflow_path (optional)
apply_workflow_planApply a previously reviewed plan to the workflow on disk (atomic write)workflow_name, plan, workflow_path (optional)
compose_ai_workflowCompose a complex AI workflow (agent + model + memory + embeddings + vector + tools + trigger) in one call, including wiring and basic validationworkflow_name, plan, n8n_version (optional)

Parameter Management

Tool NameDescriptionKey Parameters
suggest_node_paramsSuggest minimal valid parameters for a node type using defaults and required fieldsnode_type, typeVersion (optional), existing_parameters (optional)
list_missing_parametersList required parameters missing for a node considering visibility rulesnode_type, typeVersion (optional), parameters
fix_node_paramsReturn parameters with defaults applied for required fields that are missingnode_type, typeVersion (optional), parameters (optional)

Templates & Discovery

Tool NameDescriptionKey Parameters
list_template_examplesList node usage examples extracted from free templates. Filter by node_type or template_namenode_type (optional), template_name (optional), limit (optional), cursor (optional)
get_n8n_version_infoGet current N8N version and capabilitiesrandom_string

Validation behavior

validate_workflow promotes warnings to errors and additionally fails when any enabled node is not connected (directly or via AI ports) to the main chain starting at the inferred startNode. Use connect_from/connect_to or add_ai_connections to fix connectivity.

Troubleshooting

General

  1. Check your MCP config — make sure JSON is valid and the server name matches.
  2. Update Node.js to the latest LTS version.
  3. Clear npm cache if npx fails: npm cache clean --force
  4. Try global install as a fallback: npm install -g n8n-workflow-builder-mcp

Claude Code

  • Run claude mcp list to verify the server is registered.
  • Check logs with claude mcp logs n8n-workflow-builder.

VS Code / Cursor

  • Check the Output panel — select "MCP" from the dropdown to see server logs.
  • Make sure the server is enabled in Settings > Features > MCP Servers.
  • Restart the IDE after config changes.

Project Structure

  • /src: Main source code
  • /src/tools: MCP tools implementation
  • /src/models: Data models
  • /src/utils: Utility functions
  • /src/middleware: Authentication and middleware
  • /config: Configuration files
  • /tests: Test files
  • /workflow_nodes: n8n node definitions
  • /docs: Additional documentation

Contributing

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

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

MIT License

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for n8n Workflow Builder MCP from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/n8n-workflow-builder-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools