N8n Workflow BuilderSAFE
MCP server that allow LLM in agent mode builds n8n workflows for you
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
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.
DEMO VIDEO:
[](https://youtu.be/MKEVLM5QmPA?si=8SJQAcYGeAIuhaBm)
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
- Open your n8n instance in a browser
- Go to Settings > API Keys
- Click Create API Key
- Copy the generated key and use it in your configuration
Claude Code (Recommended)
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:5
cf4f0e699715OBSERVED · 2026-10-08Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.
claude mcp add n8n-workflow-builder-mcp --env ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY} --env API_KEYS=${API_KEYS} --env CREDENTIALS_DIR=${CREDENTIALS_DIR} --env ENCRYPTION_KEY=${ENCRYPTION_KEY} -- npx -y [email protected]{
"mcpServers": {
"n8n-workflow-builder-mcp": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"ANTHROPIC_API_KEY": "${ANTHROPIC_API_KEY}",
"API_KEYS": "${API_KEYS}",
"CREDENTIALS_DIR": "${CREDENTIALS_DIR}",
"ENCRYPTION_KEY": "${ENCRYPTION_KEY}"
}
}
}
}Exposed tools (25)
10 read · 11 write · 4 destructive. Blast radius: 4 tools can delete or overwrite — an agent that can be talked into calling a tool can be talked into calling this one.
| Tool | Risk | Description |
|---|---|---|
add_ai_connections | write | Wire AI model, tools, and memory to an agent |
add_connection | write | Create a connection between two nodes |
add_node | write | Add a node to an n8n workflow |
apply_workflow_plan | write | Apply a previously reviewed plan to the workflow on disk (atomic write). |
compose_ai_workflow | read | Compose a complex AI workflow (agent + model + memory + embeddings + vector + tools + trigger) in one call, including wiring and basic validation. |
connection_manage | destructive | Manage connections between nodes (create, remove, remove all) |
create_workflow | write | Create a new n8n workflow |
credential_manage | destructive | Manage credentials (store, get, update, delete, list, rotate key) |
delete_node | destructive | Delete a node from a workflow |
edit_node | write | Edit an existing node in a workflow |
fix_node_params | read | Return parameters with defaults applied for required fields that are missing. |
get_n8n_version_info | read | Get N8N version info and capabilities |
get_workflow_details | read | Get workflow details by name or path |
list_available_nodes | read | List available node types. Supports tag-style synonym search and multi-token queries. By default, multiple terms use OR logic (e.g., |
list_missing_parameters | read | List required parameters missing for a node considering visibility rules. |
list_workflows | read | List workflows in the workspace |
n8n_manage | write | Manage workflows in n8n (deploy, activate, get, check execution, list) |
node_manage | write | Manage nodes in workflows (search, add, replace) |
plan_workflow | write | Create a non-destructive plan (nodes and connections) to update a workflow. Does not write files. |
review_workflow_plan | write | Apply a plan in-memory and return validation errors, warnings, and suggested fixes. Does not write files. |
suggest_node_params | read | Suggest minimal valid parameters for a node type using defaults and required fields. |
validate_workflow | read | Validate a workflow file against known node schemas |
workflow_create | write | Create a new workflow |
workflow_manage | destructive | Manage workflows (create, save, load, list, delete, generate) |
workflow_test | read | Test workflows and check test status |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | WARN |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (7 observation(s))
- Network
- declared (5 observation(s))
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (14)
connection_manage, credential_manage, delete_node, workflow_manage
.cursorignore
attemptedPath: '/etc/passwd',
attemptedPath: '/etc/passwd',
attemptedPath: '/etc/passwd',
resolveWorkflowPath('test', '/etc/passwd');resolveWorkflowPath('test', '/root/secret');import { N8nWorkflow, N8nWorkflowNode } from '../../types/n8n';import { resolveWorkflowPath, tryDetectWorkspaceForName } from '../../utils/workspace';import { ToolNames, ErrorCodes } from '../../utils/constants';import { loadNodeTypesForCurrentVersion } from '../../validation/nodeTypesLoader';import { getCurrentN8nVersion } from '../../nodes/versioning';@modelcontextprotocol/sdk, @types/uuid, abort-controller, ajv, ajv-formats, better-sqlite3, cors, dotenv
catalog.sqlite
Gates applied: no_behavioural_pass.
cf4f0e699715full audit observations/trust-audit/mcp-server/ifmelate__n8n-workflow-builder-3.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | cf4f0e699715 | SAFE | B | 89 | first audit |
Questions
What is the N8n Workflow Builder MCP server?
MCP server that allow LLM in agent mode builds n8n workflows for you
What tools does N8n Workflow Builder expose?
25 in total: 10 read-only, 11 that write, and 4 that can delete or overwrite (connection_manage, credential_manage, delete_node, workflow_manage). Every one is listed on this page with its risk.
Is N8n Workflow Builder safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B. Separately from the audit: 4 of its tools can destroy data, so scope the token you give it to what you actually need.
What credentials does N8n Workflow Builder need?
It reads ANTHROPIC_API_KEY, API_KEYS, CREDENTIALS_DIR, ENCRYPTION_KEY, JWT_SECRET, KEY_ROTATION_INTERVAL, LLM_MAX_TOKENS, MCP_API_KEY, N8N_API_KEY, OPENAI_API_KEY and SKIP_AUTH from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does N8n Workflow Builder run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as n8n-workflow-builder-mcp at 2.0.0.
How current is this page?
The grade is for one exact copy of the source (cf4f0e699715), read on 2026-10-08. The repository is watched and re-audited when it changes.