MCP File Preview Server

Author:@seanivore
View on GitHub

Overview

The MCP File Preview Server is a Model Context Protocol (MCP) server that provides tools to preview and analyze HTML files. Its main functions are capturing full-page screenshots of HTML content and analyzing the document's structure.

To use it, clone the project repository, install its dependencies, and build it. You then configure it for use within compatible clients like the Claude desktop application or the Cline VSCode extension.

Its key features include taking full-page screenshots that include all CSS styling, and analyzing HTML to provide details like counts of elements such as headings, images, and links. It works with local file paths and resources, and saves all generated screenshots in an organized, dedicated directory.

Common use cases are previewing and capturing local HTML files during web development, analyzing HTML structure for documentation, and testing or debugging web pages that use local resources.

Frequently asked questions clarify that the server primarily supports local HTML files. Screenshot dimensions can be customized using optional width and height parameters. The tool is open-source and free to use.