n8n Local Control
Provides control over the local n8n Docker Compose stack, including health checks, logs, start/stop/restart, backups, restore, and upgrades with rollback.
Provides tools for constructing and managing n8n workflows, searching nodes and templates, validating workflows, inspecting executions, and managing credentials through the n8n API.
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., "@n8n Local ControlCreate an n8n workflow that sends a Slack message for each new GitHub star."
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.
n8n Local Control
Turn natural-language requests into configured n8n workflows and safely operate a local n8n Docker stack from compatible AI agents.
This repository is dual packaged:
plugin.jsonandmcp.jsonimplement the portable Agent Plugins 1.0 format..codex-plugin/plugin.jsonand.mcp.jsonretain native Codex packaging.skills/contains portable Agent Skills.
Capabilities
Search n8n nodes and templates, construct workflows, validate nodes and complete workflows, inspect executions, and manage credentials through pinned
n8n-mcp@2.68.0.Discover and call the live n8n Public API with exact OpenAPI allowlisting.
Use expiring two-phase confirmation tokens for API writes and stack mutations.
Inspect health and logs; start, stop, restart, back up, restore, and upgrade the exact Docker Compose deployment discovered from container labels.
Create consistent stopped-volume backups with SHA-256 metadata and restore/upgrade rollback.
Related MCP server: mcp-n8n-builder
Requirements
Node.js 18 or newer.
n8n available at
http://localhost:5678by default.For full Windows stack control: PowerShell and Docker Desktop with an n8n Compose deployment.
An n8n API key is optional for documentation and static validation, but required for workflow/API management.
Agent Plugins installation
Clone the repository and load its directory with an Agent Plugins 1.0-compatible client. The portable MCP entries use ${PLUGIN_ROOT} and ${PLUGIN_DATA} exactly as defined by the specification.
git clone https://github.com/RobertIonutF/n8n-local-control.gitThe package is Windows-first for DPAPI and Docker administration. On other platforms the portable skills and MCP workflow engine can still load, but API-key storage must be supplied by the client or process environment and Windows stack tools are unavailable.
One-time Windows setup
In n8n, open Settings -> n8n API and create an API key with only the scopes you want the agent to use.
Run:
& '.\scripts\setup.ps1'Paste the key into the hidden terminal prompt. The script validates it and stores only a Windows DPAPI-encrypted value.
The setup script discovers the compose project, service, compose file, and n8n data volume from Docker labels. Override discovery only when needed:
& '.\scripts\setup.ps1' -Container n8n -BaseUrl 'http://localhost:5678' -ComposeFile 'D:\path\to\docker-compose.yml'When an Agent Plugins client supplies PLUGIN_DATA, run setup from a terminal with that environment value or pass -StateDirectory explicitly so the launcher and setup helper share the same state directory. Codex falls back to %LOCALAPPDATA%\Codex\n8n-local-control.
Never paste the n8n API key or third-party credential secrets into chat.
Safety model
Read-only inspection, workflow design, inactive creation, and static validation can run autonomously. Activation, publication, side-effectful execution, deletion, credential changes, users/security, community packages, service interruption, restore, and upgrade require explicit confirmation. The local MCP server also requires an expiring prepared-operation token before mutations.
Validation
python .\scripts\validate_agent_plugin.py
node .\tests\server.test.mjs
node .\tests\mcp-handshake.test.mjs
powershell -NoProfile -ExecutionPolicy Bypass -File .\tests\dpapi.test.ps1Codex plugin authors can additionally run the plugin-creator validator from their local Codex installation.
Live Docker tests are intentionally separate because they briefly stop n8n or create disposable Docker resources.
Privacy
The plugin does not embed credentials. The upstream n8n-MCP telemetry is disabled by the launcher. Sensitive API response fields are redacted, and Docker/API targets are restricted before execution.
License
MIT. See LICENSE.
This server cannot be deployed
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.
Remote MCP server for supportsheep: run AI interviews and manage support content for your blog.
Personal assistant MCP server with search, execute, packages, jobs, secrets, and integrations.
Related MCP Servers
- AlicenseBqualityDmaintenanceAn MCP server enabling secure interaction with n8n workflows, executions, and settings via the Model Context Protocol, designed for integration with Large Language Models (LLMs).3353 npm118MIT
- AlicenseAqualityDmaintenance🪄 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.1023 npm86MIT
- AlicenseBqualityDmaintenanceA comprehensive MCP server that provides full control over n8n automation workflows through natural language. It offers 43 tools for managing workflows, executions, credentials, and data tables, with safety features like write-mode protection and double-validated workflow creation.431MIT
- AlicenseBqualityAmaintenanceMCP server for managing n8n workflows through AI assistants. Supports workflow CRUD operations, synchronization, inspection, and execution support for automation-focused workflows.1980 npm2MIT