huoshui-fetch
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@huoshui-fetch fetch https://example.com and convert to markdown"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
Related MCP server: MCP Server Fetch Python
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
# Using uv (recommended)
uv sync
# Or install from GitHub
pip install git+https://github.com/yourusername/huoshui-fetch.gitUsage
Run with uvx (recommended for one-time use)
# From the repository
uvx --from . huoshui-fetch
# From GitHub (once published)
uvx --from git+https://github.com/yourusername/huoshui-fetch.git huoshui-fetchRun directly
# Using uv
uv run python -m huoshui_fetch
# Or if installed
python -m huoshui_fetchThe 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:
{
"mcpServers": {
"huoshui-fetch": {
"command": "uvx",
"args": ["--no-cache", "--from", ".", "huoshui-fetch"],
"cwd": "/path/to/huoshui-fetch"
}
}
}Or if installed from GitHub:
{
"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 webpage
fetch_url("https://example.com")
// Convert HTML to Markdown
html_to_markdown_tool("<h1>Hello</h1><p>World</p>")
// Extract article content
extract_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
# 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 publish
uv run python scripts/publish.py --version-bump patch --include-pypiIndividual Commands
# Version management
uv run python scripts/version_manager.py --check
uv run python scripts/version_manager.py --bump patch
# Setup PyPI credentials (first time)
uv run python scripts/credentials_setup.py
# Build package
uv run python scripts/build.py
# Run comprehensive tests
uv run python scripts/test.py
# Upload to PyPI
uv run python scripts/upload.pyFeatures
✅ 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.pypircfiles)✅ 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:
python build_dxt.pyThis will create a huoshui-fetch-{version}.dxt file that can be installed in compatible AI desktop applications.
License
MIT
Available Tools
11 toolsclean_html_toolA
Cleans HTML by removing scripts, styles, and optionally limiting to allowed tags.
Args: html: HTML content to clean allowed_tags: List of allowed tags (None = all tags except script/style)
Returns: Dictionary with cleaned HTML
Inputs: html (required), allowed_tags. Returns: object
extract_article_toolA
Extracts the main article content from a web page.
Args: html: HTML content url: Optional URL for resolving relative links
Returns: Dictionary with title, content, text_content, excerpt, and short_title
Inputs: html (required), url. Returns: object
extract_images_toolA
Extracts all images from HTML content.
Args: html: HTML content base_url: Base URL for resolving relative image URLs min_width: Minimum image width filter min_height: Minimum image height filter
Returns: Dictionary with list of images containing src, alt, title, dimensions, etc.
Inputs: html (required), base_url, min_width, min_height. Returns: object
extract_links_toolA
Extracts all links from HTML content.
Args: html: HTML content base_url: Base URL for resolving relative links internal_only: Only return links from the same domain (default: False)
Returns: Dictionary with list of links containing url, text, title, and rel attributes
Inputs: html (required), base_url, internal_only. Returns: object
extract_metadata_toolA
Extracts metadata from HTML including title, description, and Open Graph tags.
Args: html: HTML content
Returns: Dictionary containing title, description, keywords, author, open_graph, twitter_card, etc.
Inputs: html (required). Returns: object
extract_structured_data_toolA
Extracts structured data (JSON-LD, microdata) from HTML.
Args: html: HTML content
Returns: Dictionary containing json_ld and microdata if found
Inputs: html (required). Returns: object
fetch_urlA
Fetches content from a URL.
Args: url: The URL to fetch timeout: Request timeout in seconds (default: 30) follow_redirects: Whether to follow redirects (default: True) user_agent: Custom user agent string (optional)
Returns: Dictionary containing status_code, content, headers, encoding, and error (if any)
Inputs: url (required), timeout, user_agent, follow_redirects. Returns: object
fetch_with_headersA
Fetches a URL with custom headers.
Args: url: The URL to fetch headers: Dictionary of custom headers timeout: Request timeout in seconds (default: 30)
Returns: Dictionary containing status_code, content, headers, encoding, and error (if any)
Inputs: url (required), headers (required), timeout. Returns: object
html_to_markdown_toolA
Converts HTML content to Markdown format.
Args: html: HTML content to convert strip_tags: List of tags to strip (default: ['script', 'style', 'meta', 'link']) heading_style: Style for headings - "ATX" or "SETEXT" (default: "ATX")
Returns: Dictionary with converted markdown content
Inputs: html (required), strip_tags, heading_style. Returns: object
html_to_text_toolA
Extracts plain text from HTML content.
Args: html: HTML content to convert preserve_links: Whether to preserve link URLs in output (default: False)
Returns: Dictionary with extracted text
Inputs: html (required), preserve_links. Returns: object
json_to_markdown_toolA
Converts JSON data to readable Markdown format.
Args: json_data: JSON string to convert
Returns: Dictionary with markdown representation of the JSON
Inputs: json_data (required). Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
The fetch tools fetch_url and fetch_with_headers are highly similar, differing only in the ability to pass custom headers, which could lead to confusion about which to use. The extraction and conversion tools are all clearly distinct in their outputs, so mis-selection is unlikely for those.
Naming conventions are mixed: fetch_url and fetch_with_headers lack the '_tool' suffix that appears on all other tools, and there is no uniform prefix pattern. However, the 'extract_' and 'html_to_' groups are internally consistent, making the set readable overall.
With 11 tools, the server is well-scoped for a web fetching and processing utility. Each tool serves a distinct purpose in the pipeline, and the count is neither excessive nor too sparse for the stated functionality.
The tool surface covers the complete workflow of fetching, cleaning, converting, and extracting content from web pages. Minor gaps exist, such as the lack of cookie/session handling or CSS selector-based extraction, but these are not essential to the core purpose.
Maintenance
Related MCP Connectors
MCP server for web extraction and rendering via AceDataCloud WebExtrator
Web scraping MCP server — scrape, extract structured data, screenshot any site with anti-bot bypass.
Web scraping MCP server: any URL to Markdown or JSON, with JavaScript rendering and batch jobs.
A remote MCP server to convert HTML documents (URL or raw source) to PDF or screenshots
Related MCP Servers
- AlicenseAqualityNot gradedmaintenanceA powerful MCP server for fetching and transforming web content into various formats (HTML, JSON, Markdown, Plain Text) with ease.413,314 npm42MIT
- AlicenseAqualityCmaintenanceAn MCP server for fetching and transforming web content into various formats.49MIT
- FlicenseNot gradedqualityNot gradedmaintenanceAn MCP server for web content extraction that converts HTML pages into clean, LLM-optimized Markdown using Mozilla's Readability. It supports batch processing, intelligent multi-page crawling, and configurable caching while respecting robots.txt standards.48 npm-
- AlicenseNot gradedqualityDmaintenanceA web fetching MCP server with HTTP proxy support, allowing AI to retrieve web content in markdown, text, or HTML format while handling anti-crawler detection and redirects.1MIT