Puppeteer截图工具
通过简单的MCP工具界面使用Puppeteer捕获网页和本地HTML文件的截图,并可配置尺寸和输出路径选项。
可用工具 (1 个)
该服务在 MCP 协议中暴露的工具,AI 可按需调用
take_screenshot 5 个参数 需填 1 项
Capture a screenshot of any web page or local GUI
必填参数:url
服务介绍
MCP 截图服务器
这是一个使用 Puppeteer 提供截图功能的 MCP 服务器实现。该服务器允许通过简单的 MCP 工具界面捕获网页和本地 HTML 文件的截图。
功能
- 捕获任何网页或本地 HTML 文件的截图
- 可配置的视口尺寸
- 全页面截图支持
- 自定义输出路径选项
- 自动管理截图目录
安装
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
许可证
MIT