MCP Virtual Computer

v0.2.11
io.github.flujo-app/mcp-virtual-computer Checked 21 hours ago Published 3 months ago

A persistent Docker or Fly computer with a Three.js interface and optional live Xfce desktop.

Values you need

VariableWhat it is
BACKENDoptional Computer provider. Use docker for a local container or fly for a permanent Fly Machine. Default: docker
COMPUTER_IDrequired Stable identity of the one persistent computer. Default: agent-workstation
DESKTOP_ENVIRONMENToptional Start the real Xfce desktop instead of the virtual desktop. Default: true
NETWORK_ACCESSoptional Allow outbound network access from the computer. Default: true
AUTO_INSTALL_DOCKERoptional On Windows, install and start Docker Desktop lazily when needed. Default: true
AUTO_INSTALL_FLYCTLoptional Download flyctl into the user profile when it is missing. Default: true
FLY_API_TOKENoptional secret Optional Fly API token. A cached flyctl login is also supported.
EXPOSE_LIFECYCLE_TOOLSoptional Also expose runtime status and network/desktop switching tools to the model. The MCP App can always use them. Default: false

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add mcp-virtual-computer -e COMPUTER_ID=agent-workstation -- uvx mcp-virtual-computer==0.2.11
Add to claude_desktop_config.json
{
  "mcpServers": {
    "mcp-virtual-computer": {
      "args": [
        "mcp-virtual-computer==0.2.11"
      ],
      "command": "uvx",
      "env": {
        "COMPUTER_ID": "agent-workstation"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mcp-virtual-computer": {
      "args": [
        "mcp-virtual-computer==0.2.11"
      ],
      "command": "uvx",
      "env": {
        "COMPUTER_ID": "agent-workstation"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "COMPUTER_ID",
      "id": "computer-id",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "mcp-virtual-computer": {
      "args": [
        "mcp-virtual-computer==0.2.11"
      ],
      "command": "uvx",
      "env": {
        "COMPUTER_ID": "${input:computer-id}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mcp-virtual-computer]
command = "uvx"
args = ["mcp-virtual-computer==0.2.11"]
env = { "COMPUTER_ID" = "agent-workstation" }

For AI agents

  1. Ask the user for: COMPUTER_ID. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: terminal_execute, computer_ui, runtime_status, set_network_access, set_desktop_environment, list_directory, read_file, write_file, ….
  5. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json