Home / Servers / DigitalOcean API / domains_create_record

Create a New Domain Record

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

Create a New Domain Record To create a new record to a domain, send a POST request to /v2/domains/$DOMAIN_NAME/records. The request must include all of the required fields for the domain record type being added. See the… [POST /v2/domains/{domain_name}/records]

Name on the gateway: digitalocean_api__domains_create_record · may change things.

Parameters

NameTypeDescription
domain_name requiredstringThe name of the domain itself.
idintegerA unique identifier for each domain record.
type requiredstringThe type of the DNS record. For example: A, CNAME, TXT, ...
name requiredstringThe host name, alias, or service being defined by the record.
data requiredstringVariable data depending on record type. For example, the "data" value for an A…
priorityintegerThe priority for SRV and MX records.
portintegerThe port for SRV records.
ttlintegerThis value is the time to live for the record, in seconds. This defines the…
weightintegerThe weight for SRV records.
flagsintegerAn unsigned integer between 0-255 used for CAA records.
tagstringThe parameter tag for CAA records. Valid values are "issue", "issuewild", or…

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__domains_create_record",
  "arguments": {
    "domain_name": "…",
    "type": "…",
    "name": "…",
    "data": "…"
  }
}

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 a new domain record tool with domain_name set to ….

More from DigitalOcean API