Home / Servers / Vercel API / create_sandboxes_v2

Create a named sandbox

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

Create a named sandbox Creates a named sandbox environment. Named sandboxes have a unique name within a project and support automatic snapshotting on shutdown. [POST /v2/sandboxes]

Name on the gateway: vercel_api__create_sandboxes_v2 · may change things.

Parameters

NameTypeDescription
teamIdstringThe Team identifier to perform the request on behalf of.
slugstringThe Team slug to perform the request on behalf of.
networkPolicyobjectNetwork access policy for the sandbox.\n Controls which external hosts the…
runtimenode22 | node24 | node26 | python3.13The runtime environment for the sandbox. Determines the pre-installed language…
architectureamd64 | arm64CPU architecture. Inherits a snapshot or single image manifest when omitted.…
resourcesobjectResources to define the VM
sourceobjectThe source from which to initialize the sandbox filesystem. Can be a Git…
projectIdstringThe target project slug or ID in which the sandbox will be assigned to.
portsarrayList of ports to expose from the sandbox. Each port will be accessible via a…
imagestringImage to use for the sandbox.
timeoutintegerMaximum duration in milliseconds that the sandbox can run before being…
envobjectDefault environment variables for the sandbox. These are inherited by all…
mountsobjectList of drives to mount to the sandbox at the provided path.
regioniad1 | sfo1 | cle1 | cdg1 | fra1 | arn1 | sin1 | pdx1 | lhr1 | icn1 | bom1 | cpt1 | dub1 | gru1 | hkg1 | syd1 | yul1 | hnd1 | kix1The Vercel region in which to create the sandbox.
failoverRegionsarrayThe regions the sandbox falls back to when it cannot be created in region.
networkIdstringThe Connect network id for the target Secure Compute private network.
namestringName for the sandbox. Must be unique per project and URL-safe (alphanumeric…
persistentbooleanWhether the sandbox persists its state across restarts via automatic…
snapshotExpirationstringDefault snapshot expiration time in milliseconds. Set to 0 to disable…
keepLastSnapshotsobjectProtect the N most recent snapshots with different expiration/deletion behavior.
tagsobjectKey-value tags to associate with the sandbox. Maximum 5 tags.

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": "vercel_api__create_sandboxes_v2",
  "arguments": {}
}

Or connect the Vercel API server directly, which lists 472 tools including this one:

Run in your terminal
claude mcp add --transport http hj-vercel-api https://mcp.hjlabs.in/mcp/vercel-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the create a named sandbox tool with teamId set to ….

More from Vercel API