此MCP服务器提供了一个工具,可以使用wget下载整个网站,并保留网站结构,同时将链接转换为本地可用形式。
<a href="https://glama.ai/mcp/servers/egcwr79vu2"><img width="380" height="200" src="https://gips2.baidu.com/it/u=712997506,3862697896&fm=3081&app=3081&f=PNG?w=760&h=400" alt="Google Workspace Server MCP server" /></a>
该服务器需要在您的系统上安装wget。
使用Homebrew:
brew install wget
sudo apt-get update
sudo apt-get install wget
sudo dnf install wget
choco install wget
该服务器提供了一个名为download_website的工具,具有以下参数:
url(必需):要下载的网站的URLoutputPath(可选):网站应下载到的目录,默认为当前目录。depth(可选):递归下载的最大深度级别,默认为无限。设置为0仅下载指定页面,1下载直接链接等。{
"url": "https://example.com",
"outputPath": "/path/to/output",
"depth": 2 // 可选:下载至多2级深度
}
网站下载器:
npm install
npm run build
{
"mcpServers": {
"website-downloader": {
"command": "node",
"args": ["/path/to/website-downloader/build/index.js"]
}
}
}