# Screen Control [Health: Active]

**Category:** 🖥️ OS Automation  
**Repository:** https://github.com/Xeakaes/computer-use-for-all-agents  
**GitHub Stars:** 10  
**Views:** 14  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/screen-control

## Description
Safety-gated computer use for AI agents: screen OCR and vision, mouse, keyboard, window control.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/Xeakaes/computer-use-for-all-agents), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
pip install -r requirements.txt
```

2. Install:

```sh
sudo apt install -y xdotool wmctrl imagemagick python3-venv python3-tk python3-dev
```

## Documentation

## What Screen Control does

Screen Control exposes a local desktop-control layer for AI agents. Agents can inspect the display through screenshots, OCR, a live MJPEG feed, or text-based visual differences, then act with mouse and keyboard commands. The service also covers window operations, focus-free interaction with background windows, virtual desktops, and a game-oriented input mode.

The project is designed for agents that need general computer use across applications. It runs on the user’s own machine and provides both an HTTP interface and MCP access, allowing clients or other programs that speak those protocols to use the same control surface.

## How it works

A Flask-based HTTP API listens on `127.0.0.1:8745`. Its authentication layer requires an `X-Auth-Token` header on every request. Screen capture uses `mss`, with PIL used for image processing, while OCR is provided by RapidOCR. Mouse and keyboard operations use platform-specific input mechanisms, including PyAutoGUI and Windows input APIs.

The intended interaction loop is observe, plan, act, and verify. An agent can read text or obtain image data before sending an input command, then capture the display again to check the result. The browser interface provides a live view and control panels alongside the API.

## Setup and configuration

The supported environments are Windows 10/11 and Linux running X11. Linux Wayland is unsupported: the service refuses to start and returns `UNSUPPORTED_DISPLAY_SERVER` with HTTP status 501. Python 3.10 or newer is indicated by the project.

After starting the service, clients can connect to the local HTTP endpoint or use its MCP support. The API exposes capability information at `GET /api/capabilities`, including the detected platform. Requests must include the configured authentication token through the `X-Auth-Token` header.

## Tools and capabilities

- Capture single screenshots and serve a continuously updating screen view.
- Read visible text with OCR.
- Provide image frames, an MJPEG stream, and text-based motion detection for vision workflows.
- Move and click the mouse, scroll, drag, and use absolute or relative movement.
- Type Unicode text and send individual keys or shortcuts.
- List, focus, safely close, or terminate windows.
- Read and control background windows without taking focus using supported Windows mechanisms.
- Inspect and switch virtual desktops.
- Use game mode for relative camera movement and held movement keys.
- Abort commands with the cursor-to-top-left failsafe and automatically release held keys after 30 seconds of inactivity.

## Limitations and notes

This is a desktop-control service, so its behavior depends on the host display environment and the agent’s ability to interpret screen output. Linux support is limited to X11; Wayland is not supported. The cursor failsafe is disabled in game mode.

The safety model includes token authentication, blocked dangerous shortcuts, focus protection, a stuck-input watchdog, and an emergency failsafe. These controls are enforced by the service, but the system still sends real input to the connected computer, so deployments should be limited to machines and sessions where that behavior is acceptable.

The project is licensed under MIT. MCP clients named by the project include Claude Desktop, Cursor, and VS Code.

_Full upstream README: https://allmcps.com/mcp/screen-control/readme_

