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
访问服务器

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!

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选