Home / Servers / DigitalOcean API / databases_create_replica

Create a Read-only Replica

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

Create a Read-only Replica To create a read-only replica for a PostgreSQL or MySQL database cluster, send a POST request to /v2/databases/$DATABASE_ID/replicas specifying the name it should be given, the size of the node to… [POST /v2/databases/{database_cluster_uuid}/replicas]

Name on the gateway: digitalocean_api__databases_create_replica · may change things.

Parameters

NameTypeDescription
database_cluster_uuid requiredstringA unique identifier for a database cluster.
idstringA unique ID that can be used to identify and reference a database replica.
name requiredstringThe name to give the read-only replicating
regionstringA slug identifier for the region where the read-only replica will be located.…
size requiredstringA slug identifier representing the size of the node for the read-only replica.…
statuscreating | online | resizing | migrating | forkingA string representing the current status of the database cluster.
tagsarrayA flat array of tag names as strings to apply to the read-only replica after…
created_atstringA time value given in ISO8601 combined date and time format that represents…
private_network_uuidstringA string specifying the UUID of the VPC to which the read-only replica will be…
connectionobject
private_connectionobject
storage_size_mibintegerAdditional storage added to the cluster, in MiB. If null, no additional…
do_settingsobjectDigitalOcean-specific settings for the database cluster.

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__databases_create_replica",
  "arguments": {
    "database_cluster_uuid": "…",
    "name": "…",
    "size": "…"
  }
}

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 read-only replica tool with database_cluster_uuid set to ….

More from DigitalOcean API