Coolify MCP Server
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.
README
CoolifyMCP
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 Coolify - An open-source & self-hostable Heroku / Netlify / Vercel alternative
📖 Table of Contents
- Features
- Quick Start
- Prerequisites
- Installation
- Configuration
- Available Tools
- Development
- API Coverage
- Production Deployment
- Documentation
- Contributing
- License
✨ 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)
- Open Cursor and go to Settings → Extensions → MCP
- 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
- Open Claude Desktop settings
- 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
- Open your JetBrains IDE (IntelliJ, WebStorm, etc.)
- Go to Settings → Tools → AI Assistant → Model Context Protocol (MCP)
- Click "Add" and configure:
- Name:
coolifymcp - Command:
npx - Arguments:
["coolifymcp"] - Environment Variables:
COOLIFY_API_TOKEN:your_coolify_api_token_hereCOOLIFY_BASE_URL:https://your-coolify-instance.com/api/v1
- Name:
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)
- Install and run with npx (no installation needed):
npx coolifymcp
- Or install globally:
npm install -g coolifymcp
coolifymcp
Local Development
- Clone the repository:
git clone https://github.com/howieduhzit/coolifymcp.git
cd coolifymcp
- Install dependencies:
npm install
- Build the project:
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
⚙️ 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 tokenCOOLIFY_BASE_URL(optional): Your Coolify instance URL (defaults tohttps://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
- Actions:
Team Management (1 tool)
coolify_teams- Complete team management operations- Actions:
list,current,get,members
- Actions:
Project Management (2 tools)
coolify_projects- Project CRUD operations- Actions:
list,create,get,update,delete
- Actions:
coolify_project_environments- Project environment management- Actions:
list,create,get,delete
- Actions:
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
- Actions:
coolify_application_lifecycle- Application lifecycle management- Actions:
start,stop,restart
- Actions:
coolify_application_envs- Application environment variables- Actions:
list,create,bulk_update,delete
- Actions:
coolify_logs- Application logs retrieval- Actions:
get
- Actions:
coolify_application_deployments- Application deployment management- Actions:
list,get,trigger
- Actions:
Database Management (3 tools)
coolify_databases- Database CRUD operations- Actions:
list,create,get,update,delete
- Actions:
coolify_database_lifecycle- Database lifecycle management- Actions:
start,stop,restart
- Actions:
coolify_database_types- Specific database type creation- Actions:
create(PostgreSQL, MySQL, MongoDB, Redis)
- Actions:
Server Management (2 tools)
coolify_servers- Server CRUD operations- Actions:
list,create,get,update,delete
- Actions:
coolify_server_management- Server operations and resources- Actions:
validate,domains,resources
- Actions:
Service Management (3 tools)
coolify_services- Service CRUD operations- Actions:
list,create,get,update,delete
- Actions:
coolify_service_lifecycle- Service lifecycle management- Actions:
start,stop,restart
- Actions:
coolify_service_envs- Service environment variables- Actions:
list,create,update,bulk_update,delete
- Actions:
Security Management (1 tool)
coolify_security_keys- Security key management- Actions:
list,create,get,update,delete
- Actions:
🏗️ Development
Scripts
npm run build- Build TypeScript to JavaScriptnpm start- Start the production servernpm 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:
- Set
NODE_ENV=production - Provide valid
COOLIFY_API_TOKEN - Set correct
COOLIFY_BASE_URL - Configure proper logging
- Set up monitoring and alerting
📝 License
MIT License - see LICENSE file for details.
🤝 Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
📚 Documentation
- README.md - Complete documentation and usage examples
- GitHub Repository - Source code and issue tracking
📞 Support
For issues and questions:
- 📝 Create an issue in the repository
- 📖 Check the Coolify documentation
- 💬 Join the Coolify community
🙏 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.
- 🌟 Coolify on GitHub - The main Coolify project
- 🌐 Coolify Website - Official website and documentation
- 📚 Coolify Documentation - Complete documentation
- 💬 Coolify Discord - Community support
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
Built with ❤️ for the Coolify community
Powered by Coolify - An open-source & self-hostable Heroku / Netlify / Vercel alternative with 45.2k+ stars ⭐
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。
mcp-server-qdrant
这个仓库展示了如何为向量搜索引擎 Qdrant 创建一个 MCP (Managed Control Plane) 服务器的示例。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。