Home / Servers / DigitalOcean API / ssh_keys_create
Create a New SSH Key
An MCP tool from the DigitalOcean API server, hosted on mcp.hjlabs.in.
Create a New SSH Key To add a new SSH public key to your DigitalOcean account, send a POST request to /v2/account/keys. Set the name attribute to the name you wish to use and the public_key attribute to the full public… [POST /v2/account/keys]
Name on the gateway: digitalocean_api__ssh_keys_create · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
id | integer | A unique identification number for this key. Can be used to embed a specific… |
fingerprint | string | A unique identifier that differentiates this key from other keys using a… |
public_key required | string | The entire public key string that was uploaded. Embedded into the root user's… |
name required | string | A human-readable display name for this key, used to easily identify the SSH… |
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": "digitalocean_api__ssh_keys_create",
"arguments": {
"public_key": "…",
"name": "…"
}
}Or connect the DigitalOcean API server directly, which lists 874 tools including this one:
claude mcp add --transport http hj-digitalocean-api https://mcp.hjlabs.in/mcp/digitalocean-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the create a new ssh key tool with id set to ….