Logo di n8n Manager for AI Agents

n8n Manager for AI Agents

Community
czlonkowski

MCP server for Claude Desktop to manage your n8n workflows

Pubblicato daczlonkowski
Repositoryn8n-manager-for-ai-agents
LinguaTypeScript
Fork
17
Stelle
62
Strumenti disponibili
0
Tipo di trasportostdio
Categorie
LicenzaMIT
Link
  • Collega gli strumenti ai flussi di lavoro IA

    n8n Manager for AI Agents mette a disposizione funzionalità MCP utilizzabili da client e agenti IA compatibili.

  • Strumenti disponibili: 0

    Esplora le azioni richiamabili qui sotto, con nomi e descrizioni se il server li fornisce.

  • Configurazione pronta da copiare

    Usa gli esempi di installazione per configurare questo server nel tuo client MCP preferito.

  • Indicatori di interesse della comunità open source

    Stelle: 62; fork: 17 (repository collegato).

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.

Usa n8n Manager for AI Agents MCP con più modelli AI

TypingMind collega gli strumenti MCP a livello di area di lavoro: una volta connesso n8n Manager for AI Agents, puoi usarlo con diversi modelli IA in TypingMind, senza configurarlo separatamente per ogni modello. Questa integrazione MCP viene eseguita localmente sul tuo dispositivo tramite il connettore MCP di TypingMind.

Guida alla configurazione del connettore locale

Usa questo metodo quando il server MCP deve accedere a file locali, app o risorse private sul tuo computer.

1

Apri le impostazioni MCP

In TypingMind, vai su Impostazioni, Impostazioni avanzate, poi su Model Context Protocol e scegli Configura connettore.

  1. Apri TypingMind nel tuo browser.
  2. Fai clic sull'icona Impostazioni.
  3. Vai a Impostazioni avanzate.
  4. Apri la sezione Model Context Protocol.
  5. Fai clic su Configura connettore e scegli Questo dispositivo.
Schermata di configurazione del connettore MCP di TypingMind con l’opzione «Questo dispositivo» selezionata
2

Esegui il comando del connettore

Scegli Questo dispositivo, copia il comando da TypingMind ed eseguilo nel terminale. Lascia il processo in esecuzione mentre usi MCP.

  1. Copia il comando di configurazione mostrato da TypingMind.
  2. Apri Terminale su macOS o Windows Terminal su Windows.
  3. Incolla ed esegui il comando.
  4. Conferma l'installazione del pacchetto se il terminale ti chiede di procedere.
  5. Tieni aperta la finestra del terminale con il processo in esecuzione mentre usi gli strumenti MCP.
3

Aggiungi n8n Manager for AI Agents come server

Quando lo stato del connettore è Pronto, fai clic su Modifica server e incolla la configurazione del server MCP.

  1. Attendi che lo stato del connettore sia Pronto.
  2. Fai clic su Modifica server.
  3. Incolla la configurazione del server MCP di n8n Manager for AI Agents.
  4. Salva l'elenco dei server.
  5. Se vuoi verificare che il connettore sia ancora pronto, aggiorna la pagina.
Impostazioni MCP di TypingMind con un server attivo e il pulsante Modifica server
{
  "mcpServers": {
    "n8n-manager-for-ai-agents": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Usa la connessione con diversi modelli

Salva l'elenco dei server, apri Plugin, abilita gli strumenti MCP di n8n Manager for AI Agents, poi seleziona un modello IA supportato in TypingMind e usa gli strumenti in chat o assegnali a un agente IA.

  1. Apri la pagina Plugin in TypingMind.
  2. Abilita gli strumenti MCP di n8n Manager for AI Agents.
  3. Avvia una chat e scegli il modello IA che vuoi usare.
  4. Usa gli strumenti MCP in chat o assegnali a un agente IA.
  5. Passa a un altro modello IA quando serve, senza riconnettere MCP.
Chat di TypingMind che usa gli strumenti MCP abilitati con un modello IA selezionato
Puoi usare n8n Manager for AI Agents per aiutarmi con questa attività?
n8n Manager for AI Agents
Certo. L’ho letto.
Ecco cosa ho trovato con n8n Manager for AI Agents.

Domande frequenti

A cosa serve il server MCP n8n Manager for AI Agents?

n8n Manager for AI Agents è un server MCP che consente ai client IA compatibili di accedere a strumenti e informazioni di contesto esterni. In TypingMind puoi aggiungere questo server MCP una sola volta e rendere disponibili i suoi strumenti nella tua area di lavoro IA.

Posso usare il server MCP n8n Manager for AI Agents con più modelli IA in TypingMind?

Sì. TypingMind collega gli strumenti MCP a livello di area di lavoro, quindi puoi usare n8n Manager for AI Agents con diversi modelli IA come Claude, ChatGPT, Gemini o altri modelli che hai configurato in TypingMind, senza dover configurare il server MCP separatamente per ogni modello.

Perché usare il connettore MCP n8n Manager for AI Agents con TypingMind?

TypingMind è una delle migliori interfacce per chattare con gli LLM perché riunisce più modelli IA, prompt, plugin, agenti IA, chiavi API e strumenti MCP in un'unica area di lavoro. Collegando n8n Manager for AI Agents, puoi usare i suoi strumenti MCP con i tuoi modelli preferiti e mantenere organizzato il tuo flusso di lavoro in chat su TypingMind.

Come collego il server MCP n8n Manager for AI Agents a TypingMind?

n8n Manager for AI Agents funziona tramite il connettore MCP locale di TypingMind. È la soluzione ideale quando il server MCP deve accedere a file locali, app desktop, strumenti da riga di comando o risorse private sul tuo computer.

Quali strumenti offre il server MCP n8n Manager for AI Agents in TypingMind?

n8n Manager for AI Agents mette a disposizione funzionalità MCP che puoi attivare dalla pagina Plugin di TypingMind e usare in chat o assegnare agli agenti IA.

Devo condividere le mie chiavi API con TypingMind per usare il server MCP n8n Manager for AI Agents?

No. TypingMind privilegia il funzionamento in locale e ti permette di mantenere il controllo su fornitori di modelli, chiavi API, prompt e configurazione MCP. Se n8n Manager for AI Agents richiede l'autenticazione, aggiungi le intestazioni, le impostazioni OAuth o la configurazione locale necessarie per quel server MCP quando crei la connessione.

Server MCP correlati

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇