Back to Browse

Peekaboo MCP Server

Developer ToolsModerate7.0Local
Free

macOS screenshot capture and visual Q&A for AI agents

About

Peekaboo is a macOS CLI and MCP server that lets AI agents capture screenshots of applications or the entire screen, with optional visual question-answering through local or remote AI models.

Useful for UI testing, visual debugging, monitoring app state, and building AI workflows that need to "see" what's on screen. Supports targeting specific apps by name or capturing the full display.

Security Report

7.0
Moderate7.0Moderate Risk

Verified popular macOS screenshot MCP server.

26 tools verified · Open access · No issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Remote servers are capped at 8.0 because source code is not available for review. The score reflects endpoint verification only.

How to Install

Add this to your MCP configuration file:

{}

Documentation

View on GitHub

From the project's GitHub README.

CI npm GitHub release macOS 15+ Swift 6.2 Node License Homebrew Ask DeepWiki

Peekaboo is a macOS CLI and menu-bar app for screen capture, accessibility inspection, and native UI automation. Use it directly, let its agent plan multi-step work, or expose the same toolset to MCP clients.

Peekaboo banner

Install

The released CLI and app require macOS 15 or later.

CLI with Homebrew

brew install steipete/tap/peekaboo

MCP package with npm

The npm package requires Node.js 22 or later and includes the CLI plus its MCP launcher.

npx -y @steipete/peekaboo --version

See MCP setup to connect it to Codex, Claude Code, Cursor, or another MCP client.

Mac app

Download the signed DMG from the latest GitHub release. The menu-bar app provides permission onboarding, visual feedback, and agent sessions; install the CLI separately when you also need peekaboo on PATH.

For source builds and alternative install details, see the installation guide.

Quick start

Check the permissions available to Peekaboo, then take a screenshot:

peekaboo permissions status
peekaboo see --no-elements --mode screen --path /tmp/peekaboo-screen.png

Screen capture requires Screen Recording permission. Accessibility permission enables UI inspection and control; the permissions guide covers setup and the additional permission used for synthetic input.

Inspect a running app to get a structured UI map with opaque element IDs:

peekaboo see --app Finder --json

That is the core loop: observe the current screen, choose an element from the result, and act on it.

What's new in 4.0

Peekaboo 4 has an exact 33-command root surface, consistent duration and coordinate grammar, native verify polling, and honest JSON effects after an action request has been parsed and classified. Pre-dispatch argument parse/bind failures may omit effect. If you have existing scripts or agent instructions, use the Peekaboo 4 migration guide for the complete old-to-new command and flag map.

Automate an app

Target an element by its accessible label, then send text to the same app:

peekaboo click "Address and search bar" --app Safari
peekaboo type "github.com/openclaw/Peekaboo" --app Safari && peekaboo press Return --app Safari

Targeted input uses background delivery when Peekaboo can resolve the process, so the app does not have to become frontmost. Add --foreground when an app only accepts input in its focused key window. See the automation guide for element IDs, coordinates, snapshots, waits, and input behavior.

Agent and MCP

The agent combines the same observation and action tools into a natural-language run:

peekaboo agent "Open Safari, go to github.com, and search for Peekaboo"

Agent runs need a configured model provider. See agent setup for providers and sessions, or MCP setup to expose Peekaboo's tools to another client.

Command map

GoalCommandsGuide
Observe the desktopsee, screen list, window listCapture and inspection
Interact with UIclick, type, press, scroll, drag, set-value, actionAutomation
Control macOSapp, window, menu, menubar, dock, dialog, spaceCommand reference
Run workflowsagent, captureAgent · Capture
Integrate with clientsmcp, browser, toolsMCP

Run peekaboo help <command> for live CLI help. The complete command index links to flags, examples, and troubleshooting for every command.

Configuration

Peekaboo stores provider credentials and settings under ~/.peekaboo. Use peekaboo config to inspect or change them, and consult the configuration guide for profiles, environment variables, and custom providers. The provider reference covers hosted, compatible, and local model backends.

Shell completions for zsh, bash, and fish come from peekaboo completions; see the completion guide for persistent setup.

Learn more

Community

  • PeekabooWin — Windows-first rewrite of the Peekaboo automation loop (JavaScript + PowerShell) by @FelixKruger
  • PeekabooX — Linux-first rewrite of the Peekaboo automation loop (Rust + Python) by @nordbyte

Development

Source builds require macOS 15 or later, Swift 6.2 or later, Node.js 22 or later, and the repository's submodules.

pnpm install --frozen-lockfile
pnpm run build:cli
pnpm run lint:docs
pnpm run test:safe

More build, signing, and test details live in docs/building.md.

License

MIT. See LICENSE.

Reviews

No reviews yet

Be the first to review this server!

Peekaboo MCP Server - macOS screenshot capture and visual Q&A for AI agents | MCP Marketplace