zshot/cliDownload

MCP

Serves ZShot to an agent as an MCP server, over one of two transports:

TransportRun
HTTP--server with --server-enable-mcp, which serves the endpoint at /mcp
stdio--mcp-local-server, which the agent launches as a subprocess and talks to over stdin and stdout

Example

Add a server running on localhost:3000 to Claude Code:

claude mcp add --transport http zshot http://localhost:3000/mcp

Add a local server to Claude Code:

claude mcp add --transport stdio zshot -- zshot --mcp-local-server

Tools

ToolDescription
renderRenders a URL. Additional assets, such as with_har, follow the output as resource links.
session_start, session_act, session_finishDrive a navigator session one action per call. Returns text frames with inline screenshots plus the session ID and seq.
list_emulation_devicesLists valid device preset IDs.
fetch_resourceFetches raw bytes for a zshot://render/ resource link. A file over 768 KiB comes back as a file path from --mcp-local-server and as an /assets URL from an HTTP server.

A local server writes resource files to --mcp-local-server-resource-directory and names each file’s path in the render’s summary, additional assets included. Each resource is written as a standalone file that the client can read or copy directly.