Skip to main content
Glama

Screenshot MCP (macOS)

Minimal MCP server for macOS screenshots with a Swift CLI backend. Supports:

  • display screenshots

  • window screenshots

  • window recording (duration or start/stop)

  • listing displays/windows

Requirements

  • macOS 12+ (CoreGraphics APIs)

  • Swift (Xcode CLI tools)

  • Node.js 18+

  • Screen Recording permission granted to the terminal or host app

Related MCP server: AutoMac MCP

Quickstart

npm install
swift build
node server.js

SwiftUI UI (no Xcode)

swift build
swift run screenshot_mcp_app

Debug logs

The SwiftUI app writes logs to ~/Documents/screenshot_mcp/debug.log by default.

MCP Tools

  • list_displays

  • list_windows

  • screenshot_display { display_id, output_path? }

  • screenshot_window { window_id, output_path? }

  • record_window_duration { window_id, duration_seconds, fps?, system_audio?, output_path? }

  • record_window_start { window_id, fps?, system_audio?, output_path? }

  • record_window_stop { recording_id }

CLI Usage

swift run screenshot_mcp list-displays
swift run screenshot_mcp list-windows
swift run screenshot_mcp screenshot-display <display_id> ./captures/display.png
swift run screenshot_mcp screenshot-window <window_id> ./captures/window.png
swift run screenshot_mcp record-window-duration <window_id> ./captures/window.mp4 5 10 true
swift run screenshot_mcp record-window-start <window_id> ./captures/window.mp4 10 true
# stop with Ctrl+C or SIGINT

Configuration

  • SCREENSHOT_MCP_BIN: path to the compiled Swift binary

  • SCREENSHOT_MCP_OUTPUT_DIR: default output directory for screenshots

Notes

  • The Swift CLI uses CGDisplayCreateImage and CGWindowListCreateImage.

  • Window recording samples window frames (default 10 fps) and writes MP4 via AVAssetWriter.

  • System audio capture requires macOS 13+ and records all system audio, not just the window.

  • If screenshots are blank, ensure Screen Recording permission is granted.

License

MIT

Available Tools

7 tools
list_displaysB

List available displays with bounds and pixel sizes.

Inputs: no named parameters.

list_windowsB

List on-screen windows with bounds and owner metadata.

Inputs: no named parameters.

record_window_durationC

Record a window for a fixed duration (seconds) to an MP4. fps defaults to 10. system_audio records global system audio.

Inputs: window_id (required), duration_seconds (required), fps, system_audio, +1 more.

record_window_startB

Start recording a window until record_window_stop is called. fps defaults to 10. system_audio records global system audio.

Inputs: window_id (required), fps, system_audio, output_path.

record_window_stopB

Stop a recording started with record_window_start.

Inputs: recording_id (required).

screenshot_displayC

Capture a PNG/JPG of a display by display_id.

Inputs: display_id (required), output_path.

screenshot_windowC

Capture a PNG/JPG of a window by window_id.

Inputs: window_id (required), output_path.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 7 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: listing displays vs. windows, recording windows with duration vs. start/stop control, and screenshotting displays vs. windows. The descriptions make it easy to differentiate between similar tools like record_window_duration and record_window_start, as one specifies a fixed duration while the other allows manual control.

    Naming Consistency5/5

    All tool names follow a consistent snake_case pattern with clear verb_noun structure (e.g., list_displays, record_window_duration, screenshot_display). The naming is predictable and readable throughout the set, making it easy for agents to understand the action and target.

    Tool Count5/5

    With 7 tools, the server is well-scoped for screenshot and recording functionality on macOS. Each tool earns its place by covering essential operations: listing resources, recording windows with different control methods, and capturing screenshots of displays and windows, without unnecessary bloat.

    Completeness5/5

    The tool surface provides complete coverage for the domain of macOS screen capture and recording. It includes listing (displays and windows), recording (with both fixed-duration and start/stop control), and screenshotting (displays and windows), ensuring agents can handle all core workflows without dead ends.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A privacy-first macOS MCP server that enables AI agents to capture screenshots of pre-approved application windows for development and debugging tasks.
      18
      MIT
    • A
      license
      Not graded
      quality
      F
      maintenance
      An experimental MCP server providing full control over the macOS user interface through mouse, keyboard, and window management tools. It enables AI assistants to automate desktop tasks by utilizing native accessibility APIs and OCR for real-time screen comprehension.
      7
      Creative Commons Zero v1.0 Universal
    • A
      license
      Not graded
      quality
      D
      maintenance
      Standalone MCP server that gives AI agents full GUI control over macOS — screenshots, mouse, keyboard, apps, clipboard, and multi-display — with zero private dependencies.
      20
      MIT