Manage n8n Workflows from Your Terminal with the n8n-mcp Server

Manage n8n Workflows from Your Terminal with the n8n-mcp Server

Install the n8n-mcp server to let Claude Code directly read, update, and manage your n8n automation workflows without touching the UI.

GAla Smith & AI Research Desk·4h ago·3 min read·4 views·AI-Generated
Share:
Source: dev.tovia devto_claudecodeSingle Source
Manage n8n Workflows from Your Terminal with the n8n-mcp Server

Stop context-switching. The n8n-mcp server bridges your Claude Code terminal directly to your n8n automation platform, letting you manage workflows through conversation. This is a prime example of the Model Context Protocol (MCP) in action, extending Claude's capabilities into your infrastructure.

What It Does

The n8n-mcp server gives Claude Code tools to interact with a live n8n instance. Once configured, Claude can:

  • List all your workflows and their nodes.
  • Fetch detailed information about specific workflows.
  • Update node parameters, configurations, and connections within a workflow.
  • Search for and reference n8n's official node documentation.

In short, you can ask Claude to "update the API endpoint in the 'Process Invoices' workflow" and it can execute that change directly.

Setup: Choose Your Installation Path

You have four options, from zero-maintenance to full control.

Cover image for Automating n8n Node Updates with Claude: A No-UI Setup Guide

1. Hosted Service (Easiest): Go to dashboard.n8n-mcp.com. This offers 100 free calls per day with no installation. Configure it once and the service stays updated.

2. NPX (Simple & Recommended for Claude Code):

npx n8n-mcp

If this runs, you're ready to configure. This is the most straightforward path for integration with Claude Desktop/Code.

3. Docker:

docker pull ghcr.io/czlonkowski/n8n-mcp:latest

Ideal if you prefer containerized services.

4. Local Build (Advanced): Clone the GitHub repository for development or customization.

Configuration for Claude Code

First, get your n8n API key from your instance under Settings → API. Then, edit your Claude Desktop configuration file.

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Add the server configuration. For a cloud n8n instance, use this "Full Config":

{
  "mcpServers": {
    "n8n-mcp": {
      "command": "npx",
      "args": ["n8n-mcp"],
      "env": {
        "MCP_MODE": "stdio",
        "LOG_LEVEL": "error",
        "DISABLE_CONSOLE_OUTPUT": "true",
        "N8N_API_URL": "https://your-n8n-instance.com/api/v1",
        "N8N_API_KEY": "your_api_key_here"
      }
    }
  }
}

For a local n8n development instance (e.g., on localhost:5678), add the WEBHOOK_SECURITY_MODE:

"env": {
  ...
  "N8N_API_URL": "http://localhost:5678/api/v1",
  "WEBHOOK_SECURITY_MODE": "moderate"
}

Restart Claude Desktop. The n8n tools will now be available in Claude Code.

When To Use It

This server shines for developers who maintain complex n8n workflows as part of their infrastructure. Use it to:

  • Rapidly debug and update workflows without leaving your terminal context.
  • Document or audit your automation by having Claude list and describe all active workflows.
  • Bulk-update configurations, like changing a base URL across multiple HTTP Request nodes.
  • Learn n8n's node library by asking Claude to fetch documentation for specific nodes.

Start with simple queries: "List my last 5 workflows" or "Show me the configuration for the 'Slack Alert' node in workflow ID 15." This follows the growing trend of MCP servers, like the ones for GitHub or linear, that turn Claude Code into a unified control plane for your developer tools.

AI Analysis

Claude Code users who manage n8n automations should install this server immediately. The NPX method is the fastest path to value. After adding the config, your first prompt should be exploratory: "What tools do you now have for n8n?" Claude will list the available capabilities. Integrate this into your workflow maintenance routine. Instead of opening the n8n UI to tweak a workflow, describe the change to Claude. For example: "In the 'Daily Data Sync' workflow, find the 'Google Sheets' node and update the spreadsheet ID to `new-id-123`. Show me the change before executing." This leverages Claude's reasoning to navigate the workflow JSON and make precise edits. Remember, this is a powerful integration. Use the hosted service for a low-friction start, but for production, consider the Docker method for stability. Always review the proposed changes Claude suggests before approving updates to critical automations.
Enjoyed this article?
Share:

Related Articles

More in Products & Launches

View all