n8n MCP Server (Custom)

n8n MCP Server (Custom)

Custom MCP server for n8n automation, providing 27 tools to manage workflows, executions, credentials, variables, and more via the n8n REST API. Designed to fix compatibility issues with Antigravity AI assistant.

Category
Visit Server

README

🤖 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.


🇪🇸 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!

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured