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

> Add mcp.sandscale.dev as a custom connector in Claude, ChatGPT or any remote MCP client so the assistant runs code in Firecracker sandboxes as you. Setup, the 15 tools, limits, what it cannot do, and how to disconnect.

Add mcp.sandscale.dev as a custom connector in Claude, ChatGPT or any remote MCP client so the assistant runs code in Firecracker sandboxes as you. Setup, the 15 tools, limits, what it cannot do, and how to disconnect.

November 27, 2026 · 5 min read · The Sandscale team

**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](https://sandscale.dev/docs/guides/connect-claude-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
```

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](https://sandscale.dev/blog/remote-vs-local-sandscale-mcp-server) and the product page for the [Sandscale MCP server](https://sandscale.dev/sandboxes/mcp).

## 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

- [Security checklist for an MCP server that executes code](https://sandscale.dev/blog/mcp-code-execution-server-security-checklist)
- [Setting up the Sandscale MCP server in Claude Code](https://sandscale.dev/blog/sandscale-mcp-server-in-claude-code)
- [LLM sandbox: how to run LLM-generated code without trusting it](https://sandscale.dev/blog/llm-sandbox-run-llm-generated-code)

**On this page**

1. Why run chat code in a sandbox?
2. Connect
3. What it can do
4. What it cannot do
5. A first prompt to try
6. Disconnect
7. Coding agents use the same address
8. FAQ
9. Related

**Run your agents in a box of their own**

Each sandbox is a Firecracker microVM. Free includes 100 awake vCPU-hours a month.

[Start free](https://cloud.sandscale.dev/auth/signup)

## Keep reading

- [November 27, 2026 · **A LlamaIndex.TS data agent that runs its Python in a Sandscale sandbox** · Use LlamaIndex.TS's agent workflow with tools that write and run Python in a Firecracker sandbox, built per sandbox so a run can only reach its own box. Upload data files, answer with the numbers, clean up. Type-checked.](https://sandscale.dev/blog/llamaindex-ts-agent-with-sandscale)
- [November 27, 2026 · **A sandbox for Claude Code: running it headless in a cloud workspace** · Run Claude Code with claude -p inside a Sandscale workspace, a persistent Firecracker microVM, so its Bash tool works on a cloud disk instead of your laptop. Setup, permission flags and what stays where.](https://sandscale.dev/blog/claude-code-headless-in-a-cloud-workspace)

---
Source: https://sandscale.dev/blog/run-code-from-claude-or-chatgpt-in-a-microvm
