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
Manual setup
Claude Code
claude mcp add kestrel -- /Applications/Kestrel.app/Contents/MacOS/kestrel --mcpOther clients
Use this command and argument in any MCP client that speaks stdio:
/Applications/Kestrel.app/Contents/MacOS/kestrel --mcpJSON 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.
| Tool | What it does | Arguments |
|---|---|---|
list_displays | Displays with id, position and size in points. | – |
list_windows | Visible windows of other apps, front-most first: id, app, title, position, size. | query |
capture_screen | Screenshot of a whole display. | display, maxSize, save, keep |
capture_window | Screenshot of one window, even if covered by others. | window, shadow, maxSize, save, keep |
capture_active_window | Screenshot of the front-most window of another app. | maxSize, save, keep |
capture_area | Screenshot of a rectangle in global points. | x, y, width, height, maxSize, save, keep |
capture_url | Screenshot of a web page by address, rendered privately off screen. Needs no Screen Recording. | url, width, fullPage, maxSize, save, keep |
recognize_text | On-device text and QR recognition of a window, display or rectangle. | window, display, x, y, width, height |
list_captures | Your capture history, newest first. With query, only captures whose recognised text contains it. | query, limit |
get_capture | Image of a capture from the history. | id, maxSize |
open_capture · copy_capture · pin_capture · reveal_capture | Open in the editor, copy, pin on top, or show in Finder. | id |
save_capture | Save to your Kestrel folder and return the path. | id, format |
share_capture | Upload to Kestrel Cloud and return the link. | id, expiresInDays, password |
combine_captures | Open two or more captures side by side in one editor. | ids |
delete_capture · clear_history | Delete one capture, or the whole history (needs confirm). | id · confirm |
recording_status | Whether a recording runs, plus displays and microphones. | – |
start_recording | Record 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_recording | Finish and return the MP4 path, or discard. | – |
list_recordings | Recordings in your Kestrel folder: path, size, duration. | limit |
trim_recording | Trim a recording in place. | path, start, end |
export_recording_gif · copy_recording · share_recording | GIF 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_recording | Open in the video editor, show in Finder, or move to the Trash. | path |
start_scrolling_capture · stop_scrolling_capture | Scrolling 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 kestrelUse
kestrel shot https://example.com --viewport 390x844 --viewport 1440x900 --full-page --dark -o screenshotsGitHub 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 1440x900How 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