Skip to main content
Glama
CodeSandbox MCP Server

CodeSandbox MCP Server

by techlibs

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
CSB_API_KEYNoCodeSandbox personal access token with scopes for Sandbox Creation, Read/Edit, VM Manage, and Preview Token Manage. Alternative to CODESANDBOX_API_TOKEN.
CODESANDBOX_API_TOKENNoCodeSandbox personal access token with scopes for Sandbox Creation, Read/Edit, VM Manage, and Preview Token Manage. Preferred over CSB_API_KEY.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
createSandboxC

Create a CodeSandbox sandbox (optionally from a template) and optionally start with custom VM settings.

resumeSandboxB

Resume a hibernated sandbox or start it if shut down.

hibernateSandboxB

Hibernate a sandbox (saves files and puts VM to sleep).

getSandboxInfoA

Get metadata for a sandbox by ID without resuming the VM (title, description, privacy, tags).

updateSandboxB

Update VM settings for a running sandbox: tier and/or hibernation timeout.

createSessionB

Create a CodeSandbox session for a sandbox. Returns the sessionId without storing state on the server.

resumeSessionA

Connect to an existing session by sandboxId + sessionId. If the session does not exist, it will be created with optional permission/env.

readFileB

Read a file from the sandbox filesystem. Stateless: connects per call using sandboxId+sessionId.

readdirA

List files and directories at a given path in the sandbox filesystem. Stateless: connects per call using sandboxId+sessionId.

writeFileB

Write a file in the sandbox filesystem. Stateless: connects per call using sandboxId+sessionId.

renameB

Rename (move) a file or directory within the sandbox filesystem. Stateless: connects per call using sandboxId+sessionId.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.4/5.0

Scored across 11 tools

Disambiguation4/5

Most tools target clearly distinct lifecycle stages or filesystem actions, but resumeSession also creates a session if absent, overlapping createSession, and resumeSandbox vs resumeSession may require careful reading. Boundaries are mostly clear but not fully unambiguous.

Naming Consistency4/5

Names overwhelmingly follow camelCase verb+object patterns such as createSandbox, getSandboxInfo, and readFile. The exceptions readdir and rename are minor deviations from that otherwise predictable convention.

Tool Count5/5

The 11 tools fit the sandbox, session, and filesystem scope well; each maps to a concrete operation and none appears redundant. This is within the typical appropriate range for a focused MCP server.

Completeness3/5

Core sandbox/session setup and file read/write/rename/list operations are present, but there is no tool to delete a sandbox, close or terminate a session, delete files, create directories, or execute commands in the sandbox. These are notable gaps for full lifecycle and filesystem coverage, though basic workflows are still possible.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues