Skip to main content

MCP Virtual Computer

image

A VM for your agent. And for you.

  • click the mug to switch between a virtual desktop or a real one
  • unplug the network cable and cut network access
  • use the computer screen like a normal screen
  • copy and paste text between the host browser and the Xfce desktop
  • model can use terminal, create/read/edit files, see the screen, click, type
  • little fun thing: if either you or the llm types text, you see that on the keyboard; if one uses the cursor, you see the mouse move on the table.
  • auto installs docker and all prerequresits (hopefully)

MCP client example

{
  "mcpServers": {
    "virtual-computer": {
      "command": "uvx",
      "args": ["mcp-virtual-computer"],
      "env": {
        "COMPUTER_ID": "agent-workstation",
        "DESKTOP_ENVIRONMENT": "true",
        "NETWORK_ACCESS": "true",
        "AUTO_INSTALL_DOCKER": "true",
        "EXPOSE_LIFECYCLE_TOOLS": "false"
      }
    }
  }
}
image

What it exposes

  • terminal_execute — run a command in the configured Docker computer.
  • read_file — read a UTF-8 text file relative to /workspace or by absolute path.
  • write_file — atomically write a UTF-8 text file.
  • edit_file — replace one exact text match, or all matches when requested.
  • computer_ui — open or attach the Three.js computer view. Its result includes both the MCP App resource_uri and a real loopback url/dashboard_url that opens in an external browser, including for stdio clients.

DESKTOP_ENVIRONMENT defaults to true. With the real desktop enabled it additionally exposes:

  • look_at_screen — return the current PNG framebuffer, AT-SPI snapshot, or both.
  • click, type, and scroll — interact by AT-SPI element reference or coordinates.
  • list_windows and switch_window — enumerate and activate real Xfce windows.
  • move_window, maximize_window, restore_window, minimize_window, and close_window — control a selected window by ID, title, or class.
  • computer://screen/current.png — current live framebuffer resource.
  • computer://screen/accessibility.json — Playwright-like AT-SPI tree with element refs, roles, names, actions, focus state, and screen bounds.

The MCP App can always call runtime_status, set_network_access, and set_desktop_environment. Set EXPOSE_LIFECYCLE_TOOLS=true to additionally expose those lifecycle controls to the model; they remain model-hidden by default.

License and origin

MIT licensed. This project is a Docker-only fork of Kilntainers.

Metadata

Release files for mcp-virtual-computer 0.2.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcp-virtual-computer 0.2.9
File Size Uploaded
mcp_virtual_computer-0.2.9.tar.gz 480.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mcp-virtual-computer 0.2.9
File Interpreter ABI Platform
mcp_virtual_computer-0.2.9-py3-none-any.whl Python 3 none any Details

Total release size: 978.9 kB

Release files / mcp_virtual_computer-0.2.9.tar.gz

Download URL mcp_virtual_computer-0.2.9.tar.gz
Size 480.6 kB
Tags Source
SHA-256 checksum
How to use checksums
4586ca6f7d7aaa18c8d18babb9d72d0a7f8f2adb112e2238c97fcaffbb78c33d
BLAKE2b-256 checksum
How to use checksums
c2962aae1dd94abf81da226b7a16dbdafe33ceb6af896825a71ad0d658539dd3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / mcp_virtual_computer-0.2.9-py3-none-any.whl

Download URL mcp_virtual_computer-0.2.9-py3-none-any.whl
Size 498.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e028eef28d8a7c94b8c3a91c8acaa840280e287eb048864d4f7219bb39f3666f
BLAKE2b-256 checksum
How to use checksums
0ca92861f01a313774c6859f6d4f2accce7dfb5c2d9605a66ec93a55cf918f16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.2.9 This release

2 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page