mcpField
S
Shotapi

Shotapi

远程服务
github.com浏览器自动化119 周前更新

关于 Shotapi

Shotapi 是供 Agent 获取网页截图或将 HTML 和 CSS 渲染为图像的 MCP 服务。它提供按 URL 截图、可配置截图及 HTML/CSS 渲染工具。

主要功能

  1. 01将 URL 页面截取为图像
  2. 02控制视口和整页截图
  3. 03截取指定 CSS 元素
  4. 04将 HTML 和 CSS 渲染为图像
  5. 05远程 Streamable HTTP 配置

适用场景

  1. 01直观检查生成的网页
  2. 02检查已部署网站的布局问题
  3. 03为 UI 回归检查截取页面

MCP 相关

它通过远程 Streamable HTTP 端点向 MCP 客户端提供截图和 HTML/CSS 渲染工具,也说明了本地 STDIO 模式。

配置

远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。

服务地址https://aiphotoshop.mynatapp.cc/mcp
一键复制安装命令
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。

工具

详细介绍

ShotAPI — 面向 AI Agent 的网页截图与渲染 MCP 服务

为你的 AI Agent 装上眼睛。一条命令,无需安装。

GitHub stars MCP Registry

中文文档

快速开始(远程模式 — 无需安装)

# Claude Code
claude mcp add --transport streamable-http shotapi https://aiphotoshop.mynatapp.cc/mcp

# Or with npx
npx -y @anthropic-ai/claude-code@latest --mcp https://aiphotoshop.mynatapp.cc/mcp

对于 Claude Desktop / Cursor,请添加到你的配置中:

{
  "mcpServers": {
    "shotapi": {
      "type": "streamable-http",
      "url": "https://aiphotoshop.mynatapp.cc/mcp"
    }
  }
}

实际应用场景

1. Claude 验证自己的代码
Human: Build a landing page with a hero section, testimonials, and pricing grid.

Claude: [writes HTML/CSS code]

Claude: Let me check this with the render tool...

[Claude calls ShotAPI render tool with the HTML it wrote]

Claude: The pricing grid overlaps on mobile. Fixing responsive breakpoints...
2. 部署验证
Human: I just deployed. Check if it looks right.

Claude: [calls ShotAPI screenshot on https://yourapp.com]

Claude: Footer text is cut off — CSS overflow issue. Background image 404.
3. CI/CD 中的 UI 回归测试
# Capture before/after screenshots and compare
curl -s "https://aiphotoshop.mynatapp.cc/v1/screenshot?url=https://staging.myapp.com" -o before.png
curl -s "https://aiphotoshop.mynatapp.cc/v1/screenshot?url=https://staging.myapp.com" -o after.png

3 个 MCP 工具

工具描述示例
screenshot_one_liner一个 URL,一张截图screenshot_one_liner(url="https://github.com")
screenshot完全可控:视口、整页截图、CSS 选择器、格式screenshot(url="https://github.com", selector="#hero")
render将 HTML/CSS 渲染为图像 — Agent 编写代码,即刻查看结果render(html="<h1>Hello</h1>")

render 工具形成了反馈闭环:编写代码 → 渲染 → 查看 → 修改 → 再次渲染。

为什么选择 ShotAPI?

  • 原生支持 MCP — 无需编写胶水代码。Agent 可在对话中直接调用工具。
  • 远程模式无需安装 — 使用 streamable-http,无需 Python/Playwright。
  • 中国大陆可直接访问 — 无需 VPN。
  • 免费套餐 — 每月 50 次截图 + 50 次渲染,按 IP 计算,无需注册、无需 API 密钥。解锁全部功能(整页截图、选择器、WebP)。
  • 渲染功能 — 不只是为现有网页截图。还能渲染 Agent 生成的 HTML。
  • 内置广告拦截 — 截图更清晰,干扰更少。
  • 已列入 MCP Registry — Anthropic 官方 MCP 服务目录。

立即试用(无需注册)

curl -s "https://aiphotoshop.mynatapp.cc/v1/screenshot?url=https://github.com" -o shot.jpg

定价

套餐价格限额
免费版$0每月 50+50 次(按 IP 计算,全部功能,无需注册)
入门版$4.90/mo每月 5,000 次
专业版$9.90/mo每月 20,000 次

免费套餐:无需 API 密钥。付费用户:在定价页面获取密钥。

本地模式(STDIO)

对于私有部署或付费套餐用户,可在本地运行:

# Install dependencies
pip install -r requirements.txt
playwright install chromium

# Set env vars
export SHOTAPI_BASE_URL=https://aiphotoshop.mynatapp.cc
export SHOTAPI_KEY=your_key_here  # optional for paid tiers

# Add to Claude Code
claude mcp add shotapi python mcp_stdio.py

链接

评论

支持 Markdown

第一次接触 MCP?

从协议是什么,到在客户端里装上第一个服务,这几条回答覆盖了大多数入门问题。

一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。