The Coolify MCP Server acts as a bridge between MCP tools and the Coolify API, allowing you to manage and interact with your Coolify instances through the Model Context Protocol. This server provides comprehensive control over teams, services, applications, and server resources.
Before installing the Coolify MCP Server, ensure you have:
You can install and use the Coolify MCP Server in two ways:
# Install globally
npm install -g coolify-mcp-server
# Or use with npx without installing
npx coolify-mcp-server
The server requires two environment variables to function properly:
COOLIFY_BASE_URL
: Your Coolify instance URLCOOLIFY_TOKEN
: Your Coolify API tokenFollow these steps to get your Coolify API token:
Keys & Tokens
/ API tokens
To use the Coolify MCP Server with your MCP tools, add the following configuration to your MCP settings:
{
"mcpServers": {
"coolify": {
"command": "npx",
"args": ["-y", "coolify-mcp-server"],
"env": {
"COOLIFY_BASE_URL": "your-coolify-url",
"COOLIFY_TOKEN": "your-api-token"
},
"disabled": false,
"autoApprove": []
}
}
}
Windows Command Line users should use this configuration instead:
{
"mcpServers": {
"coolify": {
"command": "cmd",
"args": [
"/c",
"npx",
"-y",
"coolify-mcp-server"
],
"env": {
"COOLIFY_BASE_URL": "your-coolify-url",
"COOLIFY_TOKEN": "your-api-token"
},
"disabled": false,
"autoApprove": []
}
}
}
The Coolify MCP Server provides a wide range of functionality organized by category:
get_version
: Retrieve Coolify version informationhealth_check
: Verify Coolify API health statuslist_teams
: Display all teamsget_team
: Get detailed information about a specific teamget_current_team
: View current team detailsget_current_team_members
: List current team memberslist_servers
: Display all serverscreate_server
: Set up a new servervalidate_server
: Validate server configurationget_server_resources
: Monitor server resource usageget_server_domains
: View server domainslist_services
: Display all servicescreate_service
: Set up a new servicestart_service
: Launch a servicestop_service
: Halt a servicerestart_service
: Reboot a servicelist_applications
: Display all applicationscreate_application
: Set up a new applicationstart_application
: Launch an applicationstop_application
: Halt an applicationrestart_application
: Reboot an applicationexecute_command_application
: Run commands within application containerslist_deployments
: Display all deploymentsget_deployment
: View detailed deployment informationlist_private_keys
: Display all private keyscreate_private_key
: Generate a new private keyTo add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "coolify" '{"command":"npx","args":["-y","coolify-mcp-server"],"env":{"COOLIFY_BASE_URL":"your-coolify-url","COOLIFY_TOKEN":"your-api-token"},"disabled":false,"autoApprove":[]}'
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": {
"command": "npx",
"args": [
"-y",
"coolify-mcp-server"
],
"env": {
"COOLIFY_BASE_URL": "your-coolify-url",
"COOLIFY_TOKEN": "your-api-token"
},
"disabled": false,
"autoApprove": []
}
}
}
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": {
"command": "npx",
"args": [
"-y",
"coolify-mcp-server"
],
"env": {
"COOLIFY_BASE_URL": "your-coolify-url",
"COOLIFY_TOKEN": "your-api-token"
},
"disabled": false,
"autoApprove": []
}
}
}
3. Restart Claude Desktop for the changes to take effect