open-zcode-computer-use
Provides macOS computer control through accessibility APIs, including app and window observation, screenshots, clicking, typing, scrolling, selection, and clipboard actions within the macOS environment.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@open-zcode-computer-use Take a screenshot of my current screen and describe what you see."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Open ZCode Computer Use
Clean-room, macOS-only reimplementation of the public ZCode CUA 0.5.12 MCP contract.
It exposes the same 30 tool names and the same complete input-schema shapes as
the inspected plugin, while using independently written JavaScript orchestration
and the MIT-licensed OpenComputerUseKit native implementation.
What It Implements
Newline-delimited MCP over stdio.
Accessibility-first app and window observation.
Session-local
state_idvalues with expiry, bounded retention, supersession, and one-action consumption.Raster-bound
frame_idvalues with SHA-256 integrity metadata.Window and display screenshots through ScreenCaptureKit.
AX click, value, selection, scroll, and secondary actions.
Coordinate-to-window ownership checks and AX hit-testing before raw clicks.
PID-scoped keyboard input and clipboard access.
Serialized mutations, kill-switch latching, subagent rejection, and
not_sentversuspossibly_senttransport reporting.All 30 public ZCode CUA 0.5.12 tools.
The exact reverse-engineering evidence is in
docs/zcode-cua-0.5.12-reverse-engineering.md.
The native function inventory and local reproduction method are described in
docs/ax-native-0.5.12-function-inventory.md.
The recovered SkyLight ABI, event fields, focus records, and branch matrix are in
docs/skylight-background-input-0.5.12.md.
The implementation comparison and remaining differences are in
docs/compatibility.md.
Related MCP server: blade-computer-use
Requirements
macOS 14 or newer.
Node.js 22 or newer.
Swift 6.2 toolchain.
Accessibility and Screen Recording permission for the process that launches the MCP server.
Build
git clone https://github.com/hqhq1025/open-zcode-computer-use.git
cd open-zcode-computer-use
npm run build:native
npm run verifyMCP Configuration
Use absolute paths for your own checkout:
{
"mcpServers": {
"open-zcode-computer-use": {
"command": "/usr/bin/env",
"args": [
"node",
"/path/to/open-zcode-computer-use/src/mcp-server.mjs"
],
"env": {
"OPEN_ZCODE_CUA_NATIVE": "/path/to/open-zcode-computer-use/native/.build/release/OpenZCodeNative"
}
}
}
}Run a non-mutating permission and display check with:
npm run doctorSafety Defaults
The default mode does not permit operations that require the physical system pointer. Semantic AX actions and supported PID/window-scoped operations remain available.
To opt into physical-pointer fallback for raw move and split mouse-down/up:
OPEN_ZCODE_CUA_ALLOW_GLOBAL_POINTER=1 npm startThat mode can move the visible cursor and should only be enabled deliberately.
stop_computer_control is latched for the lifetime of the MCP process. Start a
new MCP session to resume control.
Provenance
No proprietary ZCode JavaScript, helper binary, token, signing material, or private source is included.
Raw disassembly, decompiler projects, complete string dumps, and proprietary
bundles are intentionally excluded. The scripts under scripts/ can recreate
local research artifacts from a ZCode installation you are authorized to
inspect; generated output is ignored by Git.
The native source under native/Sources/OpenComputerUseKit is adapted from the
MIT-licensed open-codex-computer-use implementation at commit
3c1a938dcfef2cb2e9b0ddb8c7cac316c6c2bdbe. The surrounding MCP adapter,
registries, schema definitions, and ZCode compatibility behavior were written
for this project from observed public behavior and locally extracted tool
schemas.
Available Tools
30 toolscursor_positionCursor PositionARead-onlyIdempotent
Read the physical cursor position.
Inputs: no named parameters.
double_clickDouble ClickBDestructive
Double-click a bound element or frame coordinate.
Inputs: target (required), app_ref, strategy, modifiers, +1 more.
get_app_stateGet App StateBRead-onlyIdempotent
Capture an accessibility-first application state and optionally its window image.
Inputs: app_ref (required), detail, include_screenshot.
hold_keyHold KeyBDestructive
Hold a key or chord for up to 30 seconds.
Inputs: text (required), duration (required), app_ref, strategy, +1 more.
keyKeyADestructive
Send a key or chord to a scoped application.
Inputs: text (required), repeat, app_ref, strategy, +1 more.
left_clickLeft ClickBDestructive
Click a bound element or frame coordinate.
Inputs: target (required), app_ref, strategy, modifiers, +1 more.
left_click_dragLeft Click DragCDestructive
Drag from one bound target to another.
Inputs: to (required), from_target (required), app_ref, modifiers, +1 more.
left_mouse_downLeft Mouse DownCDestructive
Begin a scoped left-button hold.
Inputs: target (required), app_ref, return_state.
left_mouse_upLeft Mouse UpADestructive
Release the scoped left-button hold.
Inputs: return_state.
list_appsList AppsARead-onlyIdempotent
List currently running applications.
Inputs: no named parameters.
list_displaysList DisplaysARead-onlyIdempotent
List attached displays and their coordinate spaces.
Inputs: no named parameters.
list_windowsList WindowsBRead-onlyIdempotent
List windows belonging to an application.
Inputs: app_ref (required).
middle_clickMiddle ClickCDestructive
Middle-click a bound element or frame coordinate.
Inputs: target (required), app_ref, strategy, modifiers, +1 more.
mouse_moveMouse MoveADestructive
Move a synthesized pointer without moving the user's physical cursor.
Inputs: coordinate (required), app_ref, return_state.
open_applicationOpen ApplicationADestructive
Resolve or launch an application without taking foreground focus unless activate is true.
Inputs: app, activate, new_instance.
perform_actionPerform ActionCDestructive
Run one of the accessibility actions advertised by an element.
Inputs: action (required), target (required), return_state.
read_clipboardRead ClipboardARead-onlyIdempotent
Read plain text from the system clipboard.
Inputs: no named parameters.
request_accessRequest AccessBRead-onlyIdempotent
Read permission and runtime readiness without prompting.
Inputs: capabilities.
right_clickRight ClickBDestructive
Right-click a bound element or frame coordinate.
Inputs: target (required), app_ref, strategy, modifiers, +1 more.
screenshotScreenshotARead-onlyIdempotent
Capture the selected display.
Inputs: no named parameters.
scrollScrollCDestructive
Scroll at a bound element or frame coordinate.
Inputs: target (required), scroll_amount (required), scroll_direction (required), app_ref, +2 more.
select_textSelect TextCDestructive
Select all or a UTF-16 range in a text element.
Inputs: target (required), text_range, return_state.
set_valueSet ValueCDestructive
Set an accessibility element value.
Inputs: value (required), target (required), strategy, return_state.
stop_computer_controlStop Computer ControlBDestructive
Latch the session kill switch and release held input.
Inputs: reason.
switch_displaySwitch DisplayADestructive
Select the display used by screenshot.
Inputs: index (required).
triple_clickTriple ClickCDestructive
Triple-click a bound element or frame coordinate.
Inputs: target (required), app_ref, strategy, modifiers, +1 more.
typeTypeBDestructive
Type text into a bound element or the focused element of a scoped app.
Inputs: text (required), target, app_ref, strategy, +1 more.
waitWaitARead-onlyIdempotent
Pause for up to 30 seconds.
Inputs: duration (required).
write_clipboardWrite ClipboardADestructive
Replace the system clipboard with plain text.
Inputs: text (required).
zoomZoomBRead-onlyIdempotent
Crop a region from an existing frame or around an element target.
Inputs: region, target, frame_id.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 30 tools
Every tool targets a distinct action or resource category: display/window/app listing, mouse variants, keyboard input, accessibility operations, clipboard access, and control flow. The closest pairs like key vs hold_key and type vs set_value are clearly differentiated by duration and input mechanism.
Most names follow a predictable lower_snake_case verb_noun pattern such as list_windows, open_application, set_value, and read_clipboard. A few outliers like key, screenshot, and cursor_position break the pattern slightly but remain recognizable and consistent in style.
With 30 tools, the server feels over-scoped for a single computer-use entry point. Many click variants and keyboard/pointer hold primitives could be parameterized or consolidated without losing capability, though the broad domain justifies some of the count.
The surface covers the main computer-use workflows: display selection, screenshots, app/window introspection, mouse and keyboard input, accessibility actions, and clipboard management. Notable minor gaps include no app termination or active window management, but agents can work around these via existing accessibility actions.
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.
Use your Mac, Windows or Linux computer from ChatGPT, Claude or Codex: files, commands, documents.
Automate 1,000+ services from any MCP-compatible AI agent: build Applets, run actions and queries.
- DNS-DATA RemoteDeprecatedcom.dns-data
Connect AI assistants to authorized Windows and macOS devices for files, commands, and management.
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides native macOS computer control tools including mouse and keyboard simulation, screenshot capture, and application management for MCP-compatible agents. It enables AI assistants to directly interact with the macOS operating system and installed apps through standard tool calls.249MIT
- AlicenseNot gradedqualityDmaintenanceEnables MCP clients to control macOS via accessibility and screen recording, providing tools to list apps, observe UI, click, type, press keys, and scroll.MIT
- AlicenseAqualityDmaintenanceEnables AI agents to control macOS desktop apps via screenshots, mouse clicks, keyboard input, accessibility queries, and AppleScript.1111 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables agents to inspect and control macOS applications through Accessibility trees, screenshots, and OCR. It supports clicks, typing, key presses, scrolling, drags, clipboard paste, window actions, and scripted actions via MCP.MIT