The near infrared (NIR) absorption and average particle size of gold nanostars (GNSs) can be precisely controlled by varying the molar ratios of cucurbit[7]urils (CB[7]) and GNSs in aqueous solution. GNSs modified with CB[7] achieved high cargo loading with thermally activated release upon the NIR laser irradiation.