
zooeyii/macos-computer-use-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
ネイティブの macOS コンピューター制御 (マウス、キーボード、スクリーンショット、アプリ管理) を MCP 互換のコーディング エージェントに提供するスタンドアローン MCP サーバー - 公開ランタイムから抽出および再実装...
概要
ネイティブの macOS コンピューター制御 — マウス、キーボード、スクリーンショット、およびアプリ管理 — MCP 互換エージェントのスタンドアローン MCP サーバー。 [https://github.com/user-attachments/assets/130bee07-1f87-4291-8483-fc47ec51e493] — MCP サーバーは、アプリアクセスを許可し、2560×1664 ネイティブスクリーンショットをキャプチャし、画面上の要素をクリックし、URL を開きます。これにより、標準の MCP ツールがコーディングエージェントから呼び出されるすべてのオーケストレーションが行われます。 以下を含むモデルコンテキストプロトコルをサポートするクライアントと連携します。 - (claude mcp add) - (~/.codex/config.toml) - (~/.cursor/mcp.json) - その他のMCP対応エージェントまたはIDE MCP ツールとして macOS システム制御 を公開しています.
概要(AI 翻訳)
ネイティブの macOS コンピューター制御 — マウス、キーボード、スクリーンショット、およびアプリ管理 — MCP 互換エージェントのスタンドアローン MCP サーバー。
デモ
[https://github.com/user-attachments/assets/130bee07-1f87-4291-8483-fc47ec51e493]
スクリーンショットとアクションのクリック MCP サーバーは、アプリアクセスを付与し、2560×1664 のネイティブスクリーンショットをキャプチャし、画面上の要素をクリックし、URL を開きます。これにより、標準の MCP ツールがコーディングエージェントから呼び出すことができます。
互換性
以下を含むモデルコンテキストプロトコルをサポートするクライアントと連携します。
- ロードコード ([[T1]))
- OpenAI Codex ([[[T2])])
- カーソル ([[T3])
- 他のMCP互換の代理店かIDE
使い方
MCP ツールとして macOS システム制御 を公開しています。 macOS ネイティブモジュールを使用して、低レベルの入力シミュレーションとシステム API を使用します。
-[@ant/computer-use-input — 低レベルのマウスとキーボードイベント注射
-[@ant/computer-use-swift — macOS ネイティブ API で表示管理、アプリ制御、スクリーンショットを表示
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
macos-computer-use-mcp
A standalone MCP server providing native macOS computer control — mouse, keyboard, screenshots, and app management — for any MCP-compatible agent.
Demo
https://github.com/user-attachments/assets/130bee07-1f87-4291-8483-fc47ec51e493
Screenshot & Click in action — The MCP server grants app access, captures a 2560×1664 native screenshot, clicks on-screen elements, and opens URLs — all orchestrated through standard MCP tool calls from a coding agent.
Compatibility
Works with any client that supports the Model Context Protocol, including:
- Claude Code (
claude mcp add) - OpenAI Codex (
~/.codex/config.toml) - Cursor (
~/.cursor/mcp.json) - Any other MCP-compatible agent or IDE
How It Works
The server exposes macOS system control as MCP tools. Under the hood it uses macOS native modules for low-level input simulation and system APIs:
@ant/computer-use-input— Low-level mouse and keyboard event injection@ant/computer-use-swift— macOS native APIs for display management, app control, and screenshots
The MCP server process communicates over stdio, so any agent can spawn it as a subprocess and call its tools via the standard JSON-RPC protocol.
Available Tools (24)
| Tool | Description |
|---|---|
request_access |
Request Accessibility permission for an app |
screenshot |
Capture the full screen |
zoom |
Zoom into a screen region |
left_click |
Left-click at coordinates |
right_click |
Right-click at coordinates |
middle_click |
Middle-click at coordinates |
double_click |
Double-click at coordinates |
triple_click |
Triple-click at coordinates |
type |
Type a string of text |
key |
Press a key or key combination |
cursor_position |
Get current mouse position |
mouse_move |
Move the cursor to coordinates |
scroll |
Scroll at coordinates |
drag |
Drag from one point to another |
left_click_drag |
Left-click and drag |
get_display_size |
Get screen dimensions |
list_displays |
List all connected displays |
get_frontmost_app |
Get the currently active application |
list_installed_apps |
List all installed applications |
open_app |
Open an application by name or bundle ID |
close_app |
Close an application |
focus_app |
Bring an application to the foreground |
get_screen_content |
Get accessibility tree for screen content |
wait |
Wait for a specified duration |
Installation
curl -fsSL https://raw.githubusercontent.com/Zooeyii/macos-computer-use-mcp/main/install.sh | bash
Or manually:
git clone https://github.com/Zooeyii/macos-computer-use-mcp.git ~/.local/share/macos-computer-use-mcp
cd ~/.local/share/macos-computer-use-mcp
npm install
npm run build
Configuration
Claude Code
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →設定
{
"mcpServers": {
"computer-use-standalone": {
"command": "node",
"args": ["$HOME/.local/share/macos-computer-use-mcp/dist/cli.js"]
}
}
}