关于 @rog0x/mcp-web-tools
@rog0x/mcp-web-tools 是面向 AI Agent 的 MCP 服务,可搜索网页、提取页面内容、监测网站并将 HTML 转为 Markdown。它使用 DuckDuckGo 搜索,无需 API 密钥,并支持并行提取多个 URL。
主要功能
- 01无需 API 密钥的 DuckDuckGo 网页搜索
- 02提取 URL 的结构化内容
- 03监测网站可用性和响应信息
- 04将 URL 或 HTML 转为 Markdown
- 05并行提取多个 URL
适用场景
- 01搜索某个主题的网页
- 02收集页面文本、链接和元数据
- 03检查网站可用性和响应时间
- 04将网页转换为 Markdown
MCP 相关
向 MCP 客户端提供网页搜索、内容提取、网站监测和 HTML 转 Markdown 工具,并支持并行提取多个 URL。
配置
本地服务的配置在各客户端中通用,复制后粘贴到客户端的 MCP 配置文件即可。
工具
5收录的工具列表 · 更新于 3 周前
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| url | string | 是 | 要从中提取内容的 URL |
详细介绍
MCP Web Tools
功能强大的 MCP(Model Context Protocol)服务,为 AI Agent 提供强大的网页能力。提取内容、搜索网页、监控网站,并将 HTML 转换为 Markdown——全部通过简洁的工具接口完成。
工具
| 工具 | 描述 |
|---|---|
web_extract | 从任意 URL 提取结构化内容(标题、标题层级、段落、链接、图片、元数据) |
web_search | 通过 DuckDuckGo 搜索网页——无需 API 密钥 |
web_monitor | 检查网站是否正常运行、测量响应时间并获取 HTTP 标头 |
html_to_markdown | 将任意 URL 或 HTML 转换为简洁的 Markdown |
web_multi_extract | 并行提取多个 URL 的内容 |
安装
用于 Claude Code
将其添加到 Claude Code MCP 设置(~/.claude/settings.json)中:
{
"mcpServers": {
"web-tools": {
"command": "npx",
"args": ["@rog0x/mcp-web-tools"]
}
}
}
用于 Claude Desktop
将其添加到 claude_desktop_config.json:
{
"mcpServers": {
"web-tools": {
"command": "npx",
"args": ["@rog0x/mcp-web-tools"]
}
}
}
手动安装
npm install -g @rog0x/mcp-web-tools
mcp-web-tools
使用示例
从网页提取内容
Use web_extract to get the main content from https://example.com
搜索网页
Use web_search to find "best TypeScript frameworks 2026"
监控网站
Use web_monitor to check if https://api.example.com is responding
将页面转换为 Markdown
Use html_to_markdown to convert https://docs.example.com/guide to readable markdown
批量提取
Use web_multi_extract to get content from these URLs: [url1, url2, url3]
功能
- 无需 API 密钥——搜索使用 DuckDuckGo,其他操作均通过直接 HTTP 请求完成
- 快速——并行提取,每个请求超时时间为 15s
- 输出简洁——移除脚本、样式和广告;提取有意义的内容
- 轻量——依赖项极少,无需无头浏览器
- 可用于生产环境——提供完善的错误处理、超时控制和输入验证
要求
- Node.js 18+
许可证
MIT — rog0x
评论
支持 Markdown
一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。