PW

pskill9/website-downloader

效率工作流

本页由 AI 翻译,技术细节请以原文为准。 查看原文

157 stars 32 forks 质量 48 趋势 16

pskill9/website-downloader 是从 https://github.com/pskill9/website-downloader. 导入的 MCP 服务器候选

概览

pskill9/website-downloader 是从 https://github.com/pskill9/website-downloader. 导入的 MCP 服务器候选

概述(AI 翻译)

该 MCP 服务器提供了一个使用 wget 下载整个网站的工具。它保留了网站结构,并将链接转换为本地可用的功能。

先修条件

服务器需要安装在你的系统上 wget。

安装wget

macOS

使用自制内容:

Linux(Debian/Ubuntu)

Linux(红帽/Fedora)

窗户

  1. 使用巧克力:

  2. 或从以下地方下载二进制文件:https://eternallybored.org/misc/wget/

  • 下载最新wget.exe
  • 将其置于PATH中的目录中(例如,C:\Windows\System32)

用途

服务器提供了一个名为download_website的工具,具有以下参数:

  • url(必填):下载网站的网址
  • outputPath(可选):网站应下载的目录。默认为当前目录。
  • depth(可选):递归下载的最大深度级别。默认为无限。仅指定页面设为0,直接链接设为1,依此类推。

示例

特色

网站下载器:

  • 递归下载,深度无限
  • 包含所有页面要求(CSS、图片等)
  • 将链接转换为本地工作
  • 为文件添加合适的扩展名

本页由 AI 翻译,技术细节请以原文为准。

README

Website Downloader MCP Server

This MCP server provides a tool to download entire websites using wget. It preserves the website structure and converts links to work locally.

Prerequisites

The server requires wget to be installed on your system.

Installing wget

macOS

Using Homebrew:

brew install wget

Linux (Debian/Ubuntu)

sudo apt-get update
sudo apt-get install wget

Linux (Red Hat/Fedora)

sudo dnf install wget

Windows

  1. Using Chocolatey:
choco install wget
  1. Or download the binary from: https://eternallybored.org/misc/wget/
    • Download the latest wget.exe
    • Place it in a directory that’s in your PATH (e.g., C:\Windows\System32)

Usage

The server provides a tool called download_website with the following parameters:

  • url (required): The URL of the website to download
  • outputPath (optional): The directory where the website should be downloaded. Defaults to the current directory.
  • depth (optional): Maximum depth level for recursive downloading. Defaults to infinite. Set to 0 for just the specified page, 1 for direct links, etc.

Example

{
  "url": "https://example.com",
  "outputPath": "/path/to/output",
  "depth": 2  // Optional: Download up to 2 levels deep
}

Features

The website downloader:

  • Downloads recursively with infinite depth
  • Includes all page requisites (CSS, images, etc.)
  • Converts links to work locally
  • Adds appropriate extensions to files
  • Restricts downloads to the same domain
  • Preserves the website structure

Installation

  1. Build the server:
npm install
npm run build
  1. Add to MCP settings:
{
  "mcpServers": {
    "website-downloader": {
      "command": "node",
      "args": ["/path/to/website-downloader/build/index.js"]
    }
  }
}
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →