Skip to main content
Glama
MCP Web Tools
by rog0x

MCP Web Tools

一个强大的 MCP(Model Context Protocol)服务器,为 AI 代理提供网页超能力。通过简洁的工具界面,提取内容、搜索网页、监控网站,并将 HTML 转换为 markdown。

工具

工具

描述

web_extract

从任意 URL 提取结构化内容(页面标题、各级标题、段落、链接、图片、元数据)

web_search

通过 DuckDuckGo 搜索网页 — 无需 API 密钥

web_monitor

检查网站是否在线,测量响应时间,获取 HTTP 标头

html_to_markdown

将任意 URL 或 HTML 转换为干净的 markdown

web_multi_extract

并行从多个 URL 提取内容

Related MCP server: markfetch-mcp

安装

适用于 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

  • 快速 — 并行提取,每个请求 15 秒超时

  • 干净输出 — 去除脚本、样式和广告;提取有意义的内容

  • 轻量级 — 依赖极少,无需无头浏览器

  • 生产就绪 — 完善的错误处理、超时和输入验证

系统要求

  • Node.js 18+

许可证

MIT — rog0x

Available Tools

5 tools
html_to_markdownA

Convert HTML content or a URL to clean, readable markdown. Removes scripts, styles, and navigation.

Inputs: url, html.

web_extractB

Extract structured content from a URL: title, headings, paragraphs, links, images, and metadata

Inputs: url (required).

web_monitorA

Check if a website is up, measure response time, and get HTTP details

Inputs: url (required).

web_multi_extractA

Extract content from multiple URLs in parallel. Returns results for each URL.

Inputs: urls (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 5 tools

    Disambiguation3/5

    web_extract and web_multi_extract are clearly related, with the latter being just a parallel variant, and html_to_markdown overlaps with web_extract for URL-to-content conversion. Search and monitor are clearly distinct, but the extraction/convert boundary could cause misselection.

    Naming Consistency3/5

    Most tools follow web_<action>, but html_to_markdown breaks the prefix pattern and uses a different target_to_target style. The pair web_extract/web_multi_extract is consistent, but overall naming conventions are mixed.

    Tool Count5/5

    Five tools is a well-scoped size for a web utility server, covering search, monitoring, extraction, and conversion without unnecessary bloat. Each tool earns its place, though the single vs. multi extract duplication is minor.

    Completeness4/5

    The toolkit covers core web operations: search, availability/response checking, single-URL and multi-URL extraction, and HTML-to-markdown conversion. Minor gaps exist (e.g., no URL validation or site traversal), but agents can accomplish common web tasks without dead ends.

    Related MCP Connectors

    Related MCP Servers