Screen Control logo

Screen Control

Local MCP and HTTP control for screen reading, mouse and keyboard input, windows, and safety-gated desktop automation.

Install Screen Control

Run the project’s own setup commands, in order.

Setup steps from the project

Screen Control installs with its own commands rather than a config we can generate, so these are copied as-is. Run them in order in a terminal. Source: github.com

  1. 1. Install
    pip install -r requirements.txt
    
  2. 2. Install
    sudo apt install -y xdotool wmctrl imagemagick python3-venv python3-tk python3-dev
    

Overview

Screen Control provides AI agents with local access to a computer’s screen and input controls through an HTTP API and MCP interface. It combines OCR, screenshots, vision streams, mouse and keyboard actions, window management, background control, and virtual desktops with token authentication and server-side safety checks. Windows 10/11 and Linux X11 are supported; Linux Wayland is rejected. Reach for it when an agent needs to observe and operate a graphical desktop rather than call application-specific APIs.

Use cases

  • Read text from an application window with OCR
  • Operate desktop software with mouse and keyboard input
  • Verify visual changes with screenshots or screen diffs
  • Manage windows and virtual desktops from an agent
  • Control a background Windows window without taking focus

Key features

  • OCR and screenshot capture
  • Live MJPEG and vision access
  • Mouse, keyboard, and Unicode typing
  • Window and virtual desktop control
  • Background window interaction
  • Token authentication and input safety controls

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.

12/12 checks healthy over the last 43d

Adoption & maintenance

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

GitHub stars10Stargazers on the source repository.
Last commit19d agoMost recent push to the default branch.
Directory activity14 viewsConfig copies, upvotes, and views on AllMCPs.

How Screen Control works

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.

Reviews

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

Frequently Asked Questions about Screen Control

Screen Control is an MCP server that connects AI agents to a local Windows or Linux X11 desktop. Its main tools cover screen capture, OCR, vision streams, mouse and keyboard input, window management, background control, and virtual desktops, with token authentication and safety gates enforced by the service.

Install and run it on Windows 10/11 or Linux with an X11 session, using Python 3.10 or newer. After startup, connect through the local HTTP API or MCP interface and check `GET /api/capabilities` to identify the host platform.

No, Screen Control requires Linux X11. On Wayland, it refuses to start and reports `UNSUPPORTED_DISPLAY_SERVER` with HTTP 501, so the host must use an X11 session.

Screen Control is named as compatible with Claude Desktop, Cursor, and VS Code. It also exposes an HTTP API for programs that can communicate over HTTP.

Screen Control requires an `X-Auth-Token` header, blocks dangerous shortcuts, includes focus protection, automatically releases held keys after 30 seconds of inactivity, and provides a cursor-to-top-left emergency failsafe. The failsafe is disabled in game mode.

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 PreviewScreen Control AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/screen-control?style=directory)](https://allmcps.com/mcp/screen-control)
HTML Embed
<a href="https://allmcps.com/mcp/screen-control"><img src="https://allmcps.com/api/badge/screen-control?style=directory" alt="Screen Control on AllMCPs" /></a>