Sitecap

•
7
•

Capture high-quality screenshots of websites, render HTML content, and extract fully processed HTML using Chrome CDP.

Sitecap is a versatile tool designed for generating website screenshots and extracting rendered HTML content. Leveraging Chrome's headless capabilities via the Chrome DevTools Protocol (CDP), it offers multiple modes of operation: a command-line interface for direct use, an HTTP server for programmatic access via a REST API, and a Model Context Protocol (MCP) server for integration with MCP clients. It provides extensive control over viewport size, image resizing (including cropping and scaling), timeout settings, and domain whitelisting for resource filtering, making it suitable for a wide range of web content capture and analysis tasks.

Key Features

01Multi-mode operation: CLI, HTTP server, and MCP server
02Comprehensive screenshot controls: viewport, resize, crop, full-height
03Render HTML from stdin or extract fully processed HTML from URLs
04Domain whitelisting for resource filtering (e.g., block ads/trackers)
05Prometheus-compatible metrics for HTTP server monitoring
064 GitHub stars

Use Cases

01Automate website screenshot generation for testing or archival
02Retrieve the final rendered HTML of JavaScript-heavy Single Page Applications (SPAs)
03Generate images from dynamic or programmatically generated HTML content