huoshui-fetch
A dedicated web content fetching and conversion MCP server that provides tools for fetching, converting, and extracting data from web pages.
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
# Using uv (recommended)
uv sync
# Or install from GitHub
pip install git+https://github.com/yourusername/huoshui-fetch.git
Usage
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-fetch
Run directly
# Using uv
uv run python -m huoshui_fetch
# Or if installed
python -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:
{
"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-pypi
Individual 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.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.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.py
This will create a huoshui-fetch-{version}.dxt file that can be installed in compatible AI desktop applications.
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。