steipete

Peekaboo

Built by steipete 2,982 stars

What is Peekaboo?

Peekaboo is a macOS CLI & optional MCP server that enables AI agents to capture screenshots of applications, or the entire system, with optional visual question answering through local or remote AI models.

How to use Peekaboo?

1. Install a compatible MCP client (like Claude Desktop). 2. Open your configuration settings. 3. Add Peekaboo using the following command: npx @modelcontextprotocol/peekaboo 4. Restart the client and verify the new tools are active.
🛡️ Scoped (Restricted)
npx @modelcontextprotocol/peekaboo --scope restricted
🔓 Unrestricted Access
npx @modelcontextprotocol/peekaboo

Key Features

Native MCP Protocol Support
Real-time Tool Activation & Execution
Verified High-performance Implementation
Secure Resource & Context Handling

Optimized Use Cases

Extending AI models with custom local capabilities
Automating system workflows via natural language
Connecting external data sources to LLM context windows

Peekaboo FAQ

Q

Is Peekaboo safe?

Yes, Peekaboo follows the standardized Model Context Protocol security patterns and only executes tools with explicit user-granted permissions.

Q

Is Peekaboo up to date?

Peekaboo is currently active in the registry with 2,982 stars on GitHub, indicating its reliability and community support.

Q

Are there any limits for Peekaboo?

Usage limits depend on the specific implementation of the MCP server and your system resources. Refer to the official documentation below for technical details.

Official Documentation

View on GitHub

Peekaboo 🫣 - Mac automation that sees the screen and does the clicks.

Peekaboo Banner

npm package License: MIT macOS 15.0+ (Sequoia) Swift 6.2 node >=22 Download macOS Homebrew Ask DeepWiki

Peekaboo brings high-fidelity screen capture, AI analysis, and complete GUI automation to macOS. Version 3 adds native agent flows and multi-screen automation across the CLI and MCP server.

What you get

  • Pixel-accurate captures (windows, screens, menu bar) with optional Retina 2x scaling.
  • Natural-language agent that chains Peekaboo tools (see, click, type, scroll, hotkey, menu, window, app, dock, space).
  • Action-first UI automation for routine clicks/scrolls, with synthetic input fallback for apps that need it.
  • Direct accessibility tools for settable values and named actions (set-value, perform-action).
  • Menu and menubar discovery with structured JSON; no clicks required.
  • Multi-provider AI through Tachikoma, including hosted, local, and OpenAI-/Anthropic-compatible providers.
  • MCP server for Codex, Claude Code, and Cursor plus a native CLI; the same tools in both.
  • Configurable, testable workflows with reproducible sessions and strict typing.
  • Requires macOS Screen Recording + Accessibility permissions (see docs/permissions.md).

Install

  • macOS app + CLI (Homebrew):
    brew install steipete/tap/peekaboo
    
  • MCP server (Node 22+, no global install needed):
    npx -y @steipete/peekaboo
    

Quick start

# Capture full screen at Retina scale and save to Desktop
peekaboo image --mode screen --retina --path ~/Desktop/screen.png

# Click a button by label (captures, resolves, and clicks in one go)
peekaboo see --app Safari --json | jq -r '.data.snapshot_id' | read SNAPSHOT
peekaboo click --on "Reload this page" --snapshot "$SNAPSHOT"

# Directly set a text field value when the accessibility value is settable
peekaboo set-value --on T1 --value "hello" --snapshot "$SNAPSHOT"

# Invoke a named accessibility action on an element
peekaboo perform-action --on B1 --action AXPress --snapshot "$SNAPSHOT"

# Run a natural-language automation
peekaboo agent "Open Notes and create a TODO list with three items"

# Run as an MCP server (Codex, Claude Code, Cursor)
npx -y @steipete/peekaboo

# Minimal MCP client config snippet:
# {
#   "mcpServers": {
#     "peekaboo": {
#       "command": "npx",
#       "args": ["-y", "@steipete/peekaboo"],
#       "env": {
#         "PEEKABOO_AI_PROVIDERS": "openai/gpt-5.5,anthropic/claude-opus-4-7"
#       }
#     }
#   }
# }

Shell completions

Peekaboo can generate shell-native completions directly from the same Commander metadata that powers CLI help and docs:

# Current shell (recommended)
eval "$(peekaboo completions $SHELL)"

# Explicit shells
eval "$(peekaboo completions zsh)"
eval "$(peekaboo completions bash)"
peekaboo completions fish | source

For persistent setup and troubleshooting, see docs/commands/completions.md.

CommandKey flags / subcommandsWhat it does
see--app, --mode screen/window, --retina, --jsonCapture and annotate UI, return snapshot + element IDs
click--on <id/query>, --snapshot, --wait-for, --coordsClick by element ID, label, or coordinates
type--text, --clear, --profile, --delayEnter text with pacing options
set-value--on <id/query>, --value, --snapshotDirectly set a settable accessibility value
perform-action--on <id/query>, --action, --snapshotInvoke a named accessibility action
presskey names, --count, --delay, --holdSpecial keys and sequences
hotkeycombos like cmd,shift,tModifier combos (cmd/ctrl/alt/shift)
scroll--on <id>, --direction up/down, --amountScroll views or elements
swipe--from/--to, --duration, --stepsSmooth gesture-style drags
drag--from/--to, modifiers, Dock/Trash targetsDrag-and-drop between elements/coords
move--to <id/coords>, --screen-indexPosition the cursor without clicking
windowlist, move, resize, focus, set-boundsMove/resize/focus windows and Spaces
applaunch, quit, relaunch, switch, listLaunch, quit, relaunch, switch apps
spacelist, switch, move-windowList or switch macOS Spaces
menulist, list-all, click, click-extraList/click app menus and extras
menubarlist, clickTarget status-bar items by name/index
docklaunch, right-click, hide, show, listInteract with Dock items
dialoglist, click, input, file, dismissDrive system dialogs (open/save/etc.)
image--mode screen/window/menu, --retina, --analyzeScreenshot screen/window/menu bar (+analyze)
listapps, windows, screens, menubar, permissionsEnumerate apps, windows, screens, permissions
tools--verbose, --json, --no-sortInspect native Peekaboo tools
completions[shell]Generate zsh/bash/fish completion scripts from Commander metadata
configinit, show, add, login, modelsManage credentials/providers/settings
permissionsstatus, grantCheck/grant required macOS permissions
run.peekaboo.json, --output, --no-fail-fastExecute .peekaboo.json automation scripts
sleep--duration (ms)Millisecond delays between steps
clean--all-snapshots, --older-than, --snapshotPrune snapshots and caches
agent--model, --dry-run, --resume, --max-steps, audioNatural-language multi-step automation
mcpserve (default)Run Peekaboo as an MCP server

Models and providers

Peekaboo's provider list changes with Tachikoma and the tested model catalog. See docs/providers.md for the current provider reference, including OpenAI, Anthropic, xAI/Grok, Google Gemini, MiniMax, Ollama, LM Studio, and compatible custom endpoints.

Set providers via PEEKABOO_AI_PROVIDERS or peekaboo config add.

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 basics

  • Requirements: see docs/platform-support.md. Node 22+ is only needed for the npm MCP wrapper and pnpm helper scripts.
  • Install deps: pnpm install then pnpm run build:cli or pnpm run test:safe.
  • Lint/format: pnpm run lint && pnpm run format.

License

MIT

Global Ranking

-
Trust ScoreMCPHub Index

Based on codebase health & activity.

Manual Config

{ "mcpServers": { "peekaboo": { "command": "npx", "args": ["peekaboo"] } } }