WebsiteScreenshot.online MCP Server
OfficialWebsiteScreenshot.online MCP 服务器
一个封装了 WebsiteScreenshot.online REST API 的 Model Context Protocol 服务器,将其以三个 MCP 工具的形式暴露出来,任何兼容 MCP 的主机(Claude Desktop、Claude Code、Cursor、Cline、Continue、Zed、Raycast 等)都可以直接调用。
⚡ 大多数用户不需要这个包
如果你只是想让 AI 助手截图和录制视频,请改用托管端点——零安装,只需一行 JSON:
请参阅各主机配置示例,了解 Claude Code、Claude Desktop、Cursor、Cline、Codex CLI、Gemini CLI、Continue、Windsurf 和 Zed 的配置方法。
只有在以下情况之一下,你才需要这个 npm 包:
🛰️ 隔离或受限网络——你的 AI 主机无法直接访问
websitescreenshot.online。🏠 自托管 WebsiteScreenshot——你运行自己的实例,需要将
SCREENSHOT_API_BASE指向它。🔧 你想审计/修改服务器——这与托管端点运行的代码相同,只是没有 Next.js 包装层。
在其他所有情况下,托管端点都严格更优(无需 Node 依赖、自动更新、零维护负担)。
Related MCP server: Grabbit
1. 前置要求
Node.js ≥ 18.18(推荐 LTS 版本)
一个免费或付费的 WebsiteScreenshot.online 账户
一个 WebsiteScreenshot.online API 密钥(参见第 2 节)
2. 获取 API 密钥
在 https://websitescreenshot.online 注册(GitHub OAuth 或邮箱)。
如有需要,切换到你的语言环境(例如
/en/dashboard/api-keys、/zh-CN/dashboard/api-keys)。打开仪表盘 → API 密钥 → 创建新密钥。
复制密钥。它以
ws_开头,后跟 64 个十六进制字符(例如ws_<your-key-here>),并且只显示一次——请妥善保管。
MCP 服务器只会从环境中读取密钥。它永远不会被记录、永远不会发送给模型,也永远不会被此包写入磁盘。
3. 安装与构建
git clone https://github.com/Website-Screenshot-Online/websitescreenshot-mcp.git
cd websitescreenshot-mcp
npm install
npm run build就这样——build/index.js 是一个自包含的可执行文件,你可以将其接入任何 MCP 主机。
4. 配置你的 MCP 主机
Claude Desktop — claude_desktop_config.json
~/Library/Application Support/Claude/claude_desktop_config.json(macOS)或 %APPDATA%/Claude/claude_desktop_config.json(Windows):
{
"mcpServers": {
"websitescreenshot": {
"command": "node",
"args": ["/absolute/path/to/websitescreenshot-mcp/build/index.js"],
"env": {
"SCREENSHOT_API_KEY": "ws_replace_with_your_real_api_key",
"SCREENSHOT_REQUEST_TIMEOUT_MS": "60000"
}
}
}
}Claude Code — ~/.claude.json
{
"mcpServers": {
"websitescreenshot": {
"type": "stdio",
"command": "node",
"args": ["/absolute/path/to/websitescreenshot-mcp/build/index.js"],
"env": {
"SCREENSHOT_API_KEY": "ws_replace_with_your_real_api_key"
}
}
}
}Cursor / VS Code(.cursor/mcp.json)
{
"mcpServers": {
"websitescreenshot": {
"command": "node",
"args": ["/absolute/path/to/websitescreenshot-mcp/build/index.js"],
"env": { "SCREENSHOT_API_KEY": "ws_replace_with_your_real_api_key" }
}
}
}Cline / Continue / Zed / Raycast
它们都接受相同的 command + args + env 结构——只需将它们指向 build/index.js 并通过 env 传入 SCREENSHOT_API_KEY。
编辑配置后重启主机,这三个工具就会出现在其工具面板中。
5. 自托管 WebsiteScreenshot
如果你运行自己的 WebsiteScreenshot 实例,请将服务器指向它:
"env": {
"SCREENSHOT_API_KEY": "ws_replace_with_your_real_api_key",
"SCREENSHOT_API_BASE": "https://your-self-hosted.example.com"
}6. 使用示例
你不需要手动编写 JSON——模型会替你完成。以下是模型实际会发送的请求体。
截图——落地页的视口
take_screenshot({
url: "https://example.com",
resolution: { width: 1440, height: 900 },
format: "png",
fullSize: false,
blockAds: true,
blockCookiesGdpr: true,
delay: 1
})截图——用于归档的整页 PDF
take_screenshot({
url: "https://news.ycombinator.com",
fullSize: true,
format: "pdf"
})同步视频(≤ 6 分钟)
record_website_video({
url: "https://stripe.com",
format: "mp4",
scrollMode: "smooth",
smoothScrollSpeed: "normal",
resolution: { width: 1280, height: 720 }
})异步视频 + 状态轮询
record_website_video({ url: "https://stripe.com", async: true })
// → { "success": true, "requestId": "f7c1..." }
check_video_status({ requestId: "f7c1..." })
// → { "status": "pending", ... } // poll again
// → { "status": "completed", "videoUrl": "https://...", ... }7. 工具参考
take_screenshot
字段 | 类型 | 默认值 | 说明 |
| string (URL) | — | 必填 |
|
| 1920×1080 | 任意预设或自定义尺寸 |
| bool |
| 捕获整个可滚动页面 |
|
|
| |
| bool |
| 先关闭 Cookie 横幅 |
| bool |
| 屏蔽广告网络 |
| int(0–10 秒) |
| 捕获前等待时间 |
响应结构:
{
"success": true,
"imageUrl": "https://websitescreenshot.online/screenshots/abc.png",
"filename": "abc.png"
}record_website_video
字段与上表相同,另加:
字段 | 类型 | 默认值 |
|
|
|
|
|
|
|
|
|
| int 100–1000(px) |
|
| int 200–5000(ms) |
|
| bool |
|
同步响应:
{ "success": true, "videoUrl": "https://…/abc.webm", "filename": "abc.webm" }异步响应:
{ "success": true, "requestId": "f7c1…" }check_video_status
字段 | 类型 |
| string |
响应:
{
"status": "completed",
"siteUrl": "https://…",
"result": { "success": true, "videoUrl": "https://…", "filename": "abc.webm" },
"updatedAt": 1730000000000
}status 为 pending | completed | error 之一。结果保留 24 小时后删除。
8. 错误处理
每个 API 错误都会映射为包含 code、status 和 error 字段的 MCP isError: true 结果。常见错误码:
代码 | 含义 |
| 密钥缺失或已吊销 |
| 达到每密钥或每 IP 限制;请稍后重试 |
| 套餐配额已用尽 |
| 输入未通过 Zod 校验 |
| 服务端错误;请退避重试 |
| 请求耗时超过 |
|
|
速率限制:每个 API 密钥 每分钟 10 次截图和每分钟 5 次视频。
9. 环境变量
变量 | 是否必填 | 默认值 | 用途 |
| 是 | — | 发送给 API 的 Bearer 令牌 |
| 否 |
| 用于自托管/预发布环境的覆盖地址 |
| 否 |
| 单请求中止超时时间(毫秒) |
10. 开发
npm run dev # tsx, hot reload stdio
npm run lint # type-check only
npm run build # emit build/index.js要将开发服务器指向自托管 API:
SCREENSHOT_API_BASE=http://localhost:3000 \
SCREENSHOT_API_KEY=ws_dev_replace_me \
npm run dev11. 许可证
MIT © Crownbyte LTD——参见 LICENSE。
网站:https://websitescreenshot.online 托管 MCP:https://websitescreenshot.online/api/mcp 文档:https://websitescreenshot.online/en/docs/mcp 支持:support@websitescreenshot.online
Available Tools
3 toolscheck_video_statusA
Poll the status of an async video job created by record_website_video(async=true).
Inputs: requestId (required).
record_website_videoA
Record a scrolling webm/mp4/gif capture of any public URL. Returns the public video URL (24h TTL). Pass async=true to receive a requestId; poll check_video_status until status=completed or status=error.
Inputs: url (required), async, delay, format, +7 more.
take_screenshotA
Capture a PNG/JPEG/PDF screenshot of any public URL via WebsiteScreenshot.online. Returns the public image URL (24h TTL) and metadata. Use fullSize=true for full-page captures.
Inputs: url (required), delay, format, blockAds, +3 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct role: take_screenshot captures an image, record_website_video captures a video, and check_video_status polls an async video job. There is no ambiguity about which tool to select for a given task.
All tool names follow a consistent snake_case verb_noun pattern: take_screenshot, record_website_video, check_video_status. The pattern is predictable and clearly indicates the action being performed.
Three tools is well-scoped for a screenshot/video capture server: one for screenshots, one for video, and one for async status polling. Each tool earns its place without unnecessary redundancy.
The core capture lifecycle is covered: synchronous screenshot capture, synchronous or asynchronous video capture, and async job polling. Minor gaps exist such as listing or canceling active video jobs, but the main workflows are fully usable.
Maintenance
Related MCP Connectors
Let your AI agent see any public web page: one screenshot tool, returns the page as an image.
Give your agent eyes: screenshots of any web page it can see, pages as markdown, and PDFs.
Generate images, GIFs, videos, and PDFs from HTML, URLs, or templates — from your AI agent.
Capture websites as PNG, JPEG, WebP or PDF, extract their content, or analyse them with AI.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to capture screenshots of web pages using automated browser sessions. Supports full-page and element-specific screenshots, device simulation, and JavaScript execution for comprehensive web testing and monitoring.6MIT

Grabbitofficial
AlicenseNot gradedqualityCmaintenanceScreenshot MCP for agents. Send a public URL, get a pixel-perfect CDN image. Full page, header, mobile, or custom. Cookie banner suppression. Handles sites that block headless browsers. Works with Claude, Cursor, Codex. $0.002/grab.MIT- FlicenseNot gradedqualityAmaintenanceEnables AI vision workflows to capture fresh webpage screenshots, specific DOM elements, and timed screencasts, automatically limiting resolution and tiling full pages into 1072x1072 chunks for LLM-friendly processing.-
- FlicenseNot gradedqualityAmaintenanceEnables AI vision workflows and coding tools to capture high-quality webpage screenshots, full-page tiled images, specific DOM elements, and timed screencasts, optionally saved as files or animated WebP.-