Memungkinkan AI agent untuk melihat dan mengoperasikan aplikasi macOS melalui akses UI terstruktur, screenshot, dan OCR.
Juga dikenal sebagai wende/macbeth
- Stars
- 4
- Tools
- —
- Unduhan, 30 hari
- —
- Versi terbaru
- 0.2.4
- Commit terakhir
- 20 Sep 2026
- Lisensi
- MIT
Apa itu Macbeth MCP?
Macbeth adalah MCP server. Memungkinkan AI agent untuk melihat dan mengoperasikan aplikasi macOS melalui akses UI terstruktur, screenshot, dan OCR.
Ringkasan dibuat dari README proyek
Tentang Macbeth MCP server
Macbeth menyediakan layer kontrol yang memungkinkan AI agent berinteraksi dengan aplikasi macOS menggunakan data UI terstruktur, screenshot, dan OCR. Tool ini berfungsi sebagai jembatan bagi agent untuk melihat dan mengoperasikan interface berbasis native maupun Electron. Developer dapat mengintegrasikannya melalui local stdio MCP server menggunakan npx atau melalui TypeScript API khusus. Sistem ini dirancang untuk berjalan pada macOS 14 atau yang lebih baru dan memerlukan Node.js 20 atau versi di atasnya.
Alih-alih hanya mengandalkan koordinat visual, server ini memprioritaskan accessibility trees untuk melakukan query pada role, label, dan value. Jika metadata hilang atau tidak lengkap, sistem akan menggunakan fallback ke ScreenCaptureKit dan Vision OCR untuk menginterpretasikan layar. Macbeth menyertakan built-in skills untuk aplikasi spesifik seperti Logic Pro, System Settings, dan Mail, yang membantu agent menavigasi workflow yang kompleks. Pengguna harus memberikan izin accessibility dan screen recording untuk mengaktifkan kemampuan interaksi penuh.
Apa yang bisa Anda lakukan dengannya
- 1Automasi software kreatif yang kompleksInstruksikan agent untuk menyesuaikan pengaturan di dalam alat audio profesional seperti Logic Pro.
- 2Mengelola konfigurasi sistemMinta AI untuk memeriksa dan melaporkan status pengaturan firewall macOS saat ini.
- 3Ekstraksi teks dari jendela aplikasiGunakan OCR untuk mengambil semua teks yang terlihat dari jendela aplikasi tertentu seperti Notes.
- 4Mengoperasikan aplikasi ElectronNavigasi melalui aplikasi yang tidak memiliki API standar dengan menggunakan interface yang terbuka.
Ditulis berdasarkan README proyek. Setiap use case diperiksa terhadap kutipan dari README tersebut.
Cara menginstal Macbeth MCP
Format diverifikasi 10 Nov 2026Tambahkan ke CursorTambahkan ke GooseInstal Macbeth MCP di Claude Code
$ claude mcp add macbeth -- npx -y macbethInstal Macbeth MCP di Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"macbeth": {
"command": "npx",
"args": [
"-y",
"macbeth"
]
}
}
}Instal Macbeth MCP di VS Code
.vscode/mcp.json
{
"servers": {
"macbeth": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"macbeth"
]
}
}
}Instal Macbeth MCP di VS Code CLI
$ code --add-mcp '{"name":"macbeth","type":"stdio","command":"npx","args":["-y","macbeth"]}'Instal Macbeth MCP di Claude Desktop
claude_desktop_config.json
{
"mcpServers": {
"macbeth": {
"command": "npx",
"args": [
"-y",
"macbeth"
]
}
}
}Instal Macbeth MCP di Codex
$ codex mcp add macbeth -- npx -y macbethInstal Macbeth MCP di Codex config.toml
~/.codex/config.toml
[mcp_servers.macbeth] command = "npx" args = ["-y", "macbeth"]
Instal Macbeth MCP di Gemini CLI
$ gemini mcp add -s user macbeth npx -- -y macbethInstal Macbeth MCP di Gemini settings.json
~/.gemini/settings.json
{
"mcpServers": {
"macbeth": {
"command": "npx",
"args": [
"-y",
"macbeth"
]
}
}
}Pengecekan otomatis
Berjalan 14 Nov 2026Laporan lengkap →Lolos checks otomatis kami. Ini bukan audit keamanan: baca kodenya dan berikan server akses paling terbatas yang dibutuhkannya. Cara kerja checks
- Source repository terhubung dan dapat dijangkauwende/macbeth is public and reachablegithub.com/wende/macbeth ↗Lolos
- Nama paket mencantumkan repositori ini sebagai sumbernyamacbeth names wende/macbeth as sourcenpmjs.com/package/macbeth ↗Lolos
- Provenance build (atestasi Sigstore)Sigstore attestation for macbethnpmjs.com/package/macbeth/v/0.2.4#provenance ↗Lolos
- Lisensi open source (OSI)MITspdx.org/licenses/MIT.html ↗Lolos
- Ada commit atau release dalam satu tahun terakhirLast commit or release 2026-09-20github.com/wende/macbeth ↗Lolos
- OpenSSF ScorecardTidak diperiksa
- Nama package tidak mirip dengan package populerNo popular package one edit away from macbethLolos
- Tidak ada advisory kritis pada paket atau dependensinya99 resolved dependencies checked; no critical advisoryosv.dev ↗Lolos
- Tidak ada instruksi tersembunyi untuk model0 tool descriptions and the README read; no override phrases, credential paths or hidden charactersLolos
- Tools yang bersifat destruktif telah diberi labelTidak diperiksa
- Endpoint remote merespons handshake MCPTidak diperiksa
README
Lihat di GitHubQuickstart
Give Claude Code access to Macbeth:
claude mcp add macbeth -- npx -y macbeth
Then ask it to verify the connection:
Using Macbeth, list the running applications, connect to Finder, inspect its front window, and summarize the first few controls you can see. Do not perform any other actions.
Macbeth ships with a prebuilt, signed and notarized universal daemon. No Swift toolchain or manual service installation is required. If setup fails, run npx macbeth doctor; it prints a self-contained diagnostic prompt you can paste back into your agent.
Any MCP client that can launch a stdio server can use npx -y macbeth. See MCP setup for generic configuration, updates, and the complete tool list.
Add Macbeth as an MCP server using
npx -y macbeth. Runnpx macbeth doctor, guide me through granting only the permissions I need, and verify the setup by inspecting Finder. Do not take any unrelated actions.
Across your Mac
Work inside Unity, Logic Pro, and other complex tools
“In Logic Pro, set the project tempo to 128 BPM and start playback.”
Macbeth combines structured controls, menus, keyboard input, screenshots, OCR, and application-specific guidance. Logic Pro has a dedicated skill. Applications with thinner accessibility trees, including parts of Unity, can combine structured controls with keyboard, menu, screenshot, and OCR fallbacks.
Automate macOS itself
“Open System Settings, find the firewall controls, and report their current state without changing anything.”
Macbeth can inspect named controls and values, select native menu items, and use keyboard input when a semantic action is unavailable.
Use applications even when they have no API
“Open HEY, find the newest visible thread from the design team, and summarize it without sending or changing anything.”
Macbeth can work through exposed Electron interfaces even when the service does not provide the API your agent needs. HEY works through Macbeth's generic Electron support; results vary with the application's accessibility tree and version.
See what the accessibility tree misses
“Capture the frontmost Notes window and extract all visible text.”
ScreenCaptureKit screenshots and local Vision OCR provide a fallback for content that macOS does not expose as useful accessibility data.
Build repeatable scripts and tests
The same engine is available as a TypeScript API with lazy locators, auto-waiting actions, explicit state waits, screenshots, and application connections.
[!IMPORTANT] Macbeth can act inside applications on your behalf. Connect only trusted agents and require approval for consequential actions.
Why Macbeth?
- Use your own agent. Macbeth is a control layer, not a model or agent runtime.
- Structured when possible. Query roles, labels, values, enabled state, hierarchy, and stable handles instead of relying only on coordinates.
- Visual when necessary. Fall back to window capture and OCR when accessibility metadata is thin.
- Application-aware. Versioned skills preserve workflows, shortcuts, and known failure modes.
- Scriptable. Use the same primitives interactively over MCP or directly from TypeScript.
Structured before pixels
| Capability | Typical screenshot-driven agent | Macbeth |
|---|---|---|
| Find a labeled control | Visual inference | Accessibility query when exposed |
| Read role, value, and state | Inferred | Structured attributes |
| Wait for a UI change | Usually observed through repeated captures | Explicit waits and auto-waiting actions |
| Handle incomplete UI metadata | Vision/OCR | Accessibility first, screenshot/OCR fallback |
| Reuse application knowledge | Prompt-dependent | Bundled, versioned skills |
Accessibility information can itself be incomplete or misleading. Macbeth is a hybrid interface: it uses stronger structured primitives when macOS exposes them and keeps visual and system-level fallbacks available when it does not.
Security and limitations
- Macbeth requires macOS 14 or newer and Node.js 20 or newer.
- Accessibility permission is required for UI inspection and interaction. Screen Recording is required only for screenshots and window OCR.
- Application accessibility quality varies. Custom-rendered canvases, games, and some creative tools may require menus, screenshots, OCR, keyboard input, or application-specific guidance.
- Interface changes between application versions can break specialized workflows.
- The interaction glow makes Macbeth activity visible, but it is not an approval system or a complete audit log.
- Agents can make mistakes. Use human review for destructive, financial, publishing, or privacy-sensitive actions.
Macbeth uses a local stdio MCP server and a Unix-domain socket; it does not open a TCP listener. Screenshots requested through MCP are written to a temporary directory and are not automatically deleted. Read the security model for data flow, permission revocation, local-process risks, and safer operating practices.
TypeScript API
npm install macbeth
import { connect } from "macbeth";
const app = await connect("TextEdit");
await app.window("Untitled").textField().fill("Hello from Macbeth");
await app.pressKey("s", ["cmd"]);
See Developing with Macbeth for locators, screenshots, Electron behavior, lifecycle, and tests.
Teach Macbeth an application
A Macbeth skill is a SKILL.md file, optionally accompanied by runnable scripts, that teaches an agent reliable workflows and pitfalls. Call load_skill with no arguments for the core Macbeth guide. Bundled app skills cover Calendar, Contacts, Logic Pro, Mail, Maps, Messages, Music, Notes, Reminders, Safari, System Settings, and generic Electron applications.
You can add a skill without changing the Swift daemon. Start with the contribution guide and include a reproducible prompt, tested application version, expected result, and honest failure modes.
Documentation
| Guide | Contents |
|---|---|
| MCP server | Installation, smoke test, tools, skills, and updates |
| CLI | Every MCP tool as a macbeth <tool> subcommand |
| TypeScript API | Client API, locators, Electron, and tests |
| Architecture | Daemon, protocol, fallbacks, and design notes |
| Security | Trust boundaries, data handling, and permission revocation |
| Troubleshooting | Diagnostics and common setup failures |
| Contributing | Development workflow and application skills |
Requirements
- macOS 14 (Sonoma) or later
- Node.js 20+
- Swift 6.0+ only when building the daemon from source
License
MIT
Pertanyaan tentang Macbeth MCP
Bagaimana cara menambahkan Macbeth MCP ke Claude Code?
Jalankan claude mcp add macbeth -- npx -y macbeth di terminal Anda. Tambahkan --scope user agar tersedia di semua proyek.
Bagaimana cara menambahkan Macbeth MCP ke Cursor?
Buka ~/.cursor/mcp.json dan tambahkan server di bawah mcpServers, menggunakan config Cursor yang ditunjukkan di bagian instalasi di atas.
Apa saja persyaratan sistem untuk Macbeth?
Macbeth memerlukan macOS 14 (Sonoma) atau yang lebih baru dan Node.js 20 atau yang lebih baru.
Bagaimana cara menambahkan Macbeth ke Claude Code?
Anda dapat menambahkannya menggunakan perintah: claude mcp add macbeth -- npx -y macbeth.
Apakah Macbeth memerlukan izin khusus?
Ya, izin Accessibility diperlukan untuk inspeksi dan interaksi UI, serta Screen Recording diperlukan untuk screenshot dan OCR jendela.
Apakah Macbeth bisa bekerja dengan aplikasi yang tidak memiliki API?
Ya, ia dapat bekerja melalui interface Electron yang terbuka dan menggunakan fallback visual seperti screenshot dan OCR saat metadata accessibility tidak tersedia.