local-only server
The server can only run on the client’s local machine because it depends on local resources.
Integrations
Mentioned as one of the installation methods for wget on Windows, which is a prerequisite for the website downloader.
Mentioned as one of the page requisites that the downloader includes when downloading websites.
Referenced as one of the Linux distributions where wget can be installed via apt-get command.
网站下载器 MCP 服务器
此 MCP 服务器提供使用 wget 下载整个网站的工具。它保留网站结构并将链接转换为本地可用链接。
先决条件
该服务器需要在您的系统上安装wget
。
安装 wget
macOS
使用 Homebrew:
Copy
Linux(Debian/Ubuntu)
Copy
Linux(Red Hat/Fedora)
Copy
视窗
- 使用Chocolatey :
Copy
- 或者从以下网址下载二进制文件: https://eternallybored.org/misc/wget/
- 下载最新的 wget.exe
- 将其放在 PATH 中的目录中(例如,C:\Windows\System32)
用法
服务器提供了一个名为download_website
的工具,其参数如下:
url
(必填):需要下载的网站的URLoutputPath
(可选):网站下载的目录。默认为当前目录。depth
(可选):递归下载的最大深度级别。默认为无限。设置为 0 表示仅下载指定页面,设置为 1 表示直接下载链接,以此类推。
例子
Copy
特征
网站下载器:
- 无限深度递归下载
- 包括所有页面必需品(CSS、图像等)
- 将链接转换为本地工作
- 为文件添加适当的扩展名
- 限制下载到同一域
- 保留网站结构
安装
- 构建服务器:
Copy
- 添加到 MCP 设置:
Copy