r/mcp • u/Similar-Bet7262 • 7d ago
showcase ACUA: an open-source MCP server for macOS computer use, built on the accessibility tree
I'm the author of ACUA and I've been using it daily, so I'm sharing it here. It's an MCP server that lets agents operate Mac apps through 11 tools: list_apps, get_app_state, click, perform_secondary_action, set_value, select_text, scroll, drag, press_key, type_text, end_turn.
There's a short demo GIF at the top of the README: an agent typing and formatting text in TextEdit while the on-screen "Agent" cursor moves to each control.
Design notes that may interest this sub:
- Observe, then act by index.
get_app_statereturns the app's accessibility tree with element indexes plus a screenshot. Actions target those indexes, or points in the screenshot as a fallback. - Approvals via elicitation, with a fallback. Approving an app uses MCP elicitation by default. Several hosts declare elicitation but never show the form, or decline it silently, so
--approval-prompt serviceshows a native dialog instead. - Turns.
end_turn, a hook command, or_meta(x-acua-turnwith session and turn IDs) mark turn boundaries. If you take over an app mid-turn, the agent loses access to it until the next turn, so you can keep using your Mac. - Transports. stdio, or Streamable HTTP on 127.0.0.1 with a per-start bearer token.
- Optional extra servers for calendar, messages, local activity history and screen recording, each behind its own macOS permission.
mcp install --client claude-code|cursor|genericprints or writes the host config.
ACUA itself makes no network calls. Screenshots and trees go only to the agent you connect.
Free and MIT. macOS 14.4+, Apple silicon. The app is signed but not notarized (I don't pay for the Apple Developer Program); the Homebrew cask clears the quarantine flag for you.
Install: brew install --cask aelxtpt/tap/acua
Repo: https://github.com/aelxtpt/acua
Feedback welcome, especially about apps where the accessibility tree is poor.
2
u/Ok_Photo_7449 7d ago
The observe-then-act-by-index pattern has one failure mode worth watching: the tree goes stale between the observe and the act. The app changes state, the indexes shift, and the click lands on the wrong element with a success result. The check that catches it is re-reading the tree right before acting, or verifying the element at that index is still the one you meant.