Home / Servers / DigitalOcean API / microvms_create

Create a MicroVM

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

Create a MicroVM To create a MicroVM, send a POST request to /v2/microvms. name and source are required. Set source.oci_ref to create the MicroVM from a linux/amd64 container image, or source.checkpoint_id to create… [POST /v2/microvms]

Name on the gateway: digitalocean_api__microvms_create · may change things.

Parameters

NameTypeDescription
name requiredstringThe name of the MicroVM. Must be unique in the region and contain 1 to 63…
source requiredobjectWhat the MicroVM runs. Set exactly one of oci_ref or checkpoint_id.
regionstringThe slug of the region to create the MicroVM in. Required with source.oci_ref.
sizeobjectThe MicroVM's size. cpu and memory must be one of the pairs 1/2048, 2/4096…
networkingpublic | vpcpublic sends outbound traffic through a shared NAT gateway. vpc places the…
vpc_uuidstringThe ID of a VPC network in the same region that belongs to your team. Required…
auto_pauseobjectAutomatic pause settings. A MicroVM always pauses after it is idle for…
auto_resumebooleanWhether an HTTP request, command, or console session resumes the MicroVM when…
http_portintegerThe guest port the workload serves HTTP on. Defaults to 8080. Not returned in…
http_protocolhttp | http2The protocol the HTTP port serves.
portsarrayThe guest ports to declare, up to five. Must include http_port. Defaults to…
environmentobjectEnvironment variables passed into the MicroVM at boot, as key and value pairs.…
tagsarrayTags to apply to the MicroVM.

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__microvms_create",
  "arguments": {
    "name": "…",
    "source": "…"
  }
}

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 microvm tool with name set to ….

More from DigitalOcean API