Home / Servers / Hetzner Cloud API / create_volume

Create a Volume

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

Create a Volume Creates a new Volume attached to a Server. If you want to create a Volume that is not attached to a Server, you need to provide the location key instead of server. This can be either the ID or the… [POST /volumes]

Name on the gateway: hetzner_api__create_volume · may change things.

Parameters

NameTypeDescription
size requiredintegerSize of the Volume in GB.
name requiredstringName of the volume.
labelsobjectUser-defined labels (key/value pairs) for the Resource. For more information…
automountbooleanAuto-mount Volume after attach. server must be provided.
formatstringFormat Volume after creation. One of: xfs, ext4.
locationstringLocation to create the Volume in (can be omitted if Server is specified).
serverintegerThis field is deprecated, use the assignee field with server as the type…
assigneeobjectResource to which to attach the Volume once it's created (Volume will be…

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_volume",
  "arguments": {
    "size": 0,
    "name": "…"
  }
}

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 volume tool with size set to ….

More from Hetzner Cloud API