Skip to main content
Glama

create_server

Create a new server in Coolify by specifying name, IP address, and SSH credentials to deploy applications and manage infrastructure.

Instructions

Create a new server

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesServer name
descriptionNoServer description
ipYesServer IP address
portNoSSH port (default: 22)
userNoSSH user (default: root)root
private_key_uuidYesUUID of the private key for SSH
is_build_serverNoUse as build server
instant_validateNoValidate immediately

Implementation Reference

  • The switch case handler for the 'create_server' tool. Validates required input parameters (name, ip, private_key_uuid) and sends a POST request to the Coolify API endpoint '/servers' to create a new server.
    case 'create_server': requireParam(args, 'name'); requireParam(args, 'ip'); requireParam(args, 'private_key_uuid'); return client.post('/servers', args);
  • MCP tool registration for 'create_server' including name, description, and JSON input schema definition used for tool validation and documentation.
    { name: 'create_server', description: 'Create a new server', inputSchema: { type: 'object', properties: { name: { type: 'string', description: 'Server name' }, description: { type: 'string', description: 'Server description' }, ip: { type: 'string', description: 'Server IP address' }, port: { type: 'number', description: 'SSH port (default: 22)', default: 22 }, user: { type: 'string', description: 'SSH user (default: root)', default: 'root' }, private_key_uuid: { type: 'string', description: 'UUID of the private key for SSH' }, is_build_server: { type: 'boolean', description: 'Use as build server', default: false }, instant_validate: { type: 'boolean', description: 'Validate immediately', default: true } }, required: ['name', 'ip', 'private_key_uuid'] } },
  • TypeScript type definition for CreateServerInput interface, providing compile-time validation matching the tool's input schema.
    export interface CreateServerInput { name: string; description?: string; ip: string; port?: number; user?: string; private_key_uuid: string; is_build_server?: boolean; instant_validate?: boolean; }

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kof70/coolify-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server