n8n Manager for AI Agents logo

n8n Manager for AI Agents

Community
czlonkowski

MCP server for Claude Desktop to manage your n8n workflows

Publisherczlonkowski
Repositoryn8n-manager-for-ai-agents
LanguageTypeScript
Forks
17
Stars
62
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    n8n Manager for AI Agents exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    62 stars and 17 forks from the linked repository.

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.

License: MIT Node.js Version TypeScript MCP SDK n8n API

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

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

    bash
    npm install
  3. Configure environment

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

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

    json
    {
      "mcpServers": {
        "n8n-manager": {
          "command": "node",
          "args": ["/absolute/path/to/n8n-manager-for-ai-agents/build/index.js"],
          "env": {
            "N8N_API_URL": "https://your-n8n-instance.com",
            "N8N_API_KEY": "your-api-key",
            "LOG_LEVEL": "info",
            "NODE_ENV": "production",
            "MCP_MODE": "stdio"
          }
        }
      }
    }
  6. Restart Claude Desktop and verify the n8n-manager appears in the MCP tools list

📁 Log Files

Logs are written to ~/.n8n-manager/logs/n8n-manager.log to avoid interfering with MCP protocol communication.

💡 Usage Examples

Creating a Simple Workflow

"Create a workflow named 'Test API' with a manual trigger"

Listing Workflows

"Show me all active workflows"
"List workflows with tag 'production'"

Checking Executions

"Show recent executions for workflow ID abc123"
"Get details of execution xyz789"

Webhook Execution

"Trigger the webhook at https://n8n.example.com/webhook/abc-def-ghi"

📖 Documentation

🧪 Development

bash
# Run tests
npm test

# Run in development mode
npm run dev

# Type checking
npm run typecheck

# Linting
npm run lint

# Build for production
npm run build

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.

🔐 Security

  • API keys are stored in environment variables
  • No sensitive data is logged
  • All communications use HTTPS
  • Implements rate limiting and request validation

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

Copyright (c) 2024 Romuald Czlonkowski @ aiadvisors.pl

🙏 Acknowledgments

📞 Contact

Romuald Czlonkowski
aiadvisors.pl


Phase 1 Complete: Core workflow and execution management tools are fully functional. See CLAUDE.md for detailed usage guidance and common error solutions.

Use n8n Manager for AI Agents MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once n8n Manager for AI Agents is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add n8n Manager for AI Agents as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the n8n Manager for AI Agents MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "n8n-manager-for-ai-agents": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the n8n Manager for AI Agents MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the n8n Manager for AI Agents MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use n8n Manager for AI Agents to help me with this task?
n8n Manager for AI Agents
Sure. I read it.
Here is what I found using n8n Manager for AI Agents.

Frequently asked questions

What is the n8n Manager for AI Agents MCP server used for?

n8n Manager for AI Agents is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use n8n Manager for AI Agents MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use n8n Manager for AI Agents with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use n8n Manager for AI Agents MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With n8n Manager for AI Agents connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect n8n Manager for AI Agents MCP to TypingMind?

n8n Manager for AI Agents runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does n8n Manager for AI Agents MCP provide in TypingMind?

n8n Manager for AI Agents exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use n8n Manager for AI Agents MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If n8n Manager for AI Agents requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇