macos-cua
Provides background computer-use control of macOS applications and windows: discovering apps/windows (CGWindowID), capturing single-window screenshots with Vision OCR bounding boxes, inspecting Accessibility trees, invoking AX actions and setting values, and performing clicks, typing, key presses, scrolling, dragging and clipboard-safe paste without stealing focus or moving the physical cursor.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
macos-cua
Background-capable macOS Computer Use MCP server and Antigravity plugin built on top of dsh-cua-native (SkyLight, ScreenCaptureKit, and macOS Accessibility) plus a lazy-compiled Swift system bridge (Vision OCR, CGHIDEventTap continuous trackpad scrolling/dragging, and clipboard-safe Cmd+V shortcut paste).
Highlights
Non-intrusive background control: Targets apps and
CGWindowIDs directly without stealing focus or moving the physical mouse cursor where supported.Single-window ScreenCaptureKit capture + Vision OCR:
cua_screenshot({ ocr: true, includeImage: false })returns exact screenshot-pixel bounding boxes (bbox,center) with zero PNG transfer overhead when only text/coordinates are needed.Accessibility-first + coordinate fallback: Inspect AX trees (
cua_get_state), invoke AX actions (cua_invoke,cua_perform_action,cua_set_value,cua_select_text), or operate AX-less windows (such asiPhone Mirroring) usingcua_batch,useSystemPointer, andmode: "shortcut"paste.Zero third-party runtime npm dependencies: Pure Node.js (
>=20) ESM + macOSswiftc(compiled on demand into.cache/).
Related MCP server: macos-desktop-control
Prerequisites
macOS with Accessibility & Screen Recording permissions granted to the native helper (
DSH Computer Use).Node.js
>= 20.0.0.Native helper binary (
DSH Computer Use.app/Contents/MacOS/dsh-cua-native):Auto-discovered from
DeepSeek Harness.appor~/Library/Application Support/DeepSeek Harness/Computer Use, orProvided explicitly via
MACOS_CUA_HELPER_PATH=/path/to/dsh-cua-native.
Xcode Command Line Tools (
swiftc) if usingVisionOCR orCGHIDEventTapsystem-pointer actions.
Plugin Installation (Antigravity)
Clone or symlink this directory into your Antigravity plugins folder (~/.gemini/config/plugins/macos-cua), then restart or reload plugins:
git clone https://github.com/NaghtSieger/macos-cua.git ~/.gemini/config/plugins/macos-cuamcp_config.json launches node ${PLUGIN_ROOT}/server/mcp-server.mjs over stdio MCP.
MCP Tools (22)
Category | Tools |
Capabilities & Discovery |
|
Window Focus & Observation |
|
Accessibility Actions |
|
Pointer, Keyboard & Paste |
|
Atomic Workflows |
|
See skills/macos-cua/SKILL.md for detailed coordinate spaces, batch step schemas, and iPhone Mirroring recipes.
Development & Testing
npm run check # Syntax check all JS modules and tests
npm test # Run portable unit & mocked MCP tests
npm run compile:swift # Verify cua-sys-helper.swift compiles cleanly (macOS)
npm run test:e2e # Run live macOS GUI E2E test against a background TextEdit windowLicense
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
EXZA Remote — AI Computer Commander Your computer. Your control. Securely connect your own macOS, Windows or Linux computer to compatible AI clients, including ChatGPT and Claude. EXZA Remote provides 59 MCP tools for authorized file management, terminal operations, system monitoring, desktop automation and email workflows. GETTING STARTED 1. Create an EXZA Remote account. 2. Install the official computer connection client. 3. Pair your device using a temporary six-digit PIN. 4. Approve the connection on your computer. 5. Connect your preferred MCP client using EXZA OAuth. MCP ENDPOINT https://remote.exza.de/mcp TRANSPORT Streamable HTTP with OAuth 2.0 KEY FEATURES • 59 MCP tool interfaces • Secure computer and file access • Terminal commands and background jobs • File search, reading and editing • System monitoring and desktop automation • macOS, Windows and Linux support • Owner-controlled permissions and approvals COMPLETE INSTALLATION & DOCUMENTATION Detailed setup instructions, terminal installation commands, all 59 tools, troubleshooting and security information: https://github.com/exzade/EXZA-Remote/blob/main/docs/GLAMA_OVERVIEW.md Official website: https://remote.exza.de EXZA Remote is an independent, OAuth-protected service. Computer access requires individual account authorization and device-owner approval.
Securely control computers you explicitly pair through files, terminals, processes, screenshots, desktop UI/input, clipboard, browser automation, diagnostics, and document tools.
Reach your own computers from any AI app: files, commands, screen and mouse, approvals and alerts.
Connect AI assistants to your approved computer for files, commands, browser and desktop tasks.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to automate macOS desktop tasks including mouse control, keyboard input, screenshots, window management, and UI interaction.418MIT
- AlicenseNot gradedqualityDmaintenanceProvides native macOS desktop automation for AI agents, enabling screen capture, mouse/keyboard control, window management, and iOS/Android simulator control in both foreground and background modes without focus stealing.6MIT
- FlicenseNot gradedqualityCmaintenanceEnables macOS GUI automation via screenshots, mouse/keyboard control, accessibility tree inspection, and app/window management.1-
- AlicenseNot gradedqualityBmaintenanceEnables controlling macOS apps in the background, letting Claude Code or Codex act on native app UI elements without foregrounding them.1MIT