Home / Servers / Hetzner Cloud API / add_server_to_placement_group

Add a Server to a Placement Group

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

Add a Server to a Placement Group Adds a Server to a Placement Group. Server must be powered off for this command to succeed. #### Operation specific errors | Status | Code | Description | | --- | --- | --- | | 422 |… [POST /servers/{id}/actions/add_to_placement_group]

Name on the gateway: hetzner_api__add_server_to_placement_group · may change things.

Parameters

NameTypeDescription
id requiredintegerID of the Server.
placement_group requiredintegerID of Placement Group the Server should be added to.

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__add_server_to_placement_group",
  "arguments": {
    "id": 0,
    "placement_group": 0
  }
}

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 add a server to a placement group tool with id set to ….

More from Hetzner Cloud API