# Capsulate

> Capsulate is an MCP server for developer tools. Launch real Linux and Windows desktop VMs that an agent can drive and snapshot. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** API, Linux, Windows, CLI
- **Website:** https://capsulate.dev
- **Repository:** https://github.com/capsulatedev/capsulate/tree/HEAD/apps/mcp
- **MCP Registry name:** io.github.capsulatedev/capsulate
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools), [browser automation](https://ai-powered.com/categories/browser-automation)
- **Listing updated:** 2026-11-20

## About

Capsulate gives an agent a real computer rather than a sandboxed shell. The server launches isolated cloud machines called capsules, each with its own kernel and a desktop a person can watch live and take over. The site says Linux boots in under two seconds and Windows Server is offered to invited testers.

Tools split into three groups. Machine control covers launching, listing and destroying capsules, running commands or Python, Node and bash snippets, reading and writing files, setting environment variables, snapshotting, and browsing a catalogue of templates. Desktop computer use covers screenshots, pointer and keyboard, an accessibility-tree reader, element search and clicking, OCR, clipboard, window management and a batch tool for multi-step actions. A browser fast path drives the capsule's own Chrome through page structure.

It runs over stdio and needs a cap_live_ API key from the dashboard; a base URL variable supports self-hosted deployments and a team ID selects who is billed.

## Features

- **Real desktop VMs:** Launches Linux and Windows desktops with their own kernel.
- **Computer use:** Takes screenshots and drives pointer and keyboard.
- **Accessibility-tree actions:** Finds and clicks elements by role, name or text instead of coordinates.
- **Code and files:** Runs commands and snippets and reads or writes files.
- **Snapshots:** Saves the state of a capsule.
- **Chrome fast path:** Drives the capsule's own browser through page structure.
- **Human takeover:** A person can watch the same screen and take control.

## Good for

- Let an agent test a desktop app end to end
- Run untrusted code in a disposable machine
- Automate a Windows-only workflow
- Watch and take over an agent's session when it gets stuck

## Install

### Claude Code (Terminal)

```sh
claude mcp add capsulate --env CAPSULATE_API_KEY='<CAPSULATE_API_KEY>' -- npx -y @capsulate/mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "capsulate": {
      "command": "npx",
      "args": [
        "-y",
        "@capsulate/mcp"
      ],
      "env": {
        "CAPSULATE_API_KEY": "<CAPSULATE_API_KEY>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "capsulate": {
      "command": "npx",
      "args": [
        "-y",
        "@capsulate/mcp"
      ],
      "env": {
        "CAPSULATE_API_KEY": "<CAPSULATE_API_KEY>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "capsulate": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@capsulate/mcp"
      ],
      "env": {
        "CAPSULATE_API_KEY": "<CAPSULATE_API_KEY>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "capsulate": {
      "command": "npx",
      "args": [
        "-y",
        "@capsulate/mcp"
      ],
      "env": {
        "CAPSULATE_API_KEY": "<CAPSULATE_API_KEY>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "capsulate": {
      "command": "npx",
      "args": [
        "-y",
        "@capsulate/mcp"
      ],
      "env": {
        "CAPSULATE_API_KEY": "<CAPSULATE_API_KEY>"
      }
    }
  }
}
```

## Tools

- `capsulate_launch`: Launch a capsule and wait until ready.
- `capsulate_list`: List capsules.
- `capsulate_get`: Inspect a capsule.
- `capsulate_destroy`: Tear a capsule down.
- `capsulate_exec`: Run a command.
- `capsulate_run_code`: Run a python, node or bash snippet.
- `capsulate_write_file`: Write a file.
- `capsulate_read_file`: Read a file.
- `capsulate_set_env`: Set environment variables.
- `capsulate_snapshot`: Snapshot a capsule.
- `capsulate_catalog`: Discover launchable templates and bundles.
- `capsulate_screenshot`: See the screen.
- `capsulate_click`: Click with the pointer.
- `capsulate_type`: Type text.
- `capsulate_ui_tree`: Read the accessibility tree.
- `capsulate_find_element`: Find an element by role, name or text.
- `capsulate_click_element`: Find an element and click it.
- `capsulate_ocr`: Read on-screen text.
- `capsulate_run_actions`: Run several steps in one call.

## FAQ

### What do I need to connect?

A cap_live_ API key from the Capsulate dashboard under Settings, API & Keys.

### Does Capsulate support Windows?

Yes, the site says Windows Server is available for invited testers.

### Can I watch what the agent does?

Yes. A person can watch the same screen live and take over, and the site says every frame can be replayed.

### Can I point Capsulate at my own deployment?

Yes, by setting CAPSULATE_BASE_URL.

### How do I add Capsulate to Claude Code?

Run this command in your terminal: claude mcp add capsulate --env CAPSULATE_API_KEY='<CAPSULATE_API_KEY>' -- npx -y @capsulate/mcp

### What are the best alternatives to Capsulate?

The closest alternatives to Capsulate are Panes, Legato, BoxCompute, Clawdcursor and Simular.

## Where this comes from

- Description: written from the project's README and the project's website.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Panes](https://ai-powered.com/mcp/panes): Panes is a paid MCP server for developer tools.
- [Legato](https://ai-powered.com/mcp/legato): Legato is an open-source MCP server for developer tools.
- [BoxCompute](https://ai-powered.com/mcp/boxcompute): BoxCompute is a freemium MCP server for cloud and infrastructure.
- [Clawdcursor](https://ai-powered.com/mcp/clawdcursor): Clawdcursor is an open-source MCP server for browser automation.
- [Simular](https://ai-powered.com/mcp/simular): Simular is a freemium MCP server for developer tools.
- [Shell](https://ai-powered.com/mcp/shell): Shell is a free MCP server for developer tools.
- [Mandala Computer](https://ai-powered.com/mcp/mandala-computer): Mandala Computer is a paid MCP server for cloud and infrastructure.
- [Glovebox MCP](https://ai-powered.com/mcp/glovebox-mcp): Glovebox MCP is an open-source MCP server for browser automation.

---
Source: https://ai-powered.com/mcp/capsulate
