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
| Name | Type | Description |
|---|---|---|
size required | integer | Size of the Volume in GB. |
name required | string | Name of the volume. |
labels | object | User-defined labels (key/value pairs) for the Resource. For more information… |
automount | boolean | Auto-mount Volume after attach. server must be provided. |
format | string | Format Volume after creation. One of: xfs, ext4. |
location | string | Location to create the Volume in (can be omitted if Server is specified). |
server | integer | This field is deprecated, use the assignee field with server as the type… |
assignee | object | Resource 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:
{
"name": "hetzner_api__create_volume",
"arguments": {
"size": 0,
"name": "…"
}
}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 volume tool with size set to ….