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
| Name | Type | Description |
|---|---|---|
domain_name required | string | The name of the domain itself. |
id | integer | A unique identifier for each domain record. |
type required | string | The type of the DNS record. For example: A, CNAME, TXT, ... |
name required | string | The host name, alias, or service being defined by the record. |
data required | string | Variable data depending on record type. For example, the "data" value for an A… |
priority | integer | The priority for SRV and MX records. |
port | integer | The port for SRV records. |
ttl | integer | This value is the time to live for the record, in seconds. This defines the… |
weight | integer | The weight for SRV records. |
flags | integer | An unsigned integer between 0-255 used for CAA records. |
tag | string | The 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:
{
"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:
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 ….