Repository avatar
AI Tools
v0.3.0
active

mcp

dev.shotfly/mcp

Website screenshots for AI agents. Failed captures, bot challenges and blank pages are never billed.

Documentation

Shotfly for AI agents

Shotfly is a website screenshot API. Send a URL or HTML, get back PNG, JPEG, WebP or PDF; failed captures, bot-challenge pages and blank pages are never billed.

This repository gives AI agents that ability:

  • Agent Skill (skills/shotfly): teaches an agent when and how to take screenshots, keep credit use low and recover from errors. It includes a small Node.js script that saves screenshots and page Markdown as files. Works with Claude Code, Codex, Cursor and other agents that support Agent Skills.
  • MCP server (mcp/, npm @shotfly/mcp): a take_screenshot tool that returns the image inline, and get_usage.
  • Claude Code plugin: both of the above in one install.

All of them are thin clients of the public Shotfly API. Requests are billed, cached and checked exactly like any other API call.

Get an API key

Create a secret key (sk_…) in the dashboard. There is a free plan; see pricing.

Claude Code

/plugin marketplace add shotfly-dev/shotfly
/plugin install shotfly@shotfly

Claude Code asks for the API key when the plugin is enabled and keeps it in your system's credential store. The skill's script reads the key from the SHOTFLY_API_KEY environment variable, so set that too if you want screenshots saved as files:

export SHOTFLY_API_KEY=sk_your_key

Other agents

Install the skill with the skills CLI:

npx skills add shotfly-dev/shotfly

Then set SHOTFLY_API_KEY in the environment the agent runs in. Ask the agent for a screenshot:

Take a full-page screenshot of https://example.com on an iPhone and save it to docs/home.webp

MCP server only

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

For Claude Desktop, Cursor and other MCP clients, see mcp/README.md or the MCP docs.

Billing

Each successful screenshot costs credits, like any other API request. Failed renders, bot challenges, blank pages, plan limits and cache hits cost nothing, and every result reports credits_charged. The skill never turns on the more expensive anti-bot tier without asking you first.

Privacy and security

  • The key stays on your machine and is sent only to the Shotfly API, in the Authorization header.
  • The skill and the MCP server only talk to the Shotfly API. They never connect to the pages you capture; Shotfly's servers do.
  • Shotfly cannot capture localhost or private networks.

Links

License

MIT

NPM
@shotfly/mcp
Install Command
npm install @shotfly/mcp