Home / Servers / DigitalOcean API / vpc_subnets_list

List VPC Subnets

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

List VPC Subnets To list all subnets within a VPC, send a GET request to /v2/vpcs/$VPC_UUID/subnets. [GET /v2/vpcs/{vpc_uuid}/subnets]

Name on the gateway: digitalocean_api__vpc_subnets_list · read-only.

Parameters

NameTypeDescription
vpc_uuid requiredstringThe unique identifier of the VPC to which the subnet…
per_pageintegerNumber of items returned per page
pageintegerWhich 'page' of paginated results to return.

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__vpc_subnets_list",
  "arguments": {
    "vpc_uuid": "…"
  }
}

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 list vpc subnets tool with vpc_uuid set to ….

More from DigitalOcean API