Coolify MCP Server - AI DevOps Automation avatar

Coolify MCP Server - AI DevOps Automation

Pricing

from $5.00 / 1,000 tool calls

Go to Apify Store
Coolify MCP Server - AI DevOps Automation

Coolify MCP Server - AI DevOps Automation

Most Powerful Coolify MCP Server. Connect Claude, Cursor, AI IDEs and AI Agents directly to your self-hosted Coolify instance via this MCP server. Manage & inspect deployments, logs, health, and restart containers entirely via natural language.

Pricing

from $5.00 / 1,000 tool calls

Rating

0.0

(0)

Developer

Neha Srivastava

Neha Srivastava

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

a day ago

Last modified

Share

Coolify MCP Server — AI DevOps Automation

Most Powerful Coolify MCP Server. Connect Claude, Cursor, Antigravity, Windsurf, Trae, Roo or any custom AI Agents directly to your self-hosted Coolify instance via this Model Context Protocol (MCP) server.

Manage and inspect deployments, monitor server health, analyze application logs, and even restart Docker containers entirely via natural language. This Apify Actor completely solves the MCP hosting headache by replacing complex 24/7 server infrastructure with simple, serverless MCP API calls!


🚀 Why Use This Actor?

The Model Context Protocol (MCP) is revolutionizing how AI interacts with infrastructure. But running a Node.js MCP server 24/7 on your local machine or a dedicated VPS just to talk to your AI is a massive headache.

This Apify Actor completely solves the hosting problem. By running heavily-optimized, serverless Node.js infrastructure, it turns a 30-minute infrastructure setup into a simple 30-second API URL generation. You simply paste your Coolify API Token, grab your Apify Integration URL then our coolify tools will be available to your AI.

About this MCP Server: To understand how to connect to and utilize this MCP server, please refer to the official Model Context Protocol documentation at mcp.apify.com


What is this Actor?

Runs as a long‑lived Standby Actor with a stable URL so tools can call it on demand. Serves an MCP server over HTTP, exposing tools directly to AI agents.

Standby Mode

This Actor uses Standby mode, a lightweight method for using Actors. Instead of starting an Actor for each input and waiting for results, the Actor remains ready in the background to handle arbitrary Server-Sent Events (SSE) or HTTP requests, just like any web API server.


Connection URL

The Actor is reachable at this endpoint URL:

https://aimcp--coolify-mcp-server.apify.actor/mcp

Note: Authenticate requests with your Apify API token via the Authorization: Bearer header. Get your token from the Apify Console.


Configuration

To use this MCP server, you'll need below three things:

  1. Coolify API URL — Your Coolify instance URL with /api/v1 suffix (e.g. https://coolify.yourdomain.com/api/v1)
  2. Coolify API Token — Generate one from your Coolify instance dashboard
  3. Apify API Token — Generate one from your Apify Console

How to Get Your Coolify API Token

  1. Log in to your Coolify dashboard
  2. Navigate to Keys & Tokens on the sidebar
  3. Ensure you have the right team selected on left side bar
  4. Click Create New Token, name it something like mcp-agent, and copy the token.

How to Get Your Apify API Token

  1. Log in to your Apify Console
  2. Navigate to Settings → Integrations on the sidebar
  3. Click Create New Token, name it something like mcp-agent, and copy the token.

MCP Client Configuration

To connect to this MCP server, simply paste the following one-time configuration in your MCP client. All credentials are passed securely via HTTP headers — no environment variables, no manual UI setup, just paste and go.

🔐 Security by Design

Your Coolify credentials are transmitted via custom HTTP headers (X-Coolify-*), which are:

  • Never logged by web servers, proxies, or CDNs
  • Never leaked via browser history, referrer headers, or URL sharing
  • Validated on every request with input sanitization and SSRF protection

Connect directly to the Actor's Standby endpoint — lowest latency, simplest setup:

{
"mcpServers": {
"coolify-mcp-server": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://aimcp--coolify-mcp-server.apify.actor/mcp",
"--header",
"Authorization: Bearer YOUR_APIFY_API_TOKEN",
"--header",
"X-Coolify-Api-Url: https://coolify.yourdomain.com/api/v1",
"--header",
"X-Coolify-Api-Token: YOUR_COOLIFY_API_TOKEN",
"--header",
"X-Coolify-Safety-Mode: read-only",
"--header",
"X-Coolify-Toolsets: system,servers,applications,databases,services,deployments,projects,teams"
]
}
}
}

Option 2: Via Apify MCP Gateway

Connect through the Apify MCP gateway at mcp.apify.com — gives you access to helper tools like search-actors and fetch-actor-details alongside the Coolify tools:

{
"mcpServers": {
"coolify-mcp-server": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.apify.com/?tools=actors,docs,aimcp/coolify-mcp-server",
"--header",
"Authorization: Bearer YOUR_APIFY_API_TOKEN",
"--header",
"X-Coolify-Api-Url: https://coolify.yourdomain.com/api/v1",
"--header",
"X-Coolify-Api-Token: YOUR_COOLIFY_API_TOKEN",
"--header",
"X-Coolify-Safety-Mode: read-only",
"--header",
"X-Coolify-Toolsets: system,servers,applications,databases,services,deployments,projects,teams"
]
}
}
}

Header Reference

HeaderRequiredDefaultDescription
Authorization✅ YesYour Apify API token (Bearer YOUR_TOKEN)
X-Coolify-Api-Url✅ YesYour Coolify instance URL with /api/v1 suffix
X-Coolify-Api-Token✅ YesYour Coolify API token
X-Coolify-Safety-ModeNoread-onlyread-only, safe, or full
X-Coolify-ToolsetsNoallComma-separated: system,servers,applications,databases,services,deployments,projects,teams

💡 Tip: Start with X-Coolify-Safety-Mode: read-only and upgrade to safe or full only when you need write/delete operations. Invalid safety modes automatically fall back to read-only for security.

✨ Key Features

Engineered this MCP Server from the ground up to be the absolute best, most secure, and most cost-effective bridge between AI and Coolify.

  • 🧠 Smart Tool Discovery search_tools: Connects with 45 robust tools, but uses progressive disclosure. The AI can call search_tools("debug deploy") to instantly get suggested step-by-step workflows (like "find → read logs → retry"), avoiding blind trial-and-error. Guides the AI with 10 built-in, docs-backed workflow patterns.

  • 📉 Massive Token Savings: Built-in Response Summarization automatically slims down bloated list endpoints (like get_services or get_resources). This slashes token usage by up to 90% per request, saving massive context window space (reducing costs and preventing the AI from "forgetting" early chat context).

  • 🛡️ Three-Tier Safety Model: Control what the AI can do. read-only (monitoring only), safe (allows deploys, restarts, starts, stops — blocks deletes), or full (all operations). Defaults to read-only.

  • 🔐 Zero-Leak Security (Auto-Redaction): Deep JSON payload sanitization scrubs passwords, private keys, database connection strings, and tokens before any data reaches the AI. All replaced with [REDACTED BY MCP SERVER].

  • 🧩 Toolset Categorization: Enable only the tool groups you need (servers, applications, services, databases, deployments, projects, teams, system) to reduce AI context noise and improve tool selection accuracy.

  • 📜 Context-Safe Log Tailing: A tailLines parameter slices application logs in-memory before transmitting, keeping payloads hyper-lean and within AI context limits.

  • 📊 Structured MCP Logging: Every tool call emits structured log messages with call timing via the MCP logging protocol (e.g. ✓ get_servers completed in 142ms), visible in MCP Inspector and compatible clients.

  • 🤖 6 Native AI Prompts: Pre-built diagnostic workflows that guide the AI step-by-step: health checks, deployment troubleshooting, service status reports, database backup audits, security reviews, and resource usage summaries.


🔍 The Built-in Knowledge Base (search_tools)

Instead of handing the AI 45 complex tools and hoping it guesses the right order, this MCP server includes a meta-tool called search_tools.

When an AI encounters a complex problem (e.g., "my app crashed" or "check my infrastructure security"), it calls this tool to retrieve 10 proven, docs-backed workflows.

Examples of guidance the AI receives:

  • Debug Failed Deployment: get_application_deploymentsget_deployment (build logs) → get_application_logs (runtime crash)
  • Batch Deploy by Tag: get_resourcesdeploy({ tag })get_deployments
  • DNS & Domain Troubleshooting: get_server_domainsget_application (check FQDN) → Check underlying A Records

This makes AI agents significantly smarter, faster, and cheaper when interacting with your architecture.


Available Tools (45 Total)

🟢 Read-Only Tools (Always Available)

Servers

ToolDescriptionParameters
get_serversList all connected servers
get_serverGet detailed server infouuid (string, required)
validate_serverVerify server connectionuuid (string, required)
get_resources_by_serverList all resources on a serverserverUuid (string, required)
get_server_domainsList domains/FQDNs on a serveruuid (string, required)

Applications

ToolDescriptionParameters
get_applicationsList all applications
get_applicationGet application detailsuuid (string, required)
get_application_logsGet container stdout/stderr logsuuid (string, required), tailLines (number, optional)
get_application_deploymentsList deployment historyuuid (string, required)
list_application_envsList env var keys (values redacted)uuid (string, required)

Services

ToolDescriptionParameters
get_servicesList all services (Compose stacks)
get_serviceGet service details & containersuuid (string, required)
list_service_envsList env var keys (values redacted)uuid (string, required)

Databases

ToolDescriptionParameters
get_databasesList all databases
get_databaseGet database configurationuuid (string, required)
get_database_backupsList backup configurationsuuid (string, required)

Deployments

ToolDescriptionParameters
get_deploymentsList all recent deployments
get_deploymentGet deployment details & build logsuuid (string, required)

Projects

ToolDescriptionParameters
get_projectsList all projects
get_projectGet project detailsuuid (string, required)
get_project_environmentGet environment within a projectprojectUuid (string, required), environmentNameOrUuid (string, required)

Teams

ToolDescriptionParameters
get_teamsList all accessible teams
get_teamGet team detailsid (string, required)
get_team_membersList team members & rolesid (string, required)
get_current_teamGet current API token's team

System

ToolDescriptionParameters
get_versionGet Coolify instance version
get_resourcesList ALL resources instance-wide
search_tools[META] Find tools and suggested workflowsquery (string), toolset (string)

🟡 Write Tools (Requires safe or full mode — 11 tools)

ToolDescriptionParameters
deploy_applicationTrigger a new deployment builduuid (string, required), force (boolean, optional)
stop_applicationStop a running applicationuuid (string, required)
restart_applicationRestart an applicationuuid (string, required)
start_serviceStart a stopped service stackuuid (string, required)
stop_serviceStop a running serviceuuid (string, required)
restart_serviceRestart a serviceuuid (string, required)
start_databaseStart a stopped databaseuuid (string, required)
stop_databaseStop a running databaseuuid (string, required)
restart_databaseRestart a databaseuuid (string, required)
deployUniversal deploy by UUID or taguuid (string, optional), tag (string, optional), force (boolean, optional)
cancel_deploymentCancel an in-progress builduuid (string, required)

🔴 Destructive Tools (Requires full mode only — 6 tools)

ToolDescriptionParameters
delete_application⚠️ Permanently delete an applicationuuid (string, required)
delete_service⚠️ Permanently delete a serviceuuid (string, required)
delete_database⚠️ Permanently delete a databaseuuid (string, required)
delete_server⚠️ Remove a server registrationuuid (string, required)
delete_project⚠️ Delete a project & environmentsuuid (string, required)
delete_environment⚠️ Delete an environmentprojectUuid (string, required), environmentNameOrUuid (string, required)

Available Prompts (6 Total)

PromptArgumentsDescription
coolify-health-checkFull infrastructure health assessment across servers, apps, services, and databases
deployment-troubleshooteruuid (required)Diagnose failed deployments with log analysis and actionable remediation
service-status-reportuuid (optional)Deep-dive one service or survey all services for unhealthy containers
database-backup-auditAudit all databases for backup configurations and flag gaps
security-auditSecurity posture check: public databases, missing FQDNs, safety mode review
resource-usage-summaryserverUuid (optional)Resource distribution overview per server or across all servers

The server resolves credentials in this priority order: HTTP Headers (per-connection) → Actor InputEnvironment Variables.

ParameterHeaderEnv VariableDescription
Coolify API URLX-Coolify-Api-UrlCOOLIFY_API_URLYour Coolify API URL (required)
Coolify API TokenX-Coolify-Api-TokenCOOLIFY_API_TOKENYour Coolify API token (required)
Safety ModeX-Coolify-Safety-ModeCOOLIFY_SAFETY_MODEread-only (default), safe, or full
ToolsetsX-Coolify-ToolsetsCOOLIFY_TOOLSETSComma-separated toolsets to enable (default: all)

🛡️ Security Note: Invalid safety modes silently default to read-only. Invalid toolset names are stripped. API URLs are validated against SSRF. Tokens are checked for whitespace injection.


💸 Pricing (Pay-Per-Event)

This Actor functions entirely on a Pay-per-Event SaaS model — no flat monthly subscription.

  • Usage Fee: $0.005 per actor event.
  • What is an "Event"? An event occurs when your AI actively connects to the Actor to check servers, read logs, or trigger a deployment.
  • Compute Costs: Completely serverless — you pay Apify's fractional compute rates when the server is awake.

Billing Protection: Set a maximum monthly usage limit in your Apify billing settings (e.g., "$5/month"). Once hit, the Actor simply pauses. Zero risk of runaway bills.


References