MCP Virtual Computer
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"
}
}
}
}
What it exposes
terminal_execute— run a command in the configured Docker computer.read_file— read a UTF-8 text file relative to/workspaceor 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 Appresource_uriand a real loopbackurl/dashboard_urlthat 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, andscroll— interact by AT-SPI element reference or coordinates.list_windowsandswitch_window— enumerate and activate real Xfce windows.move_window,maximize_window,restore_window,minimize_window, andclose_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)
| File | Size | Uploaded | |
|---|---|---|---|
| mcp_virtual_computer-0.2.9.tar.gz | 480.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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}
|