Skip to content
MCP server

e2b-sandbox-mcp

MCP server giving Claude Code isolated E2B cloud Linux sandboxes for working on repos

e2b-sandbox-mcp is an open-source MCP server for cloud and infrastructure. It is available on CLI, Linux, macOS, Windows and API.

Pricing
Open source
Platforms
CLI, Linux, macOS
What it can do
Can delete data (1 tool)
GitHub stars
5
Last commit

Similar MCP servers

About e2b-sandbox-mcp

Rather than running builds, installs and tests on your own computer, this server lets Claude Code provision disposable Linux virtual machines hosted on E2B and carry out the work there. A session can create a sandbox, clone a GitHub repository into it, run shell commands, edit files and perform git operations such as commit, push, pull and branch switching.

The server exposes 29 tools grouped into sandbox lifecycle, networking and file transfer, command execution, file operations and git. Command output is capped per stream, and background processes return only a process ID, which keeps long build or test logs from filling the model's context window. Sandboxes can be paused and resumed later with their files intact, and a port can be turned into a public preview URL.

It suits developers who want to test or review a repository in a clean environment, experiment with risky dependency upgrades, or contribute to open source projects without setting up the project locally. Sandboxes expire after a default of five minutes unless extended, and network access and git pushes are real, so changes reach the actual remote.

Tools this server provides (29)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 1 of 29 tools deletes data and 8 change data; 13 names don't say.

From the server's own tool labels and tool names; not verified by us.

sandbox_createName suggests: changes
Create a new cloud sandbox (Linux VM)
sandbox_listName suggests: reads
List all active sandboxes
sandbox_info
Get details about a specific sandbox
sandbox_kill
Terminate and destroy a sandbox
sandbox_keep_alive
Extend a sandbox's timeout
sandbox_pause
Pause a sandbox, preserving its state for later
sandbox_resume
Resume a previously paused sandbox
sandbox_get_urlName suggests: reads
Get a public URL for a port
sandbox_upload_urlName suggests: changes
Get a presigned URL to upload files to the sandbox
sandbox_download_urlName suggests: reads
Get a presigned URL to download files from the sandbox
sandbox_execName suggests: changes
Run a shell command and get stdout/stderr/exit code
sandbox_exec_backgroundName suggests: changes
Start a background process
sandbox_process_listName suggests: reads
List all running processes with PIDs
sandbox_process_kill
Kill a running process by PID
sandbox_file_readName suggests: reads
Read file contents
sandbox_file_writeName suggests: changes
Write/create a file
sandbox_file_listName suggests: reads
List directory contents
sandbox_file_mkdir
Create a directory
sandbox_file_removeName suggests: deletes
Delete a file or directory
sandbox_file_info
Get file metadata
sandbox_file_exists
Check if a file or directory exists
sandbox_file_renameName suggests: changes
Rename or move a file or directory
sandbox_git_clone
Clone a repository
sandbox_git_statusName suggests: reads
Get working tree status
sandbox_git_commitName suggests: changes
Stage files and commit
sandbox_git_pushName suggests: changes
Push commits to remote
sandbox_git_pull
Pull latest changes from remote
sandbox_git_branch
List, create, or switch branches
sandbox_git_init
Initialize a new git repository

What it does

Cloud Linux sandboxes
Creates isolated, disposable Linux virtual machines in E2B's cloud for each task.
Git operations
Clones repositories, including private ones with a token, and supports commit, push, pull, branch and init.
Command execution
Runs shell commands and long-lived background processes, with process listing and termination.
File management
Reads, writes, lists, moves, deletes and inspects files and directories inside the sandbox.
Pause and resume
Saves a sandbox's state so work can continue later with files intact.
Public preview URLs
Exposes a sandbox port through a public URL for previewing dev servers in a browser.

Good for

  • Clone a GitHub repository and run its test suite without installing it locally
  • Try dependency upgrades or refactors in a throwaway environment
  • Review a pull request branch by running its tests in a sandbox
  • Preview a web app's dev server from a remote Linux environment
  • Contribute to an open source project through a fork without local setup

Pricing

Open source

MIT-licensed server; E2B sandbox usage billed by E2B

e2b-sandbox-mcp FAQ

What do I need to run e2b-sandbox-mcp?

Node.js 18 or later, the Claude Code CLI and an E2B API key. A GitHub personal access token is optional and is needed for private repositories and pushing.

How long do sandboxes last?

Sandboxes auto-expire after a default timeout of five minutes, which can be extended with the keep-alive tool.

Does e2b-sandbox-mcp touch my local machine?

No. Operations run inside the E2B virtual machine, although sandboxes have normal internet access.

Is e2b-sandbox-mcp free?

The server is MIT licensed. E2B usage has costs and a free tier is available, according to E2B's pricing page.

What are the best alternatives to e2b-sandbox-mcp?

The closest alternatives to e2b-sandbox-mcp are NeevCloud Sandbox, Prized, NEPHIS MCP Server, node-code-sandbox-mcp and Sandbox Env MCP.

Where this comes from

  • Description: written from the project's README.

How AIPoweredBot checks servers