WebsiteScreenshot.online MCP Server
Enables AI assistants to capture website screenshots and record videos of web pages by providing tools for taking screenshots, recording videos, and checking video status.
README
WebsiteScreenshot.online MCP Server
A Model Context Protocol server that wraps the WebsiteScreenshot.online REST API and exposes it as three MCP tools any MCP-compatible host (Claude Desktop, Claude Code, Cursor, Cline, Continue, Zed, Raycast, …) can call directly.
⚡ Most users don't need this package
If you just want your AI assistant to take screenshots and record videos, use the hosted endpoint instead — zero install, one line of JSON:
See the per-host configuration snippets for Claude Code, Claude Desktop, Cursor, Cline, Codex CLI, Gemini CLI, Continue, Windsurf, and Zed.
You only need this npm package if one of the following applies:
- 🛰️ Air-gapped or restricted network — your AI host cannot reach
websitescreenshot.onlinedirectly. - 🏠 Self-hosted WebsiteScreenshot — you run your own instance and need
SCREENSHOT_API_BASEpointing at it. - 🔧 You want to audit / modify the server — this is the same code the hosted endpoint runs, just without the Next.js wrapper.
In every other case, the hosted endpoint is strictly better (no Node dependency, automatic updates, no maintenance burden).
1. Prerequisites
- Node.js ≥ 18.18 (LTS recommended)
- A free or paid WebsiteScreenshot.online account
- A WebsiteScreenshot.online API key (see § 2)
2. Get an API key
- Sign up at https://websitescreenshot.online (GitHub OAuth or email).
- Switch to your locale if needed (e.g.
/en/dashboard/api-keys,/zh-CN/dashboard/api-keys). - Open Dashboard → API Keys → Create new key.
- Copy the key. It starts with
ws_followed by 64 hex chars (e.g.ws_<your-key-here>) and is shown once — store it somewhere safe.
The MCP server only ever reads the key from the environment. It is never logged, never sent to the model, and never written to disk by this package.
3. Install & build
git clone https://github.com/Website-Screenshot-Online/websitescreenshot-mcp.git
cd websitescreenshot-mcp
npm install
npm run build
That's it — build/index.js is a self-contained executable you can wire into
any MCP host.
4. Configure your MCP host
Claude Desktop — claude_desktop_config.json
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or
%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
All accept the same command + args + env shape — just point them at
build/index.js and pass SCREENSHOT_API_KEY through env.
Restart the host after editing its config and the three tools will show up in its tool palette.
5. Self-hosted WebsiteScreenshot
If you run your own WebsiteScreenshot instance, point the server at it:
"env": {
"SCREENSHOT_API_KEY": "ws_replace_with_your_real_api_key",
"SCREENSHOT_API_BASE": "https://your-self-hosted.example.com"
}
6. Usage examples
You don't write JSON manually — the model does. These are the payloads the model will actually send.
Screenshot — viewport of a landing page
take_screenshot({
url: "https://example.com",
resolution: { width: 1440, height: 900 },
format: "png",
fullSize: false,
blockAds: true,
blockCookiesGdpr: true,
delay: 1
})
Screenshot — full-page PDF for archival
take_screenshot({
url: "https://news.ycombinator.com",
fullSize: true,
format: "pdf"
})
Synchronous video (≤ 6 min)
record_website_video({
url: "https://stripe.com",
format: "mp4",
scrollMode: "smooth",
smoothScrollSpeed: "normal",
resolution: { width: 1280, height: 720 }
})
Async video + status polling
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. Tool reference
take_screenshot
| Field | Type | Default | Notes |
|---|---|---|---|
url |
string (URL) | — | required |
resolution |
{ width, height } |
1920×1080 | Any preset or custom size |
fullSize |
bool | false |
Capture entire scrollable page |
format |
png | jpeg | pdf |
png |
|
blockCookiesGdpr |
bool | true |
Dismiss cookie banners first |
blockAds |
bool | true |
Block ad networks |
delay |
int (0–10 seconds) | 1 |
Wait before capturing |
Response shape:
{
"success": true,
"imageUrl": "https://websitescreenshot.online/screenshots/abc.png",
"filename": "abc.png"
}
record_website_video
Same fields as above plus:
| Field | Type | Default |
|---|---|---|
format |
webm | mp4 | gif |
webm |
scrollMode |
step | smooth |
step |
smoothScrollSpeed |
slow | normal | fast |
normal |
scrollDistance |
int 100–1000 (px) | 500 |
scrollDelay |
int 200–5000 (ms) | 1000 |
async |
bool | false |
Sync response:
{ "success": true, "videoUrl": "https://…/abc.webm", "filename": "abc.webm" }
Async response:
{ "success": true, "requestId": "f7c1…" }
check_video_status
| Field | Type |
|---|---|
requestId |
string |
Response:
{
"status": "completed",
"siteUrl": "https://…",
"result": { "success": true, "videoUrl": "https://…", "filename": "abc.webm" },
"updatedAt": 1730000000000
}
status is one of pending | completed | error. Results are kept
for 24 hours then deleted.
8. Error handling
Every API error is mapped to an MCP isError: true result containing
code, status, and error fields. Common codes:
| Code | Meaning |
|---|---|
UNAUTHORIZED |
Missing / revoked key |
RATE_LIMITED |
Per-key or per-IP limit hit; retry later |
USAGE_LIMIT_EXCEEDED |
Plan quota exhausted |
INVALID_PARAMETERS |
Input failed Zod validation |
INTERNAL_ERROR |
Server-side bug; retry with backoff |
TIMEOUT |
Request took longer than SCREENSHOT_REQUEST_TIMEOUT_MS |
NOT_FOUND |
requestId unknown or expired |
Rate limits: 10 screenshots / min and 5 videos / min per API key.
9. Environment variables
| Variable | Required | Default | Purpose |
|---|---|---|---|
SCREENSHOT_API_KEY |
yes | — | The Bearer token sent to the API |
SCREENSHOT_API_BASE |
no | https://websitescreenshot.online |
Override for self-hosted / staging |
SCREENSHOT_REQUEST_TIMEOUT_MS |
no | 60000 |
Per-request abort timeout (ms) |
10. Development
npm run dev # tsx, hot reload stdio
npm run lint # type-check only
npm run build # emit build/index.js
To point the dev server at a self-hosted API:
SCREENSHOT_API_BASE=http://localhost:3000 \
SCREENSHOT_API_KEY=ws_dev_replace_me \
npm run dev
11. License
MIT © Crownbyte LTD — see LICENSE.
Website: https://websitescreenshot.online Hosted MCP: https://websitescreenshot.online/api/mcp Docs: https://websitescreenshot.online/en/docs/mcp Support: support@websitescreenshot.online
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。