Focus-free macOS control for AI agents: drive your real Mac apps in the background, no stolen focus.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Drive your Mac with any LLM: focus-free, in the background, over MCP.
Hunch is an MCP server that gives an LLM agent hands on your Mac: your installed apps, your logged-in sessions, your files, without taking over your screen. While you keep working in the foreground, an agent can read a background app's UI, click its buttons, drive Mail or Music by AppleScript, fill a web form, or move files. It works on real native apps, not just a browser.
Works best with modern LLMs. Hunch ships a detailed playbook as MCP server instructions; capable tool-using models (Claude Sonnet/Opus-class and up) follow it well. Smaller models may pick clumsier paths (screenshots and keystrokes instead of tree reads and clicks).
Hunch always prefers the most direct layer. It's faster, more reliable, and (except the last) never touches your screen:
| Layer | Tools | What it's for |
|---|---|---|
| OS-API | trash file_op open_file clipboard_* launch_app β¦ | files, clipboard, app lifecycle, via direct API calls |
| AppleScript | applescript | scriptable apps: Mail, Messages, Notes, Calendar, Music, Finder, Safari β¦ |
| Web | web_open web_snapshot web_act web_login β¦ | Safari through the bundled extension, or Chromium/Electron through CDP, driven in the background |
| Accessibility | snapshot act | any native app's UI: read the tree, click/select/type by reference |
A gated last resort (screenshot + coordinate clicks/keystrokes) exists for apps whose
accessibility tree is truly empty. It steals focus, so it asks you first.
For focus-free visual work in Safari, open a dedicated extension-owned window with
web_open(..., app="Safari", new_window=True). web_screenshot captures that background
window, and web_act can use the returned pixel coordinates without moving the shared mouse,
keyboard, or foreground window. The extension remains necessary: it owns the isolated Safari
window and dispatches renderer-local actions that a physical screen capture cannot.
"MCP server" undersells how local this is. hunch serve is a plain Python process that your
MCP host (Claude Desktop, Cursor, β¦) spawns as a child process and talks to over
JSON-RPC on stdin/stdout (MCP's stdio transport). There is no HTTP endpoint, no port
Hunch listens on, no daemon, and no telemetry. When your host quits, Hunch is gone.
The tools are direct macOS API calls in-process: the Accessibility framework via pyobjc,
osascript for AppleScript, OS APIs for files/clipboard, a local WebSocket to Chromium's
DevTools port, and the signed local Safari extension bridge. The optional Safari companion
uses an authenticated loopback connection solely to relay typed commands to Apple's sandboxed
extension. Browsing traffic still comes from the selected browser. What the model sees is
whatever the tools return through your host; nothing else leaves the machine.
Hunch is measured against other macOS computer-use agents on a real, logged-in Mac in
mac-agent-bench β same brain, different hands:
identical claude -p per task, only the MCP adapter differs. It scores task success with programmatic
checkers and disturbance: how much the agent hijacks your cursor and foreground while it works.
Across 5 complex multi-step tasks (n=3):
| Tool | Success | Cost | Disturbance (focusΒ·cursor) | Timeouts |
|---|---|---|---|---|
| Hunch | 15/15 | $1.52 | 1Β·0 | 0 |
| Peekaboo | 13/15 | $14.60 | 22Β·16 | 2 |
| cua-driver | 15/15 | $17.70 | 22Β·0 | 0 |
Perfect reliability, ~10x cheaper, ~5β10x faster, and it essentially never touches your screen (0
cursor moves, 1 focus switch across 15 trials). Full methodology and per-task tables are in the
benchmark repo.
macOS 13+. From PyPI (the distribution is hunch-sdk; the import and CLI are hunch):
Or via Homebrew β best if you don't manage Python environments; it bundles an isolated Python at a stable path, which makes the macOS permission grants the most predictable:
Then, one time:
Restart your MCP host and ask it to "use hunch to β¦".
macOS trust attaches to the app that runs the server, meaning your MCP host (Claude Desktop,
Cursor, your terminal), not "hunch" itself. hunch setup walks you through it:
hunch doctor reports what's granted. Note: its Accessibility line reflects the terminal you ran
it from; the server inherits the host's grant.
Hunch is also an importable library β the same focus-free primitives as the MCP tools, driven
deterministically from your own Python (a cron job, a test harness, your own agent loop), no LLM
required. The distribution is hunch-sdk; the import is hunch:
Constructor knobs: app (initial snapshot target), confirm="dialog"|"off" (see below),
check_permissions (Accessibility check up front), simultaneous (never touch the
foreground/cursor/keyboard), cdp_port.
To reveal hover menus or tooltips in a Chromium/Electron CDP session, use a ref
from the latest web_snapshot:
The MCP equivalent is web_act with the same action. Hover sends a renderer-local
mouse-move event, without a click, app activation, or movement of the Mac cursor.
Its receipt is performed_unverified unless an explicit postcondition verifies
the requested field. Safari returns unsupported (a detailed call returns blocked
with zero attempted actions); native act does not advertise hover.
AccessibilityNotGranted with instructions. screenshot() additionally needs
Screen Recording.~/.hunch/config.json
gates as the MCP server. Hunch(confirm="off") auto-approves for that instance only β for
unattended scripts, with the same caveats as auto_approve_all.REFUSED); the SDK raises only
ApprovalDenied (user declined a dialog), AccessibilityNotGranted, WebNotOpen
(.web before .web.open()), StaleRef (re-snapshot), and HunchError when a CDP
browser can't be opened (web.restart() recovers a stale instance).mac.web.fill_login(service) / fill_secret(service, ref) type Keychain
values straight into the page and never return them; domain binding is enforced.web.restart()/web.login() kill
whatever holds the port.Runnable scripts live in examples/.
mac.agent)The instance SDK gives you deterministic primitives. The agent loop puts an LLM in the driver's seat: you hand it a task in plain English and it drives the Mac through those same primitives β on your machine with your logged-in apps. Pick your provider β Anthropic Claude or OpenAI Codex β once at construction; everything after is provider-agnostic. It's an optional extra (keeps the base install free of the model SDKs):
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/hunch)<a href="https://allmcps.com/mcp/hunch"><img src="https://allmcps.com/api/badge/hunch?style=directory" alt="Hunch on AllMCPs" /></a>