n8n-ops-mcp
ActiveOps-focused n8n MCP tools - list, trigger, validate, and audit workflows.
WHAT IT DOES
n8n-ops-mcp is an ops-focused Model Context Protocol server for n8n. It lets an AI client answer "what's broken in my n8n?", trigger workflows from chat, audit for security risks, and safely edit workflows without you leaving the client. It targets the ops surface (list, trigger, validate, edit) rather than indexing n8n's node catalog.
It was built for OpenClaw as a first-class plugin and exposed as an MCP server for everyone else, so it works with Claude Desktop, Claude Code, Codex CLI, Cursor, Windsurf, or any other MCP host with no hard dependency on a specific model or harness.
Writes are off by default. Destructive operations are confirm-gated, workflow deletes snapshot to a backup directory first, and credential writes sit behind a second independent gate. Credential secrets are stripped from every response, including error paths.
INSTALL
Published to npm as n8n-ops-mcp.
Install the global binary, or run it on demand with npx.
Requires Node.js 20+.
CAPABILITIES / TOOLS EXPOSED
Reads & scanners · always available
Writes · hidden unless N8N_ENABLE_EDIT=true
Credential writes · double-gated
Write tools require N8N_ENABLE_EDIT=true; credential writes
require N8N_ENABLE_CREDENTIALS_WRITE=true on top of that. Full
per-tool reference in the README.
CLIENT CONFIG
Stdio transport. Generate an API key in n8n under Settings → API, then point any MCP host at the n8n-ops-mcp binary. Example mcpServers entry (Claude Desktop / Claude Code):
{
"mcpServers": {
"n8n": {
"command": "n8n-ops-mcp",
"env": {
"N8N_BASE_URL": "http://localhost:5678",
"N8N_API_KEY": "your-api-key-here"
}
}
}
}
Required: N8N_BASE_URL,
N8N_API_KEY. Optional:
N8N_ENABLE_EDIT,
N8N_ENABLE_CREDENTIALS_WRITE,
N8N_BACKUP_DIR,
N8N_MAX_EXECUTION_LOG_BYTES,
N8N_REQUEST_TIMEOUT_MS. Also installs as a first-class
OpenClaw plugin via clawhub:n8n-ops-mcp.