SuperAPIAI Directory

mcp-screenshot-website-fast

github.com · AI developer platforms

Capture website screenshots, tiling full pages into 1072x1072 chunks for Claude Vision, with configurable viewports and wait strategies for dynamic content.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

mcp-screenshot-website-fast is a fast, efficient web page screenshot capture tool, optimized for command-line coding tools and AI vision workflows. It uses the Puppeteer headless browser to capture high-quality screenshots and automatically splits the full page into 1072x1072 pixel tiles to ensure maximum compatibility with the Claude Vision API and other AI models.

Key Capabilities

  • Fast screenshots: Based on the Puppeteer headless browser, with no caching to ensure content is always up to date.
  • Claude Vision optimization: Automatically limits resolution to 1072x1072 pixels (about 1.15 megapixels), and automatically splits the full page into 1072x1072 tiles.
  • Screen recording: Supports recording a series of screenshots at configurable intervals, and can export them as high-quality animated WebP files.
  • Configurable viewport: Supports custom viewport width and height (maximum 1072), making responsive testing easy.
  • Wait strategies: Supports strategies such as networkidle and custom delays to handle dynamic content.
  • Full-page capture: Captures full-page screenshots by default and automatically chunks them.
  • JavaScript injection: Can execute custom JavaScript before screen recording.
  • MCP integration: Seamlessly integrates with AI development tools through the Model Context Protocol, and provides a Windows-compatible launcher.
  • Resource efficient: The browser is automatically cleaned up after 60 seconds of inactivity, and pages are closed after each screenshot to prevent memory leaks.

Usage

Installation Requirements

  • Node.js 20.x or higher
  • Chrome/Chromium (automatically downloaded by Puppeteer)

MCP Configuration

After installing in your IDE, you can use it through MCP client configuration. Add the following JSON to the client's mcp.json (such as .vscode/mcp.json, ~/.cursor/mcp.json, or Claude's .mcp.json):

{
  "mcpServers": {
    "mcp-screenshot-website-fast": {
      "command": "npx",
      "args": ["-y", "@just-every/mcp-screenshot-website-fast"]
    }
  }
}

Available Tools

take_screenshot: Captures a high-quality screenshot of a web page.

  • url (required): The HTTP/HTTPS URL to capture
  • width (optional): Viewport width (maximum 1072, default 1072)
  • height (optional): Viewport height (maximum 1072, default 1072)
  • fullPage (optional): Whether to capture the full page and chunk it (default true)
  • waitUntil (optional): Wait event: load, domcontentloaded, networkidle0, networkidle2 (default domcontentloaded)
  • waitFor (optional): Additional wait time (milliseconds)
  • directory (optional): Directory to save the screenshot, returns the file path instead of a base64 image

capture_selector: Captures a screenshot of a specific DOM element matched by a CSS selector.

  • url (required): The HTTP/HTTPS URL to capture
  • selector (required): The CSS selector of the element to capture
  • width (optional): Viewport width (maximum 1072, default 1072)
  • height (optional): Viewport height (maximum 1072, default 1072)
  • waitUntil (optional): Wait event: load, domcontentloaded, networkidle0, networkidle2 (default domcontentloaded)
  • waitForMS (optional): Additional wait time (milliseconds)
  • selectorTimeoutMS (optional): Timeout for waiting for the selector to appear (default 5000)

take_screencast: Captures a series of screenshots over time to create a screen recording, capturing only the top viewport tile (1072x1072).

  • url (required): The URL to capture
  • duration (optional): Total duration (seconds, default 10)
  • interval (optional): Screenshot interval (seconds, default 2)
  • jsEvaluate (optional): JavaScript code to execute at the start
  • waitUntil (optional): Wait strategy: 'load', 'domcontentloaded', 'networkidle0', 'networkidle2'
  • waitForMS (optional): Additional wait time before starting
  • directory (optional): Directory to save as animated WebP (capture once per 1 second)

Usage Examples

Default usage (returns a base64 image):

take_screenshot url="https://example.com"

Save to directory (returns file path):

take_screenshot url="https://example.com" directory="./screenshots"

Capture specific element:

capture_selector url="https://example.com" selector="#main-content"

Basic screen recording (5 frames within 10 seconds):

take_screencast url="https://example.com" duration=10 interval=2

With JavaScript execution:

take_screencast url="https://example.com" jsEvaluate="document.querySelector('.button').click()"

Save as animated WebP:

take_screencast url="https://example.com" directory="./screencasts"

Directory parameter description

  • Screenshots are saved as timestamped PNG files
  • Returns file paths instead of base64 data
  • When taking chunked screenshots, each tile is saved as a separate file
  • The directory is automatically created if it does not exist

Development usage

Command-line screenshot:

npx @just-every/mcp-screenshot-website-fast https://example.com

Options:

  • -w, --width <pixels>: viewport width (max 1072, default 1072)
  • -h, --height <pixels>: viewport height (max 1072, default 1072)
  • --no-full-page: disable full-page capture and chunking
  • --wait-until <event>: wait event: load, domcontentloaded, networkidle0, networkidle2
  • --wait-for <ms>: additional wait time (milliseconds)
  • -o, --output <path>: output file path (required for chunked output)

Auto-restart feature

The MCP server includes auto-restart capability by default to improve reliability:

  • Automatically restart the server on crash
  • Handle uncaught exceptions and Promise rejections
  • Implement exponential backoff (up to 10 attempts within 1 minute)
  • Log all restart attempts for monitoring
  • Gracefully handle shutdown signals (SIGINT, SIGTERM)

Use cases

  • Prepare web page screenshots for AI vision models (such as Claude Vision API)
  • Quickly capture web page content in command-line coding tools
  • Responsive web testing
  • Screenshot capture of dynamic content
  • Create screen recordings of web operation demos

Limitations

  • Viewport width and height are limited to a maximum of 1072 pixels
  • Requires Node.js 20.x or higher
  • Depends on Chrome/Chromium (automatically downloaded by Puppeteer)
  • Screen recording only captures the top tile of the viewport (1072x1072)
  • Some websites may require authentication or adjustment of waiting strategies

Troubleshooting

  • Puppeteer issues: ensure Chrome/Chromium can be downloaded, check firewall settings, or set PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true and provide a custom executable
  • Screenshot quality issues: adjust viewport dimensions, use appropriate waiting strategies, check whether the website requires authentication, increase waiting time, or use a different waiting strategy
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools