
macOS MCP Server
io.github.deploymenttheory由 GitHub 帳號 deploymenttheory 發布v0.2.1更新於 Oct 24, 2026
Local macOS 27 desktop automation through MCP on Apple silicon.
概覽
本機 MCP 伺服器,讓 AI 代理透過輔助使用樹、輸入、截圖、shell 與檔案系統感知並操控 macOS 桌面。
- 可以做什麼
- 感知與擷取螢幕:輔助使用樹快照、截圖、顯示器清單與工作階段錄影
- 操控介面:點擊、輸入、叫用、讀取文字、捲動、移動、快速鍵、等待與多選編輯
- 控制應用程式、視窗、剪貼簿、程序與通知
- 管理系統:偏好設定、launchd 工作、shell 指令、啟動可執行檔、檔案系統、套件、統一記錄、網路與服務
- 擷取網頁內容,執行宣告式計畫並套用的流程,並在測試中斷言或蒐集證據
- 透過裝置政策引擎、對外連線允許清單、雜湊鏈稽核記錄與終止開關管控每一次呼叫
- 適用情境
- 當代理需要操作 Apple 晶片上的真實 macOS 桌面時使用:介面回歸測試、第一線支援工單分流,或需要應用程式、視窗、shell 與檔案的腳本化流程。它適用於你能掌控並可用政策治理的機器,而非不受信任的工作負載。
- 執行需求
- 需要 macOS 27 或更新版本,且為 Apple 晶片。可透過 Homebrew cask、Claude Desktop 的簽署 .mcpb 擴充功能安裝,或由任何本機 MCP 用戶端以 stdio 子指令啟動執行檔。需一次性授予輔助使用與螢幕錄製權限;persona、工具集、唯讀模式、政策設定與憑證檔案透過命令列參數傳入。未宣告任何環境變數或標頭。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 macOS MCP Server,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
macos-mcp-server
A Model Context Protocol server that bridges AI agents to the macOS desktop: the accessibility tree, synthetic mouse and keyboard input, screenshots, window and application control, the shell, preferences, launchd, processes, the filesystem and web scraping. No computer-vision model is required: the agent perceives the UI through the accessibility tree, the way assistive technology does.
It is the macOS counterpart of windows-mcp-server: the same 35 tools, toolsets, personas, policy documents and journeys. What separates both from a plain automation bridge is that every agent action is gated on live device posture, the agent's network egress is constrained, and both are recorded in a tamper-evident audit chain the agent cannot switch off.
- Device policy engine: every tool call, resource read and prompt fetch is evaluated against live device signals (MDM enrolment, Platform SSO, boot security, FileVault, SIP, the sealed system volume) before it runs, and refused, warned or contained by policy. Rules match by tool, toolset or annotation, so a screenshot is not gated like a shell command. → Policy configuration
- Egress allowlist: a loopback proxy admits only the domains you declare, optionally backed by pf rules so the console user, or the whole machine, cannot go around it. → Egress
- Tamper-evident transparency: a hash-chained audit log (keyed, anchored to the unified log), heartbeat, rug-pull detection, whole-session recording, evidence bundles and an out-of-band tiered kill switch. None of it is agent-disableable. → Security architecture
Several tools (Shell, LaunchExecutable, Defaults, LaunchdJob, FileSystem, Process, App) have full user-level system access with no sandboxing. That is the design. Run untrusted workloads in a guest, see VM isolation, and read SECURITY.md for what is and is not in scope as a vulnerability.
Requires macOS 27 or later on Apple silicon. Apple does not support Intel Macs on macOS 27.
Quick start
For Claude Desktop, install the .mcpb from the latest GitHub
release under
Settings > Extensions > Advanced settings > Install Extension. It contains
the signed server binary and requests the required macOS grants on first launch.
Any other local MCP client can launch the binary with the stdio subcommand:
→ Getting started covers Claude Code, Cursor, Codex CLI and Claude Desktop, and what to do before pointing this at a machine you care about. → Permissions explains the privacy grants and why the signing identity matters.
Not sure this is for you? If you have to approve it on a fleet, read Deciding to deploy this. If you have a job to do, see the walk-throughs for a UI regression suite or a first-line support queue.
Features
Tools
Four names differ from the Windows server because they name a different
subsystem: Defaults (Registry), Shell (PowerShell), LaunchdJob
(ScheduledTask) and UnifiedLog (EventLog). Everything else, including the
journey vocabulary, is identical.
Resources: macos://desktop/snapshot, macos://desktop/displays,
macos://session/recording, macos://system/info. Prompts: rpa-journey,
triage-support-issue, capture-evidence.
What cannot be automated, by design
The login window, the lock screen, Touch ID and password sheets, TCC consent dialogs, and the contents of secure text fields. These are the system's own trust boundaries; the server does not try to cross them.
Security
📐 Security architecture · 📄 Policy configuration · 🔎 Security assessment
A policy engine sits between the MCP client and the tools:
With no --policy-config the built-in default applies: the engine is
present, every declared signal is evaluated and every verdict recorded, and
nothing is refused. Adopting the engine cannot break a working deployment
before its policy is written.
Seven starting points ship in policy/examples/: audit.json (adopt first,
refuses nothing), secure.json, enterprise.json, locked-down.json,
egress.json, dual-control.json and evidence-export.json.
Trust model
The local device signals are auditable defence-in-depth, not a hard boundary: root can spoof them, and privacy grants are keyed on the signing identity rather than on a hash of the binary. The containment layers raise the cost of, and record, in-session compromise; pair them with MDM, Gatekeeper and notarization, Platform SSO and Conditional Access, and FileVault. Two macOS specifics are worth knowing before trusting a posture: pf filters by socket owner, so the "scoped" egress tier bounds the console user rather than named applications, and the posture signals are Windows-named with a documented macOS reading. Both are spelled out in the assessment.
MCP conformance
Every PR runs the required MCP spec gate against the latest published MCP revision. It captures the product's actual advertised surface and raw wire responses, checks the definitions and safe method calls against the published schema, and fails if a newer revision needs assessment. The check covers the features this server implements, without assigning a percentage for optional features it does not implement. See MCP spec gate.
Architecture
All accessibility, event and AppKit work runs on the process main thread
through Desktop.Do; tool handlers receive their dependencies from the request
context via receiving middleware.
Development
Releases are cut by release-please and built by release.yml: one arm64 binary,
Developer ID signed and notarized, in a tarball and Claude Desktop .mcpb.
The release also carries a CycloneDX SBOM and keyless cosign signatures; its
tested cask is published to deploymenttheory/homebrew-tap. The release stays
draft until its assets pass validation. See Getting started
for installation and upgrades.
Documentation
docs/: setup and configuration guides, the security architecture and assessment, the journey vocabulary and the conformance report.
License
MIT, see LICENSE.
來源:README.md,提交 8c83a77
工具
0版本歷史
1- v0.2.1最新Oct 9, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分