Getsnap

dev.getsnap由 getsnap.dev 发布v1.14.5更新于 Oct 31, 2026

Screenshots, PDFs, visual diffs and accessibility audits, returned inline so a model can see them

概览

AI 生成的概览

getSnap.dev 官方 MCP 服务器,让助手通过托管截图 API 对网页截图、生成 PDF、做像素对比和无障碍审计。

可以做什么
  • 把网址截成内联图片,可选整页或手机/平板模拟,并默认去除 Cookie 横幅和广告浮层
  • 把网址渲染为 PDF 并返回文件链接
  • 对两个网址做逐像素对比,返回相似度分数和标出变化的叠加图
  • 对网址运行 axe-core 无障碍审计,按严重程度返回 WCAG 2.0/2.1/2.2 违规项及对应元素
  • 查询该 API 密钥本期已用和剩余额度
适用场景
适合需要助手真正“看到”网页而不只是读 HTML 的场景:检查移动端布局、对比预发与生产环境、列出无障碍问题。适用于以截图或差异图就能一次回答问题的视觉检查与评审流程。
运行要求
以 stdio 本地运行,由客户端通过 npx 启动,需要 Node.js 和网络访问。必须在 GETSNAP_API_KEY 环境变量中提供 getSnap.dev API 密钥,缺少时服务器会立即退出。可用可选的 GETSNAP_BASE_URL 覆盖默认 API 地址。免费额度为每月 100 次截图。
安装前请注意
每次截图都会消耗密钥额度:截图、PDF 和审计各 1 点,页面对比 2 点;check_usage 免费。提交的网址会发送到 getSnap.dev 服务进行渲染。约 1.5 MB 以上的截图不会内联,而是返回 CDN 链接。请勿把 API 密钥写入共享配置文件。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Getsnap,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

getsnap-mcp

Official MCP server for getSnap.dev. Gives Claude and other agents the ability to capture a web page, compare two pages and audit one for accessibility.

The capture tools return the image itself, not a link to it. A model can look at the page it just asked for, so "screenshot this and tell me what's broken" works in a single turn.

Install

No install step. Your client runs it with npx.

Get a free API key at getsnap.dev — 100 captures a month, no card.

Claude Code

bash
claude mcp add getsnap --env GETSNAP_API_KEY=sk_live_... -- npx -y getsnap-mcp

Claude Desktop

claude_desktop_config.json:

json
{  "mcpServers": {    "getsnap": {      "command": "npx",      "args": ["-y", "getsnap-mcp"],      "env": { "GETSNAP_API_KEY": "sk_live_..." }    }  }}

The same block works in any client that speaks MCP over stdio.

Tools

ToolCreditsReturns
capture_screenshot1The image, inline
capture_pdf1A link — a PDF can't be shown to a model
compare_pages2Similarity score + the diff overlay, inline
audit_accessibility1WCAG violations by severity
check_usage0Credits used and remaining

Cookie banners and ad overlays are removed by default on captures. Cached responses cost nothing and say so.

Things worth knowing

Large images are not inlined. Past about 1.5 MB the capture still happened and is still on the CDN, so the tool returns the link and says why. A full_page capture of a long page will usually hit this — pass format: "jpeg" or full_page: false to get it inline instead.

Every capture spends a credit, so each tool description states its cost. An agent deciding whether to call something should be able to see what it will cost before it does.

compare_pages costs 2, because it launches a browser per URL.

Configuration

VariableRequiredDefault
GETSNAP_API_KEYyes—
GETSNAP_BASE_URLnohttps://api.getsnap.dev

Without a key the server exits immediately with a message explaining where to get one, rather than starting and failing on first use.

Examples

Once connected, ask your agent in plain language:

  • "Screenshot stripe.com on mobile and tell me if anything overlaps."
  • "Compare our staging site against production and show me what moved."
  • "Audit example.com for accessibility and list the critical failures."
  • "How many getSnap credits do I have left?"

Links

Versioning

This package versions independently of the getSnap REST API and the Node and Python SDKs. It shared their number until 1.14.3, when it moved out of the API monorepo into this repository; from here it moves on its own schedule.

MIT licensed. Issues to [email protected].

来源:README.md,提交 0d21f09

工具

5

capture_screenshot

Capture a screenshot

Render a URL in a real browser and return the image, so you can see the page. Removes cookie banners and ad overlays by default. Costs 1 credit per call. Use full_page for the whole scrollable page, or device to emulate a phone or tablet.

输入参数url必填delaydeviceformatfull_pagereturn_imageviewport_widthviewport_height

capture_pdf

Capture a page as PDF

Render a URL to PDF and return a link to it. Costs 1 credit per call. A PDF cannot be shown to you inline - use capture_screenshot if you need to read the page yourself.

输入参数url必填delayfull_page

compare_pages

Compare two pages visually

Capture two URLs and compare them pixel by pixel. Returns a similarity score and an overlay image marking what changed, which you can look at. Costs 2 credits - it launches a browser per URL. Use for staging against production, or a page before and after a change.

输入参数after_url必填full_pagethresholdbefore_url必填

audit_accessibility

Audit a page for accessibility problems

Run axe-core against a URL in a real browser and return WCAG 2.0/2.1/2.2 violations by severity, with the elements responsible. Costs 1 credit per call. Returns structured findings rather than an image, so you can act on them directly.

输入参数url必填max_violations

check_usage

Check remaining credits

How many credits are used and remaining on this key this period. Free - spends no credit.

无需输入参数。

版本历史

1
  1. v1.14.5最新Oct 24, 2026

评分

已满足适用检查项的 90%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分
  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分