关于 Shotapi
Shotapi 是供 Agent 获取网页截图或将 HTML 和 CSS 渲染为图像的 MCP 服务。它提供按 URL 截图、可配置截图及 HTML/CSS 渲染工具。
主要功能
- 01将 URL 页面截取为图像
- 02控制视口和整页截图
- 03截取指定 CSS 元素
- 04将 HTML 和 CSS 渲染为图像
- 05远程 Streamable HTTP 配置
适用场景
- 01直观检查生成的网页
- 02检查已部署网站的布局问题
- 03为 UI 回归检查截取页面
MCP 相关
它通过远程 Streamable HTTP 端点向 MCP 客户端提供截图和 HTML/CSS 渲染工具,也说明了本地 STDIO 模式。
配置
远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。
服务地址
https://aiphotoshop.mynatapp.cc/mcp一键复制安装命令
Claude CodeTerminal
claude mcp add --transport http shotapi https://aiphotoshop.mynatapp.cc/mcpCursor.cursor/mcp.json
{"mcpServers":{"shotapi":{"type":"http","url":"https://aiphotoshop.mynatapp.cc/mcp"}}}在 Cursor 中打开VS Code.vscode/mcp.json
{"servers":{"shotapi":{"type":"http","url":"https://aiphotoshop.mynatapp.cc/mcp"}}}在 VS Code 中打开Claude Desktopclaude_desktop_config.json
{"mcpServers":{"shotapi":{"type":"http","url":"https://aiphotoshop.mynatapp.cc/mcp"}}}Windsurf~/.codeium/windsurf/mcp_config.json
{"mcpServers":{"shotapi":{"serverUrl":"https://aiphotoshop.mynatapp.cc/mcp"}}}命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。
工具
详细介绍
ShotAPI — 面向 AI Agent 的网页截图与渲染 MCP 服务
为你的 AI Agent 装上眼睛。一条命令,无需安装。
快速开始(远程模式 — 无需安装)
# 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
链接
- 文档:https://aiphotoshop.mynatapp.cc/docs
- 定价:https://aiphotoshop.mynatapp.cc/pricing
- 运行状态:https://aiphotoshop.mynatapp.cc/health
- MCP Registry:https://registry.modelcontextprotocol.io/servers/io.github.smallhandsome/shotapi-mcp-server
- Smithery:https://smithery.ai/server/@ljs/shotapi
- awesome-mcp-servers:https://github.com/punkpeye/awesome-mcp-servers
- Dev.to 文章:https://dev.to/smallhandsome/give-your-ai-agent-eyes-building-a-visual-mcp-server-for-web-screenshots-3f49
评论
支持 Markdown
一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。