SuperAPI AI Directory

Peekaboo

Peekaboo is a macOS command-line tool and optional MCP server for screen capture, accessibility inspection, and native UI automation. It lets AI agents take screenshots of a specified app or the entire system and optionally perform visual question answering through local or remote AI models. The project also provides a menu bar app with permission guidance, visual feedback, and agent sessions; the same toolset can also be exposed to MCP clients such as Codex, Claude Code, and Cursor. The released CLI and app require macOS 15 or later, and the npm package requires Node.js 22 or later.

Open website

About this tool

Peekaboo is a macOS command-line tool (CLI) and optional MCP server whose core purpose is to let AI agents "see the screen and perform clicks" and other native UI automation operations. It also provides a menu bar app for permission guidance, visual feedback, and agent sessions.

Main capabilities

  • Screen capture: take screenshots of a specified app window or the entire system.
  • Accessibility inspection: obtain a structured UI map of running apps and return opaque element IDs for subsequent targeting and operations.
  • Native UI automation: supports semantic operations (such as menu clicks), typed CLI input, window selectors, snapshots, and waits; when the process can be resolved, targeted semantic and typed input can use background delivery so the app does not need to be brought to the front.
  • Visual question answering: optionally perform visual question answering on screenshots through local or remote AI models.
  • Agent runs: the built-in agent can combine observation and operation tools into natural-language-driven multi-step tasks, requiring a configured model provider.
  • MCP integration: the same toolset can be exposed to Codex, Claude Code, Cursor, or other MCP clients.

Usage

  • Install the CLI via Homebrew; install the MCP package via npm (requires Node.js 22+, includes the CLI and MCP launcher); or download the signed DMG from the latest GitHub release page to install the menu bar app. To use peekaboo in PATH, the CLI must be installed separately.
  • The basic workflow is: observe the current screen, select an element from the results, and perform an operation. Screen capture requires "Screen Recording" permission; UI inspection and control require "Accessibility" permission; synthetic input also requires additional permissions.
  • Use peekaboo help <command> to view live CLI help; configuration and provider credentials are stored in ~/.peekaboo and can be viewed or modified via peekaboo config.
  • Shell completion is supported for zsh, bash, and fish.

Use cases

  • Let AI agents observe app interfaces on macOS and perform multi-step UI operations.
  • Provide screen capture, UI inspection, and automation tools to MCP clients.
  • Perform visual question answering on screenshots or combine local/remote models for interface understanding.

Limitations and notes

  • The released CLI and app require macOS 15 or later; building from source also requires Swift 6.2+, Node.js 22+, and repository submodules.
  • Screen capture, accessibility, and synthetic input all depend on the corresponding system permissions.
  • Agent runs require a configured model provider.
  • 4.9.10 is a maintenance release: peekaboo mcp serve now starts native tools internally in embedded Bridges without browser handoff (such as OpenClaw.app) instead of failing to start; on such hosts only browser operations are unavailable; browser automation has migrated to Chrome DevTools MCP 1.13.0, whose new tools are unavailable, file scripts are rejected, and full-page screenshots and screen recording require foreground authorization.
  • The project is licensed under MIT.
  • There are also community-maintained Windows-first rewrites PeekabooWin (JavaScript + PowerShell) and Linux-first rewrite PeekabooX (Rust + Python).