Home / Servers / DigitalOcean API / security_create_secret

Create Secret

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

Create Secret To create a secret, send a POST request to /v2/security/secrets. Creating a secret that already exists in the same region returns a 409 response. [POST /v2/security/secrets]

Name on the gateway: digitalocean_api__security_create_secret · may change things.

Parameters

NameTypeDescription
name requiredstringThe name of the secret to create.
region requiredstringThe region where the secret will be stored.
values requiredobjectKey-value pairs to store in the secret.

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": "digitalocean_api__security_create_secret",
  "arguments": {
    "name": "…",
    "region": "…",
    "values": "…"
  }
}

Or connect the DigitalOcean API server directly, which lists 874 tools including this one:

Run in your terminal
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 secret tool with name set to ….

More from DigitalOcean API