Shotbox logo

Shotbox

by mishan

Runs GUI programs in sealed X11 or Wayland sessions for agent-driven interaction, accessibility checks, screenshots, audio, and deterministic tests.

Install Shotbox

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "mishan-shotbox": {
      "command": "uvx",
      "args": [
        "shotbox",
        "mcp",
        "--allow",
        "<allow>"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio mishan-shotbox -- uvx shotbox mcp --allow '<allow>'

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx shotbox mcp --allow <allow>

Process exited before answering initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

mishan/shotbox MCP server gives agents eyes, ears, and input controls for graphical programs running in isolated X11 or Wayland sessions. Over stdio, it can launch allowlisted programs, inspect accessibility trees, capture images and audio, send keyboard, pointer, and gamepad input, and wait for concrete readiness conditions. It also supports checks for accessibility defects, contrast, keyboard navigation, visual changes, flicker, pointer response, screen-reader output, and audio dropouts. Reach for it when GUI testing, game smoke tests, or accessibility verification must stay separate from the host desktop and speakers.

Use cases

  • Test a desktop application's GUI in CI
  • Audit screen-reader names, announcements, contrast, and Tab order
  • Drive a game with keyboard, pointer, and gamepad input
  • Capture and compare deterministic application screenshots
  • Reproduce GUI bugs in an isolated session

Key features

  • Sealed X11 and Wayland sessions
  • Accessibility tree inspection and screen-reader checks
  • Screenshot, recording, and audio-dropout analysis
  • Keyboard, pointer, text, and gamepad control
  • Readiness waits and persistent session management
  • Visual comparison, contrast, Tab-order, and flicker checks

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

9/9 checks healthy over the last 38d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 4d ago via OSV.dev · shotbox (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars2Stargazers on the source repository.
Last commit12d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.

How Shotbox works

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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Shotbox

mishan/shotbox is an MCP server that connects AI agents to graphical programs in sealed X11 or Wayland sessions. Its main tools inspect accessibility trees, capture screenshots and audio, send clicks, keys, text, and gamepad input, wait for readiness, and check contrast, Tab order, screen-reader output, visual changes, flicker, and audio dropouts.

Install the required Debian system packages, then run `pipx install --system-site-packages shotbox` or `pip install shotbox`. Use `shotbox doctor` to check dependencies. The package can also be run from a checkout by linking its `bin/shotbox` executable into a directory on your PATH.

Run `claude mcp add shotbox -- shotbox mcp --allow ~/src/app/shotbox-programs`. The allowlist must define the programs the agent may launch, using `NAME = COMMAND` entries. The MCP interface communicates over stdio.

Yes. Launch the application through a shotbox sealed session rather than directly from the agent's shell. The session isolates its display and audio, can use loopback-only networking, and cleans up child processes when it ends.

Yes. mishan/shotbox uses the standard MCP stdio transport, so it can be configured in Cursor and other MCP clients that support local stdio servers. The server still requires its system dependencies and an allowlist of launchable programs.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewShotbox AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mishan-shotbox?style=directory)](https://allmcps.com/mcp/mishan-shotbox)
HTML Embed
<a href="https://allmcps.com/mcp/mishan-shotbox"><img src="https://allmcps.com/api/badge/mishan-shotbox?style=directory" alt="Shotbox on AllMCPs" /></a>