MCP 截图服务器
一个使用 Puppeteer 提供截图功能的 MCP 服务器实现。该服务器允许通过简单的 MCP 工具界面截取网页和本地 HTML 文件的截图。
特征
捕获任何网页或本地 HTML 文件的屏幕截图
可配置的视口尺寸
支持整页截图
自定义输出路径选项
自动截图目录管理
Related MCP server: Webpage Screenshot MCP Server
安装
npm install
用法
服务器提供了一个take_screenshot工具,它有以下选项:
{
url: string; // URL to capture (can be http://, https://, or file:///)
width?: number; // Viewport width in pixels (1-3840)
height?: number; // Viewport height in pixels (1-2160)
fullPage?: boolean; // Capture full scrollable page
outputPath?: string; // Custom output path (optional)
}
发展
# Build the project
npm run build
# Run the MCP inspector for testing
npm run inspector
执照
麻省理工学院