DEV Community

Sandscale
Sandscale

Posted on Originally published at sandscale.dev

Run code from Claude or ChatGPT in a microVM with a remote MCP connector

Short answer: add https://mcp.sandscale.dev/mcp as a custom connector in Claude, ChatGPT or any client that supports remote MCP servers, sign in, and approve the app. The assistant can then start sandboxes, run commands, move files and stop them, each sandbox a Firecracker microVM, as you and within your plan and policy. It cannot read Vault values, act as anyone else, or go unrecorded.

This guide follows Sandscale's Connect Claude or ChatGPT page, read in November 2026. The exact menus for adding a connector belong to each assistant and change often, so check your assistant's help for where custom connectors live.

Why run chat code in a sandbox?

Hosted assistants can already write code. A connector gives that code a real machine: install a package, run a test, process a file, and get the actual output instead of the model's guess at it. Using a sandbox means that machine is a fresh microVM with its own kernel, not your laptop and not a server with your credentials on it.

Connect

In the assistant, add a custom connector with this address:

https://mcp.sandscale.dev/mcp
Enter fullscreen mode Exit fullscreen mode

The client does the rest. It finds Sandscale's sign-in at auth.sandscale.dev, registers, and opens a Sandscale sign-in page. Sign in and approve. The approval page names the app and says it is not made by Sandscale. When you approve, the connector is linked to your organization.

What it can do

The remote server has 15 tools. In plain terms: start, run, pause, snapshot and stop sandboxes; move files in and out; list, start and stop your workspaces; look at your object storage buckets; and list the names of your Vault secrets.

The tools you will use most in chat:

Tool What it does
sandbox_create Start an isolated sandbox (Firecracker microVM, network set by your plan)
sandbox_run Run a command and return its exit code, standard output and standard error
sandbox_upload_file Write a file into a sandbox, as text or base64 bytes
sandbox_download_file Read a file from a sandbox
sandbox_snapshot Save the sandbox's /workspace as a snapshot a new sandbox can start from
sandbox_stop End a sandbox; its disk is deleted, so snapshot first to keep it

Each tool takes a region. For now the connector answers for the United States, and another region is refused with region_unavailable.

What it cannot do

From the same page:

  • Read Vault values. It lists secret names only.
  • Act as anyone else. Each call runs as you, with a short-lived credential that never leaves the server.
  • Go unrecorded. Every call is in your organization's audit log: the tool, the region, the outcome and the app, never the arguments.
  • Run without limits. Each app can make up to 120 calls a minute, and each person up to 60.

Every tool call goes through the same API, permissions, plan limits and audit log as everything else. A refusal comes back to the assistant with the API's own error code, so it can tell you why.

A first prompt to try

"Start a Python sandbox, write a script that reads the CSV I paste below and prints the mean of each numeric column, run it, show me the output, then stop the sandbox."

It exercises create, upload, run and stop, and you can check the answer against the data yourself. If the assistant asks before calling a tool that changes things, that is the client's approval setting at work; keep it on for sandbox_stop.

Disconnect

Remove the connector in the assistant, or revoke it with DELETE /api/v1/me/mcp-connectors/{id}. Revoking ends the app's sessions at once. Removing it in the assistant only stops that client from using it.

Coding agents use the same address

Claude Code, Codex and Cursor connect to the same https://mcp.sandscale.dev/mcp address, and the CLI also brings a local stdio server, sandscale mcp. See remote vs local Sandscale MCP server and the product page for the Sandscale MCP server.

FAQ

Can Claude or ChatGPT run code in a sandbox?

Yes, through a remote MCP connector. Add https://mcp.sandscale.dev/mcp as a custom connector, sign in to Sandscale and approve the app, and the assistant can start Firecracker sandboxes and run commands in them as you.

Can the connector read my secrets?

No. It lists Vault secret names only, and no Sandscale MCP tool returns a value.

Is what the assistant does recorded?

Yes. Every call is in your organization's audit log with the tool, the region, the outcome and the app. The arguments are not recorded.

Which region does the connector use?

The United States for now. A tool call for another region is refused with region_unavailable.

Related

Originally published on the Sandscale blog.

Top comments (0)