Skip to main content
Glama

Peekaboo MCP

by steipete

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
OPENAI_API_KEYNoYour OpenAI API key for using OpenAI models for image analysis.
PEEKABOO_CLI_PATHNoOptional override for the Swift peekaboo CLI executable path.uses bundled CLI
PEEKABOO_LOG_FILENoPath to the server's log file. If the specified directory is not writable, falls back to the system temp directory.~/Library/Logs/peekaboo-mcp.log
PEEKABOO_LOG_LEVELNoLogging level (trace, debug, info, warn, error, fatal).info
PEEKABOO_CLI_TIMEOUTNoTimeout in milliseconds for Swift CLI operations. Prevents hanging processes.30000
PEEKABOO_AI_PROVIDERSNoJSON string defining AI providers for image analysis. Format: 'provider_name/model_identifier' using commas or semicolons as separators.
PEEKABOO_CONSOLE_LOGGINGNoBoolean ("true"/"false") for development console logs.false
PEEKABOO_OLLAMA_BASE_URLNoBase URL for the Ollama API server. Only needed if Ollama is running on a non-default address.http://localhost:11434
PEEKABOO_DEFAULT_SAVE_PATHNoDefault directory for saving captured images when no path is specified.System temp directory

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
image

Captures macOS screen content and optionally analyzes it. Targets can be entire screen, specific app window, or all windows of an app (via app_target). Supports foreground/background capture. Output via file path or inline Base64 data (format: "data"). If a question is provided, image is analyzed by an AI model (auto-selected from PEEKABOO_AI_PROVIDERS). Window shadows/frames excluded. Peekaboo MCP 1.1.0 using openai/gpt-4-vision, anthropic/claude-3-opus, google/gemini-pro-vision

analyze

Analyzes a pre-existing image file from the local filesystem using a configured AI model.

This tool is useful when an image already exists (e.g., previously captured, downloaded, or generated) and you need to understand its content, extract text, or answer specific questions about it.

Capabilities:

  • Image Understanding: Provide any question about the image (e.g., "What objects are in this picture?", "Describe the scene.", "Is there a red car?").
  • Text Extraction (OCR): Ask the AI to extract text from the image (e.g., "What text is visible in this screenshot?").
  • Flexible AI Configuration: Can use server-default AI providers/models or specify a particular one per call via 'provider_config'.

Example: If you have an image '/tmp/chart.png' showing a bar chart, you could ask: { "image_path": "/tmp/chart.png", "question": "Which category has the highest value in this bar chart?" } The AI will analyze the image and attempt to answer your question based on its visual content. Peekaboo MCP 1.1.0 using openai/gpt-4-vision, anthropic/claude-3-opus, google/gemini-pro-vision

list

Lists various system items on macOS, providing situational awareness.

Capabilities:

  • Running Applications: Get a list of all currently running applications (names and bundle IDs).
  • Application Windows: For a specific application (identified by name or bundle ID), list its open windows.
    • Details: Optionally include window IDs, bounds (position and size), and whether a window is off-screen.
    • Multi-window apps: Clearly lists each window of the target app.
  • Server Status: Provides information about the Peekaboo MCP server itself (version, configured AI providers).

Use Cases:

  • Agent needs to know if 'Photoshop' is running before attempting to automate it. { "item_type": "running_applications" } // Agent checks if 'Photoshop' is in the list.
  • Agent wants to find a specific 'Notes' window to capture. { "item_type": "application_windows", "app": "Notes", "include_window_details": ["ids", "bounds"] } The agent can then use the window title or ID with the 'image' tool. Peekaboo MCP 1.1.0 using openai/gpt-4-vision, anthropic/claude-3-opus, google/gemini-pro-vision

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/steipete/Peekaboo'

If you have feedback or need assistance with the MCP directory API, please join our Discord server