Home / Servers / Hetzner Cloud API / create_network
Create a Network
An MCP tool from the Hetzner Cloud API server, hosted on mcp.hjlabs.in.
Create a Network Creates a Network. The provided ip_range can only be extended later on, but not reduced. Subnets can be added now or later on using the add subnet action. If you do not specify an ip_range for the… [POST /networks]
Name on the gateway: hetzner_api__create_network · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
name required | string | Name of the Network. |
ip_range required | string | IP range of the Network. Uses CIDR notation. Must span all included subnets.… |
labels | object | User-defined labels (key/value pairs) for the Resource. For more information… |
subnets | array | Array of subnets to allocate. |
routes | array | Array of routes set in this Network. |
expose_routes_to_vswitch | boolean | Toggle to expose routes to the Networks vSwitch. Indicates if the routes from… |
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_network",
"arguments": {
"name": "…",
"ip_range": "…"
}
}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 network tool with name set to ….