SnapRender集成
](https://smithery.ai/server/snaprender/snaprender) ](https://www.npmjs.com/package/snaprender-mcp) ](https://www.npmjs.com/package/snaprender)  
官方集成 SnapRender 截图 API --以PNG、JPEG、WebP或PDF格式捕获任何网站的屏幕截图。
远程MCP服务器
SnapRender运行托管的MCP服务器——从任何MCP客户端连接,无需安装:
https://app.snap-render.com/mcp- 运输: 可流式传输的HTTP (MCP规范2025-03-26)
- 认证:
X-API-Key标题或Authorization: Bearer头球 - 工具:
take_screenshot,check_screenshot_cache,get_usage - 提示:
screenshot_website,compare_devices
克劳德桌面(远程——推荐)
{
"mcpServers": {
"snaprender": {
"type": "streamable-http",
"url": "https://app.snap-render.com/mcp",
"headers": {
"Authorization": "Bearer sk_live_your_key_here"
}
}
}
}任何MCP客户端(curl)
# Initialize a session
curl -X POST https://app.snap-render.com/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "X-API-Key: sk_live_your_key_here" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"test","version":"1.0"}}}'服务器返回一个 Mcp-Session-Id header——将其包含在后续请求中以重用会话。
铁匠铺
通过安装 铁匠铺 用于与任何MCP客户端进行自动设置。
本地MCP服务器(npm)
如果您更喜欢通过stdio传输在本地运行:
{
"mcpServers": {
"snaprender": {
"command": "npx",
"args": ["-y", "snaprender-mcp"],
"env": {
"SNAPRENDER_API_KEY": "sk_live_your_key_here"
}
}
}
}看 mcp服务器/ 获取完整文档。
远程vs本地
| 远程(托管) | 本地(npx) | |
|---|---|---|
| 安装 | 无-只有HTTPS URL | 需要Node.js+npx |
| 运输 | 可流式传输HTTP | stdio |
| 用例 | 任何MCP客户端、Smithery、web应用程序 | 克劳德桌面、克劳德代码 |
MCP工具
take_screenshot
捕获任何网站的屏幕截图。以PNG、JPEG、WebP或PDF格式返回图像。
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
url | string | 是 | 要捕获的URL(http://或https://) |
format | string | 否 | png, jpeg, webp,或 pdf (默认值: png) |
width | integer | 否 | 视口宽度320-3840(默认值:1280) |
height | integer | 否 | 视口高度200-10000(默认值:800) |
full_page | boolean | 否 | 捕获整个可滚动页面 |
device | string | 否 | iphone_14, iphone_15_pro, pixel_7, ipad_pro, macbook_pro |
dark_mode | boolean | 否 | 启用暗模式 |
block_ads | boolean | 否 | 阻止广告(默认值:true) |
block_cookie_banners | boolean | 否 | 删除cookie横幅(默认值:true) |
quality | integer | 否 | JPEG/WebP质量1-100(默认值:90) |
delay | integer | 否 | 页面加载后等待毫秒(默认值:0) |
hide_selectors | string | 否 | 要隐藏的逗号分隔的CSS选择器 |
click_selector | string | 否 | 捕获前要单击的CSS选择器 |
check_screenshot_cache
检查截图是否缓存而不捕获。不计入配额。
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
url | string | 是 | 要检查的URL |
format | string | 否 | 输出格式(默认值: png) |
get_usage
获取屏幕截图使用统计数据。
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
month | string | 否 | 月份 YYYY-MM 格式(默认值:当月) |
代理框架集成
| 框架 | 目录 | 描述 |
|---|---|---|
| 语言链Python | langchain/ | @tool LangChain/LangGraph代理的装饰函数(PyPI) |
| LangChain.js | langchain-js/ | StructuredTool LangChain.js代理的类() |
| 船员AI | crewai/ | BaseTool CrewAI试剂的子类(PyPI) |
| 自动生成 | autogen/ | FunctionTool Microsoft AutoGen代理的包装器(PyPI) |
| n8n | 独立仓库 | n8n工作流的社区节点() |
其他集成
| 集成 | 描述 | 设置时间 |
|---|---|---|
| 开放式法律技能 | OpenClaw AI代理的技能文件 | 5分钟 |
| ChatGPT操作 | 自定义GPT和OpenAI函数调用的OpenAPI规范 | 5分钟 |
| Postman 集合 | Postman的预构建API请求 | 1分钟 |
SDK
# Node.js
npm install snaprender
# Python
pip install snaprender直接API
curl "https://app.snap-render.com/v1/screenshot?url=https://example.com" \
-H "X-API-Key: sk_live_your_key_here" \
-o screenshot.png获取API密钥
免费注册 snap-render.com --每月200张截图,无需信用卡。
链接
- 文档
- 远程MCP服务器 --可流式传输的HTTP端点
- (
npx snaprender-mcp) - Smithery上的MCP服务器
- (
npm install snaprender) - 开发包 (
pip install snaprender) - LangChain Python工具 (
pip install langchain-snaprender) - LangChain.js工具 (
npm install langchain-snaprender) - CrewAI工具 (
pip install crewai-snaprender) - 自动生成工具 (
pip install autogen-ext-snaprender) - n8n社区节点 (
npm install n8n-nodes-snaprender) - OpenAPI规范
- Postman 集合
许可证
麻省理工学院
