Nightglass

io.github.mizukaizen由 GitHub 账号 mizukaizen 发布v1.0.0更新于 Oct 24, 2026

Screenshot API for MCP clients. Capture any URL as PNG with mockup mode support.

已验证STDIO仅桌面浏览器自动化媒体与设计

概览

AI 生成的概览

Nightglass 是一个本地 MCP 服务器,让助手通过 nightglass 截图 API 将任意网站截取为 PNG、JPEG 或 WebP 图片。

可以做什么
截取任意 URL 的截图,可选择格式、视口尺寸、整页截取、加载延迟和深色模式,并以图片形式返回对话中;以 mockup 样式将截图包进浏览器外框;查询账户余额和剩余截图额度。
适用场景
适合需要让助手获取实时网页视觉画面的场景,例如设计稿、视觉检查或展示网站当前外观,而无需在本地运行浏览器。
运行要求
以本地进程运行,需从 npm 包 nightglass-mcp 安装,因此需要 Node.js。需要 nightglass API 密钥,通过环境变量 NIGHTGLASS_API_KEY 提供,可在 nightglass 控制台获取。需要访问 nightglass API 的网络连接。
安装前请注意
API 密钥是保存在客户端配置中的机密。免费额度用完后截图会消耗付费额度,README 还提到基于 Base 上 USDC 的自主代理支付。提交的 URL 会发送给第三方 nightglass 服务。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

nightglass MCP Server

Take website screenshots from any MCP-compatible client — Claude Desktop, Cursor, Windsurf, Claude Code, and more.

Powered by the nightglass screenshot API.

Tools

take_screenshot

Capture a screenshot of any website. Returns a PNG image directly in the conversation.

Parameters:

ParameterTypeDefaultDescription
urlstringrequiredURL to screenshot
formatpng | jpeg | webppngOutput format
styleraw | mockuprawmockup wraps the screenshot in a browser frame
full_pagebooleanfalseCapture the full scrollable page
viewport_widthnumber1280Viewport width (320–3840)
viewport_heightnumber720Viewport height (200–2160)
delaynumber0Wait time in ms after page load
dark_modebooleanfalseEmulate dark colour scheme

check_balance

Check your account balance and remaining screenshot credits.

Setup

1. Get an API key

Sign up at api.nightglass.xyz/dashboard and create an API key. You get 50 free screenshots to start.

2. Install

bash
npm install -g nightglass-mcp

3. Configure your MCP client

Claude Desktop — add to claude_desktop_config.json:

json
{  "mcpServers": {    "nightglass": {      "command": "nightglass-mcp",      "env": {        "NIGHTGLASS_API_KEY": "ng_live_your_key_here"      }    }  }}

Claude Code — add to your project's .mcp.json:

json
{  "mcpServers": {    "nightglass": {      "command": "nightglass-mcp",      "env": {        "NIGHTGLASS_API_KEY": "ng_live_your_key_here"      }    }  }}

Cursor / Windsurf — same format as Claude Desktop, in the respective config file.

Pricing

TierPriceCreditsPer screenshot
Free$050—
Starter$5500$0.010
Growth$202,500$0.008
Scale$5010,000$0.005
Enterprise$20050,000$0.004

AI agents: nightglass also supports x402 — autonomous agent payments with USDC on Base. No API key needed.

Links

License

MIT

来源:README.md,提交 1fce6db

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.0.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

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

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分