macOS GUI Control MCP
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., "@macOS GUI Control MCP Take a screenshot of my screen and describe what you see."
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.
macOS GUI Control MCP - Full Power Edition
macOS のマウス、キーボード、画面キャプチャをフル制御できる MCP サーバー。 削除系コマンドのみブロック、それ以外は全機能使用可能。
機能一覧
カテゴリ | 機能 | 詳細 |
🖱️ マウス |
| 指定座標をクリック |
| ダブルクリック | |
| 右クリック | |
| カーソル移動 | |
| ドラッグ操作 | |
| スクロール (上下左右) | |
| 現在のカーソル位置取得 | |
⌨️ キーボード |
| テキスト入力 |
| キー押下 (修飾キー対応) | |
| 共通ショートカット実行 | |
📸 画面 |
| スクリーンショット (全画面/領域) |
| 画面サイズ取得 | |
| ピクセル色取得 | |
🪟 ウィンドウ |
| 開いているウィンドウ一覧 |
| アプリをアクティブ化 | |
| ウィンドウ移動 | |
| ウィンドウリサイズ | |
🚀 フルパワー |
| AppleScript 実行 |
| シェルコマンド実行 |
Related MCP server: Automation MCP
前提条件
1. cliclick インストール (必須)
brew install cliclick
# 確認
cliclick -V2. macOS 権限設定
システム設定 を開く
プライバシーとセキュリティ → アクセシビリティ
+ ボタンで Claude を追加
同様に 画面収録 にも Claude を追加
3. Node.js 18+
node --version # v18.0.0 以上ビルド
cd macOS-GUI-Control-MCP
# 依存関係インストール
npm install
# MCPB CLI インストール
npm install -g @anthropic-ai/mcpb
# パッケージ化
mcpb pack .
# → macos-control-1.0.0.mcpb が生成されるインストール方法
方法 A: Claude Desktop にインストール (推奨)
A-1. ダブルクリック (最も簡単)
macos-control-1.0.0.mcpbをダブルクリックClaude Desktop が開いてインストールダイアログ表示
インストール をクリック
A-2. 設定画面から
Claude Desktop → 設定 → デスクトップアプリ → 拡張機能
展開済み拡張機能をインストール をクリック
.mcpbファイルを選択
方法 B: Claude Code で直接使用
~/.claude.json に以下を追加:
{
"mcpServers": {
"macos-control": {
"command": "node",
"args": ["/path/to/macOS-GUI-Control-MCP/server/index.js"],
"env": {
"TIMEOUT": "30000",
"LOG_OPERATIONS": "true"
}
}
}
}動作確認
新しいチャットで以下を試してみてください:
スクリーンショット撮って
マウスの現在位置教えて
Safari を開いて使用例
マウス操作
「座標 500, 300 をクリックして」
「マウスを 100, 100 から 500, 500 にドラッグして」
「現在のカーソル位置を教えて」
「下に3回スクロールして」キーボード操作
「Hello World とタイプして」
「Cmd+C を押して」
「コピーのショートカットを実行して」
「Enter キーを押して」画面操作
「スクリーンショット撮って」
「画面サイズ教えて」
「座標 100, 100 のピクセル色を取得して」ウィンドウ操作
「開いてるウィンドウ一覧見せて」
「Safari をアクティブにして」
「Terminal を座標 0, 0 に移動して」
「Finder のウィンドウを 800x600 にリサイズして」フルパワー機能
「シェルで ls -la を実行して」
「AppleScript で Music アプリの現在の曲を取得して」
「シェルで pwd を実行して」ブロックされるコマンド (削除のみ)
以下のパターンは安全のためブロックされます:
シェルコマンド
rm,rm -rf,rm -rrmdirunlink
AppleScript
delete file,delete folder,delete itemmove ... to trashempty trash
キーボードショートカット一覧
keyboard_shortcut で使用可能なショートカット:
ショートカット名 | キー |
| Cmd+C |
| Cmd+V |
| Cmd+X |
| Cmd+Z |
| Cmd+Shift+Z |
| Cmd+S |
| Cmd+A |
| Cmd+F |
| Cmd+N |
| Cmd+O |
| Cmd+W |
| Cmd+Q |
| Cmd+T |
| Cmd+R |
環境変数
変数名 | 説明 | デフォルト |
| コマンドタイムアウト (ms) | 30000 |
| 操作ログ出力 | true |
トラブルシューティング
cliclick が見つからない
brew install cliclickアクセシビリティ権限エラー
システム設定 → プライバシーとセキュリティ → アクセシビリティ
Claude (またはターミナル) を追加
アプリを再起動
画面収録権限エラー
システム設定 → プライバシーとセキュリティ → 画面収録
Claude (またはターミナル) を追加
アプリを再起動
AppleScript エラー
一部の AppleScript 操作には追加の権限が必要な場合があります。 システム設定 → プライバシーとセキュリティ → オートメーション で許可を確認してください。
ライセンス
MIT
Available Tools
19 toolskeyboard_pressB
Press a key or key combination (e.g., 'enter', 'cmd+c', 'shift+tab')
Inputs: key (required), modifiers.
keyboard_shortcutC
Execute common keyboard shortcut
Inputs: shortcut (required).
keyboard_typeC
Type text at current cursor position
Inputs: text (required).
mouse_clickC
Left-click at screen coordinates
Inputs: x (required), y (required).
mouse_double_clickC
Double-click at coordinates
Inputs: x (required), y (required).
mouse_dragC
Drag from point A to point B
Inputs: from_x (required), from_y (required), to_x (required), to_y (required).
mouse_get_positionB
Get current cursor position
Inputs: no named parameters.
mouse_moveB
Move cursor to position (without clicking)
Inputs: x (required), y (required).
mouse_right_clickC
Right-click at coordinates
Inputs: x (required), y (required).
mouse_scrollC
Scroll in a direction
Inputs: direction (required), amount.
run_applescriptA
Run arbitrary AppleScript code (full power, deletion blocked)
Inputs: script (required).
run_shellB
Run shell command (full power, deletion blocked)
Inputs: command (required).
screen_captureC
Take a screenshot (full screen or region)
Inputs: region.
screen_get_colorC
Get pixel color at coordinates
Inputs: x (required), y (required).
screen_get_sizeB
Get main screen dimensions
Inputs: no named parameters.
window_focusC
Focus/activate an application
Inputs: app_name (required).
window_listB
List all visible windows
Inputs: no named parameters.
window_moveC
Move application window to position
Inputs: app_name (required), x (required), y (required).
window_resizeC
Resize application window
Inputs: app_name (required), width (required), height (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 19 tools
Every tool has a clearly distinct purpose with no ambiguity. The tools are organized into logical categories (keyboard, mouse, screen, window, execution), and even within categories like mouse operations, each tool performs a specific, non-overlapping action (click, double-click, drag, move, etc.).
Tool names follow a consistent verb_noun pattern throughout (e.g., keyboard_press, mouse_click, screen_capture, window_list). All names use snake_case consistently, and verbs are appropriately descriptive for their actions, making the set highly predictable and readable.
With 19 tools, this is well-scoped for macOS GUI control, covering input (keyboard, mouse), output (screen), window management, and execution (AppleScript, shell). Each tool earns its place by addressing a specific aspect of GUI automation without redundancy, making the count appropriate for the domain.
The tool surface provides complete coverage for macOS GUI control, including input simulation (keyboard and mouse actions), screen interaction (capture, color, size), window management (list, focus, move, resize), and execution capabilities (AppleScript, shell). There are no obvious gaps, and agents can perform comprehensive GUI automation tasks without dead ends.
Maintenance
Related MCP Connectors
Securely control computers you explicitly pair through files, terminals, processes, screenshots, desktop UI/input, clipboard, browser automation, diagnostics, and document tools.
Connect AI assistants to your approved computer for files, commands, browser and desktop tasks.
Operate Linux, macOS and Windows from your LLM. Every action runs through an auditable allowlist.
Use your Mac, Windows or Linux computer from ChatGPT, Claude or Codex: files, commands, documents.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables the execution of AppleScript and JavaScript for Automation (JXA) on macOS to control applications, system events, and shell commands. It provides native automation capabilities with a security layer that permits most operations while specifically blocking file deletion commands.16MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to automate macOS desktop tasks including mouse control, keyboard input, screenshots, window management, and UI interaction.418MIT
- FlicenseNot gradedqualityCmaintenanceEnables macOS GUI automation via screenshots, mouse/keyboard control, accessibility tree inspection, and app/window management.1-
- AlicenseAqualityBmaintenanceProvides full control of a macOS system, enabling AI agents to execute shell commands, run AppleScript, manage files and processes, and perform human-like GUI interactions such as clicking, dragging, scrolling, and typing, with a screenshot-based perception loop.26244 npmMIT