網站下載器 Mcp 伺服器
概覽
什麼是網站下載器?
網站下載器是一個強大的工具,旨在下載整個網站以便離線訪問。這個工具允許用戶保存網頁、圖片和其他媒體文件,讓他們能夠在沒有互聯網連接的情況下瀏覽內容。對於希望存檔網絡內容、進行研究或僅僅保存自己喜愛的網站以便稍後查看的用戶來說,這特別有用。
網站下載器的特點
- 完整網站下載:捕捉網站的所有元素,包括HTML、CSS、JavaScript、圖片和視頻。
- 離線瀏覽:在沒有互聯網連接的情況下訪問下載的網站,方便旅行或在連接有限的地區使用。
- 用戶友好的界面:簡單直觀的設計,讓用戶能夠輕鬆導航和下載網站,幾乎不需要努力。
- 可自定義選項:用戶可以選擇下載特定頁面或整個域名,根據個人需求提供靈活性。
- 快速下載速度:經過優化以實現快速下載,讓用戶在存檔內容時節省時間。
- 跨平台兼容性:在各種操作系統上運行,確保所有用戶都能訪問。
如何使用網站下載器
- 下載並安裝:首先從官方網站或存儲庫下載網站下載器應用程序。
- 輸入網址:打開應用程序並輸入您希望下載的網站的網址。
- 選擇選項:選擇您的下載偏好,例如是否包括圖片、視頻或特定文件類型。
- 開始下載:點擊下載按鈕開始過程。應用程序將開始獲取網站的內容。
- 離線訪問:下載完成後,您可以通過瀏覽器或應用程序本身離線訪問該網站。
常見問題解答
問:網站下載器是免費使用的嗎?
答:是的,網站下載器是免費的,雖然某些高級功能可能需要付費版本。
問:我可以下載任何網站嗎?
答:大多數網站都可以下載,但某些網站可能有限制或保護措施,阻止下載。
問:需要多少存儲空間?
答:所需的存儲空間取決於網站的大小。擁有許多媒體文件的大型網站將需要更多空間。
問:下載網站是否合法?
答:出於個人使用目的下載網站通常是合法的,但未經許可重新分發或使用內容可能會違反版權法。
問:我可以安排下載嗎?
答:某些版本的網站下載器可能提供排程功能,允許您設置特定時間進行下載。
通過利用網站下載器,用戶可以高效地保存和離線訪問網絡內容,這使其成為任何希望存檔自己喜愛網站的人的寶貴工具。
詳細
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.
<a href="https://glama.ai/mcp/servers/egcwr79vu2"><img width="380" height="200" src="https://glama.ai/mcp/servers/egcwr79vu2/badge" alt="Google Workspace Server MCP server" /></a>
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
- Using Chocolatey:
choco install wget
- 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 downloadoutputPath
(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
- Build the server:
npm install
npm run build
- Add to MCP settings:
{
"mcpServers": {
"website-downloader": {
"command": "node",
"args": ["/path/to/website-downloader/build/index.js"]
}
}
}
伺服器配置
{
"mcpServers": {
"website-downloader": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/metorial/mcp-container--pskill9--website-downloader--website-downloader",
"node ./build/index.js"
],
"env": {}
}
}
}