Skip to main content
Glama

Coolify MCP Server

CoolifyMCP

Install MCP Server

License: MIT Node.js Version TypeScript

A comprehensive Model Context Protocol (MCP) server that provides complete access to all Coolify API endpoints. CoolifyMCP enables AI assistants to interact with Coolify for managing applications, databases, servers, deployments, and more.

Built for - An open-source & self-hostable Heroku / Netlify / Vercel alternative

šŸ“– Table of Contents

✨ Features

  • šŸŽÆ 100% API Coverage: Complete implementation of all Coolify API endpoints

  • šŸ› ļø 18 Consolidated MCP Tools: Streamlined access to Coolify's functionality through MCP protocol

  • šŸ”’ Type Safety: Built with TypeScript for robust error handling and development experience

  • šŸš€ Production Ready: Health checks, proper logging, and monitoring

  • šŸ“¦ Modular Architecture: Clean, maintainable codebase with separated concerns

  • šŸ”§ Comprehensive: Supports all Coolify features including:

    • šŸ‘„ Team and Project Management

    • šŸš€ Application Lifecycle Management

    • šŸ—„ļø Database Management (PostgreSQL, MySQL, MongoDB, Redis, etc.)

    • šŸ–„ļø Server Management and Validation

    • 🐳 Service Management

    • šŸ“¦ Deployment Management

    • šŸ” Environment Variables

    • šŸ”‘ Security Keys Management

šŸš€ Quick Start

Install in Your AI IDE

CoolifyMCP works with all major AI IDEs that support the Model Context Protocol (MCP). Choose your preferred IDE:

Cursor IDE (Recommended)

  1. Open Cursor and go to Settings → Extensions → MCP

  2. Add this configuration to your ~/.cursor/mcp.json:

{ "mcpServers": { "coolifymcp": { "command": "npx", "args": ["coolifymcp"], "env": { "COOLIFY_API_TOKEN": "your_coolify_api_token_here", "COOLIFY_BASE_URL": "https://your-coolify-instance.com/api/v1" } } } }

Claude Desktop

  1. Open Claude Desktop settings

  2. Add this configuration to your MCP settings:

{ "mcpServers": { "coolifymcp": { "command": "npx", "args": ["coolifymcp"], "env": { "COOLIFY_API_TOKEN": "your_coolify_api_token_here", "COOLIFY_BASE_URL": "https://your-coolify-instance.com/api/v1" } } } }

JetBrains AI Assistant

  1. Open your JetBrains IDE (IntelliJ, WebStorm, etc.)

  2. Go to Settings → Tools → AI Assistant → Model Context Protocol (MCP)

  3. Click "Add" and configure:

    • Name: coolifymcp

    • Command: npx

    • Arguments: ["coolifymcp"]

    • Environment Variables:

      • COOLIFY_API_TOKEN: your_coolify_api_token_here

      • COOLIFY_BASE_URL: https://your-coolify-instance.com/api/v1

Other MCP-Compatible IDEs

  • LibreChat: Add MCP server configuration in settings

  • Klavis AI: Configure in your platform's MCP settings

  • Custom MCP Clients: Use the same configuration format

Local Development

# Clone and install git clone https://github.com/howieduhzit/coolifymcp.git cd coolifymcp npm install npm run build # Run with environment variables COOLIFY_API_TOKEN="your_token_here" COOLIFY_BASE_URL="https://your-coolify-instance.com/api/v1" npm start

šŸ“‹ Prerequisites

  • Node.js 20+ - Download

  • npm 9+ or yarn - Package manager

  • Coolify API token - Get from your Coolify dashboard

  • Coolify instance URL - Your Coolify instance (default: https://app.coolify.io/api/v1)

šŸ› ļø Installation

NPM Installation (Recommended)

  1. Install and run with npx (no installation needed):

npx coolifymcp
  1. Or install globally:

npm install -g coolifymcp coolifymcp

Local Development

  1. Clone the repository:

git clone https://github.com/howieduhzit/coolifymcp.git cd coolifymcp
  1. Install dependencies:

npm install
  1. Build the project:

npm run build
  1. Run with environment variables:

COOLIFY_API_TOKEN="your_token_here" COOLIFY_BASE_URL="https://your-coolify-instance.com/api/v1" npm start

āš™ļø Configuration

Environment Variables

Variable

Description

Required

Default

COOLIFY_API_TOKEN

Your Coolify API token

Yes

-

COOLIFY_BASE_URL

Coolify API base URL

No

https://app.coolify.io/api/v1

NODE_ENV

Environment mode

No

development

PORT

Health check server port

No

3000

MCP Client Configuration

The configuration format is consistent across all MCP-compatible IDEs. Here are the common locations:

Configuration File Locations:

  • Cursor: ~/.cursor/mcp.json

  • Claude Desktop: MCP settings in the app

  • JetBrains: Settings → Tools → AI Assistant → MCP

  • LibreChat: Settings → MCP Servers

  • Custom Clients: Refer to your client's documentation

Standard Configuration:

{ "mcpServers": { "coolifymcp": { "command": "npx", "args": ["coolifymcp"], "env": { "COOLIFY_API_TOKEN": "your_token_here", "COOLIFY_BASE_URL": "https://your-coolify-instance.com/api/v1" } } } }

Environment Variables:

  • COOLIFY_API_TOKEN (required): Your Coolify API token

  • COOLIFY_BASE_URL (optional): Your Coolify instance URL (defaults to https://app.coolify.io/api/v1)

šŸŽÆ Available Tools

The Coolify MCP Server provides 18 consolidated tools that cover all Coolify functionality through action-based parameters:

System Management (1 tool)

  • coolify_system - System health, version, and information management

    • Actions: health, version, info

Team Management (1 tool)

  • coolify_teams - Complete team management operations

    • Actions: list, current, get, members

Project Management (2 tools)

  • coolify_projects - Project CRUD operations

    • Actions: list, create, get, update, delete

  • coolify_project_environments - Project environment management

    • Actions: list, create, get, delete

Application Management (5 tools)

  • coolify_applications - Application CRUD operations (all types)

    • Actions: list, create, update, get, delete

    • Supports: public, private_github, private_deploy_key, dockerfile, dockerimage, dockercompose

  • coolify_application_lifecycle - Application lifecycle management

    • Actions: start, stop, restart

  • coolify_application_envs - Application environment variables

    • Actions: list, create, bulk_update, delete

  • coolify_logs - Application logs retrieval

    • Actions: get

  • coolify_application_deployments - Application deployment management

    • Actions: list, get, trigger

Database Management (3 tools)

  • coolify_databases - Database CRUD operations

    • Actions: list, create, get, update, delete

  • coolify_database_lifecycle - Database lifecycle management

    • Actions: start, stop, restart

  • coolify_database_types - Specific database type creation

    • Actions: create (PostgreSQL, MySQL, MongoDB, Redis)

Server Management (2 tools)

  • coolify_servers - Server CRUD operations

    • Actions: list, create, get, update, delete

  • coolify_server_management - Server operations and resources

    • Actions: validate, domains, resources

Service Management (3 tools)

  • coolify_services - Service CRUD operations

    • Actions: list, create, get, update, delete

  • coolify_service_lifecycle - Service lifecycle management

    • Actions: start, stop, restart

  • coolify_service_envs - Service environment variables

    • Actions: list, create, update, bulk_update, delete

Security Management (1 tool)

  • coolify_security_keys - Security key management

    • Actions: list, create, get, update, delete

šŸ—ļø Development

Scripts

  • npm run build - Build TypeScript to JavaScript

  • npm start - Start the production server

  • npm run dev - Start development server with hot reload

Project Structure

coolify-mcp-server/ ā”œā”€ā”€ src/ │ └── index.ts # Main MCP server implementation ā”œā”€ā”€ dist/ # Compiled JavaScript output ā”œā”€ā”€ Dockerfile # Docker configuration ā”œā”€ā”€ docker-compose.yaml # Docker Compose configuration ā”œā”€ā”€ package.json # Dependencies and scripts ā”œā”€ā”€ tsconfig.json # TypeScript configuration ā”œā”€ā”€ config.example.env # Environment variables template └── README.md # This file

šŸ”§ API Coverage

This MCP server provides 100% coverage of the Coolify API with 18 consolidated tools covering all 83+ API endpoints:

  • āœ… System Management (1 tool) - Health, version, and system information

  • āœ… Team Management (1 tool) - Complete team operations

  • āœ… Project Management (2 tools) - Projects and environments

  • āœ… Application Management (5 tools) - All application types and lifecycle

  • āœ… Database Management (3 tools) - All database types and operations

  • āœ… Server Management (2 tools) - Server operations and resources

  • āœ… Service Management (3 tools) - Service operations and lifecycle

  • āœ… Security Management (1 tool) - Security keys and authentication

Key Benefits of Consolidation:

  • šŸŽÆ Reduced Complexity: 18 tools instead of 83+ individual tools

  • šŸš€ Better Performance: Fewer tool definitions and cleaner API

  • šŸ”§ Easier Maintenance: Action-based parameters for better organization

  • šŸ“š Simplified Documentation: Clear tool categories and actions

šŸš€ Production Deployment

Health Checks

The server includes a health check endpoint at /health when running in production mode (NODE_ENV=production).

Environment Configuration

For production deployment, ensure:

  1. Set NODE_ENV=production

  2. Provide valid COOLIFY_API_TOKEN

  3. Set correct COOLIFY_BASE_URL

  4. Configure proper logging

  5. Set up monitoring and alerting

šŸ“ License

MIT License - see LICENSE file for details.

šŸ¤ Contributing

  1. Fork the repository

  2. Create a feature branch

  3. Make your changes

  4. Add tests if applicable

  5. Submit a pull request

šŸ“š Documentation

  • README.md - Complete documentation and usage examples

  • GitHub Repository - Source code and issue tracking

šŸ“ž Support

For issues and questions:

šŸ™ Acknowledgments

This project is built for and powered by Coolify - an amazing open-source platform that makes self-hosting applications incredibly easy. Special thanks to the Coolify team and community for creating such a powerful tool.

šŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


Built with ā¤ļø for the

GitHub stars GitHub forks GitHub issues


Powered by - An open-source & self-hostable Heroku / Netlify / Vercel alternative with 45.2k+ stars ⭐

Deploy Server
-
security - not tested
A
license - permissive license
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Enables AI assistants to interact with Coolify for complete infrastructure management including applications, databases, servers, deployments, and team operations. Provides 100% API coverage with 64 tools for managing the entire Coolify ecosystem through natural language.

  1. šŸ“– Table of Contents
    1. ✨ Features
      1. šŸš€ Quick Start
        1. Install in Your AI IDE
        2. Local Development
      2. šŸ“‹ Prerequisites
        1. šŸ› ļø Installation
          1. NPM Installation (Recommended)
          2. Local Development
        2. āš™ļø Configuration
          1. Environment Variables
          2. MCP Client Configuration
        3. šŸŽÆ Available Tools
          1. System Management (1 tool)
          2. Team Management (1 tool)
          3. Project Management (2 tools)
          4. Application Management (5 tools)
          5. Database Management (3 tools)
          6. Server Management (2 tools)
          7. Service Management (3 tools)
          8. Security Management (1 tool)
        4. šŸ—ļø Development
          1. Scripts
          2. Project Structure
        5. šŸ”§ API Coverage
          1. šŸš€ Production Deployment
            1. Health Checks
            2. Environment Configuration
          2. šŸ“ License
            1. šŸ¤ Contributing
              1. šŸ“š Documentation
                1. šŸ“ž Support
                  1. šŸ™ Acknowledgments
                    1. šŸ“„ License

                      MCP directory API

                      We provide all the information about MCP servers via our MCP API.

                      curl -X GET 'https://glama.ai/api/mcp/v1/servers/HowieDuhzit/CoolifyMCP'

                      If you have feedback or need assistance with the MCP directory API, please join our Discord server