home / mcp / coolify mcp server
Provides a typed MCP server to manage Coolify resources via MCP clients, enabling programmatic control of apps, databases, servers, projects, and services.
Configuration
View docs{
"mcpServers": {
"joshuarileydev-coolify-mcp-server": {
"command": "node",
"args": [
"/path/to/coolify-mcp-server/dist/index.js"
],
"env": {
"COOLIFY_API_URL": "http://localhost:8000",
"COOLIFY_TEAM_ID": "optional-team-id",
"COOLIFY_API_TOKEN": "your-api-token-here"
}
}
}
}You can connect to and manage Coolify resources through a dedicated MCP (Model Context Protocol) server. This server lets you interact with applications, databases, servers, projects, and services via MCP clients, with type-safe integrations and a clear set of tools and resources.
Install and run the MCP server as described below, then connect your MCP client to the provided stdio configurations. You can operate and orchestrate Coolify resources using the available tools and resource endpoints. Use the client to list, create, start, stop, deploy, and manage resources such as applications, databases, servers, projects, and services. The server is designed to be compatible with MCP clients like Claude Desktop, enabling you to manage Coolify resources directly from your preferred interface.
Prerequisites: ensure Node.js and npm are installed on your machine. You will also need access to a running Coolify instance and an API token with appropriate permissions.
npm install
npm run buildSet up the environment variables to connect to your Coolify instance. These variables are required for the MCP server to authenticate and access resources.
export COOLIFY_API_URL="http://localhost:8000"
export COOLIFY_API_TOKEN="your-api-token-here"
export COOLIFY_TEAM_ID="optional-team-id"
```
Or create a .env file with the same keys.Configure your MCP client to run the Coolify MCP server as a stdio process. The following configurations show practical ways to start the server from your MCP client environment.
{
"mcpServers": {
"coolify": {
"type": "stdio",
"name": "coolify",
"command": "node",
"args": ["/path/to/coolify-mcp-server/dist/index.js"],
"env": {
"COOLIFY_API_URL": "http://localhost:8000",
"COOLIFY_API_TOKEN": "your-api-token-here",
"COOLIFY_TEAM_ID": "optional-team-id"
}
}
}
}
```
```json
{
"mcpServers": {
"coolify": {
"command": "npx",
"args": ["@joshuarileydev/coolify-mcp-server", "--yes"],
"env": {
"COOLIFY_API_URL": "http://localhost:8000",
"COOLIFY_API_TOKEN": "your-api-token-here",
"COOLIFY_TEAM_ID": "optional-team-id"
}
}
}
}
```
```json
{
"mcpServers": {
"coolify": {
"command": "npx",
"args": ["coolify-mcp-server", "--yes"],
"env": {
"COOLIFY_API_URL": "http://localhost:8000",
"COOLIFY_API_TOKEN": "your-api-token-here",
"COOLIFY_TEAM_ID": "optional-team-id"
}
}
}
}
```
```json
{
"mcpServers": {
"coolify": {
"command": "npx",
"args": ["tsx", "/path/to/coolify-mcp-server/src/index.ts"],
"env": {
"COOLIFY_API_URL": "http://localhost:8000",
"COOLIFY_API_TOKEN": "your-api-token-here",
"COOLIFY_TEAM_ID": "optional-team-id"
}
}
}
}
```
Note: Each configuration includes the necessary environment variables and points to how to start the server from your MCP client environment. You can choose the approach that matches your workflow, whether you prefer running the server via node, npx, or directly from TypeScript during development.If you need to export environment variables in a shell session, you can set them as shown and then start the server with your chosen method.
The server provides a comprehensive set of tools to manage Coolify resources. You can list, create, start, stop, and deploy resources across applications, databases, servers, projects, and services. The core tools include:
These tools map to MCP resource endpoints that expose data for applications, databases, servers, projects, and services. You can use the tools to manage lifecycle operations and retrieve version information about the Coolify instance.
The server exposes MCP resource endpoints to access Coolify data programmatically. Resources include applications, databases, servers, projects, services, and teams. You can query these endpoints to list resources, fetch details, and drive workflows across your Coolify environment.
Your MCP server relies on a valid API token to authenticate with Coolify. Ensure your token has the appropriate permissions for read or full access, depending on your use case. Store tokens securely in your MCP client configuration.
Development steps include installing dependencies, building, and running in development mode. Use the following commands to work with the project locally.
# Install dependencies
npm install
# Run in development mode (requires env vars)
COOLIFY_API_URL=http://localhost:8000 COOLIFY_API_TOKEN=your-token npm run dev
# Build for production
npm run build
# Run built version
npm start
# Lint code
npm run lint
# Type check
npm run typecheckTroubleshooting tips cover common issues such as missing environment variables, incorrect API URLs, or token permissions. If the server does not appear in your MCP client, restart the client after updating configurations and verify the JSON syntax of your config files.
Common issues and steps to resolve them include:
For debugging, you can enable verbose logs to see detailed error messages. Run the server with debug output to diagnose problems.
DEBUG=* node dist/index.jsStore API tokens securely within your MCP client configuration. Use secure file permissions on your local machine to prevent unauthorized access to sensitive tokens.
List all applications in your Coolify projects
Retrieve details for a specific application
Create a new application under a project or environment
Start an application instance
Stop a running application
Restart an application
Deploy an application to its target environment
List all databases available to your Coolify account
Create a new database instance
List all servers configured in Coolify
Create a new server entry
Validate server connection credentials and reachability
List all projects in your Coolify workspace
Create a new project in your Coolify workspace
List all services running within Coolify resources
Start a stopped service
Stop a running service
Get the Coolify version information