Coolify MCP server

Integrates with Coolify's deployment platform to manage self-hosted applications, databases, and infrastructure including 110+ one-click services, 8 database types, server connectivity validation, and environment variable handling.
Back to servers
Setup instructions
Provider
FelixAllistar
Release date
Jun 05, 2025
Language
TypeScript
Stats
1 star

The Coolify MCP Server is a comprehensive tool for managing Coolify deployments, providing both MCP (Model Context Protocol) integration for AI editors and a powerful CLI. It enables full management of applications, services, databases, and infrastructure in your Coolify instance.

Getting Started

MCP Integration

Set Up MCP Configuration

For Cursor: Add to ~/.cursor/mcp.json or <project_folder>/.cursor/mcp.json:

{
  "mcpServers": {
    "coolify-mcp": {
      "command": "npx",
      "args": ["-y", "@felixallistar/coolify-mcp", "--server"],
      "env": {
        "COOLIFY_API_URL": "https://your-coolify-instance.com",
        "COOLIFY_API_TOKEN": "your-coolify-api-token"
      }
    }
  }
}

For VS Code: Add to <project_folder>/.vscode/mcp.json:

{
  "servers": {
    "coolify-mcp": {
      "command": "npx",
      "args": ["-y", "@felixallistar/coolify-mcp", "--server"],
      "env": {
        "COOLIFY_API_URL": "https://your-coolify-instance.com",
        "COOLIFY_API_TOKEN": "your-coolify-api-token"
      },
      "type": "stdio"
    }
  }
}

Replace your-coolify-instance.com with your actual Coolify URL and your-coolify-api-token with your API token from Coolify Settings > API.

Enable Coolify MCP (Cursor only)

  1. Open Cursor Settings (Ctrl+Shift+J)
  2. Click on the MCP tab
  3. Enable coolify-mcp with the toggle

Using MCP Commands

In your AI chat, try commands like:

List my Coolify applications
Create a new WordPress service called "my-blog" 
Deploy my app with ID "app-123"
Show me all available database types

CLI Usage

Installation

# Install globally for CLI usage
npm install -g @felixallistar/coolify-mcp

# Test the installation
coolify-mcp --help

Configuration

Create a .env file in your project directory:

# Required: Your Coolify instance URL (include port if needed)
COOLIFY_API_URL=https://your-coolify-instance.com

# Required: Your Coolify API token (generate in Coolify Settings > API)
COOLIFY_API_TOKEN=your-coolify-api-token

Common Commands

Application Management

# List all applications
coolify-mcp apps list

# Create a new application
coolify-mcp apps create-public --name "my-app" --repository "https://github.com/user/repo" --project "project-id"

# Start an application
coolify-mcp apps start app-id

Service Management

# List available service types
coolify-mcp services types

# Create a new service
coolify-mcp services create --name "my-blog" --type "wordpress-with-mysql" --project "project-id"

Database Management

# Create a PostgreSQL database
coolify-mcp databases create-postgresql --name "main-db" --project "project-id"

# Create a Redis instance
coolify-mcp databases create-redis --name "cache" --project "project-id"

Project Management

# List all projects
coolify-mcp projects list

# Create a new project
coolify-mcp projects create --name "My Project"

System Operations

# Check system health
coolify-mcp system health

Feature Overview

Applications

Manage applications with 21 operations including:

  • Complete application lifecycle management
  • 6 deployment types
  • Environment variable management
  • Logs and control operations

Services

Handle services with 14 operations including:

  • 70+ one-click services (WordPress, Ghost, MinIO, etc.)
  • Full environment management

Databases

Manage databases with 13 operations supporting 8 database types:

  • PostgreSQL
  • MySQL
  • MariaDB
  • MongoDB
  • Redis
  • KeyDB
  • ClickHouse
  • Dragonfly

Infrastructure Management

Complete project, server, and deployment management including:

  • Private keys
  • System administration
  • Deployment monitoring

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "coolify-mcp" '{"command":"npx","args":["-y","@felixallistar/coolify-mcp","--server"],"env":{"COOLIFY_API_URL":"https://your-coolify-instance.com","COOLIFY_API_TOKEN":"your-coolify-api-token"}}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "coolify-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "@felixallistar/coolify-mcp",
                "--server"
            ],
            "env": {
                "COOLIFY_API_URL": "https://your-coolify-instance.com",
                "COOLIFY_API_TOKEN": "your-coolify-api-token"
            }
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "coolify-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "@felixallistar/coolify-mcp",
                "--server"
            ],
            "env": {
                "COOLIFY_API_URL": "https://your-coolify-instance.com",
                "COOLIFY_API_TOKEN": "your-coolify-api-token"
            }
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later