# rumenjordanov/vmware-sandbox-mcp [Health: Active]

**Category:** 👨‍💻 Code Execution  
**Repository:** https://github.com/rumenjordanov/vmware-sandbox-mcp  
**GitHub Stars:** 2  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/rumenjordanov-vmware-sandbox-mcp

## Description
Disposable Linux VMs on VMware Workstation for AI agents: run commands, copy files, take screenshots, click and type, with an optional web-only network mode that cannot reach the host or local network.

## Tools
Capabilities this server exposes over MCP:

- **sandbox_create** — Create a fresh, disposable Linux computer (a "sandbox") and wait until it is ready to use.

    Use this before running untrusted code, installing packages, or trying anything you
    would not want to do on the user's real computer. Every sandbox starts from the same
    clean state and is completely separate from the user's machine and from other sandboxes.

    network: "none" (default) gives the sandbox no network at all. Choose another mode only
    when the task needs to download something:
    - "web": internet for web downloads only (HTTP and HTTPS), and nothing else: the user's
      own computer and home network stay unreachable. Prefer this. Standard tools (curl,
      wget, pip, git over https) work as usual; with sudo use `sudo -E`, for example
      `sudo -E apt-get -y install <package>`. ping and non-web protocols do not work.
      The user may allow only some sites: a request to any other site fails with a message
      saying it is not on the list. It may not be set up on this computer; the error says so.
    - "nat": full internet access. It can also reach the user's own computer and home
      network, so never use it for code you do not trust.

    memory_mb, cpus: the size of the sandbox. Leave them out for the default size (sandbox_list
    shows it). Ask for less to leave more of the user's computer free, or for more when a task
    needs it, such as a large build. The size comes out of the user's own computer and the user
    limits how much you may ask for: if you ask for too much, the error says the maximum.
    memory_mb is in megabytes, a multiple of 4, at least 512.

    image: which base image the sandbox starts from. Leave it out for the default. Call
    sandbox_images to see the choices and what each contains (for example a plain system, or
    one with extra tools already installed).

    Takes up to a few minutes. Returns the sandbox_id to pass to the other sandbox tools.
    Destroy the sandbox with sandbox_destroy when you are finished.
    
- **sandbox_images** — List the base images a sandbox can start from, and what each one contains.

    Use this before sandbox_create when a task needs particular software already installed,
    or when you want the plainest system. Returns one entry per image: name (pass it as
    `image` to sandbox_create), description, and default (true for the image used when you
    leave image out). Often there is only the default.
    
- **sandbox_run** — Run a shell command inside a sandbox and return what it printed.

    Use this to execute code, install packages, inspect files, or do anything else on the
    sandbox computer. The command is run by bash, so pipes, redirects, && and multi-line
    scripts all work. Each call starts in the home directory with a fresh shell: files
    persist between calls, but `cd` and environment variables do not. The command gets no
    keyboard input, so use non-interactive flags (for example `apt-get -y`).

    timeout_seconds: how long the command may run (1 to 3600, default 60). When the limit
    is reached the command is killed and timed_out is true.

    Returns stdout, stderr, exit_code (0 means success) and timed_out. Very long output is
    cut at 1 MB; stdout_truncated / stderr_truncated say when that happened.
    
- **sandbox_start** — Start a command in a sandbox that keeps running in the background, and return at once.

    Use this for things that do not finish on their own or take very long: a web server,
    a database, a watcher, a long build or download. sandbox_run would wait for them and
    time out. After starting, use sandbox_run for other commands in the same sandbox (for
    example to talk to the server you started), sandbox_check to see its output and
    whether it is still running, and sandbox_stop to end it.

    The command is run by bash, starting in the home directory, with no keyboard input.
    A sandbox can have at most 8 background commands running at once. Background commands
    end when the sandbox is destroyed.

    Returns a job_id to pass to sandbox_check and sandbox_stop.
    
- **sandbox_check** — Look at a background command started with sandbox_start: is it still running, and what has it printed?

    Returns status ("running", "exited" when it ended by itself, or "stopped" when it was
    killed), exit_code (only when status is "exited"; 0 means success), and stdout and
    stderr collected so far. If the output is longer than about 1 MB only the newest part
    is returned, and stdout_truncated / stderr_truncated say so. Calling this does not
    affect the command; call it again later to see newer output.
    
- **sandbox_stop** — Stop a background command started with sandbox_start, together with any programs it started.

    Use this when you no longer need the command, or to free one of the 8 background
    slots. Its output stays available through sandbox_check afterwards.
    Returns a short confirmation, which also says if the command had already ended.
    
- **sandbox_copy_in** — Copy a file or a whole folder from the user's computer into a sandbox.

    Use this to give the sandbox something to work on (a script, a dataset, a project
    folder). Only things inside the user's designated transfer folder can be copied;
    nothing else on the user's computer is reachable.

    host_path: the file or folder to copy, relative to the transfer folder (for example
    "data/input.csv" or "myproject"). Paths that leave the transfer folder are rejected.
    guest_path: full destination path inside the sandbox. For a file, the path of the
    file itself (for example "/home/debian/input.csv"); its folder must already exist.
    For a folder, the path the folder should have (for example "/home/debian/myproject");
    it is created if missing, and the folder's contents are placed inside it.

    Folders are copied with everything in them. Files arrive without the executable
    flag (use chmod +x if needed). A folder that contains links is refused.
    Returns a short confirmation with the number of files and the size.
    
- **sandbox_copy_out** — Copy a file or a whole folder from a sandbox to the user's computer.

    Use this to save results (a report, a built program, a log, an output folder) before
    destroying the sandbox, since everything inside a sandbox is lost when it is destroyed.
    Things can only be written inside the user's designated transfer folder.

    guest_path: full path of the file or folder inside the sandbox (for example
    "/home/debian/out.txt" or "/home/debian/build").
    host_path: where to save it, relative to the transfer folder (for example
    "results/out.txt" or "results/build"). Missing folders are created; existing files
    with the same names are replaced. Paths that leave the transfer folder are rejected.

    When copying a folder, its contents are placed inside host_path. Links and files
    whose names are not valid on the user's computer are left out; the reply says how many.
    Returns the full path where it was saved, the number of files and the size.
    
- **sandbox_screenshot** — Take a picture of what is currently on a sandbox's screen.

    Use this to see things that have no text output: a graphical program, a boot or error
    screen, or to check what the sandbox is displaying when a command seems stuck. For the
    output of commands, sandbox_run is faster and more precise.

    Returns a PNG image of the sandbox's display at this moment. Positions in this image,
    counted in pixels from its top-left corner, are what sandbox_click expects.
    
- **sandbox_click** — Click the mouse at a position on a sandbox's screen.

    Use this to operate graphical programs: press buttons, open menus, focus a text field
    before typing. First take a sandbox_screenshot, find the thing to click, and pass its
    position: x pixels from the left edge and y pixels from the top edge of that image.
    Take another screenshot afterwards to see the result; screens need a moment to react.

    button: "left" (default), "right" or "middle". double: true for a double-click.
    Only works if the user has switched keyboard and mouse input on; the error says so
    otherwise. For anything that can be done with a command, sandbox_run is faster and
    more reliable.
    
- **sandbox_scroll** — Turn the mouse wheel at a position on a sandbox's screen, to scroll what is under it.

    Use this to read a long page, document or list, or to move through a long menu.
    x and y are pixels in the sandbox_screenshot image, counted from its top-left corner, and
    should be over the thing to scroll: the wheel acts on whatever is under the pointer.
    direction: "down" (default), "up", "left" or "right". amount: wheel clicks, 1 to 50
    (default 3, a few lines each). Take another screenshot afterwards to see the result.
    Only works if the user has switched keyboard and mouse input on.
    
- **sandbox_drag** — Press the mouse button at one position, move to another, and let go.

    Use this to move a window by its title bar, select text, drag a file into a folder,
    resize a window by its edge, or move a slider. Positions are pixels in the
    sandbox_screenshot image, counted from its top-left corner. The pointer moves in small
    steps, as a hand would. Take another screenshot afterwards to see the result.
    Only works if the user has switched keyboard and mouse input on.
    
- **sandbox_type** — Type text on a sandbox's keyboard, as if a person typed it.

    The text goes to whatever has keyboard focus on the sandbox's screen, so click the
    right field first (sandbox_click) and check with sandbox_screenshot. A line break in
    the text presses Enter, a tab presses Tab. Only plain English keyboard characters can
    be typed (letters, digits, common symbols), at most 10,000 at a time. For shortcuts
    and special keys use sandbox_key.
    
- **sandbox_key** — Press a single key or a keyboard shortcut on a sandbox's keyboard.

    keys: a key name, or modifiers and a key joined with "+". Examples: "Return",
    "Escape", "Tab", "ctrl+c", "ctrl+alt+t", "alt+F4", "shift+Tab", "super" (opens the
    desktop's application search). Modifiers: ctrl, alt, shift, super. Key names: Return,
    Escape, Tab, Backspace, Delete, Space, Up, Down, Left, Right, Home, End, PageUp,
    PageDown, Insert, F1 to F12, or any single character.
    
- **sandbox_checkpoint** — Save a sandbox's current files under a name, so you can come back to exactly this point later.

    Use this before something risky or slow to redo: installing a large package, running a
    script you do not trust, changing system settings. Also use it once a sandbox is set up
    the way you will want it again. Then sandbox_restore undoes everything done since.

    Takes about a minute: the sandbox shuts down cleanly, is saved, and starts again.
    Everything on its disk is saved, but files under /tmp are NOT: /tmp lives in memory and
    is emptied whenever the sandbox restarts, so keep what you want to keep in your home
    directory. Programs that are running are NOT saved either: they are stopped, including
    background commands from sandbox_start, so start them again afterwards.

    name: 1 to 40 letters, digits, "-" or "_". A sandbox holds at most 5 checkpoints. Saving
    under a name that already exists replaces that checkpoint; when all 5 are used, replace
    one of them. Checkpoints disappear when the sandbox is destroyed.
    
- **sandbox_restore** — Roll a sandbox back to a checkpoint saved with sandbox_checkpoint.

    Everything done in the sandbox since that checkpoint is lost: files created or changed,
    packages installed. Running programs, including background commands, are stopped.
    Files under /tmp are emptied by the restart; files in your home directory come back as
    they were at the checkpoint. Takes about half a minute while the sandbox restarts. The checkpoint itself is kept, so
    you can roll back to it again and again. Use sandbox_list to see a sandbox's checkpoints.
    
- **sandbox_destroy** — Shut down a sandbox and permanently delete it and everything inside it.

    Use this as soon as you no longer need a sandbox; only a few can exist at once.
    Copy out any files you want to keep first, because this cannot be undone.
    Returns a short confirmation.
    
- **sandbox_list** — List the sandboxes that currently exist.

    Use this to find a sandbox_id you lost track of, or to check whether old sandboxes
    should be destroyed. Returns one entry per sandbox with its sandbox_id, network mode
    ("none", "web" or "nat"), status ("ready", or "busy" while a checkpoint is being saved
    or restored), age in seconds, image, memory_mb, cpus, and the names of its checkpoints. Returns an empty list
    if there are none.
    

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "vmware-sandbox-mcp": {
    "command": "uvx",
    "args": ["--from","git+https://github.com/rumenjordanov/vmware-sandbox-mcp","vmware-sandbox-mcp"],
    "env": {
      "VMSANDBOX_BASE_VMX": "",
      "VMSANDBOX_SNAPSHOT": "",
      "VMSANDBOX_CLONES_DIR": "",
      "VMSANDBOX_TRANSFER_DIR": "",
      "VMSANDBOX_GUEST_USER": "",
      "VMSANDBOX_GUEST_PASSWORD": ""
    }
  }
}
```

**Requires environment variables:** `VMSANDBOX_BASE_VMX`, `VMSANDBOX_SNAPSHOT`, `VMSANDBOX_CLONES_DIR`, `VMSANDBOX_TRANSFER_DIR`, `VMSANDBOX_GUEST_USER`, `VMSANDBOX_GUEST_PASSWORD` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What rumenjordanov/vmware-sandbox-mcp MCP server does

rumenjordanov/vmware-sandbox-mcp lets an MCP-compatible agent operate temporary Linux virtual machines through VMware Workstation. Each sandbox is created as a linked clone of a powered-off base VM snapshot and can be removed after the task. The server is intended for inspecting unfamiliar scripts, testing software, running services, and interacting with Linux desktop applications.

The agent receives sandbox-focused operations rather than general VMware administration. It can create and enumerate sandboxes, run shell commands, transfer files through a host-side transfer directory, inspect the VM screen, use keyboard and mouse input, save checkpoints, restore them, and destroy the VM. Commands and file operations, along with clicks and web requests, are written to an audit log that the agent cannot read or modify.

## How it works

A base Linux VM is prepared once and shut down with a snapshot named `clean`. New sandboxes are linked clones of that snapshot. Before the first boot, the server changes the clone configuration to disable shared folders, clipboard sharing, USB, and CD-ROM access. The server only operates on VMs it created.

Three network modes are available:

- `none` is the default and gives the guest no network adapter.
- `web` routes HTTP and HTTPS traffic through a host filtering proxy. It allows public websites but blocks access to the host and local network.
- `nat` provides internet access as well as access to the host and local network, so it is intended for trusted code.

Checkpoints save the sandbox disk under a chosen name and restart the VM during the operation. A sandbox can have up to five checkpoints.

## Setup and configuration

The host must be Windows with VMware Workstation Pro and the `vmrun` command-line tool. Python 3.11 or newer is required. The base guest is a Linux VM; Debian 13 is the tested example. Linux hosts are not supported.

Prepare the base VM with the repository's base-VM script, install the guest tools and required utilities, enable automatic desktop login, shut the VM down, and create the `clean` snapshot. Install the MCP server directly from the Git repository with `pip`, or configure an MCP client to launch it through `uvx`.

Configuration uses environment variables for the base VMX path, snapshot name, clone directory, transfer directory, and guest credentials:

- `VMSANDBOX_BASE_VMX`
- `VMSANDBOX_SNAPSHOT`
- `VMSANDBOX_CLONES_DIR`
- `VMSANDBOX_TRANSFER_DIR`
- `VMSANDBOX_GUEST_USER`
- `VMSANDBOX_GUEST_PASSWORD`

Run `vmware-sandbox-mcp doctor` with these settings to validate the configuration, create a test sandbox, run a command, and remove the test VM. Web mode requires a one-time host setup with administrator rights. Keyboard and mouse tools must be explicitly enabled before use.

## Tools and capabilities

The server exposes tools for:

- Creating sandboxes with selected network mode, memory, CPU count, and base image.
- Listing available images and active sandboxes.
- Running foreground commands or starting, checking, and stopping background jobs.
- Copying files and directories between the configured transfer folder and the guest.
- Capturing screenshots and performing clicks, scrolling, dragging, text entry, and key presses.
- Creating and restoring checkpoints.
- Powering off and deleting sandboxes.

## Limitations and notes

VMware Workstation Pro, a prepared Linux base VM, and a Windows host are required. Linked-clone creation depends on the configured base snapshot and local disk paths. The `nat` mode can reach the host and local network, unlike `web` mode. GUI automation is limited to the available screenshot, mouse, and keyboard operations, and those tools are disabled until enabled in configuration.

_Full upstream README: https://allmcps.com/mcp/rumenjordanov-vmware-sandbox-mcp/readme_

