loading…
Search for a command to run...
loading…
Enables comprehensive control over macOS GUI elements including mouse, keyboard, window management, and screen capture. It allows for automated system interacti
Enables comprehensive control over macOS GUI elements including mouse, keyboard, window management, and screen capture. It allows for automated system interactions and script execution while maintaining safety by blocking potentially destructive deletion commands.
macOS のマウス、キーボード、画面キャプチャをフル制御できる MCP サーバー。 削除系コマンドのみブロック、それ以外は全機能使用可能。
| カテゴリ | 機能 | 詳細 |
|---|---|---|
| 🖱️ マウス | mouse_click |
指定座標をクリック |
mouse_double_click |
ダブルクリック | |
mouse_right_click |
右クリック | |
mouse_move |
カーソル移動 | |
mouse_drag |
ドラッグ操作 | |
mouse_scroll |
スクロール (上下左右) | |
mouse_get_position |
現在のカーソル位置取得 | |
| ⌨️ キーボード | keyboard_type |
テキスト入力 |
keyboard_press |
キー押下 (修飾キー対応) | |
keyboard_shortcut |
共通ショートカット実行 | |
| 📸 画面 | screen_capture |
スクリーンショット (全画面/領域) |
screen_get_size |
画面サイズ取得 | |
screen_get_color |
ピクセル色取得 | |
| 🪟 ウィンドウ | window_list |
開いているウィンドウ一覧 |
window_focus |
アプリをアクティブ化 | |
window_move |
ウィンドウ移動 | |
window_resize |
ウィンドウリサイズ | |
| 🚀 フルパワー | run_applescript |
AppleScript 実行 |
run_shell |
シェルコマンド実行 |
brew install cliclick
# 確認
cliclick -V
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 が生成される
macos-control-1.0.0.mcpb をダブルクリック.mcpb ファイルを選択~/.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 -rrmdirunlinkdelete file, delete folder, delete itemmove ... to trashempty trashkeyboard_shortcut で使用可能なショートカット:
| ショートカット名 | キー |
|---|---|
copy |
Cmd+C |
paste |
Cmd+V |
cut |
Cmd+X |
undo |
Cmd+Z |
redo |
Cmd+Shift+Z |
save |
Cmd+S |
select_all |
Cmd+A |
find |
Cmd+F |
new |
Cmd+N |
open |
Cmd+O |
close |
Cmd+W |
quit |
Cmd+Q |
tab |
Cmd+T |
refresh |
Cmd+R |
| 変数名 | 説明 | デフォルト |
|---|---|---|
TIMEOUT |
コマンドタイムアウト (ms) | 30000 |
LOG_OPERATIONS |
操作ログ出力 | true |
brew install cliclick
一部の AppleScript 操作には追加の権限が必要な場合があります。 システム設定 → プライバシーとセキュリティ → オートメーション で許可を確認してください。
MIT
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"macos-gui-control-mcp": {
"command": "npx",
"args": []
}
}
}