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

NameTypeDescription
name requiredstringName of the Network.
ip_range requiredstringIP range of the Network. Uses CIDR notation. Must span all included subnets.…
labelsobjectUser-defined labels (key/value pairs) for the Resource. For more information…
subnetsarrayArray of subnets to allocate.
routesarrayArray of routes set in this Network.
expose_routes_to_vswitchbooleanToggle 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:

call_tool arguments
{
  "name": "hetzner_api__create_network",
  "arguments": {
    "name": "…",
    "ip_range": "…"
  }
}

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

More from Hetzner Cloud API