Communitygithub.com

macOS コントロール — AI Mac 自動化

Claude に 15 個の MCP ツールを介して Mac を直接操作させるスキルです。アプリの起動、ダークモードの切り替え、ファイル検索、スクリーンショット、クリップボード管理などを自然言語で行えます。

macOS コントロール — AI Mac 自動化 とは?

このスキルは、Claude などの AI エージェントが macOS を直接制御できるようにする MCP サーバーです。15 個のツールを通じて、アプリの起動・終了・切り替え、システム情報の取得、ディスプレイやオーディオの設定、通知の送信、Spotlight 検索、ファイル操作、クリップボードの読み書き、スクリーンショット撮影などが可能です。すべての操作は自然言語の指示で実行でき、エージェントがユーザーに代わって Mac を操作する際に非常に有用です。システムコマンドにはタイムアウトやキーワードブロック(rm, sudo, shutdown など)といった安全策が組み込まれており、シェルインジェクションを防ぐため shell=True は一切使用していません。また、外部 API や認証情報は不要で、標準ライブラリのみで動作するため完全に無料です。他の MCP サーバー(ghost-browser, google-mcp, instantly-campaigns)と組み合わせて、ブラウザのスクリーンショット解析やメール添付、クリップボードを経由したテンプレート作成などの高度なワークフローを構築できます。

対応✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/aiagentwithdhruv/skills/tree/HEAD/mac-control

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

macOS コントロール — AI Mac 自動化 は何をしますか?

Claude に 15 個の MCP ツールを介して Mac を直接操作させましょう。アプリの起動、ダークモードの切り替え、ファイル検索、スクリーンショット、クリップボード管理 — すべて自然言語で行えます。

設置場所

プロジェクト: /Users/apple/Aiwithdhruv/AI Development/Claude/Mac-Automation/ MCP サーバー: Mac-Automation/macos_mcp.py

ツール一覧

システム(読み取り専用)

get_system_info()                    # macOS バージョン、チップ、RAM、稼働時間
get_running_apps()                   # 起動中の全可視アプリ
get_disk_usage()                     # ボリュームごとのストレージ使用量

アプリ制御

open_app(app_name="Safari")          # アプリを起動(/Applications/ に対して検証)
close_app(app_name="Notes")          # AppleScript でグレースフル終了
switch_to_app(app_name="Terminal")   # 前面に持ってくる

ディスプレイ & オーディオ

toggle_dark_mode()                   # ライト ↔ ダークを切り替え(即時表示)
set_volume(level=50)                 # 0~100、自動でミュート解除

通知

send_notification(title="Hey", message="授業が始まります!", sound="Glass")
play_sound(sound_name="Ping")        # 利用可能なシステムサウンド 14 種類

ファイル & 検索

spotlight_search(query="請求書.pdf", folder="~/Documents", limit=20)
open_folder(folder_path="~/Desktop") # Finder で開く

クリップボード

get_clipboard()                      # 現在のクリップボードを取得
set_clipboard(text="Hello World")    # クリップボードに書き込み

スクリーンショット

take_screenshot(region="full")       # PNG をデスクトップに保存
take_screenshot(region="window")     # 前面ウィンドウのみ

スキーマ

入力

名前型必須説明
app_namestr場合による.app なしのアプリ名(例:'Safari')
levelint場合による音量 0~100
titlestr場合による通知タイトル
messagestr場合による通知本文
soundstrいいえサウンド名(default/Glass/Ping/Pop など)
querystr場合によるSpotlight 検索クエリ
folderstrいいえ検索範囲を限定するフォルダ
textstr場合によるクリップボードに設定するテキスト
regionstrいいえスクリーンショット領域(full/window)

出力

名前型説明
resultstr人間が読める結果またはエラーメッセージ

認証情報

名前型必須説明
(なし)——認証情報不要 — ローカルの macOS コマンドを使用

組み合わせ可能なツール

  • ghost-browser — スクリーンショット → 解析 → ブラウザ自動操作
  • google-mcp — ファイル検索 → メール添付
  • instantly-campaigns — クリップボード → メールテンプレート

コスト

無料 — 標準ライブラリのみ、API 呼び出しなし。

安全性

  • ブロックされたキーワード: rm, sudo, shutdown, format, erase, passwd, kill
  • アプリ名は /Applications/ に対して検証
  • AppleScript 文字列はサニタイズ
  • すべてのコマンドに 10 秒のタイムアウト
  • shell=True は一切使用なし

Individual skills in this repo

This repo contains 10 individual skills — each has its own dedicated page.

aiagentwithdhruv/skills

Add new Modal webhooks for event-driven execution. Use when user asks to create a webhook, add an endpoint, or set up event triggers.

aiagentwithdhruv/skills

Answer Euron Gen AI Bootcamp doubts instantly. Covers Euri API setup across all frameworks (Python, LangChain, OpenAI SDK, TypeScript, n8n, curl), MCP server setup, common errors, model recommendations, and token limits. Use when someone in the bootcamp asks a question.

aiagentwithdhruv/skills

Manage emails across multiple Gmail accounts with unified tooling. Use when user asks to check email, read inbox, label emails, archive messages, or manage Gmail across accounts.

aiagentwithdhruv/skills

Auto-label Gmail emails into Action Required, Waiting On, and Reference categories. Use when user asks to label emails, triage inbox, categorize emails, or organize Gmail.

aiagentwithdhruv/skills

Scrape Google Maps for B2B leads with deep website enrichment and contact extraction. Use when user asks to find local businesses, scrape Google Maps, generate contractor lists, or build local service business databases.

aiagentwithdhruv/skills

Run Claude orchestrator locally with Cloudflare tunneling. Use when user asks to run locally, start local server, or test webhooks locally.

aiagentwithdhruv/skills

Deploy execution scripts to Modal cloud. Use when user asks to deploy to Modal, push code to cloud, or update Modal functions.

aiagentwithdhruv/skills

Scrape and verify business leads using Apify, classify with LLM, enrich emails, and save to Google Sheets. Use when user asks to find leads, scrape businesses, generate prospect lists, or build lead databases for any industry or location.

aiagentwithdhruv/skills

Query Skool community content using RAG pipeline with vector search. Use when user asks to search Skool knowledge, find community answers, or query Skool content.

aiagentwithdhruv/skills

Scrape Upwork jobs and generate personalized proposals with cover letters. Use when user asks to find Upwork jobs, create Upwork proposals, or apply to Upwork listings.

関連スキル