Integrates with Coolify deployment platform which uses Docker for containerized application deployment and management
Manages environment variables and configuration through Coolify's environment configuration tools
Built on Node.js runtime and integrates with Coolify to deploy and manage Node.js applications
Manages PostgreSQL database services deployed through Coolify's service management capabilities
Manages Redis cache services deployed through Coolify's service management capabilities
Implements the MCP server in TypeScript with full type safety for Coolify API interactions
Coolify MCP Server
A 4-tool unified Model Context Protocol (MCP) server for Coolify deployment platform integration. This server enables AI assistants to interact with Coolify Self-hosted instances for application deployment, management, and monitoring.
🎯 Optimized for VS Code's 128-tool limit with 87% reduction (19→4 tools)
Features
🚀 Application Management
- Deploy applications with optional force deployment and branch selection
- Get detailed application information and status
- List applications with filtering capabilities
- Start, stop, and restart applications
- Monitor deployment status and health
- Create new applications
🔧 Environment & Configuration
- Update and retrieve environment variables
- Configure domains and SSL certificates
- Retrieve application logs for debugging
- Manage sensitive and build-time variables
🖥️ System Management
- List and monitor servers
- Manage teams and permissions
- View deployed services (databases, caches, etc.)
- Test API connectivity and system health
📚 Built-in Documentation
- Search Documentation: Find relevant Coolify guides and references
- API Reference: Access comprehensive API documentation with examples
- Troubleshooting Guides: Get help for common deployment and configuration issues
- Topic-specific Help: Get targeted documentation for specific features
Perfect for AI agents without Context7 MCP access - no external documentation dependencies required!
🧪 Complete Testing Suite
- 100% Test Success Rate: Comprehensive integration tests
- Demo Environment: Full Coolify setup with Docker Compose
- Browser Automation: MCP Playwright integration
- Real API Testing: Direct Coolify instance validation
Prerequisites
- Node.js 18+
- A running Coolify Self-hosted instance
- Coolify API token with appropriate permissions
Installation
- Clone or download this repository
- Install dependencies
- Configure environment variables
- Build the project
Configuration
Environment Variables
Create a .env
file with the following variables:
Getting Your API Token
- Log into your Coolify dashboard
- Go to Settings → Keys & Tokens → API Tokens
- Click Create New Token
- Choose permissions:
read-only
: View data onlyread:sensitive
: View sensitive data*
: Full access (recommended for automation)
- Copy the generated token to your
.env
file
⚠️ Security Note: API tokens are shown only once. Store them securely and never commit them to version control.
Usage
Development Mode
Production Mode
Integration with AI Assistants
This MCP server provides 4 unified tools for AI assistants, optimized for the 128-tool limit in VS Code:
📱 Application Management (coolify_application_management
)
Unified tool with 8 actions:
deploy
- Deploy an application with optional force deployment and branch selectionget
- Get detailed application informationlist
- List all applications with filtering capabilitiesstatus
- Get deployment status and healthstart
- Start an applicationstop
- Stop an applicationrestart
- Restart an applicationcreate
- Create a new application
⚙️ Environment Configuration (coolify_environment_configuration
)
Unified tool for environment and domain management:
env_vars
- Update and retrieve environment variablesdomains
- Configure domains and SSL certificateslogs
- Retrieve application logs for debugging
🖥️ System Management (coolify_system_management
)
Unified tool for server and infrastructure:
servers
- List and monitor serversteams
- Manage teams and permissionsservices
- View deployed services (databases, caches, etc.)health_check
- Test API connectivity and system health
📚 Documentation (coolify_documentation
)
Unified documentation tool with 6 actions:
search
- Search built-in Coolify documentationget
- Get documentation for specific topicsapi_reference
- Get API reference documentation with examplestroubleshooting
- Get troubleshooting guides for common issuestopics
- List available documentation topicsapi
- Get API endpoint documentation
Perfect for AI agents without Context7 MCP access - no external documentation dependencies required!
Example Usage
Here are some example commands you can use with AI assistants using the unified tools:
Application Management:
Environment Configuration:
System Management:
Documentation:
Documentation Features
The MCP server includes comprehensive built-in documentation accessed through the unified coolify_documentation
tool:
Built-in Documentation Covers:
- API Reference with examples
- Step-by-step deployment guides
- Environment variable configuration
- Domain and SSL setup
- Common troubleshooting scenarios
API Reference
This MCP server interacts with the Coolify API. For detailed API documentation, visit:
Architecture
Demo Environment
This project includes a complete Coolify demo environment for testing:
Includes:
- ✅ Coolify latest version
- ✅ PostgreSQL database
- ✅ Redis cache
- ✅ Soketi WebSocket server
- ✅ Pre-configured demo users
- ✅ Web interface at http://localhost:8000
Demo Credentials:
- Email:
test@example.com
- Password:
password123
Development
Building
Type Checking
Testing Documentation Features
This will test all built-in documentation features without requiring a Coolify connection.
Testing with Demo Environment
Test Suites:
test-integration.js
- Docker environment and build teststest-mcp-simple.js
- MCP server functionality teststest-web-interface.js
- Playwright browser automation teststest-real-coolify.js
- Real Coolify integration tests
Expected Results: 100% test success rate
Cleaning
Supported Coolify Versions
This MCP server is designed to work with:
- Coolify v4.x (Self-hosted)
- API version: v1
Security Considerations
- API Tokens: Store API tokens securely using environment variables
- Network Access: Ensure your Coolify instance is accessible from where this MCP server runs
- Permissions: Use appropriate API token permissions based on your use case
- HTTPS: Always use HTTPS for production Coolify instances
Troubleshooting
Common Issues
- Connection Failed
- Verify
COOLIFY_BASE_URL
is correct and accessible - Check that API token has proper permissions
- Ensure Coolify instance is running
- Verify
- Permission Denied
- Verify API token has sufficient permissions
- Check if team ID is required for your setup
- Application Not Found
- Verify application ID is correct
- Ensure you have access to the application
Debug Mode
Enable debug logging by setting:
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
License
MIT License - see LICENSE file for details
Support
Changelog
v1.0.0
- ✅ 4 Unified Tools: Optimized for VS Code's 128-tool limit
- ✅ Complete Demo Environment: Docker Compose setup with working Coolify instance
- ✅ 100% Test Coverage: Comprehensive test suites with 100% success rate
- ✅ Built-in Documentation: No external dependencies required
- ✅ Browser Automation: MCP Playwright integration for testing
- ✅ Application Management: Deploy, manage, and monitor applications
- ✅ Environment Configuration: Manage env vars, domains, and logs
- ✅ System Management: Server, team, and service management
- ✅ Full TypeScript Support: Complete type safety with Zod validation
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Enables AI assistants to interact with Coolify self-hosted instances for application deployment, management, and monitoring. Features 4 unified tools optimized for VS Code's limits, covering app management, environment configuration, system administration, and built-in documentation.
Related MCP Servers
- -securityAlicense-qualityProvides code manipulation, execution, and version control capabilities. It allows AI assistants to read, write, and execute code while maintaining a history of changes.Last updated -9PythonMIT License
- AsecurityFlicenseAqualityEnables interaction with Coolify applications and resources through the Coolify API via a standardized interface, supporting application management operations such as listing, starting, stopping, restarting, and deploying.Last updated -118JavaScript
- -securityFlicense-qualityA Model Context Protocol server that enables AI assistants to interact with Coolify instances through natural language, allowing management of servers, applications, databases, and deployments.Last updated -70334TypeScript
- -securityAlicense-qualityAn MCP server that enables AI assistants to manage infrastructure, applications, databases, and services through the Coolify PaaS platform.Last updated -21TypeScriptMIT License