freqkflag/coolify-mcp-enhanced
If you are the rightful owner of coolify-mcp-enhanced and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
Coolify MCP Enhanced Server is a comprehensive Model Context Protocol server designed for managing Coolify infrastructure with AI-assisted natural language commands.
Coolify MCP Enhanced Server
A comprehensive Model Context Protocol (MCP) server for complete Coolify infrastructure management. This enhanced server provides 50+ tools for managing applications, databases, services, domains, SSL certificates, backups, and more through AI-assisted natural language commands.
🚀 Features
Complete Coolify Management
- 50+ MCP Tools for comprehensive infrastructure management
- Application Management: Deploy from Docker Compose, Dockerfile, Docker images, or public repositories
- Database Management: Full CRUD operations with backup support
- Service Management: 100+ pre-configured service types
- Domain & SSL: Complete domain and SSL certificate management
- Monitoring: System health and statistics
- Backup Management: Create, restore, and manage backups
Application Deployment
- Deploy applications from Docker Compose files
- Deploy from Dockerfile configurations
- Deploy from Docker images
- Deploy from public Git repositories
- Environment variable management (CRUD + bulk operations)
- Application logs retrieval
- Start/stop/restart applications
Infrastructure Management
- Server resource monitoring
- Project and environment management
- Database operations with backup support
- Domain configuration and SSL certificates
- Service deployment and management
- System health monitoring
📋 Prerequisites
- Node.js 18+
- Coolify instance running (4.0+)
- Coolify API Token with appropriate permissions
🛠️ Installation
Option 1: NPM Package (Recommended)
npm install -g @freqkflag/coolify-mcp-enhanced
Option 2: Clone Repository
git clone https://github.com/freqkflag/coolify-mcp-enhanced.git
cd coolify-mcp-enhanced
npm install
npm run build
Option 3: Docker
docker run -d \
--name coolify-mcp \
-e COOLIFY_BASE_URL="https://your-coolify-instance.com" \
-e COOLIFY_ACCESS_TOKEN="your-api-token" \
freqkflag/coolify-mcp-enhanced:latest
⚙️ Configuration
Environment Variables
export COOLIFY_BASE_URL="https://your-coolify-instance.com"
export COOLIFY_ACCESS_TOKEN="your-api-token"
MCP Client Configuration
Add to your MCP configuration file (e.g., mcp.json):
{
"mcpServers": {
"coolify": {
"command": "npx",
"args": ["-y", "@freqkflag/coolify-mcp-enhanced"],
"env": {
"COOLIFY_BASE_URL": "https://your-coolify-instance.com",
"COOLIFY_ACCESS_TOKEN": "your-api-token"
},
"type": "stdio"
}
}
}
Local Installation Configuration
{
"mcpServers": {
"coolify": {
"command": "/usr/bin/node",
"args": ["-u", "/path/to/coolify-mcp-enhanced/dist/index.js"],
"env": {
"COOLIFY_BASE_URL": "https://your-coolify-instance.com",
"COOLIFY_ACCESS_TOKEN": "your-api-token"
},
"type": "stdio"
}
}
}
🎯 Usage Examples
Server Management
"Show me all Coolify servers"
"Get details for server {uuid}"
"Validate server {uuid}"
"Show server resources for {uuid}"
Project Management
"List all projects"
"Create a new project called 'my-webapp' with description 'My web application'"
"Update project {uuid} with new name 'updated-name'"
"Delete project {uuid}"
Application Deployment
"Deploy application {uuid}"
"Create application from Docker Compose with project {project_uuid} and server {server_uuid}"
"Start application {uuid}"
"Stop application {uuid}"
"Restart application {uuid}"
"Show logs for application {uuid}"
Environment Variables
"Get environment variables for application {uuid}"
"Add environment variable KEY=VALUE to application {uuid}"
"Update environment variable {env_uuid} for application {uuid}"
"Delete environment variable {env_uuid} from application {uuid}"
Database Management
"List all databases"
"Create database {type} with name {name}"
"Update database {uuid} configuration"
"Create backup for database {uuid}"
"Restore database from backup {backup_uuid}"
Domain & SSL Management
"List all domains"
"Create domain {name} for application {uuid}"
"Create SSL certificate for domain {uuid}"
"Update domain {uuid} configuration"
Service Management
"List all services"
"Create {service_type} service for project {project_uuid}"
"Deploy service {uuid}"
"Delete service {uuid}"
📚 Available Tools
Server Management (5 tools)
list_servers- List all Coolify serversget_server- Get server detailsget_server_resources- Get server resource usageget_server_domains- Get server domainsvalidate_server- Validate server configuration
Project Management (6 tools)
list_projects- List all projectsget_project- Get project detailscreate_project- Create new projectupdate_project- Update existing projectdelete_project- Delete projectget_project_environment- Get project environment details
Application Management (8 tools)
list_applications- List all applicationsget_application- Get application detailscreate_application_dockercompose- Create from Docker Composecreate_application_dockerfile- Create from Dockerfilecreate_application_dockerimage- Create from Docker imagecreate_application_public- Create public applicationupdate_application- Update applicationdelete_application- Delete application
Application Deployment (4 tools)
deploy_application- Deploy applicationrestart_application- Restart applicationstart_application- Start applicationstop_application- Stop application
Environment Variables (5 tools)
get_application_envs- Get environment variablescreate_application_env- Create environment variableupdate_application_env- Update environment variableupdate_application_envs_bulk- Bulk update environment variablesdelete_application_env- Delete environment variable
Application Logs (1 tool)
get_application_logs- Get application logs with configurable line count
Database Management (5 tools)
list_databases- List all databasesget_database- Get database detailsupdate_database- Update database configurationdelete_database- Delete database with cleanup optionsget_database_backups- Get database backups
Service Management (4 tools)
list_services- List all servicesget_service- Get service detailscreate_service- Create new service (100+ service types supported)delete_service- Delete service with cleanup options
Domain Management (5 tools)
list_domains- List all domainsget_domain- Get domain detailscreate_domain- Create new domainupdate_domain- Update domain configurationdelete_domain- Delete domain
SSL Certificate Management (4 tools)
list_ssl_certificates- List SSL certificatesget_ssl_certificate- Get certificate detailscreate_ssl_certificate- Create SSL certificatedelete_ssl_certificate- Delete SSL certificate
Monitoring & Health (2 tools)
get_system_health- Get system health statusget_system_stats- Get system statistics
Backup Management (4 tools)
list_backups- List all backupscreate_backup- Create backuprestore_backup- Restore from backupdelete_backup- Delete backup
🔧 Development
Prerequisites
- Node.js 18+
- npm or yarn
- TypeScript
Setup
git clone https://github.com/freqkflag/coolify-mcp-enhanced.git
cd coolify-mcp-enhanced
npm install
Build
npm run build
Test
npm test
Development Mode
npm run dev
📖 API Documentation
The MCP server provides comprehensive access to Coolify's API endpoints:
- Applications API: Complete application lifecycle management
- Databases API: Database operations and backup management
- Services API: Service deployment and management
- Domains API: Domain and SSL certificate management
- Projects API: Project and environment management
- Servers API: Server monitoring and validation
🤝 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 file for details.
🙏 Acknowledgments
- Coolify - The amazing self-hosted deployment platform
- Model Context Protocol - The protocol that makes this possible
- StuMason - Original Coolify MCP server inspiration
📞 Support
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Documentation: Wiki
🔗 Links
Made with ❤️ for the Coolify community