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.
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.
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
# Install globally for CLI usage
npm install -g @felixallistar/coolify-mcp
# Test the installation
coolify-mcp --help
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
# 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
# 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"
# 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"
# List all projects
coolify-mcp projects list
# Create a new project
coolify-mcp projects create --name "My Project"
# Check system health
coolify-mcp system health
Manage applications with 21 operations including:
Handle services with 14 operations including:
Manage databases with 13 operations supporting 8 database types:
Complete project, server, and deployment management including:
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.
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.
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"
}
}
}
}
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.
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.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.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