The Coolify MCP Server enables AI assistants to manage a self-hosted Coolify PaaS instance through comprehensive API integration.
Application Management: Create applications from public/private Git repos (GitHub App or SSH deploy key), Dockerfiles, Docker images, or Docker Compose. Control lifecycle (start, stop, restart, deploy), view logs and deployment history, execute commands in containers, and manage environment variables (individual or bulk operations).
Database Operations: Support for 8 database types (PostgreSQL, MySQL, MariaDB, MongoDB, Redis, ClickHouse, Dragonfly, KeyDB). Create, update, delete, start, stop, restart instances, and configure backup scheduling.
Service Management: Deploy and manage services with Docker Compose configurations. Control lifecycle, update configurations, and manage environment variables.
Server Administration: Create, update, delete, and validate server connections. Monitor resource usage and configured domains, configure SSH settings and build servers.
Project & Environment Organization: Organize resources into projects with multiple environments (production, staging, etc.).
Deployment Management: List, view details, and cancel deployments. Deploy by UUID or tag (supports multiple resources) with optional force rebuild.
Security & Access Control: Manage SSH private keys and GitHub Apps for repository access. Browse GitHub repositories and branches. Read-only mode for safe monitoring and confirmation-required mode for dangerous operations.
Team Management: List teams, view team details and members, handle multi-team setups.
Monitoring & System: Check API health and version information, view application/service/deployment logs, list all resources in one call.
MCP Resources: Direct resource access via coolify:// URIs for applications, databases, servers, and more.
Advanced Features: Bulk operations for environment variables, rate limiting with automatic retry, TypeScript type safety, instant deploy options, and custom port/user configurations.
Enables management and deployment of MongoDB databases through Coolify's self-hosted PaaS platform, including database creation and monitoring.
Enables management and deployment of MySQL databases through Coolify's self-hosted PaaS platform, including database creation and monitoring.
Enables management and deployment of PostgreSQL databases through Coolify's self-hosted PaaS platform, including database creation and monitoring.
Enables management and deployment of Redis databases through Coolify's self-hosted PaaS platform, including database creation and monitoring.
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., "@Coolify MCP Serverdeploy the latest version of my web app to production"
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.
Coolify MCP Server
A Model Context Protocol (MCP) server for Coolify API integration. Control your self-hosted PaaS directly from Claude, Kiro, or any MCP-compatible AI assistant.
🚀 Features
Complete API Coverage: Applications, Databases, Servers, Projects, Services, Teams, Deployments, Private Keys
MCP Resources: Direct resource access via
coolify://URIsVersion Detection: Automatic feature compatibility based on Coolify version
Rate Limiting: Built-in rate limit handling with retry logic
Minimal Dependencies: Only axios and MCP SDK
TypeScript: Full type safety
📦 Installation
Quick Setup (Recommended)
Run the interactive setup wizard:
This will:
Ask for your Coolify URL and API token
Validate the connection
Configure your IDE automatically (Kiro, Cursor, VS Code, Claude Desktop)
Quick Setup with Arguments
Global Installation
From Source
⚙️ Configuration
Environment Variables
Variable | Required | Description |
| Yes | Your Coolify instance URL (e.g., |
| Yes | API token from Coolify |
| No | Team ID for multi-team setups |
| No | Set to |
| No | Set to |
🔒 Read-Only Mode
For safe monitoring without risk of accidental changes, enable read-only mode:
In read-only mode, only these operations are available:
get_*- Get details of resourceslist_*- List resourceshealth_check- Check API health
All write operations (create_*, start_*, stop_*, restart_*, deploy_*, execute_command) are disabled.
⚠️ Confirmation for Dangerous Operations
For extra safety, you can require confirmation before executing dangerous operations:
When enabled, these operations require explicit confirmation:
stop_application,restart_applicationstop_service,restart_servicedeploy_applicationexecute_command
Without confirm: true, these operations return a warning:
To execute, call again with confirm: true:
Getting an API Token
Go to your Coolify instance
Navigate to Keys & Tokens → API tokens
Create a new token with required permissions:
read- For listing resourceswrite- For creating/updating resourcesdeploy- For deployment operations
🔧 Usage
With Claude Desktop
Add to your claude_desktop_config.json:
With Kiro
Add to your .kiro/settings/mcp.json:
From Source
🛠️ Available Tools
Version & Health
Tool | Description |
| Get Coolify version information |
| Check API health status |
Teams
Tool | Description |
| List all accessible teams |
| Get team details by ID |
| Get current team details |
| Get current team members |
| Get members of a specific team |
Servers
Tool | Description |
| List all servers |
| Get server details by UUID |
| Create a new server |
| Update a server |
| Delete a server |
| Validate server connection |
| Get server resource usage |
| Get domains configured on a server |
Projects & Environments
Tool | Description |
| List all projects |
| Get project details |
| Create a new project |
| Update a project |
| Delete a project |
| List environments in a project |
| Get environment details |
| Create a new environment |
| Delete an environment |
Applications
Tool | Description |
| List all applications |
| Get application details |
| Create a new application |
| Create from a public Git repository |
| Create from private repo using GitHub App |
| Create from private repo using deploy key |
| Create from a Dockerfile |
| Create from a Docker image |
| Create from Docker Compose |
| Update an application |
| Delete an application |
| Start an application |
| Stop an application |
| Restart an application |
| Deploy an application |
| Deploy resources by UUID or tag |
| Execute command in container |
| Get application logs |
| Get all deployments for an application |
Application Environment Variables
Tool | Description |
| Get environment variables for an application |
| Create an environment variable |
| Update an environment variable |
| Delete an environment variable |
| Update multiple environment variables in bulk |
Services
Tool | Description |
| List all services |
| Get service details by UUID |
| Create a new service |
| Update a service |
| Delete a service |
| Start a service |
| Stop a service |
| Restart a service |
Service Environment Variables
Tool | Description |
| Get environment variables for a service |
| Create an environment variable |
| Update an environment variable |
| Delete an environment variable |
| Update multiple environment variables in bulk |
Databases
Tool | Description |
| List all databases |
| Get database details by UUID |
| Create a new database (PostgreSQL, MySQL, MariaDB, MongoDB, Redis, ClickHouse, Dragonfly, KeyDB) |
| Update a database |
| Delete a database |
| Start a database |
| Stop a database |
| Restart a database |
| Get backup configurations for a database |
| Create a backup configuration |
Deployments
Tool | Description |
| List all deployments |
| Get deployment details |
| Cancel a deployment in progress |
Private Keys
Tool | Description |
| List all SSH private keys |
| Get a private key by UUID |
| Create a new SSH private key |
| Update a private key |
| Delete a private key |
GitHub Apps
Tool | Description |
| List all GitHub Apps configured in Coolify |
| Get GitHub App details by ID |
| Create a new GitHub App configuration |
| Update a GitHub App configuration |
| Delete a GitHub App configuration |
| Get repositories accessible by a GitHub App |
| Get branches of a repository |
Resources
Tool | Description |
| List all resources (applications, services, databases) |
📚 MCP Resources
Access data directly via MCP resources:
💡 Example Prompts
Once configured, you can ask your AI assistant:
"List all my Coolify applications"
"Deploy the app with UUID abc123"
"Show me the logs for my-app"
"Create a new PostgreSQL database called mydb"
"What servers do I have in Coolify?"
"Restart the production application"
🤝 Contributing
Contributions are welcome! Please read our Contributing Guide for details.
Fork the repository
Create your feature branch (
git checkout -b feature/amazing-feature)Commit your changes (
git commit -m 'feat: 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.
🙏 Acknowledgments
Coolify - The amazing self-hosted PaaS
Model Context Protocol - The MCP specification
All contributors who help improve this project