Skip to main content
Glama

SnapRender 集成

npm MCP npm SDK PyPI SDK License: MIT

SnapRender 截图 API 的官方集成 — 可将任何网站截取为 PNG、JPEG、WebP 或 PDF 格式。

远程 MCP 服务器

SnapRender 运行着一个托管的 MCP 服务器 — 可从任何 MCP 客户端连接,无需安装:

https://app.snap-render.com/mcp
  • 传输协议: Streamable HTTP (MCP 规范 2025-03-26)

  • 身份验证: X-API-Key 请求头或 Authorization: Bearer 请求头

  • 工具: take_screenshot、check_screenshot_cache、get_usage

  • 提示词: screenshot_website、compare_devices

Claude Desktop (远程 — 推荐)

{
  "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 请求头 — 将其包含在后续请求中以复用会话。

Smithery

通过 Smithery 安装,以便与任何 MCP 客户端自动设置。

Related MCP server: screenshots-snapshot-site

本地 MCP 服务器 (npm)

如果您更喜欢通过 stdio 传输协议在本地运行:

{
  "mcpServers": {
    "snaprender": {
      "command": "npx",
      "args": ["-y", "snaprender-mcp"],
      "env": {
        "SNAPRENDER_API_KEY": "sk_live_your_key_here"
      }
    }
  }
}

请参阅 mcp-server/ 获取完整文档。

远程 vs 本地

远程 (托管)

本地 (npx)

安装

无 — 仅需 HTTPS URL

需要 Node.js + npx

传输协议

Streamable HTTP

stdio

使用场景

任何 MCP 客户端、Smithery、Web 应用

Claude Desktop、Claude Code

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 格式的月份 (默认: 当前月份)

智能体框架集成

框架

目录

描述

LangChain Python

langchain/

用于 LangChain / LangGraph 智能体的 @tool 装饰函数 (PyPI)

LangChain.js

langchain-js/

用于 LangChain.js 智能体的 StructuredTool 类 (npm)

CrewAI

crewai/

用于 CrewAI 智能体的 BaseTool 子类 (PyPI)

AutoGen

autogen/

用于 Microsoft AutoGen 智能体的 FunctionTool 包装器 (PyPI)

n8n

独立仓库

用于 n8n 工作流的社区节点 (npm)

其他集成

集成

描述

设置时间

OpenClaw Skill

OpenClaw AI 智能体的技能文件

5 分钟

ChatGPT Actions

用于自定义 GPT 和 OpenAI 函数调用的 OpenAPI 规范

5 分钟

Postman Collection

预构建的 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 次截图,无需信用卡。

链接

许可证

MIT

Available Tools

11 tools
batch_screenshotsAInspect

Create a batch screenshot job for multiple URLs (1-50). Returns immediately with a job ID. Use get_batch_status to poll for results (wait 2-5 seconds between polls). All URLs share the same screenshot options. Each URL consumes one credit; failed URLs get credits rolled back.

Inputs: urls (required), delay, width, device, +10 more.

check_screenshot_cacheA
Read-only
Inspect

Check if a screenshot is already cached without capturing a new one. Does not count against your quota. Pass the same parameters you would use for take_screenshot so the cache key matches correctly.

Inputs: url (required), width, device, format, +7 more.

create_webhookAInspect

Create a webhook subscription for event notifications. Events: screenshot.completed (batch job done), quota.warning (80% used), quota.exceeded (100% used), capture.completed and change.detected (scheduled captures). Max 5 webhooks per account. Payloads are signed with HMAC-SHA256. Save the returned secret to verify signatures.

Inputs: url (required), events (required).

delete_webhookA
Destructive
Inspect

Delete a webhook subscription by ID. This cannot be undone.

Inputs: webhook_id (required).

extract_contentA
Read-only
Inspect

Extract content from a web page. Returns structured data based on the extraction type. Supports: markdown (readable content), text (plain text), html (raw HTML), article (structured with title/author/excerpt), links (all page links), metadata (OG tags, title, description).

Inputs: url (required), type, cache, delay, +5 more.

get_batch_statusA
Read-only
Inspect

Get the status of a batch screenshot job. Poll this until status is 'completed' or 'failed' (wait 2-5 seconds between polls). Completed items include presigned download URLs valid for 24 hours.

Inputs: job_id (required).

get_usageA
Read-only
Inspect

Get current month's screenshot usage statistics including screenshots used, limit, and remaining quota.

Inputs: no named parameters.

list_webhooksA
Read-only
Inspect

List all webhook subscriptions on your account. Returns webhook IDs, URLs, subscribed events, and creation dates.

Inputs: no named parameters.

sign_screenshot_urlA
Read-only
Inspect

Generate a signed URL for a screenshot that can be used without an API key. Useful for embedding screenshots in emails, documents, or sharing with third parties. Signing is free, rendering the URL consumes one credit. URLs expire after the specified duration.

Inputs: url (required), delay, width, device, +11 more.

take_screenshotA
Read-only
Inspect

Capture a screenshot of a website URL, raw HTML, or Markdown content. Provide exactly one of: url, html, or markdown. Returns the image as a PNG, JPEG, WebP, or PDF. Supports device emulation (iPhone, Pixel, iPad), dark mode, ad blocking, cookie banner removal, full-page capture, and custom viewports.

Inputs: url, html, cache, delay, +14 more.

test_webhookAInspect

Send a test payload to a webhook endpoint to verify it receives events correctly. Returns the delivery status and HTTP response code.

Inputs: webhook_id (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 11 tools

    Disambiguation5/5

    Each tool targets a distinct action+resource: single capture, batch capture, cache check, URL signing, batch polling, content extraction, webhook CRUD/test, and usage. The capture-family tools (take_screenshot, batch_screenshots, extract_content) are clearly differentiated by descriptions covering single vs. bulk vs. structured extraction.

    Naming Consistency4/5

    Mostly a consistent verb_noun pattern (take_screenshot, check_screenshot_cache, get_batch_status, extract_content, list_webhooks, create_webhook, delete_webhook, test_webhook, get_usage). The lone deviation is batch_screenshots, which is noun-first but still readable and unambiguous.

    Tool Count5/5

    11 tools is well within the sweet spot for a screenshot/rendering service, with each tool covering a distinct capability (capture, batch, cache, signing, extraction, webhooks, usage). No tool feels redundant or padded.

    Completeness4/5

    Covers the core lifecycle: single/batch capture, cache check, signed sharing, content extraction, webhook management, and usage reporting. Minor gaps exist such as no batch cancel/list or update_webhook (delete-and-recreate is the workaround), but no workflow dead-ends.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI assistants to capture website screenshots, automate browser interactions, and manage recurring screenshot configurations across 150+ global locations. It also supports AI-powered domain research and visual change monitoring for any web page.
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Screenshot, visual-diff, and AI page-analysis API for AI agents. Capture any URL as PNG, JPEG, WebP, PDF, or HTML, diff two versions of a page to catch visual regressions, and get an AI summary of what a page contains.
      3
      58 npm
      1
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Screenshot 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