Skip to main content
Glama
n8n MCP Server (Custom)

n8n MCP Server (Custom)

by burnham

🤖 n8n MCP Server (Custom)

Custom Model Context Protocol server for n8n automation - Built specifically for Antigravity AI assistant

License: MIT Node.js TypeScript

🇪🇸 Versión en Español | 📚 Documentación


📖 English Version

⚠️ Important Note

This MCP server is specifically designed for Antigravity.

Why a custom server?

The official @modelcontextprotocol/server-n8n package has compatibility issues with Antigravity, causing persistent EOF (End of File) errors during initialization:

Error calling 'initialize': EOF

Our Solution:

We built this implementation from scratch, replicating the functionality of the official server by implementing 27 essential tools based on the n8n REST API. This guarantees full compatibility with Antigravity while preserving feature parity with the official server.

If you encounter the same EOF error with Antigravity, this server is the fix.

✨ Features

  • 🔧 27 MCP Tools - Complete control over your n8n instance

  • 🎯 Antigravity Optimized - Built and tested specifically for Antigravity AI assistant

  • 🔒 Secure - API key-based authentication, no credentials in code

  • 📦 TypeScript - Type-safe and maintainable codebase

  • 🚀 Easy Setup - Clone, configure, and run in minutes

  • 🔗 Feature Parity - Implements essential functionality from the official server

📸 Result in Action

n8n Workflow Editor Test workflow visible in n8n editor showing Manual Trigger and Set Data nodes.

Antigravity MCP Tools All 27 MCP tools available in Antigravity's MCP server management panel.

🚀 Quick Start

# Clone the repository
git clone https://github.com/burnham/n8n-mcp-server-custom.git
cd n8n-mcp-server-custom

# Install dependencies
npm install

# Configure environment
cp .env.example .env
# Edit .env with your N8N_API_URL and N8N_API_KEY

# Build
npm run build

# Test connection (lists workflows)
npm test

🛠️ Available Tools (27 total)

Workflows (8 tools)

  • List, create, update, delete workflows

  • Execute workflows with custom data

  • Activate / deactivate workflows

Executions (3 tools)

  • List workflow executions with filters

  • Get execution details

  • Stop running executions

Variables (5 tools)

  • Full CRUD operations on environment variables

Credentials (6 tools)

  • Manage credentials (metadata only, secrets protected)

Node Types (2 tools)

  • List and query available node types

Tags (1 tool)

  • List workflow tags

System (2 tools)

  • Instance health and version info

  • Connectivity self-test

🔧 Configuration for Antigravity

Edit your Antigravity config file:

Windows: C:\Users\[YOUR_USER]\.gemini\antigravity\mcp_config.json

Mac/Linux: ~/.gemini/antigravity/mcp_config.json

{
  "mcpServers": {
    "n8n-mcp": {
      "command": "node",
      "args": ["/absolute/path/to/n8n-mcp-server-custom/dist/index.js"],
      "env": {
        "N8N_API_URL": "https://your-instance.n8n.cloud",
        "N8N_API_KEY": "your_api_key_here"
      }
    }
  }
}

Important:

  • Use absolute paths

  • Replace [YOUR_USER] with your actual username

  • Get your API key from n8n Settings → API

📚 Documentation

🔒 Security

  • ✅ .env file is gitignored

  • ✅ No credentials in source code

  • ✅ API keys never exposed in commits

  • ✅ Secure environment variable handling

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📄 License

MIT License - see LICENSE file for details

👤 Author

Georgios Burnham H.


Related MCP server: n8n-MCP

🇪🇸 Versión en Español

⚠️ Nota Importante

Este servidor MCP está diseñado específicamente para Antigravity.

¿Por qué un servidor personalizado?

El paquete oficial @modelcontextprotocol/server-n8n tiene problemas de compatibilidad con Antigravity, causando errores EOF (End of File) persistentes durante la inicialización:

Error calling 'initialize': EOF

Nuestra Solución:

Esta implementación personalizada fue construida desde cero, replicando la funcionalidad del servidor oficial mediante la implementación de 27 herramientas esenciales basadas en la API REST de n8n. Esto asegura compatibilidad total con Antigravity manteniendo paridad de funciones con el servidor oficial.

Si estás experimentando el mismo error EOF con Antigravity, este servidor es la solución.

✨ Características

  • 🔧 27 Herramientas MCP - Control completo de tu instancia n8n

  • 🎯 Optimizado para Antigravity - Construido y probado específicamente para el asistente IA Antigravity

  • 🔒 Seguro - Autenticación por API key, sin credenciales en el código

  • 📦 TypeScript - Base de código type-safe y mantenible

  • 🚀 Configuración Fácil - Clona, configura y ejecuta en minutos

  • 🔗 Paridad de Funciones - Implementa funcionalidad esencial del servidor oficial

📸 Resultado en Acción

Editor de Workflow n8n Workflow de prueba visible en el editor de n8n mostrando los nodos Manual Trigger y Set Data.

Herramientas MCP en Antigravity Las 27 herramientas MCP disponibles en el panel de gestión de servidores MCP de Antigravity.

🚀 Inicio Rápido

# Clonar el repositorio
git clone https://github.com/burnham/n8n-mcp-server-custom.git
cd n8n-mcp-server-custom

# Instalar dependencias
npm install

# Configurar variables de entorno
cp .env.example .env
# Edita .env con tu URL de n8n y API key

# Compilar
npm run build

# Probar conexión
npm test

🛠️ Herramientas Disponibles (27 en total)

Workflows (8 herramientas)

  • Listar, crear, actualizar, eliminar workflows

  • Ejecutar workflows con datos personalizados

  • Activar/desactivar workflows

Ejecuciones (3 herramientas)

  • Listar ejecuciones de workflows con filtros

  • Ver detalles de ejecuciones

  • Detener ejecuciones en curso

Variables (5 herramientas)

  • Operaciones CRUD completas en variables de entorno

Credenciales (6 herramientas)

  • Gestionar credenciales (solo metadatos, secretos protegidos)

Tipos de Nodo (2 herramientas)

  • Listar y consultar tipos de nodos disponibles

Tags (1 herramienta)

  • Listar tags de workflows

Sistema (2 herramientas)

  • Información de salud y versión de la instancia

  • Auto-test de conectividad

🔧 Configuración para Antigravity

Edita tu archivo de configuración de Antigravity:

Windows: C:\Users\[TU_USUARIO]\.gemini\antigravity\mcp_config.json

Mac/Linux: ~/.gemini/antigravity/mcp_config.json

{
  "mcpServers": {
    "n8n-mcp": {
      "command": "node",
      "args": ["/ruta/absoluta/a/n8n-mcp-server-custom/dist/index.js"],
      "env": {
        "N8N_API_URL": "https://tu-instancia.n8n.cloud",
        "N8N_API_KEY": "tu_api_key_aqui"
      }
    }
  }
}

Importante:

  • Usa rutas absolutas

  • Reemplaza [TU_USUARIO] con tu usuario real

  • Obtén tu API key desde n8n Settings → API

📚 Documentación

🔒 Seguridad

  • ✅ Archivo .env en gitignore

  • ✅ Sin credenciales en el código fuente

  • ✅ API keys nunca expuestas en commits

  • ✅ Manejo seguro de variables de entorno

🤝 Contribuir

¡Las contribuciones son bienvenidas! No dudes en enviar un Pull Request.

📄 Licencia

Licencia MIT - ver archivo LICENSE para más detalles

👤 Autor

Georgios Burnham H.


⭐ Si este proyecto te resulta útil, dale una estrella en GitHub!

⭐ If you find this project useful, give it a star on GitHub!

Available Tools

27 tools
n8n_activate_workflowB

Activar un workflow específico.

Inputs: workflow_id (required).

n8n_create_credentialC

Crear una credencial nueva.

Inputs: data (required), name (required), type (required).

n8n_create_variableB

Crear una nueva variable de entorno.

Inputs: key (required), value (required), type.

n8n_create_workflowC

Crear un workflow nuevo en n8n.

Inputs: name (required), nodes (required), active, settings, +1 more.

n8n_deactivate_workflowB

Desactivar un workflow específico.

Inputs: workflow_id (required).

n8n_delete_credentialB

Eliminar una credencial.

Inputs: credential_id (required).

n8n_delete_variableC

Eliminar una variable.

Inputs: variable_id (required).

n8n_delete_workflowC

Eliminar un workflow.

Inputs: workflow_id (required).

n8n_execute_workflowA

Ejecutar un workflow con datos de entrada opcionales (body directo).

Inputs: workflow_id (required), payload.

n8n_get_credentialA

Obtener una credencial concreta por id.

Inputs: credential_id (required).

n8n_get_executionA

Obtener detalles de una ejecución concreta.

Inputs: execution_id (required).

n8n_get_executionsB

Listar ejecuciones recientes. Se puede limitar el número de resultados.

Inputs: limit, status, workflow_id.

n8n_get_instance_infoB

Obtener información de salud de la instancia n8n.

Inputs: no named parameters.

n8n_get_instance_versionA

Obtener versión y ajustes de la instancia n8n.

Inputs: no named parameters.

n8n_get_node_typeB

Obtener información sobre un tipo de nodo concreto (nombre interno).

Inputs: node_type (required).

n8n_get_variableC

Obtener una variable específica por su ID.

Inputs: variable_id (required).

n8n_get_workflowB

Obtener un workflow concreto por id.

Inputs: workflow_id (required).

n8n_list_credentialsA

Listar todas las credenciales (solo metadatos, no secretos).

Inputs: no named parameters.

n8n_list_node_typesA

Listar todos los tipos de nodo disponibles en la instancia.

Inputs: no named parameters.

n8n_list_tagsA

Listar todos los tags configurados en n8n.

Inputs: no named parameters.

n8n_list_variablesA

Listar todas las variables de entorno configuradas en n8n.

Inputs: no named parameters.

n8n_list_workflowsA

Listar todos los workflows de n8n.

Inputs: no named parameters.

n8n_self_testB

Probar la conectividad y permisos del servidor MCP con n8n.

Inputs: no named parameters.

n8n_stop_executionB

Intentar parar una ejecución en curso (si tu instancia lo permite).

Inputs: execution_id (required).

n8n_update_credentialC

Actualizar una credencial existente.

Inputs: credential_id (required), data, name.

n8n_update_variableB

Actualizar una variable existente.

Inputs: variable_id (required), key, type, value.

n8n_update_workflowC

Actualizar un workflow existente.

Inputs: workflow_id (required), name, nodes, active, +2 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 27 tools

    Disambiguation5/5

    Each tool targets a distinct resource and action (e.g., list_workflows vs. get_workflow vs. execute_workflow). Even similar tools like get_instance_info and get_instance_version are clearly separated by their descriptions (health vs. version/settings). No two tools appear to do the same thing.

    Naming Consistency5/5

    All tools follow the same n8n_verb_noun pattern, with verbs like list, get, create, update, delete, execute, stop, activate, deactivate. The naming is uniform and predictable, with no mixed conventions.

    Tool Count4/5

    27 tools is on the higher side, but the server covers a broad domain (workflows, executions, credentials, variables, tags, node types, instance info). Each tool serves a clear purpose within that scope, so the count feels justified rather than bloated.

    Completeness4/5

    The toolset provides solid CRUD/lifecycle coverage for workflows, credentials, variables, and executions. Minor gaps exist, such as no create/update/delete for tags and no workflow import/export, but the core workflows an agent would need are well covered.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      🪄 MCP server for programmatic creation and management of n8n workflows. Enables AI assistants to build, modify, and manage workflows without direct user intervention through a comprehensive set of tools and resources for interacting with n8n's REST API.
      10
      86
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that provides AI assistants with access to documentation, schemas, and operations for over 535 n8n workflow automation nodes. It enables models to understand, create, and manage n8n workflows through natural language by connecting to the n8n API.
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      A comprehensive MCP server that provides full control over n8n automation workflows through natural language. It offers 43 tools for managing workflows, executions, credentials, and data tables, with safety features like write-mode protection and double-validated workflow creation.
      43
      1
      MIT