cua-mac
Click on "Install 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., "@cua-mactake a screenshot of the current screen"
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.
Cua Mac: macOS MCP Server for AI Agents
cua-mac is a macOS Model Context Protocol (MCP) server that gives an AI agent direct access to the user's real Mac host over stdio.
It is built for computer-use workflows where an MCP client needs to click, type, inspect windows, read the accessibility tree, interact with files, and automate native macOS apps instead of a sandboxed VM or browser-only environment.
Why This MCP Server Exists
Most MCP servers expose APIs, databases, or browser automation. This one exposes the host operating system itself.
Use it when you need an AI agent to:
control the macOS cursor and keyboard
inspect and manipulate native app windows
read and write files on the host machine
access clipboard contents
capture screenshots for perception loops
query the focused accessibility tree for UI automation
launch apps and open files or URLs
Related MCP server: MacWright
Key Features
48 MCP tools for host automation, file access, window management, accessibility inspection, and lightweight web search
direct macOS interaction through a Swift helper plus a thin Node MCP server
permission-aware error handling for Accessibility and Screen Recording
structured JSON tool outputs for MCP clients that consume
structuredContentsafer destructive operations with protected-path checks for file and directory deletion
bounded shell command execution with timeout reporting
Who Should Use It
teams building computer-use agents on macOS
MCP client developers who need native OS control
researchers prototyping AI desktop automation
developers integrating Model Context Protocol tools into agent loops
Supported Environment
macOS
Node.js 18+
Swift toolchain available at
/usr/bin/swiftc
This server does not support Linux or Windows.
Installation
git clone https://github.com/ashish200729/personal-ai-computer-mcp.git
cd personal-ai-computer-mcp
npm installThe Swift helper is compiled automatically on first run.
Run The MCP Server
cd /path/to/personal-ai-computer-mcp
node ./src/index.mjsMCP Client Configuration
Use this server in any MCP-compatible client that supports stdio servers.
{
"mcpServers": {
"cua-mac": {
"command": "node",
"args": ["/absolute/path/to/personal-ai-computer-mcp/src/index.mjs"]
}
}
}Tool Categories
Screenshots and Perception
computer_screenshotcomputer_get_screen_sizecomputer_get_cursor_position
Mouse and Keyboard Automation
computer_clickcomputer_double_clickcomputer_movecomputer_dragcomputer_scrollcomputer_mouse_downcomputer_mouse_upcomputer_typecomputer_press_keycomputer_hotkeycomputer_key_downcomputer_key_up
Clipboard and Shell
computer_clipboard_getcomputer_clipboard_setcomputer_run_command
Host File System
computer_file_readcomputer_file_writecomputer_file_existscomputer_directory_existscomputer_list_directorycomputer_create_directorycomputer_delete_filecomputer_delete_directorycomputer_get_file_sizecomputer_open
Apps and Windows
computer_launch_appcomputer_get_active_windowcomputer_get_window_namecomputer_get_window_sizecomputer_get_window_positioncomputer_set_window_sizecomputer_set_window_positioncomputer_activate_windowcomputer_minimize_windowcomputer_maximize_windowcomputer_close_windowcomputer_get_app_windowscomputer_get_desktop_environmentcomputer_set_wallpaper
Accessibility and Discovery
computer_get_accessibility_treecomputer_find_elementcomputer_web_searchcomputer_permissions_statuscomputer_request_permissions
Example Use Cases
macOS Computer Use
An AI agent can capture a screenshot, move the mouse, click a button, type into a native app, and verify the next state with another screenshot.
Native App Automation
A client can inspect the focused window, locate controls through the accessibility tree, and operate Finder, System Settings, browsers, editors, or internal desktop tools.
Host File Operations
An agent can read logs, create directories, write files, inspect file sizes, and open local artifacts with the default macOS handler.
Tool Discovery Workflow
An agent can use computer_web_search for quick discovery, then open the selected URL in the user's default browser with computer_open.
Production Notes
UI coordinate tools use absolute macOS screen coordinates.
computer_screenshotrequires Screen Recording permission.cursor, keyboard, and accessibility tools require Accessibility permission.
computer_run_commandis a fallback. Prefer dedicated tools when they exist.computer_run_commandsupportstimeout_msand returnstimed_out.computer_find_elementrequires at least one ofrole,title, orvalue.file and directory deletion reject a small set of protected paths such as
/,/System,/Users, the current working directory, and the current home directorywindow ids are emitted as
pid:index
Troubleshooting
Accessibility Actions Fail
Call computer_permissions_status first. If Accessibility access is missing, call computer_request_permissions and approve the MCP client or terminal in:
System Settings > Privacy & Security > Accessibility
Screenshots Fail
Grant Screen Recording permission to the MCP client or terminal in:
System Settings > Privacy & Security > Screen Recording
Screen Size Returns An Error
That means the current macOS session is not exposing valid display dimensions to the helper process. In practice this usually points to a headless, locked, or otherwise restricted session.
Repository Metadata Recommendations
To improve GitHub discovery and click-through rate further, configure these repository settings in GitHub:
description:
macOS MCP server for AI agents, computer use, native app automation, screenshots, accessibility, and host OS controlwebsite:
https://github.com/trycua/cua/tree/main/mcptopics:
mcp,model-context-protocol,macos,ai-agents,computer-use,desktop-automation,accessibility,host-automation,tool-use,agent-toolssocial preview image: a 1280x640 image showing macOS automation plus the phrases
macOS MCP ServerandAI Agent Computer Useif
trycua/cuais intended to be open source, add a repository-levelLICENSEfile at the repo root so GitHub can classify it as open source
Search Intent This README Covers
This README is intentionally optimized for queries such as:
macOS MCP server
Model Context Protocol macOS
AI agent computer use macOS
desktop automation MCP
native app automation for AI agents
host OS control for MCP clients
macOS accessibility automation server
Related Project Links
repository root:
https://github.com/trycua/cuapackage path:
https://github.com/trycua/cua/tree/main/mcp
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceAn MCP server for macOS that enables AI agents to control the desktop GUI through keyboard input, mouse actions, and screen captures. It provides stable low-level primitives for UI automation and agent-driven desktop workflows.MIT
- Alicense-qualityDmaintenanceAn MCP server for reliable native macOS desktop control from AI agents, providing 72 tools for screenshots, mouse, keyboard, scroll, clipboard, window management, and more.MIT
- Alicense-qualityCmaintenanceStandalone MCP server that gives AI agents full GUI control over macOS — screenshots, mouse, keyboard, apps, clipboard, and multi-display — with zero private dependencies.16MIT
- Alicense-qualityDmaintenanceMCP server that enables AI to fully control macOS — mouse, keyboard, terminal, screenshots, window management, UI element detection, and provides AI-optimized information reporting.32MIT
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Let ChatGPT, Claude & Cursor use your Mac: email, calendar, iMessage, Teams, files. Local, free.
Personal assistant MCP server with search, execute, packages, jobs, secrets, and integrations.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ashish200729/personal-ai-computer-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server