screenshotrun-mcp
[npm version]
[License: MIT]
Give your AI agent the ability to see any webpage. MCP server for ScreenshotRun Screenshot API.
Features
- Capture screenshots of any public webpage as PNG, JPEG, WebP, or PDF
- Device emulation — desktop, mobile, and tablet viewports
- Dark mode rendering with
prefers-color-scheme: dark
- Full-page capture with automatic scrolling
- Block ads and cookie consent banners
- Inject custom CSS/JavaScript before capture
- Target specific elements with CSS selectors
- Retina (2x) resolution support
- Monitor your API usage and remaining quota
Quick Start
1. Get your API key
Sign up for a free API key at screenshotrun.com.
2. Configure your AI client
Claude Desktop
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows):
Claude Code
Cursor
Add to .cursor/mcp.json in your project:
Windsurf
Add to your Windsurf MCP configuration with the same npx -y screenshotrun-mcp command and set the SCREENSHOTRUN_API_KEY environment variable.
Available Tools
take_screenshot
Capture a screenshot of any webpage. Returns the image as base64-encoded data that AI agents can analyze and describe.
check_usage
Check your ScreenshotRun API usage for the current billing period. Returns screenshots used, remaining quota, usage percentage, and days remaining.
No parameters required.
Example Prompts
- "Take a screenshot of screenshotrun.com"
- "Screenshot snapshotarchive.com in dark mode on mobile"
- "Capture full-page screenshot of my website and describe what you see"
- "Take a retina screenshot of screenshotrun.com in JPEG format"
- "Screenshot snapshotarchive.com on tablet with ad blocking"
- "Take a screenshot of my site with the cookie banner hidden using hide_selectors"
- "Check my ScreenshotRun API usage"
How It Works
- Your AI agent receives a user request involving a webpage screenshot
- The agent calls the
take_screenshot tool with the URL and options
- The MCP server sends the request to the ScreenshotRun API
- The API renders the page in a real browser and returns the screenshot
- The image is returned to the AI agent as base64, which it can analyze and describe
Requirements
Other Projects by ScreenshotRun
- SnapshotArchive — Automated website monitoring with visual diff detection
- WatchCron — Cron job & heartbeat monitoring for developers
License
MIT