
n8n Manager MCP
io.github.lukisch由 GitHub 帳號 lukisch 發布v0.1.0更新於 Oct 24, 2026
MCP server for n8n workflow management -- view, create, sync and manage workflows via AI.
概覽
本機 stdio MCP 伺服器,讓 AI 助理在一個或多個 n8n 執行個體上檢視、建立、更新、刪除、啟用及匯入匯出工作流程。
- 可以做什麼
- 列出、檢視、建立、更新、刪除工作流程,並啟用或停用工作流程
- 將工作流程匯出為 JSON 並匯入另一台伺服器,檢視最近的執行紀錄與狀態
- 透過內建離線節點目錄查詢 n8n 節點類型及其輸入輸出
- 管理伺服器連線:新增、列出、測試連線與移除 n8n 執行個體
- 檢視與切換安全設定,列出變更前備份並從備份還原工作流程
- 從選用的搭配服務 n8n-workflow-manager 讀取版本、決策與同步歷程
- 適用情境
- 適合需要建置或維護 n8n 自動化流程的人:讓助理草擬工作流程、在預備與正式環境之間搬移,或不必開啟 n8n 介面就能查看執行結果。唯讀模式與自動備份也適合希望對助理所做變更留下稽核紀錄的團隊。
- 執行需求
- 透過 npx 在本機執行(需要 Node.js)。需要可連線的 n8n 執行個體網址與 API 金鑰,並在啟動伺服器前透過主機環境變數 N8N_MANAGER_SERVER_URL 與 N8N_MANAGER_API_KEY 提供。可選用 N8N_MANAGER_READ_ONLY 啟用唯讀模式,N8N_MCP_MANAGER_URL 連接搭配的管理服務。僅支援桌面用戶端。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 n8n Manager MCP,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
n8n Manager MCP Server
Part of the ellmos-ai family and the open-bricks umbrella.
[npm] [Tests] [MCP Tools] [Node.js] [Safety] [Security] [Third-Party] [Level 1 SBOM: Plain Text] [Attribution: NOTICE] [Verified] [Last-Checked] [License: MIT] [LLM Ready] [Ecosystem: ellmos--ai] [Umbrella: open--bricks]
[!NOTE] For AI Assistants & LLMs: An
llms.txtindex file is available in the root directory for fast context ingestion, tool catalog references, and directory listings.
MCP (Model Context Protocol) server for managing n8n workflows via AI assistants like Claude, Cursor, and Windsurf.
Quick Navigation
System Architecture
The n8n Manager MCP Server operates as a local-first, stdio-connected bridge between AI development environments (Claude Code, Claude Desktop, Cursor, Windsurf) and local or remote n8n instances.
- Process Model: Runs purely in user space (
RunAsInvoker) as a dedicated Node.js child process communicating via standard input/output (stdio) using JSON-RPC 2.0. - Fail-Closed Safety Middleware: Every mutation tool call passes through an immutable safety gate before contacting n8n APIs or touching the filesystem.
- Multi-Instance Router: Seamlessly targets independent n8n instances (development, staging, production) with isolated API credentials and atomic configuration persistence.
- Offline Node Catalog: Provides instantaneous node schema introspection (
n8n_describe_nodes) without incurring API latency or network calls.
Architectural Topology Projection (4-View Model)
Dual Mermaid Diagrams
Component Architecture
Safe Workflow Mutation Lifecycle
Multi-Server Workflow Migration & Staging Synchronization Lifecycle
Directory Status
- npm package: published as
n8n-manager-mcp - Glama listing: public directory page for the ellmos-ai repo
- Enterprise DNA directory: additional public directory entry for
ellmos-ai/n8n-manager-mcp - PulseMCP listing: indexed as
ellmos-ai-n8n-manager - MCP namespace status: this repo contains
server.jsonandmcpNamemetadata forio.github.ellmos-ai/n8n-manager-mcp; some ecosystem directories still expose the legacyio.github.lukisch/n8n-manager-mcpname until their indexes refresh. - Search context: best matched by
n8n MCP server,n8n workflow management MCP,AI assistant n8n workflows, andellmos-ai n8n-manager-mcp.
Target Personas & Discoverability
High-Intent Search Queries
n8n mcp server claude codeai assistant n8n workflow managementlocal-first n8n mcp stdiosafe n8n automated workflow mutationn8n multi-server workflow sync mcpn8n describe nodes offline cataloglocal-stdio n8n agent automation without telemetrymodelcontextprotocol n8n typescript
Comparative Matrix & Alternatives
Core Capabilities & Safety Invariants
Features
- 19 Tools for complete n8n workflow management
- List, create, update, delete, and activate/deactivate workflows
- Safety controls: read-only mode, backup-before-delete/update, local restore, and audit log
- Multi-server support (connect to multiple n8n instances)
- Export/Import workflows between servers
- View execution history and status
- Built-in node catalog with descriptions
- Zero dependencies on Python -- connects directly to n8n REST API
Installation
Claude Desktop
Add to claude_desktop_config.json:
Claude Code
Manual
Quick Start
Natural Language Prompts
After installation, use these prompts directly in your AI assistant:
-
Add your n8n server:
"Add my n8n server named production at http://localhost:5678 with my API key"
-
List workflows:
"Show me all workflows on my n8n server"
-
Inspect nodes offline:
"Describe the HTTP Request and Webhook nodes so we can construct a new workflow"
-
Create a workflow:
"Create an n8n workflow that triggers on a webhook, fetches data from an API, and sends a Slack message"
-
Check executions:
"Show me the last 10 workflow executions on production"
-
Promote across environments:
"Export workflow 42 from staging and import it to production without activating"
End-to-End Developer & Agent Execution Showcase
Below is a step-by-step walkthrough of how an AI assistant (e.g. Claude Code or Cursor) interacts with n8n-manager-mcp across configuration, inspection, pre-mutation snapshotting, and rollback:
1. Multi-Server Registration & Health Check
Configure your n8n endpoints. Passwords and API keys are stored with restricted POSIX file permissions (0600) under ~/.n8n-manager-mcp/servers.json:
Response Receipt:
Verify connection reachability without modifying workflows:
Response Receipt:
2. Zero-Latency Offline Node Introspection
Inspect node schemas and connection ports instantaneously from the bundled catalog without making network requests (INV-NODE-09):
Response Receipt:
3. Safe Workflow Mutation with Automated Snapshot
When updating an existing workflow, n8n-manager-mcp automatically saves a timestamped JSON snapshot before sending changes to the n8n API (INV-BACK-03):
Response Receipt (Pre-Mutation Backup Verified):
4. Instant 1-Click Rollback
If a newly deployed workflow mutation causes unexpected behavior, restore the exact previous state in a single tool call:
Response Receipt:
5. Fail-Closed Read-Only Protection
To lock the environment against any modifications during security audits, set N8N_MANAGER_READ_ONLY=1. Any mutation call is blocked at process boundary (INV-READ-02):
Response Receipt (Fail-Closed Gate):
Available Tools
Optional: n8n-workflow-manager seam
n8n itself keeps no record of why a workflow changed. The sibling project
n8n-workflow-manager does: it
stores versions, a mandatory decision per mutation, and a sync history in a local
database. n8n_manager_history makes that record readable from this MCP server.
The seam is opt-in and read-only:
- Without
N8N_MCP_MANAGER_URL, nothing changes — every tool talks to n8n directly, as before. - With it set (for example
http://127.0.0.1:8100),n8n_manager_historyreads from the running manager. Omitworkflow_idto list the manager's workflows, pass it for full history. - IDs are manager IDs, not n8n instance IDs. The manager stores that mapping but exposes no route to resolve it, so this server does not guess a translation.
- If the manager is configured but unreachable, the tool fails with an explicit message instead of quietly answering from the n8n instance — that store has no decision history, so a substituted answer would be a different answer.
n8n_safety_statusreports the measured state of the seam (configured, reachable, manager version), not just the environment variable.
Setup: pip install n8n-workflow-manager, then n8n-manager serve (binds 127.0.0.1:8100).
The manager API is unauthenticated and loopback-only by design; a non-loopback URL is
flagged in n8n_safety_status.
Numeric guardrails are part of the MCP schemas: workflow, execution, and
backup list limits are finite positive integers from 1 to 1000 (the existing
defaults remain 100, 20, and 20), and workflow connection from_output/
to_input indices are finite non-negative integers from 0 to 1000. Invalid
values are rejected before any n8n API, filesystem, or workflow-array access.
Configuration
Server connections and safety settings are stored in ~/.n8n-manager-mcp/servers.json.
API key data flow
Set N8N_MANAGER_API_KEY and N8N_MANAGER_SERVER_URL in the MCP host process environment before starting the server. Use your client's sensitive user configuration or an OS secret facility when available; check whether your client writes environment values to a plaintext configuration file. N8N_MANAGER_SERVER_URL must match the URL passed to n8n_add_server (trailing slashes are normalized). Do not include an API key in a chat prompt or tool argument.
n8n_add_server reads the key from the host environment, validates it, and saves it with the server profile in local servers.json. The file is plaintext, not encrypted; new files request mode 0600 on POSIX, while Windows access follows the directory ACL. The MCP tool schema, outgoing tool results, and server list contain no configured key value. API calls send the key in the X-N8N-API-KEY header to the configured n8n URL; redirects are not followed. Use HTTPS for remote n8n servers. Echoed keys in successful and failed upstream responses are redacted at the MCP output and audit boundaries, including JSON object keys and workflow IDs.
Existing servers.json profiles keep working. Updating a profile at the same URL preserves its stored key even when an environment key is present. To rotate a key or change a profile URL, set the new key and matching URL in the host environment, restart the MCP server, then call n8n_add_server with rotate_key: true. A URL change without rotation is refused. For multiple servers, configure and add each server with its own environment key/URL pair, restarting the MCP process between pairs; already stored keys are not silently replaced. After onboarding, the environment pair can be removed on restart because the key remains in the local profile. Remove any old prompts or client calls that supplied api_key as a tool argument.
Safety defaults:
backup_before_mutations: truesaves workflow JSON before update, delete, activate/deactivate, and overwrite-restore operations.audit_log: trueappends mutation outcomes to~/.n8n-manager-mcp/audit.log.read_only: falsecan be enabled withn8n_set_safety_modeorN8N_MANAGER_READ_ONLY=1. The environment flag is an enforcement ceiling: while it is enabled, persisted settings andn8n_set_safety_modecannot turn read-only mode off.- Backups are stored under
~/.n8n-manager-mcp/backups/and can be listed/restored with the backup tools. Server/workflow names are reduced to safe single path segments; reserved names, separators, traversal, and symlink/reparse escapes cannot leave that root, and listing exposes only regular.jsonbackups. n8n_add_servervalidates server connection input before saving: URLs must behttporhttpsbase URLs without embedded credentials, query strings, or fragments, and API keys must not contain whitespace.n8n_add_serverdefault semantics are explicit: the first server becomes default; an update withoutis_defaultpreserves the existing flag;truepromotes the server;falseintentionally removes its flag, after which default lookup falls back to the first configured server.
Development
Testing
The test suite covers URL building, server input validation, server management, safety settings, backup path handling, workflow JSON construction, export/import validation, i18n language packs, repository hygiene, and error handling. The manager seam is tested against a local stub HTTP server, including its refusal to fall back to a direct n8n query.
The current verification record covers Windows locally and Ubuntu Linux in GitHub Actions; GitHub Actions runs build, test, and npm package checks on Node.js 20 and 22. The commit-specific local record is kept in CHANGELOG.md. The smoke runner starts dist/index.js through the MCP SDK client, verifies all 19 tool registrations and secret-free server setup with synthetic credentials, and uses loopback stubs to test key redaction and redirect refusal. It does not contact a real n8n server.
Contributing & Development Workflow
Contributions are welcome! Please review CONTRIBUTING.md and our CODE_OF_CONDUCT.md for full guidelines, including:
- 10 Governance & Runtime Invariants (
INV-LOCAL-01toINV-SLA-10): local MCP transport without telemetry, monotonic read-only gates, and automated backups. - Unprivileged User Mode (
RunAsInvoker): Zero administrative elevation requested. - Plan D Workflow: Development strictly against canonical local clones and GitHub
origin/main. - 48h Security Response SLA: Coordinated vulnerability disclosure via
[email protected]and[email protected].
Related
- n8n-workflow-manager — the state & history layer for humans (Web UI + REST API, Python): per-workflow change history and decision log, visual graph viewer, multi-server sync. Designed as a pair with this MCP server — the MCP is the AI action layer (create/update/delete/activate), the manager is where you review, document, and roll back. Memory & context (roadmap): an MCP server alone can't guarantee an agent checks prior context before a destructive change — that enforcement belongs in the manager (client-agnostic), with conversational context optionally from a pull-based history index like ctx (Apache-2.0). Planned: a shared history/decision store + a check-history-before-mutating guard.
- n8n -- The workflow automation platform
License
MIT
ellmos-ai Ecosystem
This MCP server is part of the ellmos-ai ecosystem — AI infrastructure, MCP servers, and intelligent tools.
MCP Server Family
AI Infrastructure
Desktop Software & Sibling Tools
Our partner organization open-bricks and sister suites bundle AI-native desktop applications and developer utilities:
Third-Party Licenses & Transparency
This project is licensed under the MIT License with attribution declared in NOTICE. To guarantee complete supply chain integrity and compliance in enterprise and autonomous agent environments, all dependencies are continuously audited:
- Zero Copyleft / AGPL: Contains no viral copyleft or unreviewed commercial dependencies.
- Zero External Telemetry: Emits no network beacons, analytics payloads, or external phone-home pings.
- Detailed Open-Source Inventory: Complete attribution notices, license texts, and transitive dependency analyses are available in
THIRD_PARTY_LICENSES.md. - Level 1 SBOM Plain-Text Companion: Complete machine-readable audit trail, non-elevation certification, and license companion available in
THIRD_PARTY_LICENSES.txt.
Marketing & Personas Log
For marketing positioning, target persona definitions, governance invariant mappings, and the 3-phase discoverability roadmap, see MARKETING-LOG.txt.
Changelog
See CHANGELOG.md for detailed version history, release notes, and past migration milestones.
Haftung / Liability
Statutory Notice & Liability Disclaimer (§ 521 BGB)
Dieses Projekt ist eine unentgeltliche Open-Source-Schenkung im Sinne der §§ 516 ff. BGB. Die Haftung des Urhebers ist gemäß § 521 BGB auf Vorsatz und grobe Fahrlässigkeit beschränkt. Ergänzend gilt der Haftungsausschluss der MIT-Lizenz.
Nutzung auf eigenes Risiko. Keine Wartungszusage, keine Verfügbarkeitsgarantie, keine Gewähr für Fehlerfreiheit oder Eignung für einen bestimmten Zweck.
This project is an unpaid open-source donation under the MIT License. Liability is limited to intent and gross negligence (§ 521 German Civil Code). Use at your own risk. No warranty, no maintenance guarantee, no fitness-for-purpose assumed.
Security Response SLA & Vulnerability Reporting
As codified in SECURITY.md, we maintain a strict binding security policy:
- Initial Response SLA: Guaranteed within 48 hours (
INV-SLA-10). - Triage Commitment: Vulnerability assessment completed within 5 business days.
- Remediation SLA: Coordinated security patches delivered within 30 calendar days.
- Direct Contact Endpoints:
來源:README.md,提交 dc5d29a
工具
0版本歷史
1- v0.1.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分