faster-mac-use
One-tool MCP server that drives Chrome tabs and native macOS apps in the background — with zero cursor movement or focus theft — via stateful REPL scripts, declarative step batches, or parallel multi-agent swarms.
Background Chrome control: open/navigate tabs, click, type, wait for text, extract page text (
createBrowserTab,getTab,listTabs,chromeTabId,reuseExisting,windowId).Dual modes:
extension(live logged-in Chrome over MV3 WebSocket bridge, no debug popups),chrome, orheadless(mode,requireExtension,bridgeStatus).Native macOS automation: AX-based app control (click, pressKey, set text, OCR) on apps like Calculator (
app,surface: "app",getApp).Stateful REPL: run
codescripts against persistent handles, cursor coords, diff baselines, and saved macros (cua.*,getState,getCursors,saveMacro,listMacros).Declarative batching: one-trip
stepsarrays withop/uid/action/target/text.Multi-agent parallelism:
parallel: [{agent, code}]with per-agent tab namespaces, cursor isolation, and scopedreset/closeAgentTabs.Token-lean snapshots: persistent
@u1..@uN/@a1..@aNUIDs,+/~/-diffs, table folding (fullTable),fullPage,< 1 msAXObserver dirty-subtree shortcuts.Vision-free OCR: canvas/WebGL and macOS window OCR injecting clickable text targets at 0 image tokens.
Live observability:
Live ViewHUD,toggleZoom,highlightWindow,statusBar,perfReport,stop/resume.WebMCP macros: auto-synthesized per-domain Virtual WebMCP tools loaded from
~/.fmu/macros/.
Provides background-first computer-use automation for native macOS apps, including Accessibility-based element interaction, zero-focus background clicks and keystrokes, per-agent UID diffs, and Apple Silicon Vision OCR fallback for canvas/GPU-rendered windows.
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., "@faster-mac-use open a background Chrome tab, find the cheapest MacBook Air, and tell me"
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.
Faster Mac Use (fmu)
Background-first, multi-cursor browser and native macOS computer-use engine for AI agents, modeled after and extending OpenAI Codex's cua_repl architecture.
Website & Interactive Benchmark Explorer: https://clifan.com/faster-mac-use/
Architecture & 5-Workload Benchmark Report:
docs/architecture_and_benchmarks.md
Why faster-mac-use?
Most computer-use tools force a painful choice:
Pixel screenshot loops (
computertool) hijack your physical mouse cursor, steal window focus, and burn 40k–80k tokens across 10–30 turns.Standard Accessibility/Playwright MCPs (
@playwright/mcp,chrome-devtools-mcp) inject 4,000–12,500 tokens of tool schemas upfront and return full ARIA trees on every click.Single-session REPLs (
cua_repl) are fast for one agent, but serialize multi-agent workflows and fall back to screenshots on custom-rendered macOS windows or HTML5<canvas>apps.
faster-mac-use combines a 268-token single-tool MCP/CLI schema, a stateful async cua_repl sandbox, persistent @u1..@uN / @a1..@aN element UIDs with pre-registered table folding, push-based AXObserver < 1 ms dirty-subtree diffs, auto-synthesized Virtual WebMCP site macros (~/.fmu/macros/), 0-vision-token <canvas> & macOS window OCR, outbound MV3 extension WebSocket bridging for live logged-in Chrome "Agent" tab groups (zero Chrome 144 popups), and true multi-cursor parallel execution — verified at 0.0 px physical cursor movement and 0 focus changes.
Workload |
| OpenAI Codex |
| Anthropic Pixel CUA |
A. Enterprise SaaS Console (10 ops) | 1,290 tok / 94 ms (Native WebMCP)1,290 tok / 97 ms (Virtual WebMCP Macro)2,024 tok / 133 ms (DOM Diff) | 5,732 tok / 359 ms | 231,125 tok / 1,850 ms | 83,215 tok / 3,400 ms |
B. macOS Native Calculator (11 ops) | 1,264 tok / 395 ms ( | 1,502 tok / 554 ms | 48,477 tok / 12,718 ms ( | — |
C. Hybrid Web + macOS (14 ops) | 2,179 tok / 335 ms | 2,437 tok / 568 ms | 129,010 tok / 3,200 ms | — |
D. 3-Agent Multi-Cursor Swarm (25 ops) | 1,510 tok / 326 ms (2 turns) | 15,923 tok / 1,122 ms (6 turns) | 293,950 tok / 4,850 ms | 430,800 tok / 7,600 ms |
E. Long-Horizon 30-Op + Window OCR | 4,584 tok / 494 ms (0 vision tok) | 8,355 tok / 942 ms | 400,725 tok / 6,100 ms | 620,535 tok / 9,200 ms |
Related MCP server: open-computer-use
Core Architecture
Tier 1 — Native Browser Engine (
BrowserEngine)Dual-Mode Zero-Popup Chrome Control:
Live Logged-In Chrome via Outbound MV3 Extension WebSocket Bridge (
ws://127.0.0.1:19222/ext):extension/background.jsconnects outward to/tmp/fmu-runtime.sock's single-ownerExtensionWebSocketBridge(fmu mcpproxies calls through the daemon so port19222is never contested; inspectable via{"bridgeStatus": true}/await cua.getBridgeStatus()) and drives unfocused, per-agent color-coded"Agent"Tab Groups (active: false, with multi-windowwindow,windowId, andreuseExistingtab targeting) viachrome.debugger/chrome.scripting/chrome.tabGroupswith zero Chrome 144DevToolsActivePort"Allow remote debugging?"modal popups. Whenmode: "extension"(or"live"/requireExtension: true) is requested while disconnected,fmufails fast with an actionable setup diagnostic; when defaultmode: "chrome"targets an external URL without the extension connected,fmutags the headerbridge="headless-fallback"and emits an explicit! warning:(and! errors:ifels=0) instead of silently failing in an unauthenticated session.Zero-Config Background Worker (
mode: "headless"& local dev URLs): When running in"headless"mode or against local/test URLs without the extension bridge,fmuuses a thread-safe background Playwright worker (fmu-pw-worker) with per-tab background focus and lifecycle emulation (Emulation.setFocusEmulationEnabled({enabled: true})+Page.setWebLifecycleState({state: "active"})).
Persistent
WeakMapUIDs (@u1..@uN) + Pre-Registered Table Row Folding (foldTables): Indexes all table rows inuidToRefso agents can target folded rows by label or UID while cutting initial dense table snapshots by >2.5×.Native WebMCP (
navigator.modelContext) + Auto-Synthesized Virtual WebMCP Macros (~/.fmu/macros/): Detects page-registered WebMCP tools and allows agents to synthesize multi-step DOM trajectories into reusable 1-turn Virtual WebMCP tools (await tab.saveMacro(name, steps, desc)->await tab.callTool(name, args)), auto-loaded per domain in the# web ... webmcp=[...]header.In-Browser
<canvas>/ WebGL Semantic OCR Fusion: Clip-captures<canvas>elements via CDP and runs Apple SiliconVision.framework(VNRecognizeTextRequest) viafmu-axto inject clickable@ocr1..@ocrN canvas-text "..." (x,y) [wxh]targets directly into the web snapshot (await tab.ocr()or automatic canvas detection) with 0 VLM image tokens.Deterministic Rich-Text Editing & Zero-Dialog File Uploads: Replaces (or appends with
append: true) multi-blockcontenteditable/ Draft.js / ProseMirror editors in< 50 mswithout touching the system clipboard, and intercepts<input type="file">uploads via CDP (DOM.setFileInputFiles) so native macOSNSOpenPaneldialogs never open or get blocked by AppKit/TCC.
Tier 2 — Native macOS Accessibility, Push-Based
AXObserver& Vision OCR (fmu_ax.swift/MacNativeEngine)Persistent Unix Socket Daemon (
/tmp/fmu-ax.sock, universal2 binarybin/fmu-ax): Keeps a warm 4,000-elementAXUIElementLRU cache, PID/window cache, per-agent+/~/-diff baselines, and per-agent virtual cursors (VirtualCursorState) across turns.Push-Based
AXObserverDirty-Subtree Tracking: Subscribes tokAXValueChangedNotification,kAXTitleChangedNotification,kAXCreatedNotification,kAXUIElementDestroyedNotification, and window/layout notifications on a dedicatedCFRunLoopthread (fmu-ax-observer). Turn 2+ unchanged or leaf-dirty snapshots short-circuit full AX tree walks in< 1 ms(obs=sequence telemetry).Batched Attribute Reads, Non-Destructive Clipboard Hygiene & Multi-Window Guards: Batches reads via
AXUIElementCopyMultipleAttributeValues, lazily wakes background Electron/Chromium AX trees (AXManualAccessibility = true), never overwritesNSPasteboard.generalonop: "set"(verifyingAXTextArearead-back and detectingNSOpenPanelTCC-disabledOpenbuttons), and guardsCGEvent.postToPidkey routing when targeting a non-main window of a multi-window process.0-Vision-Token Apple Silicon Window & Canvas OCR: Built-in
CGWindowListCreateImage+ImageIO+VNRecognizeTextRequestengine (op: "ocr"/await app.ocr()) extracts clickable text and bounding boxes in< 70 ms.Real-Time Pixel
fmu Live ViewHUD & One-Click Menu Bar Stop: Streams live pixels of the actual controlled background Chrome tab (Page.startScreencast+ async post-actionPage.captureScreenshotoverws://127.0.0.1:19222/ext) or native macOS app window (ScreenCaptureKit) into a non-activating floating PiP monitor with target cursor reticles, HD Zoom (460px/740px,{"toggleZoom": true}),Highlight(fmu --highlight), draggable positioning, persistent Live View toggle (fmu --live-view on|off,~/.fmu/prefs.json), per-session & global agent Chrome tab cleanup, and instantStop/Resume(fmu --stop/fmu --resume).
Tier 3 — Unified Multi-Cursor / Multi-Agent Stateful REPL, Warm Daemon & Context Hygiene (
FasterMacUseRuntime)268-Token Single-Tool Schema & Strict
stepsValidation: Supports OpenAI Codex-style statefulcua_replscripts (cua.createBrowserTab,cua.getTab,cua.getApp,cua.getBridgeStatus,cua.saveMacro,cua.listMacros,cua.getState,cua.getCursors), 1-trip declarativestepsbatches (withop/uidandaction/target/textnormalization plus explicit error reporting on missing or unsupported"op"), and concurrent multi-agent swarms ({"parallel": [{"agent": "agent-1", "code": "..."}, ...]}).Per-Agent Isolation & Stale-Observation Masking: Each
AgentSessionhas independent REPL handles, virtual cursor(x, y)coordinates (tab.moveCursor/app.moveCursor), andContextWindowTracker18-token tombstones that replace superseded snapshots to prevent quadratic O(N²) context growth.50Hz Hardware Intrusion Guard (
BackgroundIntrusionGuard): Polls CoreGraphics (CGEventGetLocation+CGEventSourceSecondsSinceLastEventType) andlsappinfo frontat 50Hz to prove0.0 pxcursor displacement and0automated focus changes.
Quick Start
1. Install (1-Line uvx / uv tool / pip / Homebrew)
# Option A: Run or install directly from PyPI via uv / pip (auto-compiles universal2 fmu-ax binary on macOS)
uvx --from faster-mac-use fmu mcp
uv tool install faster-mac-use
pip install faster-mac-use
# Option B: Clone for development
git clone https://github.com/lifan-builds/faster-mac-use.git
cd faster-mac-use
pip install -e .
# Option C: Homebrew Formula
brew install --Formula ./Formula/faster-mac-use.rb2. Add to Your MCP Client (Claude Code, Codex, Cursor, Antigravity)
{
"mcpServers": {
"faster-mac-use": {
"command": "fmu",
"args": ["mcp"]
}
}
}(Or point "command" to /path/to/faster-mac-use/bin/fmu.)
3. CLI Usage (fmu or ./bin/fmu)
# Native macOS Calculator in background (zero focus steal, <1ms AXObserver diff on Turn 2+)
./bin/fmu '{"surface":"app","app":"Calculator","steps":[{"op":"key","name":"escape"},{"op":"click","name":"7"},{"op":"click","name":"Multiply"},{"op":"click","name":"6"},{"op":"click","name":"Equals"}]}'
# Codex-style stateful cua_repl script + Virtual WebMCP macro recording
./bin/fmu '{"code":"let tab = await cua.createBrowserTab(\"chrome\", \"https://example.com\", {sessionName: \"Agent\"}); await tab.saveMacro(\"quick_lookup\", [{op: \"click\", uid: \"More information\"}], \"Click More info\");"}'
# Multi-cursor / multi-agent parallel execution across Chrome tabs + native macOS apps
./bin/fmu '{"parallel":[{"agent":"agent-1","code":"let t = await cua.createBrowserTab(\"chrome\", \"https://example.com\"); await t.move(\"More information\");"},{"agent":"agent-2","code":"let a = await cua.getApp(\"Calculator\"); await a.pressKey(\"escape\"); await a.click(\"8\");"}]}'
# Review real-world p50/p95/p99 latency, sub-phase breakdowns, and token efficiency (~/.fmu/logs)
./bin/fmu --perf 7Multiple Agents on One Mac
Every request to the warm daemon is attributed to the agent session that sent it: the daemon reads the caller's pid from the Unix socket (LOCAL_PEERPID) and walks up to the nearest harness process (Devin, Codex, Claude Code, Antigravity, Gemini, Cursor). Each session then gets:
Its own namespace: tab ids look like
devin1:t1andcodex1:t1, so two agents' defaultt1tabs never collide, andgetTab("amazon.com")only matches tabs the caller already owns or unclaimed ones.Its own Chrome tab group: titled
Harness · project(project = git root of the shell's working directory, orsessionLabelwhen passed) with a stable color per project. Sub-agents add a suffix (Devin · alexa-photos · audit).Scoped cleanup:
{"reset": true}and{"closeAgentTabs": true}only touch the caller's tabs, and only tabs the agent opened are ever closed; tabs it merely attached to stay open. When a harness process exits, its blank tabs close and its group collapses.Menu bar view: Agent Sessions lists each live session with its group color and tab count, with a per-session close action.
{"agentSessions": true}prints the same list.
Harnesses that host many conversations in one process and reach fmu over MCP (Devin Desktop, Antigravity) can't be told apart by process; pass sessionLabel to give each conversation its own group.
4. Run the 43-Test Unit & Integration Suite
PYTHONPATH=src python3 tests/test_fmu.py5. Run the 5-Workload Competitor Benchmark Suite
PYTHONPATH=src python3 benchmarks/run_benchmarks.pyResults are written to benchmarks/results/latest_benchmark.md and benchmarks/results/latest_benchmark.json.
License
Copyright © 2026 lifan-builds. All Rights Reserved — source-available for personal non-commercial use and upstream Pull Request contributions only under LICENSE (LicenseRef-lifan-builds-Proprietary). Commercial use, hosted wrappers, rebranding, standalone forks/mirrors, and dataset/HTML extraction without prior written permission are prohibited. Pull Requests are welcome under CONTRIBUTING.md.
Available Tools
1 toolcuaB
Background Chrome ('🤖 Agent' Tab Group) & macOS AX control with multi-cursor isolation, stateful REPL (code), or steps batching and +/~/- UID diffs. Zero focus/cursor theft. Pass code (tab=cua.createBrowserTab('chrome',url); tab.click('@u1').waitFor('Confirmed'), cua.listTabs(), tab.text(), or app=cua.getApp('Calculator'); app.click('@a6')), {app|url, steps, agent}, or {parallel:[...]}.
Inputs: app, url, code, diff, +24 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
There is only one tool, so there is no possibility of selecting the wrong tool or confusing overlapping purposes. An agent has exactly one entry point, and its description clearly states what it does.
With a single tool named 'cua', there is no inconsistency between names, but the name is an opaque acronym rather than a predictable verb_noun pattern. Consistency is trivially satisfied; descriptiveness is not.
One tool is too thin for the broad apparent scope of macOS AX and Chrome automation, forcing every operation through a single kitchen-sink interface with modes (`code`, `steps`, `parallel`). The complexity is pushed into parameters rather than a well-scoped set of tools.
The scripting/REPL design (`code`) and step batching suggest broad coverage of browser and app control, including clicks, waits, tab listing, and text extraction. Specific operations like screenshots, keyboard input, or window management are not enumerated, so minor gaps cannot be ruled out.
Maintenance
Related MCP Connectors
Give AI agents a real cloud Chrome: open sessions, navigate, read pages, click, type and screenshot.
Let AI agents use your real, signed-in Chrome: tabs, clicks, forms, screenshots and video.
AI-powered browser automation — navigate, click, fill forms, and extract data from any website.
Operate Linux, macOS and Windows from your LLM. Every action runs through an auditable allowlist.
Related MCP Servers
- 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
- AlicenseNot gradedqualityBmaintenanceLets AI agents see and control desktop applications through the accessibility layer, enabling clicking, typing, scrolling, dragging, and window/app management across macOS, Windows, and Linux entirely on the local machine.27MIT
- FlicenseNot gradedqualityBmaintenanceLets AI agents drive your real, already-logged-in browsers on macOS in the background without stealing focus, organizing work into tab groups, reading pages as compact accessibility snapshots, and saving repeatable scenarios. Supports Chrome, Edge, Brave, Yandex Browser, and Safari, with per-agent isolation and automatic tab cleanup.-
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to discover and control allowed macOS apps in the background through accessibility trees, window screenshots, and semantic actions over a local stdio interface.MIT