
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 分