截图一MCP
一个官方的MCP服务器实现,允许AI助手通过ScreenshotOne API捕获网站截图,从而在对话过程中提供网页的视觉上下文。
MCP 服务配置
复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用
{
"mcpServers": {
"screenshotone": {
"args": [
"path/to/screenshotone/mcp/build/index.js"
],
"command": "node",
"env": {
"SCREENSHOTONE_API_KEY": "\u003cyour api key\u003e"
}
}
}
}
该服务需要配置环境变量:SCREENSHOTONE_API_KEY
可用工具 (1 个)
该服务在 MCP 协议中暴露的工具,AI 可按需调用
render-website-screenshot 1 个参数 需填 1 项
Render a screenshot of a website and returns it as an image.
必填参数:url
服务介绍
ScreenshotOne MCP 服务器
这是 MCP (Model Context Protocol) 服务器的一个官方实现,用于 ScreenshotOne。
工具
render-website-screenshot: 渲染网站的截图并将其作为图像返回。
使用方法
构建
始终先安装依赖项并构建:
npm run install && npm run build
获取你的 ScreenshotOne API 密钥
在 ScreenshotOne 注册并获取你的 API 密钥。
与 Claude for Desktop 一起使用
将以下内容添加到你的 ~/Library/Application\ Support/Claude/claude_desktop_config.json 文件中:
{
"mcpServers": {
"screenshotone": {
"command": "node",
"args": ["path/to/screenshotone/mcp/build/index.js"],
"env": {
"SCREENSHOTONE_API_KEY": "<your api key>"
}
}
}
}
独立使用或用于其他项目
SCREENSHOTONE_API_KEY=your_api_key && node build/index.js
许可证
ScreenshotOne MCP 服务器 根据 MIT 许可证许可。