Huoshui Fetch

io.github.huoshuiai42由 GitHub 帳號 huoshuiai42 發布v1.0.0更新於 Oct 24, 2026

An MCP server that provides tools for fetching, converting, and extracting data from web pages.

概覽

AI 產生的概覽

一個本機 MCP 伺服器,讓助理抓取網頁,並將內容轉換或擷取為 Markdown、純文字、連結、中繼資料與圖片。

可以做什麼
依 URL 抓取網頁,可設定逾時、重新導向處理、User-Agent,以及用於驗證請求的自訂請求標頭。將 HTML 或 JSON 轉換為乾淨的 Markdown、純文字或清理後的 HTML。擷取正文文章內容、可篩選的連結、標題與描述及 OG 標籤等頁面中繼資料、可依尺寸篩選的圖片,以及 JSON-LD 與微資料中的結構化資料。
適用情境
適合助理需要閱讀網頁、把 HTML 轉成易讀的 Markdown 或文字、從頁面擷取文章正文,或為研究與內容整理收集連結、中繼資料、圖片與結構化資料的情境。
執行需求
以 Python 套件(huoshui-fetch)透過 stdio 在本機執行,需要 Python 3.11 以上版本及其相依套件,通常以 uvx 或 python -m 啟動。抓取遠端 URL 需要網路存取。未宣告帳號、API 金鑰或環境變數。
安裝前請注意
fetch_with_headers 接受自訂請求標頭,透過它傳入的憑證或權杖會送到目標網站,不要對不可信 URL 傳送機密。抓取到的網頁內容屬於不可信輸入,可能含有誤導性文字。此伺服器只讀取網頁,不會寫入或變更遠端資料。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Huoshui Fetch,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

huoshui-fetch

A dedicated web content fetching and conversion MCP (Model Context Protocol) server that provides tools for fetching, converting, and extracting data from web pages.

Features

Fetching Tools

  • fetch_url: Fetch content from URLs with customizable timeout, redirect handling, and user-agent
  • fetch_with_headers: Fetch URLs with custom headers for authenticated requests

Conversion Tools

  • html_to_markdown_tool: Convert HTML to clean Markdown format
  • html_to_text_tool: Extract plain text from HTML
  • clean_html_tool: Remove scripts/styles and sanitize HTML
  • json_to_markdown_tool: Convert JSON data to readable Markdown

Extraction Tools

  • extract_article_tool: Extract main article content using readability
  • extract_links_tool: Extract all links with filtering options
  • extract_metadata_tool: Extract page metadata (title, description, OG tags)
  • extract_images_tool: Extract images with size filtering
  • extract_structured_data_tool: Extract JSON-LD and microdata

Installation

From MCP Registry (Recommended)

This server is available in the Model Context Protocol Registry. Install it using your MCP client.

mcp-name: io.github.huoshuiai42/huoshui-fetch

bash
# Using uv (recommended)uv sync
# Or install from GitHubpip install git+https://github.com/yourusername/huoshui-fetch.git

Usage

Run with uvx (recommended for one-time use)

bash
# From the repositoryuvx --from . huoshui-fetch
# From GitHub (once published)uvx --from git+https://github.com/yourusername/huoshui-fetch.git huoshui-fetch

Run directly

bash
# Using uvuv run python -m huoshui_fetch
# Or if installedpython -m huoshui_fetch

The server communicates via standard input/output, making it perfect for integration with Claude Desktop and other MCP-compatible clients.

Configuration for Claude Desktop

Add to your Claude Desktop configuration:

json
{  "mcpServers": {    "huoshui-fetch": {      "command": "uvx",      "args": ["--no-cache", "--from", ".", "huoshui-fetch"],      "cwd": "/path/to/huoshui-fetch"    }  }}

Or if installed from GitHub:

json
{  "mcpServers": {    "huoshui-fetch": {      "command": "uvx",      "args": [        "--from",        "git+https://github.com/yourusername/huoshui-fetch.git",        "huoshui-fetch"      ]    }  }}

Example Usage

Once configured, you can use the tools in Claude Desktop:

// Fetch a webpagefetch_url("https://example.com")
// Convert HTML to Markdownhtml_to_markdown_tool("<h1>Hello</h1><p>World</p>")
// Extract article contentextract_article_tool(html_content, "https://example.com/article")

Requirements

  • Python 3.11+
  • Dependencies listed in pyproject.toml

Development & Publishing

This project includes comprehensive automation for building and publishing to PyPI.

Automated Publishing Workflow

bash
# Complete automated workflow (TestPyPI + PyPI)uv run python scripts/publish.py --include-pypi
# TestPyPI only (recommended for testing)uv run python scripts/publish.py
# Bump version and publishuv run python scripts/publish.py --version-bump patch --include-pypi

Individual Commands

bash
# Version managementuv run python scripts/version_manager.py --checkuv run python scripts/version_manager.py --bump patch
# Setup PyPI credentials (first time)uv run python scripts/credentials_setup.py
# Build packageuv run python scripts/build.py
# Run comprehensive testsuv run python scripts/test.py
# Upload to PyPIuv run python scripts/upload.py

Features

  • ✅ Version Management: Automatic synchronization across all files
  • ✅ Quality Checks: Ruff linting and MyPy type checking
  • ✅ Build Automation: Clean builds with validation
  • ✅ Testing Suite: Comprehensive package and functionality tests
  • ✅ Publishing Workflow: TestPyPI → PyPI using uv publish (supports .pypirc files)
  • ✅ Error Recovery: Built-in error handling and recovery options

See PUBLISHING.md for detailed documentation.

DXT Extension

This project supports DXT (Desktop Extensions) format for easy distribution and installation.

To build the DXT extension:

bash
python build_dxt.py

This will create a huoshui-fetch-{version}.dxt file that can be installed in compatible AI desktop applications.

License

MIT

來源:README.md,提交 375d268

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.0.0最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分