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
| Name | Type | Description |
|---|---|---|
name required | string | The name of the MicroVM. Must be unique in the region and contain 1 to 63… |
source required | object | What the MicroVM runs. Set exactly one of oci_ref or checkpoint_id. |
region | string | The slug of the region to create the MicroVM in. Required with source.oci_ref. |
size | object | The MicroVM's size. cpu and memory must be one of the pairs 1/2048, 2/4096… |
networking | public | vpc | public sends outbound traffic through a shared NAT gateway. vpc places the… |
vpc_uuid | string | The ID of a VPC network in the same region that belongs to your team. Required… |
auto_pause | object | Automatic pause settings. A MicroVM always pauses after it is idle for… |
auto_resume | boolean | Whether an HTTP request, command, or console session resumes the MicroVM when… |
http_port | integer | The guest port the workload serves HTTP on. Defaults to 8080. Not returned in… |
http_protocol | http | http2 | The protocol the HTTP port serves. |
ports | array | The guest ports to declare, up to five. Must include http_port. Defaults to… |
environment | object | Environment variables passed into the MicroVM at boot, as key and value pairs.… |
tags | array | Tags 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:
{
"name": "digitalocean_api__microvms_create",
"arguments": {
"name": "…",
"source": "…"
}
}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 microvm tool with name set to ….