site-shot-mcp
OfficialSite-Shot MCP server
让 Claude、Cursor 和其他 AI 代理能够看到任意网页 —— 通过 Model Context Protocol 使用 Site-Shot 截取网站截图。
真实的 Chromium 渲染 · 整页截取 · 国家代理 · 自动移除广告和 Cookie 横幅(图像更干净、视觉令牌更少)。
快速开始(Claude Desktop)
在 https://www.site-shot.com/start/ 获取 Site-Shot API 密钥。
将其添加到 Claude Desktop 配置(
claude_desktop_config.json)中:
{
"mcpServers": {
"site-shot": {
"command": "npx",
"args": ["-y", "site-shot-mcp"],
"env": { "SITESHOT_API_KEY": "YOUR_API_KEY" }
}
}
}重启 Claude Desktop。让它 “对 https://news.ycombinator.com 截取整页截图”,它就会调用服务器并把图像展示给你。
在任何 MCP 客户端(Cursor、Cline、VS Code、LangChain、CrewAI)中的用法都一样 —— 只需要让客户端在环境中携带 SITESHOT_API_KEY 指向 npx -y site-shot-mcp 即可。
Related MCP server: MCP Browser Screenshot Server
工具
capture_screenshot
截取一个网页的截图(默认按视口截取)。
参数 | 类型 | 默认值 | 说明 |
| string(必填) | — | 要截取的页面 |
| boolean |
| 截取整个可滚动页面 |
| number | API 默认值 | 视口 / 设备尺寸 |
|
|
| 图像格式 |
| boolean |
| 移除广告 |
| boolean |
| 移除 Cookie 同意弹窗 |
| string | — | 代理国家 / 地区,使用两位 ISO 3166-1 alpha-2 代码,例如 |
| boolean |
| 如果该国没有代理则报错,而不是回退到美国 |
| string | — | 手动覆盖项 |
| number | API 默认值 | 截取前的额外等待(SPA / 动画) |
| number | 20000(整页) | 限制截取的高度上限 |
以 MCP 图像形式返回截图。
“API 默认值”并不是这个包能够声明的某个数值。
width、height和wait_ms只会在你传入时才被转发,因此当你不传参数时实际生效的值由 Site-Shot API 决定,并且可能在本包没有任何发版变动的情况下发生变化。1.1.0 及更早版本为width/height打印了 API 并不使用的像素尺寸 —— 省略这些参数去“采用默认值”的代理会得到 不同的视口,而返回的图像中没有任何信息能揭示这一点。只要尺寸很重要,就请传入显式值。
国家代码是 ISO 代码,绝不是名称。 请传
"DE",而不是"Germany"。API 会精确匹配代码, 否则就会在不告知你的情况下通过美国代理渲染。因此,服务器会在消耗一次渲染之前拒绝完整名称。strict_country(默认开启)同样会把不可用的国家变成错误,而不是静默地截出一张美国截图 —— 传false即可重新启用回退。 支持的国家 →
capture_full_page
与 capture_screenshot 相同,但已启用了整页截取。
为什么要调用这个服务器,而不是用代理自带的浏览器?
如果你的代理驱动浏览器,它完全可以自己截取页面 —— 对于那些需要登录或需要逐步走完整流程的页面,那才是正确的工具。对于公开 URL,把截取工作委托给这个服务器通常是更好的工程实践:每次截取都运行相同的流水线(多次运行之间无需重新规划),可以从特定国家 / 地区截取并匹配相应的语言环境、时区(country + strict_country),返回前还会由图像分类器评分,并带有逐级升级的重试机制作为后盾,而且每次查看的成本只是一美分的一小部分,而不是一个浏览器会话加视觉令牌。完整的两侧对比、两种方向都如实说明:
AI 代理 vs. 截图 API —— 谁应当截取页面。
配置
环境变量 | 必填 | 说明 |
| 是 | 你的 Site-Shot API 密钥(用作 |
该服务器是现有 Site-Shot HTTP API(https://api.site-shot.com/)的薄封装 —— 没有独立的后端。
本地开发
npm install
npm run check # syntax check
npm run smoke # offline tests (stubbed fetch, no API key needed)
SITESHOT_API_KEY=yourkey npm start # run the server on stdio环境要求
Node.js ≥ 18(使用内置的 fetch)。
许可证
MIT
Available Tools
2 toolscapture_full_pageCapture full-page website screenshotAInspect
Take a full-page (entire scrollable height) screenshot of a web page with Site-Shot and return it as an image. Convenience wrapper around capture_screenshot with full-page capture enabled.
Inputs: url (required), width, height, format, +8 more.
capture_screenshotCapture website screenshotBInspect
Take a screenshot of a web page with Site-Shot and return it as an image. Renders in a real Chromium browser. Supports viewport/device sizing, full-page capture, country proxies, and automatic ad & cookie-banner removal (cleaner image, fewer vision tokens).
Inputs: url (required), width, height, format, +9 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools are nearly identical; capture_full_page is explicitly a wrapper for capture_screenshot with full-page enabled. An agent would likely misuse them, as the difference is only a parameter.
Both use verb_noun pattern ('capture_screenshot', 'capture_full_page'), but 'full_page' is a qualifier while 'screenshot' is the resource; inconsistent because one tool name specifies a parameter in the name itself.
Two tools is minimal but arguably sufficient for a simple screenshot service. However, the duplication suggests one tool could have been omitted, making the surface slightly too heavy for the scope.
The set covers basic screenshot needs with features like viewport sizing, proxies, and ad removal. However, it lacks tools for specific device emulation or batch processing, which are common in screenshot services.
Maintenance
Related MCP Connectors
Let your AI agent see any public web page: one screenshot tool, returns the page as an image.
Screenshot API for AI agents. Any public page as image or PDF, banners hidden, 227 countries.
Screenshot any public web page from an AI agent. Free without signup, or with an API key.
Screenshot, PDF and Open Graph image API for AI agents: capture pages, render PDFs, make OG images.
Related MCP Servers
- AlicenseBqualityCmaintenanceAn official MCP server implementation that allows AI assistants to capture website screenshots through the ScreenshotOne API, enabling visual context from web pages during conversations.138MIT
- 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
- AlicenseAqualityDmaintenanceEnables AI assistants to capture screenshots of any public URL, returning images inline with page metadata. Supports full-page captures, custom wait times, and timeouts.135 npmMIT
- AlicenseAqualityDmaintenanceEnables AI agents to capture clean web screenshots and extract main article content from any web page, with automatic removal of cookie banners, ads, and boilerplate.2MIT