cua-local
Provides tools to control a local macOS computer, including reading app/screen state, mouse movement, clicking, typing, scrolling, dragging, pressing keys, and opening URLs.
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-localopen Safari, navigate to google.com, and type 'weather today'"
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-local
Use ChatGPT with MCP to control your local Mac, similar to Computer Use.
cua-local is a small local bridge that lets ChatGPT, or another MCP-compatible AI client, observe and operate your own Mac in a controlled loop:
observe -> act -> observeIt can expose basic tools for reading app/screen state, moving the mouse, clicking, typing, scrolling, dragging, pressing keys, and opening URLs. Everything runs locally on macOS, while the AI assistant connects through MCP.
How it works
cua-local uses native macOS capabilities:
AppleScript / Apple Events for app control
System Events for keyboard input
screencapturefor screen observationSwift + CGEvent for mouse movement, clicks, scroll, and drag
In other words: it gives ChatGPT a local Computer Use-like control layer for your Mac through MCP. It is inspired by the Computer Use idea, but it is not an official Computer Use client and not a full desktop automation product.
Related MCP server: Automation MCP
Quick start
Requirements:
macOS
Node.js >= 20
Xcode Command Line ToolsRun:
npm run doctor
npm run check
npm run smoke
npm run demonpm run doctor prints a ready-to-copy MCP config for the current checkout.
Does it require DevSpace?
No. cua-local itself is just a local MCP server and can run on its own.
DevSpace is only one possible bridge when you want to call this local MCP server from ChatGPT. If your AI client can launch local MCP servers directly, you do not need DevSpace. If the client runs in the cloud and cannot directly reach your Mac, you need some bridge such as DevSpace, a tunnel, or another remote MCP connection layer.
Typical setups:
Local MCP client -> cua-local -> your Mac
ChatGPT -> DevSpace/tunnel/bridge -> cua-local -> your MacMCP config
Use absolute paths on the target machine:
{
"mcpServers": {
"computer-use-local": {
"command": "node",
"args": ["/ABSOLUTE/PATH/TO/cua-local/cua-local.mjs"],
"cwd": "/ABSOLUTE/PATH/TO/cua-local"
}
}
}Scripts
npm run start # start MCP server over stdio
npm run doctor # check dependencies and macOS permissions
npm run check # syntax-check project scripts
npm run smoke # lightweight core validation
npm run demo # safe observe -> move pointer -> observe sampleTools
list_appsget_app_stateget_screen_statehealth_checkopen_urltype_textpress_keymove_mouseclickscrolldragset_value
Safety
This tool can operate the local computer. Only connect it to MCP hosts you trust.
click blocks common high-risk labels such as Buy, Purchase, Pay, Delete, Remove, Send, Submit, Publish, Share, Update, and Install unless confirm_risk_action=true is explicitly provided.
Do not expose this server to the public internet.
Local files not to commit
cua-local.mcp.json
.env
traces/
/tmp/cua-local-*
~/.cua-local/Limitations
Native app support is partial and app-specific.
Chrome webpage DOM exposure is limited by macOS Accessibility.
Multi-display screenshot stitching still needs hardening.
Trace writing is opt-in via
CUA_LOCAL_TRACE=1orCUA_LOCAL_TRACE_DIR=....
License
MIT. See LICENSE.
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.
Latest Blog Posts
- 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/uxnew/cua-local'
If you have feedback or need assistance with the MCP directory API, please join our Discord server