Peekaboo is an MCP server and macOS utility that enables AI agents to capture screen images, inspect accessibility trees, and perform native user interface automation. It connects LLM-driven environments like Cursor, Claude Code, and Codex directly to macOS window management and accessibility APIs. Developers and automated agents use Peekaboo to observe active screen elements, target specific application windows, and simulate native user inputs without requiring third-party testing frameworks. By translating user interfaces into structured JSON UI maps, it allows models to identify opaque element identifiers and trigger actions such as clicking buttons, typing text, scrolling, and navigating system menus. Peekaboo also supports background input delivery when processes can be cleanly resolved, avoiding interruptions by not forcing target applications to stay frontmost. The server provides deep system integration, supporting permissions checks, multi-display captures, Dock interactions, and custom dialog management under modern macOS versions.
Category: Design, Media & Creative
Tags: automation, image-capture, macos, screenshot
brew install openclaw/tap/peekaboo or run the npm launcher directly using npx -y @steipete/peekaboo. 3. Grant the required macOS system permissions by checking status with peekaboo permissions status and allowing Screen Recording and Accessibility in System Settings. 4. Connect Peekaboo to your MCP client (such as Cursor, Codex, or Claude Code) by adding the Peekaboo execution command (peekaboo mcp or through the npm package runner) to your client configuration file as described in the Peekaboo repository. 5. Restart your MCP client to initialize the server tools.Part of MCP Servers
Peekaboo is an open-source macOS automation tool and MCP server. It gives AI agents the ability to capture desktop screenshots, inspect running software through macOS accessibility APIs, and perform native keyboard and mouse actions.
Peekaboo requires macOS 15 or later. If you run the MCP launcher using the npm package, it also requires Node.js version 22 or later. Compiling from source requires Swift 6.2 or later.
You can install Peekaboo on macOS using Homebrew with brew install openclaw/tap/peekaboo, download the signed DMG release from GitHub, or execute the package directly using npx -y @steipete/peekaboo.
Peekaboo works with MCP-compatible clients such as Codex, Claude Code, Cursor, and other tools configured to communicate with local Model Context Protocol command-line servers.
Peekaboo requires macOS Screen Recording permissions to capture displays and windows. It also requires Accessibility permissions to inspect user interface element trees and simulate synthetic input actions such as clicks and keystrokes.
Yes, Peekaboo is open-source software released under the MIT license on GitHub, allowing free usage, inspection, and modification.