home / mcp / coolify mcp server
MCP server for Coolify โ 38 optimized tools for managing self-hosted PaaS through AI assistants
Configuration
View docs{
"mcpServers": {
"stumason-coolify-mcp": {
"command": "npx",
"args": [
"-y",
"@masonator/coolify-mcp"
],
"env": {
"COOLIFY_BASE_URL": "https://your-coolify-instance.com",
"COOLIFY_ACCESS_TOKEN": "YOUR_API_TOKEN"
}
}
}
}You are equipped with a Model Context Protocol (MCP) server that enables AI assistants to manage and debug your Coolify instances through natural language. It provides a focused set of tools for infrastructure visibility, diagnostics, deployment actions, and batch operations, all optimized to minimize token usage while delivering practical control over your self-hosted PaaS.
You interact with the MCP server through an MCP client. Start by connecting to the Coolify MCP server, then issue natural language prompts or structured tool calls to perform actions such as listing resources, diagnosing issues, restarting apps, updating environment variables, deploying changes, and retrieving logs. The server returns context-optimized responses that summarize results and offer guided next steps without overwhelming you with raw data.
Prerequisites: ensure you have Node.js version 18 or higher installed on your machine. You should also have a running Coolify instance and a Coolify API access token.
Install the MCP client package and run it using the provided configuration. Use the following as your starting point.
{
"mcpServers": {
"coolify": {
"command": "npx",
"args": ["-y", "@masonator/coolify-mcp"],
"env": {
"COOLIFY_ACCESS_TOKEN": "YOUR_API_TOKEN",
"COOLIFY_BASE_URL": "https://your-coolify-instance.com"
}
}
}
}The MCP server exposes a comprehensive set of tools designed to help you manage Coolify resources. These tools include infrastructure overview, diagnostics, batch operations, server and project management, application and database actions, deployments, keys, GitHub apps, teams, cloud tokens, and documentation search.
Environment variables shown in the examples must be provided to properly authenticate and target your Coolify instance. The key variables are COOLIFY_ACCESS_TOKEN for authentication and COOLIFY_BASE_URL for the base API URL. If you are using a local setup, you can default the base URL to http://localhost:3000.
Keep your API token secret and rotate it periodically. Do not expose credentials in logs or shared prompts. Use read-only prompts for diagnostics when possible and reserve write actions for deployments, updates, or destructive operations with explicit confirmation.
Limit access to the MCP client to trusted users or AI assistants, and consider applying network restrictions to the Coolify API endpoint to reduce exposure.
Return a high-level summary of all resources in your Coolify setup, including servers, projects, applications, databases, and services.
Query the MCP server version to verify the installed MCP tooling.
Query the Coolify API version.
Provide comprehensive diagnostics for an application by UUID, name, or domain.
Provide diagnostics for a server by UUID, name, or IP address.
Scan the entire infrastructure for unhealthy resources and connectivity issues.
Restart all applications within a specified project.
Update or create environment variables across multiple applications with upsert behavior.
Emergency stop of all running applications (requires confirmation).
Redeploy all applications in a project, with optional force rebuild.
List all configured servers with a summary view.
Get detailed information about a specific server.
View resources running on a given server.
List domains configured on a server.
Validate the connection and configuration of a server.
Manage projects via actions: list, get, create, update, delete.
Manage environments via actions: list, get, create, delete.
List all applications with a summary view.
Get detailed information about a specific application.
Retrieve logs for a specific application.
Create, update, or delete applications with various create options including public, GitHub, keys, Docker images, and deployments.
Manage environment variables for applications or services.
Control resources by action: start, stop, restart for applications, databases, and services.
List all databases with summary information.
Get detailed information about a database.
Create or delete databases of types such as postgresql, mysql, mariadb, mongodb, and more.
Manage backup schedules and view executions for databases.
List all services with a summary view.
Get detailed information about a service.
Create, update, or delete services.
Manage GitHub App integrations.
Manage teams and access control.
Manage cloud provider tokens, with actions to list, get, create, update, delete, or validate.
Manage SSH private keys.
Manage deployments including get, cancel, and list for an app.
Deploy an application by tag or UUID.
List running deployments for an application.
Full-text search across Coolify documentation.
Restart all applications within a project.
Manage environment variables across multiple resources.