n8n-mcp-connector
Provides tools for managing and executing N8N workflows, including creating, updating, and deleting nodes and connections, activating/deactivating workflows, monitoring execution status, and managing webhooks.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@n8n-mcp-connectorexecute my 'Daily Report' workflow"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
N8N MCP Connector v2.0.0
A high-performance Model Context Protocol (MCP) server that provides seamless integration with N8N automation platform. This connector enables AI assistants and other MCP clients to interact with N8N workflows, executions, and automation capabilities with enterprise-grade reliability and performance.
✨ Features
Core Capabilities
Workflow Management: Execute, list, and manage N8N workflows with advanced filtering
Execution Monitoring: Real-time tracking of workflow execution status and results
Advanced Operations: Create nodes, manage connections, and configure webhooks
Node Management: Full CRUD operations for individual workflow nodes
Performance & Reliability
Intelligent Caching: Multi-tier caching system with TTL and LRU eviction
Connection Pooling: Optimized HTTP connections for better performance
Circuit Breaker: Resilience patterns for external API failures
Metrics & Monitoring: Comprehensive performance tracking and health checks
Rate Limiting: Built-in protection against API abuse
Developer Experience
Type Safety: Full TypeScript implementation with strict typing
Modular Architecture: Clean, maintainable, and extensible codebase
Comprehensive Testing: Unit, integration, and E2E test coverage
Rich Documentation: Detailed guides and API documentation
Configuration Management: Centralized, validated configuration system
Related MCP server: MCP Server for n8n Integration
🚀 Quick Start
Prerequisites
Active n8n instance
API access configured in n8n
Claude Desktop installed
📦 Instalación Remota (Recomendado)
Nuestros scripts de instalación ahora detectan automáticamente el mejor ejecutor de paquetes (uvx, npx, npm) disponible en tu sistema para una experiencia más fluida y un rendimiento óptimo.
Puedes anular el ejecutor detectado configurando la variable de entorno RUNNER. Por ejemplo: RUNNER=npm ./install-remote.sh.
Opción A: Ejecución Remota con Runner Dinámico
# Instalación automática
curl -fsSL https://raw.githubusercontent.com/carlosjperez/n8n-mcp-connector/main/install-remote.sh | bash
# Selecciona la opción 1Opción B: MCP.so
# Instalación automática
curl -fsSL https://raw.githubusercontent.com/carlosjperez/n8n-mcp-connector/main/install-remote.sh | bash
# Selecciona opción 2 (MCP.so)🔧 Instalación Local (Desarrollo)
# Clone repository
git clone https://github.com/carlosjperez/n8n-mcp-connector.git
cd n8n-mcp-connector
# Install dependencies
npm install
# Configure environment
cp .env.example .env
# Edit .env with your n8n credentials
# Build and start
npm run build
npm startEnvironment Configuration
# Required: n8n instance URL
N8N_BASE_URL=http://localhost:5678
# Option 1: API Key authentication (recommended)
N8N_API_KEY=your_api_key_here
# Option 2: Username/Password authentication
N8N_USERNAME=your_username
N8N_PASSWORD=your_passwordClaude Desktop Integration
Nota: Los scripts de instalación se encargan de esto automáticamente. La siguiente configuración es un ejemplo. El campo command será rellenado por el script de instalación con el ejecutor de paquetes detectado (uvx, npx, o npm).
📦 Configuración de Ejecución Remota (Ejemplo)
{
"mcpServers": {
"n8n-workflows": {
"command": "npx",
"args": ["n8n-mcp-connector"],
"env": {
"N8N_BASE_URL": "https://tu-instancia-n8n.com",
"N8N_API_KEY": "tu_api_key_aqui"
}
}
}
}☁️ Configuración MCP.so (Totalmente remoto)
{
"mcpServers": {
"n8n-workflows": {
"command": "mcp",
"args": ["install", "n8n-workflows/carlosjperez"],
"env": {
"N8N_BASE_URL": "https://tu-instancia-n8n.com",
"N8N_API_KEY": "tu_api_key_aqui"
}
}
}
}🔧 Configuración Local (Desarrollo)
{
"mcpServers": {
"n8n-automation": {
"command": "node",
"args": ["./dist/index.js"],
"cwd": "/absolute/path/to/n8n-mcp-connector",
"env": {
"N8N_BASE_URL": "http://localhost:5678",
"N8N_API_KEY": "your_api_key_here"
}
}
}
}🛠️ Available Tools
The MCP server provides comprehensive tools for N8N automation:
Core Workflow Tools
execute_workflow: Execute workflows with advanced options and monitoringlist_workflows: List workflows with filtering, pagination, and cachingget_workflow: Get detailed workflow information with intelligent cachingget_execution_status: Real-time execution status with performance metricslist_executions: List executions with filtering and statisticsactivate_workflow: Activate/deactivate workflows with validationcreate_webhook: Create webhook endpoints with security options
Advanced Node Management
create_node: Create new nodes with validation and type checkingupdate_node: Update existing nodes with conflict detectiondelete_node: Safely remove nodes with dependency checkingcreate_connection: Create connections with validationdelete_connection: Remove connections with impact analysis
Monitoring & Diagnostics
Built-in health checks and status monitoring
Performance metrics and cache statistics
Error tracking and debugging tools
Connection pool and resource monitoring
🧪 Testing
Comprehensive testing strategy with multiple test types:
# Run all tests
npm test
# Run specific test suites
npm run test:unit # Unit tests
npm run test:integration # Integration tests
npm run test:e2e # End-to-end tests
# Run with coverage
npm run test:coverage
# Run in watch mode
npm run test:watch
# Performance testing
npm run test:performance🔧 Development
# Start development server with hot reload
npm run dev
# Development with debug logging
DEBUG=n8n-mcp:* npm run dev
# Code quality
npm run lint # ESLint
npm run format # Prettier
npm run type-check # TypeScript
# Build optimization
npm run build:analyze # Bundle analysis
npm run build:production # Optimized build🏗️ Architecture
The connector follows a modern, scalable architecture with performance optimizations:
src/
├── config/ # Centralized configuration management
│ └── index.ts # Validated configuration with defaults
├── clients/ # External service clients
│ └── n8n-client.ts # N8N API client with caching & pooling
├── handlers/ # MCP tool handlers
│ ├── tool-handlers.ts
│ └── advanced-tool-handlers.ts
├── utils/ # Utility modules
│ ├── cache.ts # Intelligent caching system
│ ├── metrics.ts # Metrics and monitoring
│ ├── logger.ts # Structured logging
│ ├── validator.ts # Input validation
│ └── resilience.ts # Circuit breaker & retry logic
└── index.ts # Main server with monitoringKey Design Patterns
Singleton Pattern: Configuration and client instances
Factory Pattern: Tool handler creation
Observer Pattern: Event-driven metrics collection
Circuit Breaker: Resilience for external API calls
Cache-Aside: Intelligent caching with TTL and LRU eviction
Performance Features
Multi-tier Caching: Different TTL for different data types
Connection Pooling: Optimized HTTP connections
Request Batching: Efficient API usage
Lazy Loading: On-demand resource initialization
Memory Management: Automatic cleanup and optimization
📊 Performance Metrics
Expected Performance
Request Latency: < 100ms (cached), < 500ms (uncached)
Throughput: > 1000 requests/minute
Cache Hit Ratio: > 80% for repeated requests
Memory Usage: < 512MB under normal load
Uptime: > 99.9% availability
Monitoring
# Health check
curl http://localhost:3000/health
# Detailed metrics
curl http://localhost:3000/metrics
# Cache statistics
curl http://localhost:3000/health/detailed📚 Documentation
Technical Guide - Comprehensive development guide
Architecture Documentation - System architecture details
API Reference - Complete API documentation
Deployment Guide - Production deployment instructions
Troubleshooting - Common issues and solutions
⚙️ Configuration
The connector uses a hierarchical configuration system with environment variables. Copy .env.example to .env and configure:
Required Settings
N8N_BASE_URL: Your N8N instance URL (e.g.,http://localhost:5678)N8N_API_KEY: Your N8N API key (get from N8N Settings > API Keys)
Performance Settings
# Cache Configuration
CACHE_DEFAULT_TTL=600000 # 10 minutes default TTL
CACHE_WORKFLOWS_DETAILS_TTL=600000 # Workflow details cache
CACHE_EXECUTIONS_COMPLETED_TTL=1800000 # Completed executions cache
# Connection Settings
CONNECTION_POOL_SIZE=10 # HTTP connection pool size
REQUEST_TIMEOUT=30000 # Request timeout
CIRCUIT_BREAKER_THRESHOLD=5 # Circuit breaker threshold
# Monitoring
MONITORING_ENABLED=true # Enable metrics collection
METRICS_INTERVAL=30000 # Metrics collection intervalEnvironment-Specific Settings
# Development
NODE_ENV=development
LOG_LEVEL=debug
DEBUG=n8n-mcp:*
# Production
NODE_ENV=production
LOG_LEVEL=warn
MONITORING_ENABLED=true🔒 Security
Environment-based credential management
Input validation and sanitization
Rate limiting and timeout protection
Error isolation without information leakage
📚 Usage Examples
Basic Workflow Execution
Ask Claude: "Execute the data-processing workflow with customer ID 12345"Monitoring Active Workflows
Ask Claude: "Show me all running workflows and their current status"Webhook Creation
Ask Claude: "Create a webhook for the order-processing workflow"🤝 Contributing
Fork the repository
Create a feature branch (
git checkout -b feature/amazing-feature)Commit your changes (
git commit -m 'Add amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🤖 Sistema de Automatización
¡NUEVO! Sistema automatizado de gestión de errores CI/CD con integración Linear:
✅ Detección automática de fallos en CI/CD
🎯 Asignación inteligente de agentes especializados
📊 Sincronización GitHub ↔ Linear
📈 Métricas y seguimiento automatizado
🚀 Configuración Rápida
# Configuración automática del sistema
./setup-automation-system.sh
# Verificar funcionamiento
./verify-automation-system.sh📖 Documentación completa: README-AUTOMATION.md
🆘 Support
🛣 Roadmap
Advanced workflow templates
Bulk operations support
Real-time monitoring dashboard
Integration with additional automation platforms
Enhanced error reporting and analytics
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/carlosjperez/n8n-mcp-connector'
If you have feedback or need assistance with the MCP directory API, please join our Discord server