Monoliet MCP Server for n8n
Exposes a management REST API intended for integration with the Django Monoliet Portal admin panel, enabling administrative operations such as health monitoring and workflow statistics.
Provides tools for managing n8n workflows through the n8n API: listing, searching, creating, updating, activating/deactivating, deleting workflows, triggering executions, inspecting execution history, and monitoring workflow health.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Monoliet MCP Server for n8n
Natural language workflow management for n8n through Claude
A production-ready Model Context Protocol (MCP) server that enables Claude to manage n8n workflows through natural conversation. Create, manage, monitor, and debug your automation workflows using plain English.
🌟 Features
🗣️ Natural Language Interface: Manage workflows using conversational commands
📊 Comprehensive Workflow Management: Create, update, activate, deactivate, and delete workflows
🔍 Smart Search: Find workflows by name or tags
⚡ Execution Control: Trigger workflows manually and monitor their execution
📈 Health Monitoring: Track workflow success rates and identify issues
🔒 Production-Ready: Full error handling, logging, and type safety
🐳 Docker Support: Easy deployment with Docker and docker-compose
✅ Well-Tested: Comprehensive test suite with >80% coverage
Related MCP server: n8n Workflow Builder
📋 Table of Contents
🚀 Installation
Prerequisites
Python 3.11 or higher
n8n instance (running and accessible)
n8n API key
Docker (optional, for containerized deployment)
Option 1: Local Installation
# Clone the repository
git clone https://github.com/monoliet/monoliet-mcp-server.git
cd monoliet-mcp-server
# Create virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Copy environment template
cp .env.example .env
# Edit .env with your configuration
nano .envOption 2: Docker Installation
# Clone the repository
git clone https://github.com/monoliet/monoliet-mcp-server.git
cd monoliet-mcp-server
# Copy environment template
cp .env.example .env
# Edit .env with your configuration
nano .env
# Build and run with docker-compose
docker-compose up -d⚡ Quick Start
1. Configure Environment Variables
Edit your .env file:
# n8n Configuration
N8N_URL=http://localhost:5678
N8N_API_KEY=your-n8n-api-key-here
# MCP Server Configuration
MCP_SERVER_HOST=0.0.0.0
MCP_SERVER_PORT=8001
LOG_LEVEL=INFO2. Get Your n8n API Key
Open your n8n instance
Go to Settings → API
Click Create API Key
Copy the key to your
.envfile
3. Choose Server Mode
The server supports two modes:
stdio mode - For Claude Desktop integration (default) HTTP mode - For remote access via HTTP API
# For Claude Desktop (default)
MCP_SERVER_MODE=stdio
# For remote/HTTP access
MCP_SERVER_MODE=http4. Run the Server
stdio mode (Claude Desktop):
python -m src.server
# or
./start.shHTTP mode (Remote Access):
MCP_SERVER_MODE=http python -m src.serverDocker (HTTP mode by default):
docker-compose up -d5. Verify It's Working
For HTTP mode:
# Check health
curl http://localhost:8001/health
# List tools
curl http://localhost:8001/tools
# View logs (Docker)
docker-compose logs -f monoliet-mcpFor stdio mode:
# Check process is running
ps aux | grep "src.server"⚙️ Configuration
Environment Variables
Variable | Description | Default | Required |
| n8n instance URL | - | ✅ Yes |
| n8n API key | - | ✅ Yes |
| API request timeout (seconds) |
| No |
| Max API request retries |
| No |
| Server bind host |
| No |
| Server bind port |
| No |
| Management API port |
| No |
| Logging level |
| No |
| Log format (json/console) |
| No |
| Optional auth token | - | No |
| Enable response caching |
| No |
| Cache TTL in seconds |
| No |
| Enable rate limiting |
| No |
| Max requests per minute |
| No |
Advanced Configuration
For Django integration and webhook support, see SETUP.md.
🛠️ Available Tools
The MCP server provides 11 tools for managing n8n workflows:
Workflow Management
1. list_workflows
List all workflows with optional filtering.
Parameters:
status(string, optional): Filter by status - "active", "inactive", or "all" (default: "all")
Example:
List all my active workflows2. get_workflow_details
Get detailed information about a specific workflow.
Parameters:
workflow_id(string, required): Workflow ID
Example:
Show me details for workflow abc1233. create_workflow
Create a new workflow.
Parameters:
name(string, required): Workflow namenodes(array, optional): Node definitionsconnections(object, optional): Node connectionssettings(object, optional): Workflow settingstags(array, optional): Workflow tagsactive(boolean, optional): Activate immediately (default: false)
Example:
Create a new workflow called "Daily Email Report"4. update_workflow
Update an existing workflow.
Parameters:
workflow_id(string, required): Workflow IDname(string, optional): New namenodes(array, optional): Updated nodesconnections(object, optional): Updated connectionssettings(object, optional): Updated settingstags(array, optional): Updated tagsactive(boolean, optional): Updated activation status
Example:
Update workflow abc123 to add the tag "production"5. activate_workflow
Activate a workflow to start processing.
Parameters:
workflow_id(string, required): Workflow ID
Example:
Activate the "Daily Email Report" workflow6. deactivate_workflow
Deactivate a workflow to stop processing.
Parameters:
workflow_id(string, required): Workflow ID
Example:
Deactivate workflow abc1237. delete_workflow
Permanently delete a workflow.
Parameters:
workflow_id(string, required): Workflow IDconfirm(boolean, required): Confirmation flag
Example:
Delete workflow abc1238. search_workflows
Search for workflows by name or tags.
Parameters:
query(string, required): Search queryactive_only(boolean, optional): Only search active workflows (default: false)
Example:
Search for workflows with "email" in the nameExecution Management
9. execute_workflow
Manually trigger a workflow execution.
Parameters:
workflow_id(string, required): Workflow IDdata(object, optional): Input data for the workflow
Example:
Execute the "Daily Email Report" workflow10. get_executions
Get execution history with filtering.
Parameters:
workflow_id(string, optional): Filter by workflow IDstatus(string, optional): Filter by status - "success", "error", "waiting", or "all"limit(integer, optional): Max results (1-250, default: 20)include_data(boolean, optional): Include full execution data (default: false)
Example:
Show me the last 10 failed executionsHealth & Monitoring
11. get_workflow_health
Get health statistics for a workflow.
Parameters:
workflow_id(string, required): Workflow IDlimit(integer, optional): Executions to analyze (10-1000, default: 100)
Example:
Check the health of my "Daily Email Report" workflow💬 Usage Examples
Example 1: List and Activate Workflows
User: "Show me all my inactive workflows"
Claude: Uses list_workflows with status="inactive"
{
"total_count": 3,
"workflows": [
{"id": "1", "name": "Email Digest", "active": false},
{"id": "2", "name": "Data Sync", "active": false},
{"id": "3", "name": "Report Generator", "active": false}
]
}User: "Activate the Email Digest workflow"
Claude: Uses activate_workflow with workflow_id="1"
Example 2: Search and Monitor
User: "Find all workflows related to email and check their health"
Claude: Uses search_workflows with query="email"
Then for each workflow, uses get_workflow_health
Example 3: Create and Execute
User: "Create a new workflow called 'Customer Onboarding' and execute it"
Claude:
Uses
create_workflowwith name="Customer Onboarding"Uses
execute_workflowwith the new workflow_id
Example 4: Troubleshooting
User: "Why is my 'Data Sync' workflow failing?"
Claude:
Uses
search_workflowsto find the workflowUses
get_workflow_healthto check statisticsUses
get_executionswith status="error" to see recent failuresAnalyzes the error data and provides recommendations
🔧 Management API
The MCP server includes a REST API for management operations, designed specifically for integration with the Django Monoliet Portal admin panel. This API runs concurrently with the MCP server and provides administrative capabilities.
Ports
MCP Server: Port 8001 (MCP protocol - stdio or HTTP)
Management API: Port 8002 (REST API - always HTTP)
Key Features
Health Monitoring: Check server and n8n connectivity status
Workflow Statistics: Get aggregated workflow metrics
Workflow Management: Activate, deactivate, and execute workflows
Configuration Viewing: Access current server configuration (sensitive data redacted)
Authentication: Bearer token authentication for Django portal integration
CORS Support: Configured for Django portal domains
Quick Start
The Management API starts automatically when you run the MCP server:
# Local development
python -m src.server
# Docker
docker-compose up -dThe Management API will be available at http://localhost:8002
Example Endpoints
# Health check (no auth required)
curl http://localhost:8002/health
# Get workflow statistics (requires auth)
curl -H "Authorization: Bearer your-django-token" \
http://localhost:8002/workflows/stats
# List all workflows (requires auth)
curl -H "Authorization: Bearer your-django-token" \
http://localhost:8002/workflows
# Activate a workflow (requires auth)
curl -X POST \
-H "Authorization: Bearer your-django-token" \
http://localhost:8002/workflows/abc123/activateIntegration with Django Portal
The Management API is designed to be consumed by the monoliet-portal Django admin panel:
All endpoints (except
/health) require authentication via Django DRF tokensResponses are optimized for admin UI display
CORS is configured for portal domains
Real-time workflow statistics for dashboard
Documentation
See MANAGEMENT_API.md for complete API documentation including:
All available endpoints
Request/response formats
Authentication requirements
Error handling
Integration examples
Interactive Documentation
Access auto-generated API documentation:
Swagger UI:
http://localhost:8002/docsReDoc:
http://localhost:8002/redoc
🌐 HTTP API Mode
The MCP server can run in HTTP mode for remote access via REST API (separate from the Management API).
Enable HTTP Mode
# Set environment variable
export MCP_SERVER_MODE=http
# Or in .env
MCP_SERVER_MODE=httpAPI Endpoints
GET /health- Health checkGET /tools- List all available toolsPOST /call- Execute a toolGET /sse- Server-sent events stream
Example Usage
# Check health
curl http://localhost:8001/health
# List workflows
curl -X POST http://localhost:8001/call \
-H "Content-Type: application/json" \
-d '{
"tool": "list_workflows",
"arguments": {"status": "all"}
}'See HTTP_API.md for complete API documentation.
🖥️ Integration with Claude Desktop
Install Claude Desktop
Download Claude Desktop from https://claude.ai/download
Configure MCP Server
Edit your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Add the following:
{
"mcpServers": {
"monoliet-n8n": {
"command": "python",
"args": ["-m", "src.server"],
"cwd": "/path/to/monoliet-mcp-server",
"env": {
"N8N_URL": "http://your-n8n-instance:5678",
"N8N_API_KEY": "your-api-key-here"
}
}
}
}Using Docker with Claude Desktop
For Docker deployment, use the docker run command:
{
"mcpServers": {
"monoliet-n8n": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--network=web",
"-e", "N8N_URL=http://n8n:5678",
"-e", "N8N_API_KEY=your-api-key",
"monoliet-mcp-server"
]
}
}
}Restart Claude Desktop
Close and reopen Claude Desktop. You should now see the Monoliet n8n MCP server available in your conversations!
🧪 Development
Setup Development Environment
# Install development dependencies
pip install -r requirements.txt
pip install -e ".[dev]"
# Install pre-commit hooks (optional)
pre-commit installCode Quality
# Format code
black src/ tests/
# Lint code
ruff check src/ tests/
# Type checking
mypy src/Project Structure
monoliet-mcp-server/
├── src/
│ ├── __init__.py
│ ├── server.py # Main MCP server
│ ├── n8n_client.py # n8n API client
│ ├── config.py # Configuration management
│ └── tools/ # MCP tools
│ ├── __init__.py
│ ├── base.py # Base tool class
│ ├── workflows.py # Workflow tools
│ ├── executions.py # Execution tools
│ └── health.py # Health monitoring tools
├── tests/ # Test suite
├── Dockerfile # Docker configuration
├── docker-compose.yml # Docker Compose setup
└── requirements.txt # Python dependencies✅ Testing
Run All Tests
# Run test suite
pytest
# Run with coverage
pytest --cov=src --cov-report=html
# Run specific test file
pytest tests/test_n8n_client.py
# Run with verbose output
pytest -vTest Coverage
Current test coverage: >80%
View coverage report:
pytest --cov=src --cov-report=html
open htmlcov/index.html # macOS
start htmlcov/index.html # Windows🐛 Troubleshooting
Connection Issues
Problem: Can't connect to n8n
Solutions:
Verify n8n is running:
curl http://localhost:5678Check API key is valid in n8n settings
Ensure
N8N_URLin.envis correctCheck network connectivity (Docker network if using containers)
Authentication Errors
Problem: Getting 401/403 errors
Solutions:
Regenerate your n8n API key
Update
.envwith the new keyRestart the MCP server
Tool Not Found
Problem: Claude says "tool not found"
Solutions:
Restart Claude Desktop
Check MCP server is running:
docker-compose psVerify Claude Desktop config has correct path
Check server logs:
docker-compose logs monoliet-mcp
Execution Timeouts
Problem: Workflow executions timing out
Solutions:
Increase
N8N_TIMEOUTin.envCheck workflow complexity (simplify if needed)
Monitor n8n server resources
Docker Issues
Problem: Container won't start
Solutions:
# Check logs
docker-compose logs
# Rebuild container
docker-compose down
docker-compose build --no-cache
docker-compose up -d
# Check network exists
docker network ls | grep web
docker network create web # If missing📊 Performance & Limits
Rate Limiting: 100 requests/minute (configurable)
Execution Timeout: 30 seconds (configurable)
Max Executions Query: 250 executions
Cache TTL: 60 seconds (configurable)
🔒 Security
API keys stored in environment variables (never committed)
Non-root Docker user
Input validation on all tools
HTTPS support for n8n connections
Optional authentication token for MCP server
📝 License
MIT License - see LICENSE file for details.
🤝 Contributing
Contributions welcome! Please:
Fork the repository
Create a feature branch
Make your changes
Add tests
Submit a pull request
📞 Support
Issues: GitHub Issues
Discussions: GitHub Discussions
Email: support@monoliet.com
🙏 Acknowledgments
Built with Anthropic MCP SDK
Powered by n8n
Inspired by the Claude Code community
Made with ❤️ by Monoliet
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Know when your n8n workflows, URLs, and AI apps break, before your customers do.
Build, check and fix n8n workflows from Claude, Cursor or ChatGPT. Built on 1,100+ real n8n node definitions and curated templates, with a validator that repairs common mistakes (wrong node types, missing settings) and returns JSON ready to import into n8n. Sign in with a free gydmation.com account; nothing to install.
n8n MCP — query your own n8n instance (BYO).
AI automation platform (n8n/Zapier alternative): build, schedule and run workflows from your agent.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables management of n8n workflow automations through natural language, supporting creation, execution, updates, and deletion of workflows, along with node discovery and execution status monitoring.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage n8n automation workflows through natural language commands, including creating, executing, monitoring, and organizing workflows with full CRUD operations and execution management.106 npm2MIT
- AlicenseBqualityDmaintenanceEnables users to manage workflows, monitor executions, and perform administrative tasks in n8n through natural language conversations with Claude. It provides over 40 tools to control self-hosted or cloud n8n instances via the Model Context Protocol.42MIT
- AlicenseCqualityBmaintenanceEnables managing and building n8n workflows from Claude Desktop or Cursor, including workflow CRUD, execution monitoring, credential management, a full node catalog with validation/autofix, snapshots with rollback, health reports, backup/import, and admin tools.61177 npm22MIT