coolify-mcp-server
Coolify MCP Server
Documentation
Coolify MCP Server
A robust TypeScript MCP (Model Context Protocol) server for integrating with Coolify, the self-hostable alternative to Netlify and Vercel.
Features
- Complete Coolify API Integration: Manage applications, databases, servers, projects, and services
- Type-Safe: Full TypeScript support with comprehensive type definitions
- MCP Protocol: Compatible with Claude and other MCP clients
- Resource Access: Expose Coolify resources through MCP resource endpoints
- Tool Support: Comprehensive set of tools for Coolify operations
Installation
npm install
npm run buildConfiguration
Environment Variables
The server requires environment variables to connect to your Coolify instance:
export COOLIFY_API_URL="http://localhost:8000"
export COOLIFY_API_TOKEN="your-api-token-here"
export COOLIFY_TEAM_ID="optional-team-id" # OptionalOr create a `.env` file:
COOLIFY_API_URL=http://localhost:8000
COOLIFY_API_TOKEN=your-api-token-here
COOLIFY_TEAM_ID=optional-team-idMCP Client Configuration
Claude Desktop
Add the server to your Claude Desktop configuration file:
macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`
Windows: `%APPDATA%/Claude/claude_desktop_config.json`
{
"mcpServers": {
"coolify": {
"command": "node",
"args": ["/path/to/coolify-mcp-server/dist/index.js"],
"env": {
"COOLIFY_API_URL": "http://localhost:8000",
"COOLIFY_API_TOKEN": "your-api-token-here",
"COOLIFY_TEAM_ID": "optional-team-id"
}
}
}
}Alternative: NPX Usage
If you publish to npm, users can run via npx:
{
"mcpServers": {
"coolify": {
"command": "npx",
"args": ["@joshuarileydev/coolify-mcp-server", "--yes"],
"env": {
"COOLIFY_API_URL": "http://localhost:8000",
"COOLIFY_API_TOKEN": "your-api-token-here",
"COOLIFY_TEAM_ID": "optional-team-id"
}
}
}
}Or use the executable name directly:
{
"mcpServers": {
"coolify": {
"command": "npx",
"args": ["coolify-mcp-server", "--yes"],
"env": {
"COOLIFY_API_URL": "http://localhost:8000",
"COOLIFY_API_TOKEN": "your-api-token-here",
"COOLIFY_TEAM_ID": "optional-team-id"
}
}
}
}Development Setup
For development, you can use the TypeScript source directly:
{
"mcpServers": {
"coolify": {
"command": "npx",
"args": ["tsx", "/path/to/coolify-mcp-server/src/index.ts"],
"env": {
"COOLIFY_API_URL": "http://localhost:8000",
"COOLIFY_API_TOKEN": "your-api-token-here",
"COOLIFY_TEAM_ID": "optional-team-id"
}
}
}
}Other MCP Clients
For other MCP clients that support environment variables, ensure the following variables are set:
- `COOLIFY_API_URL` (required)
- `COOLIFY_API_TOKEN` (required)
- `COOLIFY_TEAM_ID` (optional)
Example shell script:
#!/bin/bash
export COOLIFY_API_URL="http://localhost:8000"
export COOLIFY_API_TOKEN="your-api-token-here"
export COOLIFY_TEAM_ID="your-team-id"
node /path/to/coolify-mcp-server/dist/index.jsAvailable Tools
Applications
- `list_applications` - List all applications
- `get_application` - Get application details
- `create_application` - Create new application
- `start_application` - Start an application
- `stop_application` - Stop an application
- `restart_application` - Restart an application
- `deploy_application` - Deploy an application
Databases
- `list_databases` - List all databases
- `create_database` - Create new database
Servers
- `list_servers` - List all servers
- `create_server` - Create new server
- `validate_server` - Validate server connection
Projects
- `list_projects` - List all projects
- `create_project` - Create new project
Services
- `list_services` - List all services
- `start_service` - Start a service
- `stop_service` - Stop a service
System
- `get_version` - Get Coolify version
Available Resources
The server exposes these MCP resources:
- `coolify://applications` - All applications
- `coolify://databases` - All databases
- `coolify://servers` - All servers
- `coolify://projects` - All projects
- `coolify://services` - All services
- `coolify://teams` - All teams
API Token Setup
1. Log into your Coolify instance
2. Navigate to "Keys & Tokens" > "API tokens"
3. Click "Create New Token"
4. Choose appropriate permissions:
5. Copy the generated token
Security Note
When using the MCP server with Claude Desktop or other clients, your API token will be stored in the configuration file. Ensure this file has appropriate permissions:
# macOS/Linux
chmod 600 ~/Library/Application\ Support/Claude/claude_desktop_config.json
# Or set environment variables in your shell profile instead
echo 'export COOLIFY_API_TOKEN="your-token-here"' >> ~/.bashrcDevelopment
# Install dependencies
npm install
# Run in development mode (requires env vars)
COOLIFY_API_URL=http://localhost:8000 COOLIFY_API_TOKEN=your-token npm run dev
# Build for production
npm run build
# Run built version
npm start
# Lint code
npm run lint
# Type check
npm run typecheckTroubleshooting
Common Issues
1. "COOLIFY_API_URL and COOLIFY_API_TOKEN environment variables are required"
2. "Tool execution failed: Request failed"
3. MCP server not appearing in Claude Desktop
Debug Mode
To see detailed error messages, run the server with debug output:
DEBUG=* node dist/index.jsLicense
MIT
Frequently asked questions
What is coolify-mcp-server?
coolify-mcp-server is Coolify MCP Server
How do I install coolify-mcp-server?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is coolify-mcp-server open source?
Yes — it is hosted on GitHub at https://github.com/JoshuaRileyDev/coolify-mcp-server and has 3 stars.
Related MCP tools
🔥 Official Firecrawl MCP Server - Adds powerful web scraping and search to Cursor, Claude and any other LLM clients.
Use any LLMs (Large Language Models) for Deep Research. Support SSE API and MCP server.
Enhanced MCP server for interactive user feedback and command execution in AI-assisted development, featuring dual interface support (Web UI and Desktop Application) with intelligent environment detection and cross-platform compatibility.
A powerful Zotero AI and MCP plugin with ChatGPT, Gemini 3.7, Claude Fable 5, Claude Opus 5, DeepSeek V4, Grok, OpenRouter, Kimi k3, GLM 5.3, SiliconFlow, GPT-oss, Gemma 4, Qwen 3.8
Connect your browser to AI models. Just use Dia on Chrome, Arc or Firefox.
文颜 MCP Server 可以让 AI 自动将 Markdown 文章排版后发布至微信公众号。
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP