@铜线/rendex mcp
](https://www.npmjs.com/package/@copperline/rendex-mcp) ](https://www.npmjs.com/package/@copperline/rendex-mcp) 
MCP服务器 Rendex --使用模型上下文协议通过AI代理捕获任何网页的屏幕截图和PDF。
快速开始
克劳德桌面/光标/风帆(npx)
添加到MCP客户端配置中:
{
"mcpServers": {
"rendex": {
"command": "npx",
"args": ["-y", "@copperline/rendex-mcp"],
"env": {
"RENDEX_API_KEY": "your-api-key"
}
}
}
}在何处添加此内容:
| 客户端 | 配置位置 |
|---|---|
| 克劳德桌面 | ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) |
| 光标 | .cursor/mcp.json 在项目根目录中,或“设置”>“MCP” |
| Windsurf | 设置>MCP服务器 |
克劳德代码(CLI)
添加a .mcp.json 使用上述相同的配置将其添加到您的项目根目录。然后重新启动Claude Code。
重要:添加.mcp.json到你的.gitignore-它包含您的API密钥。
远程(零安装)
直接连接-无需安装(仅限Claude Desktop):
{
"mcpServers": {
"rendex": {
"url": "https://mcp.rendex.dev/mcp",
"headers": {
"Authorization": "Bearer your-api-key"
}
}
}
}工具
rendex_screenshot
捕获任何网页或原始HTML的屏幕截图或PDF。
"Take a screenshot of https://example.com"
"Capture the full page of https://news.ycombinator.com in dark mode"
"Generate a PDF of https://github.com with A4 page size"
"Capture https://amazon.de as seen from Germany"
"Render this HTML invoice as a PDF"参数:
| 参数 | 类型 | 默认值 | 说明 | |||
|---|---|---|---|---|---|---|
url | string | 必需\* | 要捕获的网页URL。相互排斥 html. | |||
html | string | -- | 要呈现的原始HTML。相互排斥 url. | |||
format | "png" | "jpeg" | "webp" | "pdf" | "png" | 输出格式 |
fullPage | 布尔值 | false | 捕获完整的可滚动页面 | |||
darkMode | 布尔值 | false | 模拟深色方案 | |||
width | 编号 | 1280 | 视口宽度(320-3840) | |||
height | 编号 | 800 | 视口高度(240-2160) | |||
quality | 编号 | 80 | 图像质量1-100(仅限JPEG/WebP,默认80) | |||
delay | 编号 | 0 | 捕获前等待毫秒 | |||
blockAds | 布尔值 | true | 屏蔽广告和跟踪器 | |||
blockResourceTypes | string\[\] | -- | 块资源类型: font, image, media, stylesheet | |||
deviceScaleFactor | 编号 | 2 | 设备像素比(1-3)。默认情况下为2×Retina | |||
timeout | 编号 | 30 | 等待页面加载的最长时间(5-60秒) | |||
waitUntil | 字符串 | "networkidle2" | 页面准备就绪: load, domcontentloaded, networkidle0, networkidle2 | |||
waitForSelector | string | -- | 捕获前要等待的CSS选择器 | |||
bestAttempt | 布尔值 | true | 超时时返回部分渲染,而不是失败 | |||
selector | string | -- | 要捕获的元素的CSS选择器,而不是整个页面 | |||
css | string | -- | 捕获前注入的自定义CSS(最大50KB) | |||
js | string | -- | 捕获前要执行的自定义JavaScript(最大50KB) | |||
cookies | array | -- | 为经过身份验证的捕获设置的Cookie(最多50个) | |||
headers | object | -- | 页面请求的自定义HTTP标头 | |||
userAgent | string | -- | 覆盖浏览器用户代理字符串 | |||
pdfFormat | string | -- | PDF页面大小: A4, Letter, Legal, Tabloid, A3 | |||
pdfLandscape | boolean | -- | PDF横向 | |||
pdfPrintBackground | 布尔值 | true | 以PDF格式打印背景 | |||
pdfScale | 编号 | 1 | PDF比例因子(0.1-2) | |||
pdfMargin | 对象 | -- | PDF边距: {top, right, bottom, left} 作为CSS值 | |||
geo | string | -- | 地理定位捕获的ISO国家代码(专业版/企业版) | |||
geoCity | string | -- | 用于地理定位的城市(需要 geo) | |||
geoState | string | -- | 地理定位状态(需要 geo) | |||
async | boolean | -- | 异步处理(返回作业ID) | |||
webhookUrl | string | -- | 异步捕获完成时接收回调的URL | |||
cacheTtl | number | -- | 缓存结果的秒数(3600-2592000) |
认证
获取API密钥: rendex.dev.
设置 RENDEX_API_KEY MCP客户端配置中的环境变量。
定价
| 计划 | 通话/月 | 费率 |
|---|---|---|
| 免费 | 500 | 10/分钟 |
| 起动机 | 10000 | 60/min |
| 专业 | 100000 | 300/分钟 |
| 企业 | 定制 | 1000/min |
许可证
麻省理工学院-- Copperline实验室有限责任公司

