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
| Name | Type | Description |
|---|---|---|
name required | string | Name of the Load Balancer. |
load_balancer_type required | string | ID or name of the Load Balancer type this Load Balancer should be created with. |
algorithm | object | Algorithm of the Load Balancer. |
services | array | Array of services. |
targets | array | Array of targets. |
labels | object | User-defined labels (key/value pairs) for the Resource. For more information… |
public_interface | boolean | Enable or disable the public interface of the Load Balancer. |
public_net | object | Public network options of the Load Balancer. Only allowed if the public… |
network | integer | ID of the network the Load Balancer should be attached to on creation. |
network_zone | string | Name of network zone. |
location | string | ID 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:
{
"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:
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 ….