Native macOS computer control for Claude via Anthropic's Computer Use API or MCP (Model Context Protocol).
Caution
Claude can control your entire Mac. Be careful what you authorize.
brew install cliclickRequired: macOS 15.7+, Python 3.12+
git clone https://github.com/tomascupr/mac_computer_use.git
cd mac_computer_use
python3.12 -m venv venv
source venv/bin/activate
pip install -r requirements.txtUse with Claude Desktop, Claude Code, or any MCP client:
python mcp_server.pyClaude Desktop Configuration (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"mac-computer-control": {
"command": "/path/to/venv/bin/python",
"args": ["/path/to/mac_computer_use/mcp_server.py"]
}
}
}Available Tools:
screenshot- Capture screen as imageclick/click_at- Mouse clickstype_text- Type textpress_key- Keyboard (supports combos likecmd+c)mouse_move- Move cursorright_click/double_click- Mouse actions
Interactive web interface:
# Create .env file
echo "API_PROVIDER=anthropic" >> .env
echo "ANTHROPIC_API_KEY=your_key_here" >> .env
streamlit run streamlit.py- Native macOS screen capture and control
- No Docker required
- Works with Claude Desktop, Claude Code, Cursor, and other MCP clients
- Automatic resolution scaling for optimal performance
- Keyboard shortcuts and mouse control via cliclick
- Recommended resolution: 1366x768 (auto-scaled from higher resolutions)
- API subject to change - see Anthropic release notes