# mishan/shotbox [Health: Active]

**Category:** 🖥️ OS Automation  
**Repository:** https://github.com/mishan/shotbox  
**GitHub Stars:** 2  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mishan-shotbox

## Description
Runs real GUI programs in a sealed X11 or Wayland session where an agent can read the accessible tree, take screenshots and clips with sound, click, type and drive gamepads, then check what it finds: unnamed controls, contrast, Tab order, screen reader announcements and audio dropouts.

## Claude Desktop Quick Installation
Install path inferred — verify against the README before running it. Uses `uvx` (confidence: medium):

```json
"mcpServers": {
  "shotbox": {
    "command": "uvx",
    "args": ["shotbox","mcp","--allow","<allow>"]
  }
}
```

## Documentation

## What mishan/shotbox MCP server does

mishan/shotbox runs graphical applications inside sessions separated from the user's desktop. The sessions can use X11 or Wayland, and the server exposes them through the Model Context Protocol over stdio. Agents can observe application state through the accessibility tree and screenshots, listen to recorded session audio, and interact with controls using names, keyboard input, pointer actions, and gamepad buttons.

The server is intended for repeatable GUI work in development and CI. It can launch programs from an explicit allowlist, keep longer-lived sessions available for multiple commands, and clean up process groups when a session ends. With loopback networking enabled, the session can also prevent programs from reaching the wider network.

## How it works

Start the MCP entry point with `shotbox mcp --allow PROGRAMS`. The allowlist defines launchable programs as `NAME = COMMAND` entries; an agent cannot start arbitrary commands through the MCP interface. Each session can start programs from that list, wait for windows or other conditions, and then inspect or operate them.

Readiness checks are based on observable events rather than fixed delays. Supported conditions include a window appearing, a port opening, a file being written, terminal text becoming available, an accessibility announcement, or a display becoming still. This makes scripted checks less dependent on timing.

The same session engine is available from the command line. `shoot` starts a program and captures a window, `run` executes a command in a sealed session, `exec` runs without a display, and `start`, `spawn`, `sessions`, and `stop` manage persistent sessions. The `compare` command can compare captured images and write a diff.

## Setup and configuration

On Debian, install the system packages needed by the selected features, including Xvfb, D-Bus, accessibility libraries, PipeWire, FFmpeg, Bubblewrap, and related image and desktop utilities. Install the Python package with `pipx install --system-site-packages shotbox`; a regular `pip install shotbox` is also supported. The system-site-packages option makes the system PyGObject installation available to features such as `term` and accessibility support.

Run `shotbox doctor` to check installed requirements and identify missing components. Wayland sessions require additional setup beyond the basic X11 dependencies. Optional capabilities such as accessibility, speech, terminal capture, audio, recording, gamepads, and clock control have their own requirements.

A typical MCP registration uses `claude mcp add shotbox -- shotbox mcp --allow ~/src/app/shotbox-programs`. The allowlist directory or command must contain the programs the agent is permitted to launch.

## Tools and capabilities

- Inspect an application's accessibility tree and take screenshots returned as images.
- Click controls by accessible name, type text, press or hold keys, and operate gamepads.
- Wait for windows, stable pixels, terminal text, ports, files, and accessibility announcements.
- Lint accessibility data, measure contrast, and traverse keyboard Tab order.
- Record session audio and identify dropouts; use screen-reader speech for accessibility checks.
- Compare images, detect changed pixels and flicker, and measure pointer-following behavior.
- Capture terminal windows and run browser or test commands without a display.

## Limitations and notes

Only programs in the configured allowlist can be spawned through MCP, and sessions end when the server stops. The isolated environment is deliberately deterministic: it uses settings such as UTC, a fixed locale, software rendering, and reduced animation. Results can therefore differ from behavior on a normal desktop.

Bubblewrap can provide additional sandboxing when available, but the environment reports when it cannot. Running a graphical command directly from an agent's shell bypasses shotbox and can expose the host display or speakers. Use a shotbox session for graphical programs, browsers, and commands that produce sound.

_Full upstream README: https://allmcps.com/mcp/mishan-shotbox/readme_

