Coolify MCP Server
๐ Coolify MCP Server (coolify-mcp)
A comprehensive, production-grade Model Context Protocol (MCP) server for Coolify v4 self-hosted PaaS.
Connect AI coding assistants and agents (Claude Desktop, Cursor, Antigravity, Claude Code, Windsurf, Cline, and VS Code) directly to your Coolify instance to orchestrate infrastructure, deploy applications, manage 8 types of databases, handle environment variables, and diagnose logs using natural language.
๐ Why coolify-mcp?
๐ 100% Full Coolify v4 API Coverage: 77 verified MCP tools covering Projects, Environments, Servers, Applications, Databases, Docker Compose Services, Deployments, Team Members, and SSH Keys.
๐ Read-Only Safety Guard: Enable
--read-only(orCOOLIFY_READ_ONLY=true) to let AI assistants audit, monitor, and troubleshoot without any mutating or destructive actions.๐๏ธ Universal Database Engine Support: Out-of-the-box creation and configuration for PostgreSQL, MySQL, MariaDB, MongoDB, Redis, ClickHouse, Dragonfly, and KeyDB with engine-specific parameter normalization.
๐ Dynamic MCP Resources: Native resources (
coolify://overview,coolify://servers,coolify://applications,coolify://databases) for zero-token ambient context.๐ก DevOps Prompt Templates: Pre-built prompt recipes (
diagnose-application,infrastructure-audit,deployment-summary) for autonomous diagnostics and health checks.๐ณ Docker & Stdio Transport Ready: Run as a standard Node CLI tool or inside isolated Docker containers with container-to-container network support.
๐ค AI Agent Setup Prompt (Copy & Paste)
If you are using an AI coding assistant (like Antigravity, Claude Code, Cursor, Windsurf, or Cline), simply copy and paste the prompt below into your assistant:
Please configure and set up the Coolify MCP server for me from https://github.com/frizikk/coolify-mcp.git.
Follow these steps:
1. Clone the repository:
git clone https://github.com/frizikk/coolify-mcp.git
2. Install dependencies and build the server:
cd coolify-mcp && pnpm install && pnpm build
3. Guide me to provide my Coolify instance URL (e.g. https://coolify.my-domain.com or http://localhost:8000) and API Bearer Token (generated in Coolify under Keys & Tokens / Settings -> API).
4. Add the `coolify` server configuration to my MCP client config (e.g., in Claude Desktop `claude_desktop_config.json`, Cursor `~/.cursor/mcp.json`, or Antigravity `~/.gemini/config/mcp_config.json`).
5. Test the connection by calling `coolify_get_version` and `coolify_get_infrastructure_overview` to verify connection to my Coolify instance.๐ ๏ธ MCP Tools Reference
The server exposes 77 specialized tools organized across 8 core DevOps domains:
1. System & Infrastructure Overview (4 tools)
Tool | Parameters | Description |
| none | Get running Coolify instance version string. |
| none | Perform health check on Coolify backend. |
| none | List all resources managed across all projects. |
| none | Get aggregated health, server status, apps, and databases dashboard. |
2. Servers & Nodes Management (8 tools)
Tool | Parameters | Description |
| none | List all registered servers with reachability and usability flags. |
|
| Get detailed server configuration, IP, and settings. |
|
| Validate SSH connection and connectivity to a server. |
|
| List all resources deployed to a specific server. |
|
| List all active domains and routes on a server. |
|
| Register a new server node. |
|
| Update server configuration. |
|
| Remove a server from Coolify. |
3. Teams & SSH Keys (9 tools)
Tool | Parameters | Description |
| none | List all teams accessible by token. |
| none | Get active authenticated team details. |
| none | List users and roles in active team. |
|
| Get team details by ID. |
|
| List members of specific team by ID. |
| none | List all registered SSH private keys. |
|
| Get private key details. |
|
| Register a new SSH private key (Ed25519/RSA). |
|
| Delete an SSH private key. |
4. Projects & Environments (9 tools)
Tool | Parameters | Description |
| none | List all projects and environments. |
|
| Get project structure and environment list. |
|
| Create a new project. |
|
| Update project name or description. |
|
| Delete an empty project. |
|
| List environments in a project. |
|
| Get environment details. |
|
| Create a new environment ( |
|
| Delete an environment. |
5. Applications (16 tools)
Tool | Parameters | Description |
| none | List all standalone applications. |
|
| Get application configuration, ports, and domains. |
|
| Deploy from public Git repo. |
|
| Deploy from private Git repo. |
|
| Deploy from raw or base64 Dockerfile. |
|
| Deploy pre-built Docker image. |
|
| Update application configuration. |
|
| Delete application and its containers. |
|
| Trigger start / deploy of application. |
|
| Stop running application container. |
|
| Restart application container. |
|
| Fetch runtime container stdout/stderr logs. |
|
| List all environment variables for application. |
|
| Set / create environment variable. |
|
| Bulk update multiple environment variables. |
|
| Delete an environment variable by UUID. |
6. Deployments (5 tools)
Tool | Parameters | Description |
| none | List global running and completed deployments. |
|
| List deployment history for a specific app. |
|
| Get deployment status, commit info, and logs. |
|
| Trigger an instant build and deployment. |
|
| Cancel an in-progress deployment. |
7. Databases (14 tools)
Tool | Parameters | Description |
| none | List all standalone databases. |
|
| Get database details and connection strings. |
|
| Create DB (PostgreSQL, MySQL, MariaDB, MongoDB, Redis, ClickHouse, Dragonfly, KeyDB). |
|
| Update database settings. |
|
| Delete database container and volume. |
|
| Start database container. |
|
| Stop database container. |
|
| Restart database container. |
|
| List backup configurations for database. |
|
| Schedule automatic database backups (cron). |
|
| Update backup schedule settings. |
|
| Delete backup configuration. |
|
| List backup run execution history. |
|
| Delete specific backup run artifact. |
8. One-Click Services & Docker Compose (12 tools)
Tool | Parameters | Description |
| none | List all one-click services. |
|
| Get service metadata, domains, and containers. |
|
| Deploy one-click template (Ghost, Plausible, etc.). |
|
| Update service settings. |
|
| Delete service stack. |
|
| Start service containers. |
|
| Stop service containers. |
|
| Restart service stack. |
|
| List service environment variables. |
|
| Create/update service environment variable. |
|
| Bulk update service environment variables. |
|
| Delete a service environment variable. |
๐ MCP Resources & Prompts
Resources
coolify://overviewโ Aggregated real-time summary of all servers, apps, databases, and services.coolify://serversโ Live list of servers and reachability status.coolify://applicationsโ Live status of all applications and URLs.coolify://databasesโ Live status of database containers.
Prompts
diagnose-applicationโ Automated diagnostic workflow: checks application state, analyzes recent logs, and inspects environment variables.infrastructure-auditโ Complete infrastructure health check across servers, disk limits, and failed containers.deployment-summaryโ Analyzes recent deployments and surfaces build failures.
โ๏ธ Configuration & Client Setup
Environment Variables
Variable | Description | Default |
| Base URL of your Coolify instance (e.g. |
|
| Coolify API Bearer Token |
|
| Restrict to non-mutating actions ( |
|
Client Config Examples
1. Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"coolify": {
"command": "node",
"args": ["/path/to/coolify-mcp/dist/index.js"],
"env": {
"COOLIFY_BASE_URL": "https://coolify.yourdomain.com",
"COOLIFY_API_TOKEN": "your-bearer-token"
}
}
}
}2. Cursor (~/.cursor/mcp.json or project .cursor/mcp.json)
{
"mcpServers": {
"coolify": {
"command": "node",
"args": ["/path/to/coolify-mcp/dist/index.js"],
"env": {
"COOLIFY_BASE_URL": "https://coolify.yourdomain.com",
"COOLIFY_API_TOKEN": "your-bearer-token"
}
}
}
}3. Antigravity (~/.gemini/config/mcp_config.json)
{
"mcpServers": {
"coolify": {
"command": "node",
"args": ["/path/to/coolify-mcp/dist/index.js"],
"env": {
"COOLIFY_BASE_URL": "https://coolify.yourdomain.com",
"COOLIFY_API_TOKEN": "your-bearer-token"
}
}
}
}4. Docker Container Mode
docker run -i --rm \
-e COOLIFY_BASE_URL="http://coolify:8080" \
-e COOLIFY_API_TOKEN="your-bearer-token" \
--network coolify-network \
coolify-mcp:latest๐งช Testing & Verification
The test suite includes unit tests and full end-to-end integration tests executed against a live Dockerized Coolify v4 instance:
# Run all automated unit and integration tests (43 tests)
pnpm test
# Run complete 77-tool live verification suite
pnpm test:verify-live๐ License
Distributed under the MIT License. See LICENSE for details.