Home / Servers / Hetzner Cloud API / create_load_balancer

Create a Load Balancer

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

Create a Load Balancer Creates a Load Balancer. #### Operation specific errors | Status | Code | Description | | --- | --- | --- | | 412 | source_port_already_used | The source port you are trying to add is already in use… [POST /load_balancers]

Name on the gateway: hetzner_api__create_load_balancer · may change things.

Parameters

NameTypeDescription
name requiredstringName of the Load Balancer.
load_balancer_type requiredstringID or name of the Load Balancer type this Load Balancer should be created with.
algorithmobjectAlgorithm of the Load Balancer.
servicesarrayArray of services.
targetsarrayArray of targets.
labelsobjectUser-defined labels (key/value pairs) for the Resource. For more information…
public_interfacebooleanEnable or disable the public interface of the Load Balancer.
public_netobjectPublic network options of the Load Balancer. Only allowed if the public…
networkintegerID of the network the Load Balancer should be attached to on creation.
network_zonestringName of network zone.
locationstringID or name of Location to create Load Balancer in.

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_load_balancer",
  "arguments": {
    "name": "…",
    "load_balancer_type": "…"
  }
}

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 load balancer tool with name set to ….

More from Hetzner Cloud API