Supports configuration and management of MongoDB databases in Coolify environments.
Enables initialization and management of MySQL databases within Coolify deployments.
Supports deployment and management of Node.js applications within Coolify.
Allows creating, configuring, and managing PostgreSQL databases within Coolify, including memory limits, port configuration, and password updates.
Provides capabilities to set up and manage Redis instances within Coolify.
Enables creation and management of WordPress services with MySQL integration in Coolify projects.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Coolify MCP Servershow me all my running applications"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Coolify MCP Server
The most comprehensive MCP server for Coolify - 34 optimized tools, smart diagnostics, and batch operations for managing your self-hosted PaaS through AI assistants.
A Model Context Protocol (MCP) server for Coolify, enabling AI assistants to manage and debug your Coolify instances through natural language.
Features
This MCP server provides 34 token-optimized tools for debugging, management, and deployment:
Category | Tools |
Infrastructure |
|
Diagnostics |
|
Batch Operations |
|
Servers |
|
Projects |
|
Environments |
|
Applications |
|
Databases |
|
Services |
|
Control |
|
Env Vars |
|
Deployments |
|
Private Keys |
|
Token-Optimized Design
The server uses 85% fewer tokens than a naive implementation (6,600 vs 43,000) by consolidating related operations into single tools with action parameters. This prevents context window exhaustion in AI assistants.
Related MCP server: MCP Toolkit
Installation
Prerequisites
Node.js >= 18
A running Coolify instance
Coolify API access token (generate in Coolify Settings > API)
Claude Desktop
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
Claude Code
Note: Use
@latesttag (not-yflag) for reliable startup in Claude Code CLI.
Cursor
Context-Optimized Responses
Why This Matters
The Coolify API returns extremely verbose responses - a single application can contain 91 fields including embedded 3KB server objects and 47KB docker-compose files. When listing 20+ applications, responses can exceed 200KB, which quickly exhausts the context window of AI assistants like Claude Desktop.
This MCP server solves this by returning optimized summaries by default.
How It Works
Tool Type | Returns | Use Case |
| Summaries only (uuid, name, status, etc) | Discovery, finding resources |
| Full details for a single resource | Deep inspection, debugging |
| All resources summarized in one call | Start here to understand your setup |
Response Size Comparison
Endpoint | Full Response | Summary Response | Reduction |
list_applications | ~170KB | ~4.4KB | 97% |
list_services | ~367KB | ~1.2KB | 99% |
list_servers | ~4KB | ~0.4KB | 90% |
list_application_envs | ~3KB/var | ~0.1KB/var | 97% |
Recommended Workflow
Start with overview:
get_infrastructure_overview- see everything at onceFind your target:
list_applications- get UUIDs of what you needDive deep:
get_application(uuid)- full details for one resourceTake action:
restart_application(uuid),get_application_logs(uuid), etc.
Pagination
All list endpoints still support optional pagination for very large deployments:
Example Prompts
Getting Started
Debugging & Monitoring
Application Management
Project Setup
Environment Variables
Variable | Required | Default | Description |
| Yes | - | Your Coolify API token |
| No |
| Your Coolify instance URL |
Development
Available Tools
Infrastructure
get_version- Get Coolify API versionget_mcp_version- Get coolify-mcp server version (useful to verify which version is installed)get_infrastructure_overview- Get a high-level overview of all infrastructure (servers, projects, applications, databases, services)
Diagnostics (Smart Lookup)
These tools accept human-friendly identifiers instead of just UUIDs:
diagnose_app- Get comprehensive app diagnostics (status, logs, env vars, deployments). Accepts UUID, name, or domain (e.g., "stuartmason.co.uk" or "my-app")diagnose_server- Get server diagnostics (status, resources, domains, validation). Accepts UUID, name, or IP address (e.g., "coolify-apps" or "192.168.1.100")find_issues- Scan entire infrastructure for unhealthy apps, databases, services, and unreachable servers
Servers
list_servers- List all servers (returns summary)get_server- Get server detailsget_server_resources- Get resources running on a serverget_server_domains- Get domains configured on a servervalidate_server- Validate server connection
Projects
projects- Manage projects withaction: list|get|create|update|delete
Environments
environments- Manage environments withaction: list|get|create|delete
Applications
list_applications- List all applications (returns summary)get_application- Get application detailsapplication_logs- Get application logsapplication- Create, update, or delete apps withaction: create_github|create_key|update|deleteenv_vars- Manage env vars withresource: application, action: list|create|update|deletecontrol- Start/stop/restart withresource: application, action: start|stop|restart
Databases
list_databases- List all databases (returns summary)get_database- Get database detailsdatabase- Create or delete databases withaction: create|delete, type: postgresql|mysql|mariadb|mongodb|redis|keydb|clickhouse|dragonflydatabase_backups- Manage backup schedules withaction: list_schedules|get_schedule|create|update|delete|list_executions|get_executionConfigure frequency, retention policies, S3 storage
Enable/disable schedules without deletion
View backup execution history
control- Start/stop/restart withresource: database, action: start|stop|restart
Services
list_services- List all services (returns summary)get_service- Get service detailsservice- Create, update, or delete services withaction: create|update|deleteenv_vars- Manage env vars withresource: service, action: list|create|deletecontrol- Start/stop/restart withresource: service, action: start|stop|restart
Deployments
list_deployments- List running deployments (returns summary)deploy- Deploy by tag or UUIDdeployment- Manage deployments withaction: get|cancel|list_for_app
Private Keys
private_keys- Manage SSH keys withaction: list|get|create|update|delete
Batch Operations
Power user tools for operating on multiple resources at once:
restart_project_apps- Restart all applications in a projectbulk_env_update- Update or create an environment variable across multiple applications (upsert behavior)stop_all_apps- Emergency stop all running applications (requires confirmation)redeploy_project- Redeploy all applications in a project with force rebuild
Why Coolify MCP?
Context-Optimized: Responses are 90-99% smaller than raw API, preventing context window exhaustion
Smart Lookup: Find apps by domain (
stuartmason.co.uk), servers by IP, not just UUIDsBatch Operations: Restart entire projects, bulk update env vars, emergency stop all apps
Production Ready: 98%+ test coverage, TypeScript strict mode, comprehensive error handling
Always Current: Weekly OpenAPI drift detection ensures the server stays in sync with Coolify
Related Links
Coolify - The open-source & self-hostable Heroku/Netlify/Vercel alternative
Model Context Protocol - The protocol powering AI tool integrations
MCP Server Registry - Official MCP server directory
Contributing
Contributions welcome! Please see CONTRIBUTING.md for guidelines.
License
MIT - see LICENSE for details.