Labsco
just-every logo

just-every/mcp-screenshot-website-fast

β˜… 106

from just-every

High-quality screenshot capture optimized for Claude Vision API. Automatically tiles full pages into 1072x1072 chunks (1.15 megapixels) with configurable viewports and wait strategies for dynamic content.

πŸ”₯πŸ”₯πŸ”₯βœ“ VerifiedFreeQuick setup

@just-every/mcp-screenshot-website-fast

Fast, efficient screenshot capture of web pages - optimized for CLI coding tools. Automatically tiles full pages into 1072x1072 chunks for optimal processing.

<a href="https://glama.ai/mcp/servers/@just-every/mcp-screenshot-website-fast"> <img width="380" height="200" src="https://glama.ai/mcp/servers/@just-every/mcp-screenshot-website-fast/badge" alt="Screenshot Website Fast MCP server" /> </a>

npm version GitHub Actions

Overview

Built specifically for AI vision workflows, this tool captures high-quality screenshots with automatic resolution limiting and tiling for optimal processing by Claude Vision API and other AI models. It ensures screenshots are perfectly sized at 1072x1072 pixels (1.15 megapixels) for maximum compatibility.

Features

  • πŸ“Έ Fast screenshot capture using Puppeteer headless browser
  • 🎯 Claude Vision optimized with automatic resolution limiting (1072x1072 for optimal 1.15 megapixels)
  • πŸ”² Automatic tiling - Full pages are automatically split into 1072x1072 tiles
  • 🎬 Screencast capture - Record series of screenshots over time with configurable intervals
  • πŸ”„ Always fresh content - No caching ensures up-to-date screenshots
  • πŸ“± Configurable viewports for responsive testing
  • ⏱️ Wait strategies for dynamic content (networkidle, custom delays)
  • πŸ“„ Full page capture by default for complete page screenshots
  • πŸŽ₯ Animated WebP export - Save screencasts as high-quality animated WebP files
  • πŸ’‰ JavaScript injection - Execute custom JS before screencast capture
  • πŸ“¦ Minimal dependencies for fast npm installs
  • πŸ”Œ MCP integration for seamless AI workflows
  • πŸͺŸ Windows-compatible launcher for npm-installed MCP usage
  • πŸ”‹ Resource efficient - Automatic browser cleanup after 60 seconds of inactivity
  • 🧹 Memory management - Pages are closed after each screenshot to prevent leaks

Auto-Restart Feature

The MCP server includes automatic restart capability by default for improved reliability:

  • Automatically restarts the server if it crashes
  • Handles unhandled exceptions and promise rejections
  • Implements exponential backoff (max 10 attempts in 1 minute)
  • Logs all restart attempts for monitoring
  • Gracefully handles shutdown signals (SIGINT, SIGTERM)

For development/debugging without auto-restart:

Copy & paste β€” that's it
# Run directly without restart wrapper
npm run serve:dev

Architecture

Copy & paste β€” that's it
mcp-screenshot-website-fast/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ internal/       # Core screenshot capture logic
β”‚   β”œβ”€β”€ utils/          # Logger and utilities
β”‚   β”œβ”€β”€ index.ts        # CLI entry point
β”‚   β”œβ”€β”€ serve.ts        # MCP server entry point
β”‚   └── serve-restart.ts # Auto-restart wrapper

Development

Copy & paste β€” that's it
# Run in development mode
npm run dev capture https://example.com -o screenshot.png

# Build for production
npm run build

# Run tests
npm test

# Type checking
npm run typecheck

# Linting
npm run lint

Why This Tool?

Built specifically for AI vision workflows:

  1. Optimized for Claude Vision API - Automatic resolution limiting to 1072x1072 pixels (1.15 megapixels)
  2. Automatic tiling - Full pages split into perfect chunks for AI processing
  3. Always fresh - No caching ensures you get the latest content
  4. MCP native - First-class integration with AI development tools
  5. Simple API - Clean, straightforward interface for capturing screenshots

Contributing

Contributions are welcome! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Add tests for new functionality
  4. Submit a pull request

License

MIT