Skip to main content
Glama
README.md
DEPERECATED USE THE SKILL NOW:
https://github.com/FelixAllistar/coolify-manager





# Coolify MCP Server

A Model Context Protocol (MCP) server for managing Coolify deployments, providing both programmatic MCP tools and comprehensive CLI commands.

## Quick Start

### Option 1: MCP Integration (Recommended)

MCP (Model Control Protocol) lets you manage Coolify directly from your AI editor.

#### 1. Add to your MCP configuration

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

```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`:

```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.

#### 2. (Cursor only) Enable Coolify MCP

Open Cursor Settings (Ctrl+Shift+J) āž” Click on MCP tab āž” Enable coolify-mcp with the toggle

#### 3. Start managing Coolify

In your AI chat, try commands like:

```txt
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
```

### Option 2: CLI Usage

#### Installation

```bash
# 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:

```bash
# 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

```bash
# Application management
coolify-mcp apps list
coolify-mcp apps create-public --name "my-app" --repository "https://github.com/user/repo" --project "project-id"
coolify-mcp apps start app-id

# Service management (70+ one-click services)
coolify-mcp services types
coolify-mcp services create --name "my-blog" --type "wordpress-with-mysql" --project "project-id"

# Database management (8 database types)
coolify-mcp databases create-postgresql --name "main-db" --project "project-id"
coolify-mcp databases create-redis --name "cache" --project "project-id"

# Project management
coolify-mcp projects list
coolify-mcp projects create --name "My Project"

# Test connectivity
coolify-mcp system health
```

## Features

### šŸ”„ **Applications** (21 Operations)
Complete application lifecycle management with 6 deployment types, environment variables, logs, and control operations.

### šŸ”§ **Services** (14 Operations)  
70+ one-click services including WordPress, Ghost, MinIO, and more with full environment management.

### šŸ—„ļø **Databases** (13 Operations)
8 database types: PostgreSQL, MySQL, MariaDB, MongoDB, Redis, KeyDB, ClickHouse, Dragonfly.

### šŸ“‚ **Projects, Servers, Deployments**
Complete infrastructure management including private keys, system administration, and deployment monitoring.

## MCP Tools vs CLI Commands

This package provides two interaction methods with **complete feature parity**:

- **šŸ¤– MCP Tools**: For AI agents and Cursor integration (recommended)
- **šŸ’» CLI Commands**: For direct terminal usage

Both interfaces provide identical functionality - choose based on your workflow.



## Development

### Automated API Updates

Stay in sync with Coolify's latest API:

```bash
npm run refresh           # Download latest API spec and rebuild
npm run check-updates     # Check for API changes
```

### Manual Development

```bash
git clone https://github.com/FelixAllistar/coolify-mcp.git
cd coolify-mcp
npm install
npm run refresh
npm run dev
```

## API Coverage

āœ… **100% Coolify API Coverage** - Applications, Services, Databases, Projects, Servers, Deployments, Private Keys, System Administration

## License

GLWTPL (Good Luck With That Public License) - see [LICENSE](LICENSE) file for details.

*This software might just work or not, there is no third option. Good luck and Godspeed.* 

## MCP Configuration

### Option 1: Using npx (Recommended - Simple!)
```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"
      }
    }
  }
}
```

### Option 2: Direct node execution
```json
{
  "mcpServers": {
    "coolify-mcp": {
      "command": "node",
      "args": ["node_modules/@felixallistar/coolify-mcp/dist/index.js", "--server"],
      "env": {
        "COOLIFY_API_URL": "https://your-coolify-instance.com",
        "COOLIFY_API_TOKEN": "your-coolify-api-token"
      }
    }
  }
}
```

### Option 3: Global installation
```bash
npm install -g @felixallistar/coolify-mcp
```

Then use the MCP server binary:
```json
{
  "mcpServers": {
    "coolify-mcp": {
      "command": "coolify-mcp",
      "env": {
        "COOLIFY_API_URL": "https://your-coolify-instance.com",
        "COOLIFY_API_TOKEN": "your-coolify-api-token"
      }
    }
  }
}
```

## CLI Usage

For CLI commands, simply add arguments to the `coolify-mcp` command:

```bash
# Using npx (no installation needed)
npx @felixallistar/coolify-mcp --help
npx @felixallistar/coolify-mcp apps list

# Or install globally for easier CLI usage
npm install -g @felixallistar/coolify-mcp
coolify-mcp --help
coolify-mcp apps list
```

TDQS

D1.5/5.0

Scored across 10 tools

Disambiguation2/5

The tool names identify broad resource areas, but several overlap conceptually, such as services vs. applications and system vs. config-status. With no descriptions, agents have little basis to determine which tool is appropriate for a given task.

Naming Consistency3/5

Most tool names follow a simple lowercase-hyphenated plural noun pattern, but there is no consistent verb-noun structure and there are outliers like ping, system, and config-status. The naming is readable but not a strong unified convention.

Tool Count4/5

Ten tools is a reasonable count for a server focused on managing infrastructure resources. However, the lack of descriptions makes it difficult to confirm that each tool earns its place in the set.

Completeness2/5

The surface appears to be read-oriented resource access rather than full lifecycle coverage, with no obvious create, update, or delete operations. Tools like private-keys and config-status hint at configuration management, but the set likely leaves agents unable to perform common management workflows.

Maintenance

ActivityInactive
ResponsivenessNo issues