Home / Servers / Hetzner Cloud API / create_ssh_key

Create an SSH key

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

Create an SSH key Creates a new SSH key with the given name and public_key. Once an SSH key is created, it can be used in other calls such as creating Servers. [POST /ssh_keys]

Name on the gateway: hetzner_api__create_ssh_key · may change things.

Parameters

NameTypeDescription
name requiredstringName of the SSH key.
public_key requiredstringPublic key.
labelsobjectUser-defined labels (key/value pairs) for the Resource. For more information…

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_ssh_key",
  "arguments": {
    "name": "…",
    "public_key": "…"
  }
}

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 an ssh key tool with name set to ….

More from Hetzner Cloud API