Web Fetch Mcp

io.github.KylinMountain由 GitHub 账号 KylinMountain 发布v0.1.1更新于 Oct 24, 2026

MCP server for web content fetching, summarizing, comparing, and extracting information

概览

AI 生成的概览

本地 MCP 服务器,抓取网页并借助 Gemini 对最多 20 个网址的内容进行摘要、比较或信息提取。

可以做什么
用自然语言提示让 Gemini 对单个或多个网址的内容生成摘要。比较多个网址的内容,找出异同。按提示从网页中提取指定信息。抓取网页并将 HTML 转换为干净可读的文本,自动把 GitHub blob 链接解析为原始内容,并可配置超时和内容长度上限。
适用场景
适合助手需要在不打开浏览器的情况下阅读、概括或交叉核对网页和 GitHub 文件时使用,例如比较多篇文章或从长页面中提取特定事实。
运行要求
以 stdio 方式在本地运行;需通过 npm 全局安装 web-fetch-mcp,或用 Node.js 从本地构建运行。需要有效的 Gemini API 密钥,通过环境变量 GEMINI_API_KEY 提供。需要访问目标网站和 Gemini 服务的网络;直连失败时可设置 HTTPS_PROXY 和 HTTP_PROXY。
安装前请注意
GEMINI_API_KEY 是环境变量中的密钥,应避免写入共享配置。抓取的网页内容和提示会发送到 Google 的 Gemini 服务,因此不应使用私有或内部网址。服务器会拦截指向私有 IP 的请求以降低 SSRF 风险,但仍会向助手提供的任意网址发起外部请求。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Web Fetch Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Web Fetch MCP Server

English | 中文 [npm version]

A Model Context Protocol (MCP) server that provides web content fetching, summarization, comparison, and extraction capabilities.

Features

  • Three Core Tools: Provides summarize_web, compare_web, and extract_web for versatile web content processing.
  • Handles Multiple URLs: Process up to 20 URLs in a single request.
  • Content Transformation: Converts HTML to clean, readable text and automatically resolves GitHub /blob/ URLs to their raw content equivalent.
  • Safe & Secure: Protects against Server-Side Request Forgery (SSRF) by blocking requests to private IP addresses.
  • Configurable: Allows setting timeouts and content length limits to manage performance.

Installation

Install the server globally from npm:

bash
npm install -g web-fetch-mcp

MCP Agent Configuration

To use this server with an AI agent that supports the Model Context Protocol, add the following configuration to your agent's settings. Once configured, your agent can call the tools provided by this service.

Important: You must provide a valid Gemini API key for the server to work.

If you installed the package globally:

json
{  "mcpServers": {    "web-fetch-mcp": {      "type": "stdio",      "command": "web-fetch-mcp",      "env": {        "GEMINI_API_KEY": "YOUR_GEMINI_API_KEY"      }    }  }}

Note: If you encounter network access issues (e.g., unable to connect to Gemini), you can configure the environment variables HTTPS_PROXY and HTTP_PROXY. By default, the gemini-2.5-flash model is used, consistent with Gemini-CLI.

If you are running from a local clone:

json
{  "mcpServers": {    "web-fetch-mcp": {      "type": "stdio",      "command": "node",      "args": ["/path/to/web-fetch-mcp/dist/index.js"],      "env": {        "GEMINI_API_KEY": "YOUR_GEMINI_API_KEY"      }    }  }}

Tool Reference

The service provides the following tools:

  • summarize_web: Summarizes content from one or more URLs.
  • compare_web: Compares content across multiple URLs.
  • extract_web: Extracts specific information from web content using natural language prompts.

Example Tool Call

To use a tool, your agent should make a callTool request specifying the tool name and a prompt:

json
{  "tool": "summarize_web",  "arguments": {    "prompt": "Summarize the main points from https://example.com/article"  }}

For Developers

If you wish to contribute to the development of this server:

  1. Clone the repository:
    bash
    git clone https://github.com/your-username/web-fetch-mcp.gitcd web-fetch-mcp
  2. Install dependencies:
    bash
    npm install
  3. Run in development mode:
    bash
    npm run dev
  4. Build for production:
    bash
    npm run build

来源:README.md,提交 d713109

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.1最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分