urlbox/urlbox-mcp-server

分类File System
作者Community
星标80
定价Free

简介

urlbox-mcp-server 是一个将网页渲染与内容提取能力接入 AI 助手的插件。它解决了大模型无法实时、精准获取网页视觉呈现的痛点,允许 AI 直接调用 API 将网页转换为高质量截图、PDF 或 Markdown 文本。对于开发者而言,它不再是简单的网页抓取,而是让 AI 具备了“视觉观察”能力,能够分析页面布局或提取结构化数据。该工具上手简单,只需配置 API Key 即可在支持 MCP 的客户端(如 Claude Desktop)中使用,是构建自动化网页分析工作流的实用组件。

核心亮点

  • 一键将网页转换为截图、PDF 或 Markdown
  • 支持 AI 驱动的网页截图视觉分析
  • 高效提取网页元数据与结构化内容
  • 无缝集成至 MCP 客户端,快速部署使用

完整文档

Urlbox MCP Server

![image](https://www.urlbox.com)

Urlbox Screenshot API 的 MCP server。允许您的客户端对网站进行截图、生成 PDF、提取 HTML/markdown 等操作。

访问 Urlbox 获取更多信息,阅读我们的 docs,或在安装后与您的 LLM 交流,以深入了解其选项和功能。

![MCP Badge](https://evanth.io/mcp/urlbox-screenshot-mcp)

Setup

1. 安装依赖并构建:

bash
npm install
npm run build
2. 获取 Urlbox API 凭据:
- 在 urlbox.com 注册
- 从 dashboard 获取你的 API Secret

3. 设置环境变量:

> claude_desktop_config.json``JSON
{
"mcpServers": {
"screenshot": {
"command": "npx",
"args": ["-y", "@urlbox/screenshot-mcp"],
"env": {
"SECRET_KEY": "your_api_key_here"
}
}
}
}
`## 使用方法

该服务器提供了一个 render 工具,可以:

  • 以多种格式(PNG, PDF, MP4 等)截屏

  • 将页面转换为 HTML, markdown

  • 提取 metadata 和 cookies

  • 通过设置 store_renders: true` 将文件保存到本地下载目录

当你要求 Claude 对网站截屏或转换网页内容时,它会自动使用此工具。

实用提示词

截取一张没有广告或 cookie 横幅的干净截屏:

code
Take a screenshot of https://example.com but block ads and hide cookie banners
像 HTML/markdown 一样截屏并保存侧边渲染结果:
code
Take a screenshot of https://example.com and also save it as HTML and markdown. Download the result to my computer.
生成全页 PDF:
code
Convert https://urlbox.com to a PDF and save it to my computer. Make sure to generate a PDF that has an outline and is tagged.