原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Screen Control

作者:Xeakaes版本 1.0.0i★ –i–
注册名称io.github.Xeakaes/computer-use-for-all-agents

安装

概览

作者提供的说明(英文原文)

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

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: –
  • 传输方式:
  • 分类: 其他

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 注册中心没有列出需要填写的密钥。

作者没有在注册中心列出安装信息。请查看下方作者的 README。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 Xeakaes 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“其他”中的其他服务器比较i

  • 星标数多于此分类中其他 32718 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 32718 个服务器的 44% 更新
  • 基础检查结果等于或优于此分类中其他 32718 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Screen Control 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(1.0.0)于2个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。

有什么可以替代它?

同一分类中有:Spec Driven Development, Remote Desktop Commander, MemberVault MCP by usefulapi

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Spec Driven Development

作者:formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

在你的电脑上运行★ 440MIT14个月前更新
安装

Remote Desktop Commander

作者:desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

在云端运行★ 211前天更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

🖥️ Computer use for all agents

A local remote-control system for AI agents: watch your computer's screen

live and send mouse/keyboard commands to it. Everything runs on your

own machine — no data ever leaves it, no cloud middleman.

Every keystroke and every screenshot in this GIF went through the API — the agent never touched a physical keyboard.


If You Are an AI Agent

Read [AGENT_GUIDE.md](AGENT_GUIDE.md) first — it is written for you:

endpoints, safety gates and working recipes. This README is the human-facing

reference.

First ask the server what it is — GET /api/capabilities → platform. Windows: follow the whole guide as written. Linux: check echo $XDG_SESSION_TYPE — X11 is supported (guide → Linux (X11) Usage); Wayland is unsupported: the server refuses to start, HTTP 501 UNSUPPORTED_DISPLAY_SERVER (switch to an X11 session). Full routing lives in AGENT_GUIDE.md → Find Your Environment First.


Why Screen Control?

AI agents today can write code and call APIs — but they can't *see* or *touch* your desktop. Screen Control gives any agent general-purpose computer use over a clean, safety-gated HTTP/MCP interface:

  • Perceive — OCR for text, single frames or a live MJPEG stream for vision-capable models, and a text-only diff endpoint for models that can't consume images at all.
  • Act — absolute and relative mouse, Unicode-safe keyboard, window management, background (focus-free) control, virtual desktops.
  • Stay safe — token auth, blocked deadly shortcuts, focus guard, a stuck-input watchdog and an emergency failsafe are all enforced server-side, no matter how confused the agent gets.

One process, zero configuration, works with any language that can speak HTTP — or natively through MCP in Claude Desktop, Cursor, VS Code and cloud agents.

Performance Is Agent-Bound

Screen Control is the perception and actuation layer — the eyes and hands. The effective speed and capability of any agent using it are bounded by that agent itself and by the environment it runs in:

  • Thinking speed — one action per agent "turn": the perceive → plan → act → verify loop lives in the agent, so model inference latency and reasoning depth directly set the pace. The API itself adds only milliseconds per call.
  • Context capacity — screen readings (OCR text, frames, diffs) consume the agent's context window; a larger window means more situational awareness before verification degrades.
  • Runtime environment — network latency, MCP/HTTP round-trip overhead, tool-call limits and hosting constraints all stack on top of the loop.

In practice this means: the same repo makes a fast reasoning model fast and capable, and makes a slow model slow — the toolchain is not the bottleneck. Real-time or action-heavy tasks need an agent with fast inference and tight tool-loop latency; slower agents should prefer deliberate, verification-heavy tasks.


Table of Contents

  • If You Are an AI Agent
  • Why Screen Control?
  • Features
  • Architecture
  • Installation
  • Linux (X11)
  • Quick Start
  • API Reference
  • Authentication
  • Screen Capture
  • Mouse Control
  • Keyboard Control
  • OCR (Screen Reading)
  • Vision Access (Image Models)
  • Window Management
  • Focus-Free (Background) Control
  • Virtual Desktops
  • Game Mode
  • Safety Endpoints
  • 🤖 For AI Agents
  • MCP Support (One-Click Cloud Agents)
  • Security Model
  • Game Mode Guide
  • Vision Access Guide
  • Troubleshooting
  • Testing
  • Contributing
  • License

Features

FeatureDescription
🖼️ Live screen feedContinuously refreshing screenshot in the browser
🖱️ Mouse controlClick, right-click, double-click, scroll, drag & drop via live screenshot
⌨️ Keyboard controlText typing (Unicode/Turkish included, layout-independent), keys and shortcuts (Ctrl+C, Alt+Tab…)
👁️ OCRConverts on-screen text to machine-readable format
📷 Vision accessRaw-pixel paths for image-capable models: single frames, MJPEG stream, text-based motion detection
🪟 Window managementList, focus, safe close (WM_CLOSE), kill (task-manager style)
🖥️ Focus-free controlRead/write background windows via PostMessage without stealing focus
🎮 Game modeCamera look via relative mouse movement, hold-to-move keys
🔐 Token authEvery request requires X-Auth-Token (CSRF protection)
🦺 Stuck-input watchdogAuto-releases held keys after 30 s of inactivity
🛟 FailsafeCursor to top-left corner aborts all commands (disabled in game mode)

Architecture

┌─────────────────────────────────────────────────────────┐

│ Browser (Web UI) │ │ ┌──────────┐ ┌──────────┐ ┌────────────────────────┐ │ │ │ Live │ │ Control │ │ Windows / Game Mode │ │ │ │ View │ │ Panel │ │ Panel │ │ │ └────┬─────┘ └────┬─────┘ └───────────┬────────────┘ │ │ │ │ │ │ └───────┼──────────────┼─────────────────────┼──────────────┘ │ │ │ ▼ ▼ ▼ ┌─────────────────────────────────────────────────────────┐ │ HTTP API (Flask) │ │ 127.0.0.1:8745 │ │ │ │ /api/screenshot /api/mouse /api/key │ │ /api/vision/* /api/ocr /api/window │ │ /api/game /api/held /api/release_all │ │ /api/windows /api/desktops /api/desktop │ │ │ │ ┌─────────────┐ ┌──────────────┐ ┌──────────────┐ │ │ │ Auth Layer │ │ Watchdog │ │ OCR Engine │ │ │ │ (token) │ │ (30s auto) │ │ (RapidOCR) │ │ │ └─────────────┘ └──────────────┘ └──────────────┘ │ └─────────────────────────────────────────────────────────┘ │ │ │ ▼ ▼ ▼ ┌─────────────────────────────────────────────────────────┐ │ control.py (Core) │ │ │ │ Screen: mss (fast capture), PIL (processing) │ │ Mouse: pyautogui (absolute), SendInput (relative) │ │ Keyboard: pyautogui + SendInput+KEYEVENTF_UNICODE │ │ Windows: Win32 API (EnumWindows, SetForegroundWindow) │ │ Background: PrintWindow (capture), PostMessage (input) │ │ Virtual Desktops: pyvda │ │ Game Mode: ClipCursor + MOUSE_MOVE_RELATIVE │ └─────────────────────────────────────────────────────────┘ ┌──────────────────────────────────────────────┐ │ backends/ (pluggable) │ │ WindowsBackend │ LinuxBackend │ MacOSBackend│ │ (full) │ (X11) │ (stub) │ └──────────────────────────────────────────────┘

Coordinates & Concurrency

Per-Monitor DPI awareness. control.py calls SetProcessDpiAwarenessContext(PER_MONITOR_AWARE_V2) at import time — before the pyautogui import, because pyautogui touches coordinate APIs during import and would otherwise lock the process to the interpreter manifest's default (system-aware). With PMv2 active, every coordinate in the system is a physical pixel end to end: mss capture, OCR bounding boxes, pyautogui/SendInput clicks, ClipCursor. On High-DPI displays (125%/150% scaling) nothing drifts between what OCR reports and where the mouse clicks.

Lock architecture. The server uses two independent locks instead of one global lock:

LockProtectsEndpoints
_input_lockmouse, keyboard, game mode, window ops/api/mouse, /api/key, /api/game, /api/window/post, ...
_read_lockcapture, OCR, vision, enumeration/api/screenshot, /api/ocr, /api/vision/*, /api/windows, ...

A slow OCR (3–5 s on a busy screen) no longer freezes concurrent screenshot or vision reads — reads queue behind reads, inputs behind inputs.

Live-Loop Working Principle

This system is designed for a live perceive-act loop, not pre-written command chains:

  1. READ — OCR or vision reads the screen before and after every action
  2. ONE ACTION — each round sends a single command
  3. VERIFY — acceptance is "it appeared on screen", not "I sent it"
  4. ADAPT — if verification fails, the next step changes based on what is actually seen

This is enforced by the expect_hwnd guard: typing is refused (409) if the foreground window doesn't match the target.


Installation

Pick the version that fits how your agent works:

You are...VersionInstall
An AI agent user (Claude Code, Cursor, skills-capable agents)SkillSkill version — copy skills/computer-use/ into the agent's skills folder
An MCP-capable app (Claude Desktop, VS Code, cloud agents)MCPMCP Support — mcp_server.py over stdio or streamable-HTTP
A developer / API clientRESTthis page — pip install -r requirements.txt + python server.py
Skill version

The portable agent skill lives in skills/computer-use/ (SKILL.md plus a full API reference). It teaches any skills-capable agent the perceive-act-verify loop, the safety rules and the endpoint catalogue — the agent then drives a running server.

# Claude Code — user-level (available in every project)

cp -r skills/computer-use ~/.claude/skills/

Claude Code — this project only

mkdir -p .claude/skills && cp -r skills/computer-use .claude/skills/

For other skill-capable agents, copy the folder in

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx