MCP Server URLs
You'll need to provide your own API keys for any tools that require them. Pass credentials via the env parameter in your API calls.
Use these URLs with Claude Desktop, Cursor, or any MCP client
Tools in Collection
deleteJob
Cancel a pending or running code execution job. Returns any partial output and compiled artifacts. Cancellation is best-effort - jobs may complete before cancellation takes effect.
healthCheck
Check the health status of the Unsandbox API service.
deleteSnapshot
Permanently delete a snapshot.
unfreezeService
Manually wake a frozen service.
deleteSession
Terminate and destroy a session permanently.
getSnapshot
Get detailed information about a snapshot.
getImage
Get detailed information about an image.
lockSession
Lock a session to prevent accidental deletion.
unlockSession
Unlock a locked session to allow deletion.
lockService
Lock a service to prevent accidental deletion.
unlockService
Unlock a locked service to allow deletion.
deleteService
Permanently destroy a service and its container.
lockSnapshot
Lock a snapshot to prevent accidental deletion.
unlockSnapshot
Unlock a locked snapshot to allow deletion.
lockImage
Lock an image to prevent accidental deletion.
unlockImage
Unlock a locked image to allow deletion.
unfreezeSession
Wake a frozen session and restore its state.
restoreSession
Restore a session to a previous snapshot state.
listServices
List all services with optional filtering by status.
deleteServiceEnv
Remove specific environment variables from the service.
getService
Get detailed service information including state, ports, and URL.
executeInService
Run a command inside a running service container.
getServiceLogs
Get bootstrap and application logs for the service.
getServiceEnv
Retrieve all environment variables set for the service.
setServiceEnv
Set or update environment variables for the service.
createSnapshot
Create a snapshot from an existing session or service.
listSnapshots
List all snapshots with optional filtering by source type.
cloneSnapshot
Create a new session or service from a snapshot.
revokeImageAccess
Revoke previously granted access from an API key.
listJobs
List all active code execution jobs with their current status.
createSessionSnapshot
Create a snapshot of the session's container state.
redeployService
Re-run the bootstrap script. Optionally provide new bootstrap content.
createServiceSnapshot
Create a snapshot of the service's container state.
restoreSnapshot
Restore a snapshot to its original source (session or service).
listImages
List all images with optional filtering by visibility and ownership.
getSystemStats
Get system statistics including resource utilization and job metrics.
listPools
List available execution pools with their configurations and current status.
getSession
Get detailed session information including status, shell, and WebSocket URL.
listSessions
List all sessions with optional filtering by status (active, frozen, locked).
spawnFromImage
Create a new service using this image as the base.
executeInSession
Run a command inside a session's container and return output.
freezeService
Freeze a service to save resources. Auto-unfreezes on first HTTP request.
getClusterStatus
Get status of the execution cluster including node availability and capacity.
deleteImage
Permanently delete an image from LXD and the database. Cannot delete locked images.
getShells
Get list of available shell interpreters (bash, zsh, etc.) with their versions and capabilities.
getImageTrustedKeys
List all API keys that have been granted access to this image.
getLanguages
Get list of all supported programming languages with their metadata including extensions, version, and capabilities.
freezeSession
Freeze a session to save resources. Container state is preserved and can be woken later.
transferImage
Transfer full ownership of an image to another API key. The image stays on the same LXD node.
createSession
Create a persistent interactive shell session with WebSocket access. Sessions persist between commands and can be frozen/unfrozen.
run
Execute code with automatic language detection. Uses shebang lines (e.g., #!/usr/bin/env python), syntax patterns, and heuristics for detection.
runAsync
Execute code asynchronously with automatic language detection. Returns a job_id immediately. Use getJob to check status and retrieve results.
createService
Create a long-running service with custom subdomain. Services persist until explicitly destroyed and can auto-unfreeze on HTTP requests.
execute
Execute code synchronously in a secure sandbox. Blocks until execution completes and returns results directly. Best for quick scripts under 60 seconds.
publishImage
Create an independent LXD image from a service or snapshot. Images survive container deletion and can be transferred between API keys.
setImageVisibility
Control who can see and use this image. Options: private (only owner), unlisted (shareable via trust), public (visible to all).
getJob
Get the status and results of an async code execution job. Poll this endpoint until status is 'completed', 'failed', 'cancelled', or 'timeout'.
grantImageAccess
Grant access to a private/unlisted image for a specific API key. The granted user can use the image to spawn services.
executeCodeAsync
Execute code asynchronously in a secure sandbox. Returns a job_id immediately. Use getJob to check status and retrieve results. Supports 42+ languages including Python, JavaScript, TypeScript, Go, Rust, C, C++, Java, Ruby, and more.
base64EncodeTool
Encode string or buffer to base64 format. Supports utf8 (default), binary, and hex character encodings. Returns the base64 encoded string and the byte length of the original data.
searchTool
Search the web and optionally scrape content from search results. Best for: Finding information across multiple websites when you don't know the exact URL. Supports search operators: site:, inurl:, intitle:, related:, etc. Example use cases: - Find the latest news about a topic - Search for specific information across multiple sources - Discover content related to a query
perplexitySearch
Search the web using Perplexity's Search API for real-time information, news, research papers, and articles. Provides ranked search results with advanced filtering options including domain, language, date range, and recency filters.
Example Use Cases
Example prompt:
“Is the Unsandbox remote code execution service running properly right now?”
Verify the health status of the Unsandbox API to ensure it is operational and ready for use.
Tool workflow:
Example prompt:
“Run the command 'ls -la' inside my active session and show me the output.”
Execute a shell command inside an existing session container and return its output.
Tool workflow:
Example prompt:
“Delete a snapshot that I no longer need, even if it's currently locked.”
Unlock a locked snapshot first and then delete it permanently to free resources.
Tool workflow:
Example prompt:
“Update environment variables for my running service, check its logs afterward to confirm changes.”
Retrieve current environment vars, update them, then fetch service logs to verify environment changes.
Tool workflow:
Example prompt:
“Create a snapshot of my session, then restore my session to it, and finally clone that snapshot as a new session.”
Create a snapshot from a session, restore the session state from it, and clone the snapshot to spawn a new identical session.
Tool workflow:
Example prompt:
“List all services, identify one frozen service, unfreeze it, lock it to prevent deletion, then redeploy it with a new bootstrap script.”
Comprehensively manage services by listing, unfreezing frozen ones, locking to protect, and redeploying with updated bootstrap content.
Tool workflow:
Generated 1/16/2026