Coolify Self-Host MCP Server
Published · Updated
At a glance
- Category
- Cloud & DevOps
- GitHub repository
- StuMason/coolify-mcp
- Watch out for
- A community project, not part of Coolify itself.
coolify-mcp by Stu Mason is a community MCP server for Coolify, the open-source self-hosted platform for deploying apps, databases and services. It is published on npm as @masonator/coolify-mcp and offers more than 40 tools for deploying, debugging and operating a Coolify v4 instance.
It is honest about how it fits next to Coolify's own options. Coolify now ships a built-in MCP server at /mcp on your instance, and an official CLI. Coolify's docs say the built-in server can run lifecycle operations and create or change resources, within what the API token allows. This community server adds extras such as the doctor command, multi-instance support and confirmation prompts, so compare both before choosing.
It takes safety seriously. On clients that support MCP elicitation, such as Claude Code and VS Code Copilot, destructive operations stop and ask you before anything happens, and in remote mode that guard fails closed. Secrets are masked at the API boundary. A doctor command checks your setup for common mistakes, such as an unexpanded ${VAR}, stray whitespace in a token or a doubled /api/v1 in the URL, and whether Coolify is reachable.
How it connects
Your AI app
An assistant or agent that supports MCP
Coolify Self-Host MCP Server
Runs as
- npx (Node.js)
Gives the agent
- Deploying and restarting
- Debugging
- Configuration
- Confirmation for destructive actions
- Several instances and doctor
Your Coolify instance
Signs in with
- Token
What it can do
- Deploying and restarting
- Deploy, restart and stop applications and services, with workflows that combine several steps.
- Debugging
- Read logs and deployment status to work out why an app is failing.
- Configuration
- Manage environment variables and settings, with secrets masked in responses.
- Confirmation for destructive actions
- Destructive operations ask for confirmation through elicitation, failing closed in remote mode.
- Several instances and doctor
- Work with more than one Coolify instance, and run doctor to diagnose configuration problems.
Setting it up
Create an API token in Coolify under Keys & Tokens. In Claude Code: claude mcp add coolify -e COOLIFY_BASE_URL=https://your-coolify-instance.com -e COOLIFY_ACCESS_TOKEN=your-api-token -- npx @masonator/coolify-mcp@latest. Claude Desktop users can install a one-click .mcpb bundle. Run COOLIFY_BASE_URL=... COOLIFY_ACCESS_TOKEN=... npx @masonator/coolify-mcp doctor to check everything before connecting. Behind Cloudflare Access, set CF_ACCESS_CLIENT_ID and CF_ACCESS_CLIENT_SECRET. It supports Coolify v4.0 to v4.3.
Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)
Where it helps
- Deploying the latest commit of an app and watching the deployment
- Finding why an application keeps failing its health check
- Updating environment variables across services
- Restarting a stuck database or service on a self-hosted server
Limitations and things to watch
- A community project, not part of Coolify itself.
- Confirmation prompts depend on client support for elicitation.
- It acts with your API token, which may have wide access to servers.
- Coolify's built-in server now handles write operations too, so you may not need this one.
Sources
Written from the project's own documentation, checked November 2026.
- github.com /StuMason/coolify-mcp
- coolify.io /docs/integrations/mcp
- npmjs.com /package/@masonator/coolify-mcp
How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.