@zcode-community/mcp-server
Enables AI agents to inspect and operate native macOS desktop applications in the background using the macOS Accessibility API and CoreGraphics. It provides tools for listing apps and windows, reading app state, clicking elements, setting values, performing accessibility actions, launching applications, taking screenshots, managing clipboard content, and handling file dialogs without stealing focus.
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 Computer Use Kit
Turnkey Computer Use Skills + Open-Source Accessibility MCP Server for AI coding agents on macOS (Antigravity, Claude Code, Cursor, and any MCP-compatible host).
Clone once, run ./install.sh, grant macOS Accessibility permission, and your agent can immediately inspect and operate native macOS desktop apps in the background without stealing your mouse cursor or window focus.
What You Get Out of the Box
Two Battle-Tested Agent Skills (
skills/)computer-use-orchestrator: High-level routing discipline—semantic Accessibility (AX) first, background zero-focus execution, single-writer window ownership, safe background window closing (AXCloseButton), and fail-closed recovery.zcode-computer-use: Concrete execution loop (Observe → Act → Verify), GOOD/DEGRADED/FAILED state triage, atomicreturn_state="compact"updates,NSOpenPanel/NSSavePanel(⌘⇧G) handling, destructive action guards, and a zero-dependency read-only verifier (scripts/rpc_probe.py).
Self-Contained Open-Source macOS AX MCP Server (
packages/)Zero proprietary binaries and zero runtime npm dependencies—built on native macOS Accessibility (
System Events/ JXA) +CoreGraphics.Exposes 30+ standardized tools (
list_apps,list_windows,get_app_state,left_click/click,set_value,perform_action,open_application/launch_app,screenshot,request_access,stop_computer_control, clipboard tools, and compact/diff context compression).
Optional ZCode Native Helper Bridges (
bridges/)If
ZCode.appis installed on the Mac, the installer automatically enableszcode-cua-bridge.mjs(background zero-focus native helper) andzcode-cua-visible-bridge.mjs(GhostCursorvisual trajectory overlay) while keeping the pure open-source server registered ascua-open.If
ZCode.appis not installed,zcode-cuaautomatically points directly to the built-in open-source macOS AX MCP server—no third-party app required.
Related MCP server: macos-desktop-control
1-Minute Quick Start (macOS)
Prerequisites
macOS 13+ (Apple Silicon or Intel)
Node.js >= 20 (
node -v)Python 3.9+ (pre-installed on macOS, used only for the optional read-only
rpc_probe.pyhealth check)
Install
git clone https://github.com/timexingxin/macos-computer-use-kit.git
cd macos-computer-use-kit
./install.shWhat ./install.sh does automatically:
Compiles the TypeScript workspace (
pnpmornpm—whichever you have) into a self-contained runtime under~/.local/share/macos-computer-use-kit/.Detects your installed AI agent clients (Antigravity, Claude Code, Cursor) and copies
computer-use-orchestratorandzcode-computer-useinto theirskills/directories.Non-destructively merges
zcode-cuainto your MCP config (creating a timestamped.bakbackup first).Runs
rpc_probe.py --guardover stdio to verify live MCP handshake, tool manifest registration, subagent safety guard (SUBAGENT_COMPUTER_USE_UNAVAILABLE), and clean process teardown.
Grant macOS Accessibility Permission
Open System Settings → Privacy & Security → Accessibility (and Screen Recording if you need visual fallback screenshots) and enable the toggle for your host app (e.g., Antigravity, Terminal / iTerm2, Cursor, or ZCode).
Restart or reload MCP servers in your agent client, and you are ready to prompt:
"Open Calculator in the background, compute 128 * 256 via accessibility controls without moving my mouse, and verify the result."
Installer Options
./install.sh # Auto-detect clients & backend mode
./install.sh --client antigravity # Target Antigravity (~/.gemini/config)
./install.sh --client claude # Target Claude Code (~/.claude)
./install.sh --client cursor # Target Cursor (~/.cursor)
./install.sh --client all # Install to all supported clients
./install.sh --mode open # Force pure open-source macOS AX MCP backend
./install.sh --mode both # ZCode Native Helper bridges + open-source fallback
./install.sh --dry-run # Preview changes without writing files
./install.sh --uninstall # Cleanly remove kit skills, runtime & MCP entriesArchitecture
flowchart TD
Agent["AI Agent (Antigravity / Claude Code / Cursor)"]
Orch["Skill: computer-use-orchestrator<br/>(Routing, Single-Writer & Focus Safety)"]
Exec["Skill: zcode-computer-use<br/>(Observe -> Act -> Verify Loop)"]
Agent --> Orch --> Exec
Exec -->|"Default (Any Mac, Zero Closed Binaries)"| OpenMCP["Built-in Open-Source MCP Server<br/>(@zcode-community/mcp-server)"]
Exec -->|"Auto-Enabled if ZCode.app Installed"| Bridge["ZCode Native Helper Bridges<br/>(zcode-cua & zcode-cua-visible)"]
OpenMCP --> AX["macOS Accessibility Tree (AX) & CoreGraphics"]
Bridge --> AXVerification & Diagnostics
# Run built-in CLI environment doctor
npm run doctor
# Run read-only MCP handshake & subagent guard probe
npm run probe
# Run full unit, protocol, adversarial & installer E2E test suite
npm testSecurity & Safety Design
Background-First, Focus-Safe: Semantic AX actions (
click,set_value,perform_action) act directly on element references without moving the physical pointer or stealing foreground focus.Zero Fake-Success Policy: Unsupported operations fail closed with structured error codes (
unsupported_platform,stale_handle,ambiguous_element,permission_denied).Main-Agent Serialization Guard: Rejects subagent GUI mutation calls (
SUBAGENT_COMPUTER_USE_UNAVAILABLE) to prevent concurrent multi-agent desktop race conditions.Emergency Kill Switch: Calling
stop_computer_controlimmediately halts mutating operations on the active MCP session.
License & Disclaimer
Licensed under the Apache License 2.0. See NOTICE for attribution and third-party trademark disclosures. No proprietary binaries are bundled in this repository.
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
Connect AI assistants to your approved computer for files, commands, browser and desktop tasks.
Let your AI agent control real iPhones: screenshots, tap, swipe, type and open apps.
Operate Linux, macOS and Windows from your LLM. Every action runs through an auditable allowlist.
Mac & Windows: let ChatGPT, Claude & Cursor use your email, calendar, iMessage, Teams, files.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to automate macOS desktop tasks including mouse control, keyboard input, screenshots, window management, and UI interaction.10 npm415MIT
- 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.4MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to control macOS applications through the Accessibility API, AppleScript, and CGEvents, providing structured text output of UI elements and actions without needing screenshots.MIT
- AlicenseAqualityDmaintenanceEnables AI agents to control macOS desktop apps via screenshots, mouse clicks, keyboard input, accessibility queries, and AppleScript.1112 npmMIT