n8n Manager for AI Agents MCP Server

Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1

Set the server up locally

Run this once to clone and prepare the server before adding it to Claude Code.

Run in terminal
git clone https://github.com/czlonkowski/n8n-manager-for-ai-agents
cd n8n-manager-for-ai-agents
npm install
npm run build
2

Register it in Claude Code

After the local setup is done, run this command to point Claude Code at the built server.

Run in terminal
claude mcp add -e "N8N_URL=${N8N_URL}" -e "N8N_API_KEY=${N8N_API_KEY}" n8n-manager -- node "<FULL_PATH_TO_N8N_MANAGER_FOR_AI_AGENTS>/dist/index.js"

Replace <FULL_PATH_TO_N8N_MANAGER_FOR_AI_AGENTS>/dist/index.js with the actual folder you prepared in step 1.

Required:N8N_URLN8N_API_KEY
README.md

Manage n8n workflow automation instances through AI agent tools.

n8n Manager for AI Agents

[!IMPORTANT] This repository is no longer being actively developed. The n8n instance management tools have been integrated into the more comprehensive n8n-mcp project, which provides a complete solution for n8n automation with AI agents.

Please use n8n-mcp for the latest features and updates.

A Model Context Protocol (MCP) server that enables Claude Desktop and other AI agents to manage n8n workflow automation instances through the n8n API.

🎯 Project Overview

This MCP server provides AI agents with tools to manage n8n workflows programmatically. It implements the core n8n API operations with intelligent workarounds for API limitations.

✅ What's Working

  • Workflow Management: Create, read, update, and delete workflows
  • Execution Monitoring: List and view execution details, delete execution records
  • Webhook Triggers: Execute workflows via webhook endpoints
  • Health Monitoring: Check n8n instance connectivity and configuration

🚧 Current Limitations

  • Workflow Activation: Cannot activate/deactivate workflows via API (manual UI activation required)
  • Direct Execution: Not available - must use webhook triggers
  • Tags & Credentials: Read-only fields, cannot be set via API

🚀 Implemented Features

  • Workflow Operations: Full CRUD operations for n8n workflows
  • Execution Management: View, list, and delete execution records
  • Webhook-Based Execution: Trigger workflows via webhook URLs
  • Smart Error Handling: Automatic removal of read-only fields, method fallbacks
  • AI-Friendly Descriptions: Enhanced tool descriptions with examples and clear limitations
  • Cursor-Based Pagination: Efficient handling of large result sets
  • Health Monitoring: Built-in connectivity and configuration checks

⚠️ API Limitations & Workarounds

Discovered Limitations

  • Workflow Activation: The active field is read-only - workflows must be activated manually in the UI
  • Tags Field: Read-only during creation and updates
  • PATCH Method: Some n8n instances don't support PATCH for workflow updates
  • Direct Execution: Must use webhook triggers (no direct execution API)
  • Settings Field: Required but undocumented - we provide sensible defaults

Not Implemented (API Unavailable)

  • User Management: No public API endpoints
  • Credential Management: Limited API, schemas not exposed
  • Stop Execution: Cannot stop running executions via API
  • Variables: Only available through source control API
  • Import/Export: Planned but not yet implemented

📦 Available MCP Tools

Workflow Management

  • n8n_create_workflow - Create new workflows with nodes and connections
  • n8n_get_workflow - Retrieve workflow details by ID
  • n8n_update_workflow - Update existing workflows (requires full node list)
  • n8n_delete_workflow - Delete workflows permanently
  • n8n_list_workflows - List workflows with filtering and pagination

Execution Management

  • n8n_trigger_webhook_workflow - Trigger workflows via webhook URL
  • n8n_get_execution - Get detailed execution information
  • n8n_list_executions - List executions with status filtering
  • n8n_delete_execution - Delete execution records

System Tools

  • n8n_health_check - Check API connectivity and configuration

🛠️ Technology Stack

  • Runtime: Node.js 20+
  • Language: TypeScript 5.0
  • MCP SDK: @modelcontextprotocol/sdk v1.13.1
  • HTTP Client: Axios with retry logic
  • Validation: Zod schemas
  • Logging: Winston (file-based in MCP mode)
  • Build: TypeScript with ES modules

📋 Prerequisites

  • Node.js 20 or higher
  • n8n instance with API access enabled
  • n8n API key
  • Claude Desktop (for MCP integration)

🚀 Quick Start

  1. Clone the repository

    git clone https://github.com/czlonkowski/n8n-manager-for-ai-agents
    cd n8n-manager-for-ai-agents
    
  2. Install dependencies

    npm install
    
  3. Configure environment

    cp .env.example .env
    # Edit .env with your n8n instance details
    
  4. Build the project

    npm run build
    
  5. Configure Claude Desktop Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

    {
      "mcpServers": {
        "n8n-manager": {
          "comma
    

Tools (10)

n8n_create_workflowCreate new workflows with nodes and connections
n8n_get_workflowRetrieve workflow details by ID
n8n_update_workflowUpdate existing workflows
n8n_delete_workflowDelete workflows permanently
n8n_list_workflowsList workflows with filtering and pagination
n8n_trigger_webhook_workflowTrigger workflows via webhook URL
n8n_get_executionGet detailed execution information
n8n_list_executionsList executions with status filtering
n8n_delete_executionDelete execution records
n8n_health_checkCheck API connectivity and configuration

Environment Variables

N8N_URLrequiredThe base URL of your n8n instance
N8N_API_KEYrequiredThe API key for authenticating with your n8n instance

Configuration

claude_desktop_config.json
{"mcpServers": {"n8n-manager": {"command": "node", "args": ["/path/to/n8n-manager-for-ai-agents/build/index.js"], "env": {"N8N_URL": "https://your-n8n-instance.com", "N8N_API_KEY": "your-api-key"}}}}

Try it

List all my current n8n workflows and tell me which ones have failed recently.
Trigger the webhook for my 'Data Sync' workflow with this JSON payload.
Check the health of my n8n instance to ensure the API is reachable.
Get the details of the last execution for the workflow with ID 123.

Frequently Asked Questions

What are the key features of n8n Manager for AI Agents?

Full CRUD operations for n8n workflows. Execution monitoring and management. Webhook-based workflow triggering. Health monitoring for n8n instance connectivity. Cursor-based pagination for large result sets.

What can I use n8n Manager for AI Agents for?

Automating workflow maintenance by programmatically updating node configurations.. Monitoring production automation health by listing and inspecting execution logs.. Triggering complex automation sequences from within an AI chat interface.. Cleaning up old execution history to manage n8n instance storage..

How do I install n8n Manager for AI Agents?

Install n8n Manager for AI Agents by running: git clone https://github.com/czlonkowski/n8n-manager-for-ai-agents && cd n8n-manager-for-ai-agents && npm install && npm run build

What MCP clients work with n8n Manager for AI Agents?

n8n Manager for AI Agents works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep n8n Manager for AI Agents docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare