airplay-mcp
v0.2.0MCP server that receives AirPlay screen mirroring and lets AI clients see the phone screen, token-efficiently
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
start_receiver
Turn the AirPlay receiver on so a phone/tablet can mirror to it. Returns what to tell the user. Safe to call when already on. Follow with wait_for_change.
stop_receiver
Turn the AirPlay receiver off (ends any mirroring session and stops advertising). The last frame stays available.
screen_status
Text-only status (~40 tokens): mirroring connected?, device, resolution, current frame number, time since last change, and whether you've already seen the current frame. Use this before deciding to fetch an image.
get_screen
The mirrored screen as an image (~700 tokens at defaults for a phone). Always returns the current frame (the last one received if the screen is static); pass since_frame=N to get 'unchanged' text if it is still frame N. Use mode='changes' after the user acts, or region=[x,y,w,h] to zoom.
| Parameter | Type | Description |
|---|---|---|
force | boolean | Send an image even if unchanged |
format | string | png only for crisp text/pixel art |
grid | Overlay a labelled [cols, rows] grid (cols A.., rows 1..) to reference cells, e.g. [9, 9] on a cropped Sudoku board | |
max_dim | Longest image edge in px (default 1024; 512 is enough for a glance) | |
mode | string | 'changes' returns only the area that changed since the frame you last saw |
region | Zoom to [x, y, w, h] as fractions (0-1) of the screen, e.g. [0, 0.3, 1, 0.5] | |
settle_ms | integer | Wait for the screen to be still this long first |
since_frame | Frame number you already have; if still current, returns 'unchanged' text instead of an image |
wait_for_change
Block until the screen meaningfully changes (status-bar clock ignored), then return text only. With no screen yet, waits for the first frame. Cheaper than polling get_screen. It does NOT mean 'look at the screen': if the user asks you to look and the screen is static, call get_screen.
| Parameter | Type | Description |
|---|---|---|
since_frame | Frame number you hold (from the get_screen header); waits for a newer one. Defaults to the last frame sent to you | |
timeout_s | number |
save_screen
Save the current screen to an image file at full resolution. No image is returned, so this costs almost no tokens. Use it to hand frames to scripts or other tools, or to keep a record.
| Parameter | Type | Description |
|---|---|---|
max_dim | Downscale so the longest edge is at most this | |
path | File to write (.png or .jpg). Relative paths go under the save directory; default is a timestamped PNG there | |
region | [x, y, w, h] fractions of the screen |