Skip to content

For agents

Screenshots for your coding agent

Kestrel includes an MCP server over stdio, as part of the supporter licence. Your agent asks, Kestrel captures with its own Screen Recording permission, and you see a notification for every capture. Agents can work with your history and recordings too.

Turn it on

The MCP server needs an active supporter licence, and agent access is off by default. Activate your licence in Kestrel → Settings → About, then open Settings → General and enable Allow agents (MCP). The same pane offers one-click setup for every agent Kestrel finds.

  • Claude Code
  • Codex
  • Claude Desktop
  • Cursor
  • Windsurf
  • VS Code
  • Gemini CLI
Example workflows with Claude Code

Manual setup

Claude Code

claude mcp add kestrel -- /Applications/Kestrel.app/Contents/MacOS/kestrel --mcp

Other clients

Use this command and argument in any MCP client that speaks stdio:

/Applications/Kestrel.app/Contents/MacOS/kestrel --mcp

JSON config (Cursor, Claude Desktop, Windsurf …)

{
  "mcpServers": {
    "kestrel": {
      "command": "/Applications/Kestrel.app/Contents/MacOS/kestrel",
      "args": [
        "--mcp"
      ]
    }
  }
}

Tools

Images are scaled down to 1568 px on the long side. Pass maxSize to change that, save: true to also keep the full-size file in your Kestrel folder, or keep: true to add it to your history. Recording tools only touch MP4 and GIF files in your Kestrel folder.

ToolWhat it doesArguments
list_displaysDisplays with id, position and size in points.–
list_windowsVisible windows of other apps, front-most first: id, app, title, position, size.query
capture_screenScreenshot of a whole display.display, maxSize, save, keep
capture_windowScreenshot of one window, even if covered by others.window, shadow, maxSize, save, keep
capture_active_windowScreenshot of the front-most window of another app.maxSize, save, keep
capture_areaScreenshot of a rectangle in global points.x, y, width, height, maxSize, save, keep
capture_urlScreenshot of a web page by address, rendered privately off screen. Needs no Screen Recording.url, width, fullPage, maxSize, save, keep
recognize_textOn-device text and QR recognition of a window, display or rectangle.window, display, x, y, width, height
list_capturesYour capture history, newest first. With query, only captures whose recognised text contains it.query, limit
get_captureImage of a capture from the history.id, maxSize
open_capture · copy_capture · pin_capture · reveal_captureOpen in the editor, copy, pin on top, or show in Finder.id
save_captureSave to your Kestrel folder and return the path.id, format
share_captureUpload to Kestrel Cloud and return the link.id, expiresInDays, password
combine_capturesOpen two or more captures side by side in one editor.ids
delete_capture · clear_historyDelete one capture, or the whole history (needs confirm).id · confirm
recording_statusWhether a recording runs, plus displays and microphones.–
start_recordingRecord a display, window or area. Options apply to this recording only.display, window, x, y, width, height, fps, countdown, cursor, systemAudio, microphone
stop_recording · cancel_recordingFinish and return the MP4 path, or discard.–
list_recordingsRecordings in your Kestrel folder: path, size, duration.limit
trim_recordingTrim a recording in place.path, start, end
export_recording_gif · copy_recording · share_recordingGIF next to the video, copy as a file, or a Kestrel Cloud link. Optionally only a part.path, start, end
open_recording · reveal_recording · delete_recordingOpen in the video editor, show in Finder, or move to the Trash.path
start_scrolling_capture · stop_scrolling_captureScrolling capture of an area, stitched into one tall image.x, y, width, height

kestrel shot: the CLI for CI

No Mac or screen in your pipeline? kestrel shot screenshots web pages with headless Chrome on Linux, macOS and Windows: CI runners, containers or an agent’s shell. Free and open source.

Install

curl -fsSL https://github.com/Pixel-Process-UG/kestrel-cli/releases/latest/download/kestrel-linux-x64 -o kestrel
chmod +x kestrel

Use

kestrel shot https://example.com --viewport 390x844 --viewport 1440x900 --full-page --dark -o screenshots

GitHub Action

- uses: Pixel-Process-UG/kestrel-cli@v0.1.0
  with:
    urls: http://localhost:3000 http://localhost:3000/pricing
    args: --full-page --viewport 390x844 --viewport 1440x900

kestrel-cli on GitHub · See it run in a live demo

How it stays safe

  • kestrel --mcp only relays to the running app, over a socket that only your user can open.
  • If Kestrel is not running, the bridge starts it.
  • Captures happen inside Kestrel, with Kestrel’s permission, not your terminal’s.
  • Turning off Allow agents, or using Kestrel without a supporter licence, makes every tool call fail with a clear message.

~/Library/Application Support/de.pixelandprocess.kestrel/mcp.sock