Shotfly

API reference

MCP server

The Shotfly MCP server gives AI agents a take_screenshot tool. It renders a page in a real browser and returns the image together with the page title, description and Open Graph image. It is the npm package @shotfly/mcp, listed in the official MCP Registry as dev.shotfly/mcp, and it runs on your machine as a thin client of the public API: requests are billed, cached and checked exactly like any other API call.

You need Node.js 22 or newer and a secret key (sk_…) from the dashboard. The free plan includes 100 screenshots a month.

Setup

claude mcp add shotfly --env SHOTFLY_API_KEY=sk_your_key -- npx -y @shotfly/mcp

For Claude Desktop the JSON goes in claude_desktop_config.json; for Cursor, in .cursor/mcp.json. Other MCP clients take the same command, arguments and environment. The key stays on your machine and is sent only to the Shotfly API.

take_screenshot

ArgumentTypeDescription
urlstring, requiredPage to capture (http or https).
full_pagebooleanCapture the whole scrollable page.
devicedesktop, desktop_hd, iphone_15, pixel_8, ipadViewport preset.
formatpng, jpeg, webpImage format. Default webp.
dark_modebooleanEmulate prefers-color-scheme: dark.
wait_for_selectorstringWait until this CSS selector is visible before capturing.

The result is the screenshot as an image plus JSON with a link to the file (valid for one hour), its width and height, credits_charged and the page metadata. Images larger than 4 MB come back as the link only, to keep the model context small. Cookie banners are rejected and ads are blocked. A failed render comes back as an error with its error code and costs nothing.

get_usage

Returns the current plan, billing period and credits used, the same as GET /v1/usage.

Configuration

VariableRequiredDescription
SHOTFLY_API_KEYyesSecret key (sk_…) from the dashboard.
SHOTFLY_API_URLnoAPI origin. Default https://api.shotfly.dev.

Billing

Each successful screenshot costs credits like any other request; see pricing. Failed renders, bot challenges, blank pages and cache hits cost nothing, and every result reports credits_charged. To give an agent the page text as well as the image, call the API with markdown=true; see Screenshots for AI agents.

Last updated 2026-12-01. Markdown version: /docs/mcp.md