Home / Servers / Hetzner Cloud API / create_server

Create a Server

An MCP tool from the Hetzner Cloud API server, hosted on mcp.hjlabs.in.

Create a Server Creates a new Server. Returns preliminary information about the Server as well as an Action that covers progress of creation. #### Operation specific errors | Status | Code | Description | | --- |… [POST /servers]

Name on the gateway: hetzner_api__create_server · may change things.

Parameters

NameTypeDescription
name requiredstringName of the Server to create (must be unique per Project and a valid hostname…
locationstringID or name of the Location to create the Server in.
server_type requiredstringID or name of the Server type this Server should be created with.
start_after_createbooleanThis automatically triggers a Power on a Server-Server Action after the…
image requiredstringID or name of the Image the Server is created from.
placement_groupintegerID of the Placement Group the Server should be in.
ssh_keysarraySSH key IDs (integer) or names (string) which should be injected into the…
volumesarrayVolume IDs which should be attached to the Server at the creation time.…
networksarrayNetwork IDs which should be attached to the Server private network interface…
firewallsarrayFirewalls which should be applied on the Server's public network interface at…
user_datastringCloud-Init user data to use during Server creation. This field is limited to…
labelsobjectUser-defined labels (key/value pairs) for the Resource. For more information…
automountbooleanAuto-mount Volumes after attach.
public_netobjectPublic Network options.

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "hetzner_api__create_server",
  "arguments": {
    "name": "…",
    "server_type": "…",
    "image": "…"
  }
}

Or connect the Hetzner Cloud API server directly, which lists 178 tools including this one:

Run in your terminal
claude mcp add --transport http hj-hetzner-api https://mcp.hjlabs.in/mcp/hetzner-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the create a server tool with name set to ….

More from Hetzner Cloud API